Repository Analysis

gastownhall/beads

Beads - A memory upgrade for your coding agent

2.3 Likely human-written View on GitHub
2.3
Adjusted Score
2.3
Raw Score
100%
Time Factor
2026-05-30
Last Push
24,225
Stars
Go
Language
560,139
Lines of Code
2236
Files
776
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 20MEDIUM 176LOW 580

Pattern Findings

776 matches across 15 categories. Click a row to expand file-level details.

Decorative Section Separators143 hits · 424 pts
SeverityFileLineSnippet
MEDIUMcmd/bd/shared_server_integration_test.go117 // ── Init project directories ────────────────────────────────────────
MEDIUMcmd/bd/shared_server_integration_test.go152 // ── Fan out client workloads ────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go67// ── Issue mutations ─────────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go136// ── Dependency mutations ────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go156// ── Label mutations ─────────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go176// ── Comment mutations ───────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go188// ── Transaction support ─────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go210// ── Internal helpers ────────────────────────────────────────────────
MEDIUMinternal/storage/hook_decorator.go241// ── Hook tracking transaction ───────────────────────────────────────
MEDIUM…/storage/dolt/pull_branch_tracking_integration_test.go38 // ── Remote server ──────────────────────────────────────────────────────────
MEDIUM…/storage/dolt/pull_branch_tracking_integration_test.go66 // ── Local DoltStore ────────────────────────────────────────────────────────
MEDIUM…/storage/dolt/pull_branch_tracking_integration_test.go82 // ── Confirm the bug scenario is present ────────────────────────────────────
MEDIUM…/storage/dolt/pull_branch_tracking_integration_test.go101 // ── Verify the fix: pullWithAutoResolve succeeds via fallback ──────────────
MEDIUMinternal/telemetry/storage.go84// ── Issue CRUD ──────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go207// ── Dependencies ────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go275// ── Labels ──────────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go315// ── Work queries ─────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go354// ── Comments & events ────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go391// ── Statistics ───────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go410// ── Configuration ────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go451// ── Transactions ─────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go460// ── Wisp queries ─────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go469// ── Streaming iterators ─────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go545// ── Count* aggregates ─────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go589// ── MergeSlot ────────────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go619// ── Metadata slots ─────────────────────────────────────────────────────────
MEDIUMinternal/telemetry/storage.go642// ── Lifecycle ────────────────────────────────────────────────────────────────
MEDIUM.beads/formulas/beads-release.formula.toml58# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml60# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml639# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml641# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml670# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml672# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml729# =============================================================================
MEDIUM.beads/formulas/beads-release.formula.toml731# =============================================================================
MEDIUM…rations/beads-mcp/tests/test_mcp_server_integration.py682# =============================================================================
MEDIUM…rations/beads-mcp/tests/test_mcp_server_integration.py684# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py81# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py83# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py331# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py333# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py728# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/server.py730# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/models.py35# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/models.py37# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/models.py120# =============================================================================
MEDIUMintegrations/beads-mcp/src/beads_mcp/models.py122# =============================================================================
MEDIUMexamples/formulas/gh-issue-to-pr.formula.toml55# ── Variables ────────────────────────────────────────────────────────
MEDIUMexamples/formulas/gh-issue-to-pr.formula.toml92# ── Steps ────────────────────────────────────────────────────────────
MEDIUMexamples/formulas/gh-pr-review.formula.toml58# ── Variables ────────────────────────────────────────────────────────
MEDIUMexamples/formulas/gh-pr-review.formula.toml80# ── Steps ────────────────────────────────────────────────────────────
MEDIUMscripts/bump-version.sh2# =============================================================================
MEDIUMscripts/bump-version.sh4# =============================================================================
MEDIUMscripts/bump-version.sh26# =============================================================================
MEDIUMscripts/update-nix-vendorhash.sh4# =============================================================================
MEDIUMscripts/update-nix-vendorhash.sh6# =============================================================================
MEDIUMscripts/update-nix-vendorhash.sh23# =============================================================================
MEDIUMscripts/cross-version-smoke-test.sh4# =============================================================================
MEDIUMscripts/cross-version-smoke-test.sh6# =============================================================================
MEDIUMscripts/cross-version-smoke-test.sh31# =============================================================================
83 more matches not shown…
Over-Commented Block230 hits · 227 pts
SeverityFileLineSnippet
LOWbeads.go21
LOWcmd/bd/proxied_server.go221// }
LOWcmd/bd/proxied_server.go241// if err != nil {
LOWcmd/bd/proxied_server.go261// }
LOWcmd/bd/hooks.go41// hookSectionEndLine returns the full end marker line with the current version.
LOWcmd/bd/hooks.go181//
LOWcmd/bd/hooks.go421 }
LOWcmd/bd/hooks.go941 fmt.Printf(" Preserving existing %s hook from %s\n", entry.Name(), currentDir)
LOWcmd/bd/hooks.go981 //
LOWcmd/bd/hooks.go1041 return true
LOWcmd/bd/hooks.go1361 return
LOWcmd/bd/auto_import_upgrade_test.go61 // stages the imported issues in the Dolt working set without an
LOWcmd/bd/export_auto.go621 return filepath.Join(gitDir, "index.lock"), nil
LOWcmd/bd/memory_embedded_test.go221 // (the default since GH#2973), 8 concurrent writers also trigger
LOWcmd/bd/shared_server_integration_test.go41// container via testcontainers, initializes numDirs project directories,
LOWcmd/bd/dolt.go501 // systemd manages the server lifecycle, be-0eyj)
LOWcmd/bd/dolt.go561}
LOWcmd/bd/mol.go1package main
LOWcmd/bd/purge.go21 cmdName string
LOWcmd/bd/nocow_linux.go21// read-modify-write-recompress of the existing compressed extent. Setting
LOWcmd/bd/nocow_linux.go61 uintptr(unix.FS_IOC_SETFLAGS),
LOWcmd/bd/sandbox_unix.go1//go:build unix
LOWcmd/bd/backup_auto.go21 }
LOWcmd/bd/test_repo_beads_guard_test.go21// os.MkdirTemp("", ...) and leaked on every run. Anchoring those temp
LOWcmd/bd/init_safety_test.go421// bound its scope to verify "refusal clears" — not full bootstrap
LOWcmd/bd/search_test.go81// NOT parallel: see TestSearchCommand_MissingQueryShowsHelp comment (cobra OutOrStdout race).
LOWcmd/bd/test_helpers_pure_test.go41// from multiple goroutines (writes to a shared global map without synchronization).
LOWcmd/bd/test_helpers_pure_test.go121 exportScrub bool
LOWcmd/bd/auto_import_upgrade.go21// fallbackImporter is the function maybeAutoImportJSONL invokes for stores
LOWcmd/bd/auto_import_upgrade.go61 }
LOWcmd/bd/sandbox_windows.go1//go:build windows
LOWcmd/bd/markdown.go141//
LOWcmd/bd/import_shared.go261// using UPSERT semantics (an existing issue row is overwritten). Used by the
LOWcmd/bd/where_test.go401
LOWcmd/bd/stdio_race_guard_test.go41// (in code, not comments), it must NOT call any method name in
LOWcmd/bd/tips.go181 commandTipIDsShown[tipID] = struct{}{}
LOWcmd/bd/dep_test.go1341 if node.ID == "dependent-1" && node.Depth != 3 {
LOWcmd/bd/dep_test.go1361// BEFORE inserting into the database, so FK constraint errors don't occur
LOWcmd/bd/main_errors.go41// isWispOperation returns true if the command operates on ephemeral wisps.
LOWcmd/bd/init_safety.go1package main
LOWcmd/bd/init_safety.go21// Exit codes for init-safety refusals. Stable values so CI scripts can
LOWcmd/bd/init_safety.go41// observed the remote state and read the user's flag intent.
LOWcmd/bd/init_safety.go61 // or wrong token). Refuse with `ExitDestroyTokenMissing`. The
LOWcmd/bd/dolt_test.go881
LOWcmd/bd/auto_import_upgrade_unit_test.go101// asserts the top-level emptiness guard still fires when GetStatistics returns
LOWcmd/bd/sync_remote.go61// normalizeRemoteURL converts a remote URL to a Dolt-compatible format.
LOWcmd/bd/linear_roundtrip_test.go601 t.Fatal("milestone epic should be excluded from Linear push")
LOWcmd/bd/init_templates.go41# or overridden with command-line flags
LOWcmd/bd/init_templates.go61# actor: ""
LOWcmd/bd/init_templates.go81# git-push: false # Disable git push (backup locally only)
LOWcmd/bd/init.go701 } else if prefix != "" {
LOWcmd/bd/init.go741 //
LOWcmd/bd/main.go101 // explicitly (e.g., bd sync in dolt-native mode, hook flows, bd vc commit).
LOWcmd/bd/completions_test.go361 }
LOWcmd/bd/errors.go141 fmt.Fprintf(os.Stderr, "Error: %s\n", message)
LOWcmd/bd/errors.go161 fmt.Fprintf(os.Stderr, "Warning: "+format+"\n", args...)
LOWcmd/bd/doctor/nocow.go1package doctor
LOWcmd/bd/doctor/maintenance.go21// CheckStaleClosedIssues detects closed issues that could be cleaned up.
LOWtests/regression/discovery_test.go961 t.Errorf("remaining label should be 'urgent', got: %v", labels[0])
LOWtests/regression/discovery_test.go1041 t.Errorf("DISCOVERY: conditionally-blocked issue %s not in bd blocked output", fallback)
170 more matches not shown…
Hyper-Verbose Identifiers148 hits · 147 pts
SeverityFileLineSnippet
LOW…s/beads/skills/beads/resources/INTEGRATION_PATTERNS.md193def test_refresh_token_returns_new_access_token():
LOWnpm-package/test/integration.test.js263async function testClaudeCodeWebSimulation(npmPrefix) {
LOWintegrations/beads-mcp/tests/test_lifecycle.py9def test_cleanup_handlers_registered():
LOWintegrations/beads-mcp/tests/test_lifecycle.py27def test_cleanup_function_safe_to_call_multiple_times():
LOWintegrations/beads-mcp/tests/test_lifecycle.py40def test_signal_handler_calls_cleanup():
LOWintegrations/beads-mcp/tests/test_lifecycle.py55def test_cleanup_logs_lifecycle_events(caplog):
LOWintegrations/beads-mcp/tests/test_compaction_config.py20 def test_default_compaction_threshold(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py50 def test_custom_compaction_threshold_via_env(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py76 def test_get_compaction_settings_with_defaults(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py97 def test_get_compaction_settings_with_custom_values(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py115 def test_get_compaction_settings_validates_threshold_minimum(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py127 def test_get_compaction_settings_validates_preview_minimum(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py141 def test_get_compaction_settings_validates_preview_not_greater_than_threshold(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py157 def test_get_compaction_settings_with_edge_case_values(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py173 def test_get_compaction_settings_with_large_values(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py193 def test_environment_variables_documented_in_code(self):
LOWintegrations/beads-mcp/tests/test_compaction_config.py201 def test_environment_variables_documented_in_context_engineering_md(self):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py37 async def test_run_command_uses_devnull_stdin(self, bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py50 async def test_check_version_uses_devnull_stdin(self, bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py64 async def test_add_dependency_uses_devnull_stdin(self, bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py79 async def test_quickstart_uses_devnull_stdin(self, bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py93 async def test_init_uses_devnull_stdin(self, bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py110 def test_resolve_workspace_root_uses_devnull_stdin(self):
LOWintegrations/beads-mcp/tests/test_subprocess_stdin.py129 def test_tools_resolve_workspace_root_uses_devnull_stdin(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py90 async def test_concurrent_calls_different_projects(self, temp_projects, mock_client_factory):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py128 async def test_concurrent_calls_same_project_reuse_client(self, temp_projects, mock_client_factory):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py161 async def test_pool_lock_prevents_race_conditions(self, temp_projects, mock_client_factory):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py202 def test_canonicalize_with_beads_dir(self, temp_projects):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py210 def test_canonicalize_symlink_deduplication(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py227 def test_canonicalize_submodule_with_beads(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py244 def test_canonicalize_no_beads_uses_git_toplevel(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py261 def test_resolve_workspace_root_git_repo(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py275 def test_resolve_workspace_root_shared_worktree_prefers_main_repo_with_beads(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py292 def test_resolve_workspace_root_subdir_relative_common_dir_prefers_main_repo(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py312 def test_resolve_workspace_root_not_git(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py332 async def test_no_cross_project_data_leakage(self, temp_projects, mock_client_factory):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py369 async def test_stress_test_many_parallel_calls(self, temp_projects, mock_client_factory):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py406 async def test_contextvar_isolated_per_request(self, temp_projects):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py409 async def get_current_workspace_val() -> str | None:
LOW…ations/beads-mcp/tests/test_multi_project_switching.py435 async def test_contextvar_reset_after_call(self, temp_projects):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py447 async def test_contextvar_fallback_to_env(self, temp_projects):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py475 async def test_no_workspace_raises_error(self):
LOW…ations/beads-mcp/tests/test_multi_project_switching.py494 def test_canonicalize_path_cached(self, temp_projects):
LOWintegrations/beads-mcp/tests/test_bd_client.py776async def test_validate_routes_to_doctor(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py784async def test_validate_fix_all_adds_fix_yes(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py792async def test_validate_ignores_checks_arg(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py800async def test_detect_pollution_routes_to_doctor(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py808async def test_detect_pollution_clean_adds_flags(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py38async def test_bd_client_initialization():
LOWintegrations/beads-mcp/tests/test_bd_client.py46async def test_bd_client_without_db():
LOWintegrations/beads-mcp/tests/test_bd_client.py66async def test_run_command_not_found(bd_client):
LOWintegrations/beads-mcp/tests/test_bd_client.py89async def test_run_command_invalid_json(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py101async def test_run_command_empty_output(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py170async def test_ready_with_issue_type(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py198async def test_ready_invalid_response(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py234async def test_list_issues_invalid_response(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py269async def test_show_invalid_response(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py310async def test_create_with_optional_fields(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py346async def test_create_invalid_response(bd_client, mock_process):
LOWintegrations/beads-mcp/tests/test_bd_client.py381async def test_update_with_optional_fields(bd_client, mock_process):
88 more matches not shown…
Verbosity Indicators84 hits · 145 pts
SeverityFileLineSnippet
LOWcmd/bd/gate_discover.go75 // Step 1: Find open gh:run gates without await_id
LOWcmd/bd/gate_discover.go93 // Step 2: Query recent GitHub workflow runs
LOWcmd/bd/gate_discover.go106 // Step 3: Match runs to gates
LOWcmd/bd/gate_discover.go128 // Step 4: Update gate with discovered run ID
LOWcmd/bd/init_team.go26 // Step 1: Check if we're in a git repository
LOWcmd/bd/init_team.go45 // Step 2: Check for protected main branch
LOWcmd/bd/init_team.go108 // Step 3: Configure team settings
LOWcmd/bd/init_team.go123 // Step 4: Summary
LOWcmd/bd/init_contributor.go52 // Step 1: Detect fork relationship
LOWcmd/bd/init_contributor.go82 // Step 2: Check push access to origin
LOWcmd/bd/init_contributor.go110 // Step 3: Configure planning repository
LOWcmd/bd/init_contributor.go205 // Step 4: Configure contributor routing
LOWcmd/bd/init_contributor.go248 // Step 5: Summary
LOWcmd/bd/migrate_issues.go160 // Step 1: Validate repositories exist
LOWcmd/bd/migrate_issues.go165 // Step 2: Build initial candidate set C using filters
LOWcmd/bd/migrate_issues.go182 // Step 3: Expand set to M (migration set) based on --include
LOWcmd/bd/migrate_issues.go188 // Step 4: Check for orphaned dependencies
LOWcmd/bd/migrate_issues.go198 // Step 5: Build migration plan
LOWcmd/bd/migrate_issues.go201 // Step 6: Display plan
LOWcmd/bd/migrate_issues.go206 // Step 7: Execute migration if not dry-run
LOWcmd/bd/import_prefix_test.go19 // Step 0: Build the bd binary
LOWcmd/bd/import_prefix_test.go32 // Step 1: Setup a database with a specific prefix
LOWcmd/bd/import_prefix_test.go49 // Step 2: Create a JSONL file with a mismatched prefix
LOWcmd/bd/import_prefix_test.go56 // Step 3: Attempt import without flag - should fail
LOWcmd/bd/import_prefix_test.go65 // Step 4: Attempt import with --skip-prefix-validation - should succeed
LOWcmd/bd/import_prefix_test.go71 // Step 5: Verify issue was imported
LOWcmd/bd/mol_ready_gated.go107 // Step 1: Find all closed gate beads
LOWcmd/bd/mol_ready_gated.go124 // Step 2: Get ready work to check which steps are ready
LOWcmd/bd/mol_ready_gated.go134 // Step 3: Get hooked molecules to filter out
LOWcmd/bd/mol_ready_gated.go158 // Step 4: For each closed gate, collect all dependents that are ready,
LOWcmd/bd/main_test.go30 // Step 1: Create an open issue in the database
LOWcmd/bd/main_test.go47 // Step 2: Update via UpdateIssue with closed status (closed_at managed automatically)
LOWcmd/bd/main_test.go56 // Step 3: Verify the issue is now closed with correct closed_at
LOWcmd/bd/main_test.go81 // Step 1: Create a closed issue in the database
LOWcmd/bd/main_test.go99 // Step 2: Update via UpdateIssue with open status (closed_at managed automatically)
LOWcmd/bd/main_test.go108 // Step 3: Verify the issue is now open with null closed_at
LOWcmd/bd/doctor/gitignore_test.go2080 // Step 1: Check should detect outdated
LOWcmd/bd/doctor/gitignore_test.go2086 // Step 2: Fix should update the redirect target
LOWcmd/bd/doctor/gitignore_test.go2091 // Step 3: Re-check should pass
LOWcmd/bd/doctor/gitignore_test.go2097 // Step 4: No .gitignore in redirect-only dir (the original bug)
LOWcmd/bd/doctor/integrity.go466 // So we need to check if the length variation is natural (1→2→3 digits)
LOWtests/regression/scenarios_test.go156 // Step 1: Create rich data in baseline
LOWtests/regression/scenarios_test.go170 // Step 2: Export from baseline
LOWtests/regression/scenarios_test.go178 // Step 3: Import into candidate
LOWtests/regression/scenarios_test.go186 // Step 4: Export from candidate and compare
LOWtests/regression/regression_test.go404 // Step 1: get all issue IDs via bd list (--all includes closed issues,
LOWtests/regression/regression_test.go429 // Step 2: for each ID, run bd show --json and emit one JSONL line
LOWinternal/storage/issueops/molecule.go35 // Step 1: Get child issue IDs from dependencies table.
LOWinternal/storage/issueops/molecule.go57 // Step 2: Batch-fetch status for all children.
LOWinternal/storage/issueops/epic_closure.go14 // Step 1: Get open epic IDs (single-table scan)
LOWinternal/storage/issueops/epic_closure.go38 // Step 2: Get parent-child dependencies from both tables (bd-w2w)
LOWinternal/storage/issueops/epic_closure.go70 // Step 3: Batch-fetch statuses for all child issues across all epics
LOWinternal/storage/issueops/epic_closure.go108 // Step 4: Batch-fetch all epic issues
LOWinternal/storage/issueops/epic_closure.go124 // Step 5: Build results from cached data
LOWinternal/storage/embeddeddolt/federation.go204 // Step 1: Fetch
LOWinternal/storage/embeddeddolt/federation.go211 // Step 2: Get commit before merge for change detection
LOWinternal/storage/embeddeddolt/federation.go214 // Step 3: Merge peer's branch
LOWinternal/storage/embeddeddolt/federation.go222 // Step 4: Handle conflicts
LOWinternal/storage/embeddeddolt/federation.go251 // Step 5: Push
LOWinternal/storage/dolt/git_remote_test.go910 // Step 1: Source creates data and pushes
24 more matches not shown…
Magic Placeholder Names13 hits · 65 pts
SeverityFileLineSnippet
HIGHcmd/bd/linear.go32 bd config set linear.api_key "YOUR_API_KEY"
HIGHcmd/bd/linear.go831 fmt.Println(" bd config set linear.api_key \"YOUR_API_KEY\"")
HIGHcmd/bd/linear.go836 fmt.Println(" export LINEAR_API_KEY=\"YOUR_API_KEY\"")
HIGHcmd/bd/linear.go948 " API key (devs): export LINEAR_API_KEY=... or bd config set linear.api_key \"YOUR_API_KEY\"")
HIGHwebsite/docs/cli-reference/linear.md16 bd config set linear.api_key "YOUR_API_KEY"
HIGHwebsite/static/llms-full.txt5867 bd config set linear.api_key "YOUR_API_KEY"
HIGH…e/versioned_docs/version-1.0.0/cli-reference/linear.md16 bd config set linear.api_key "YOUR_API_KEY"
HIGH…e/versioned_docs/version-1.0.4/cli-reference/linear.md16 bd config set linear.api_key "YOUR_API_KEY"
HIGH…e/versioned_docs/version-1.0.5/cli-reference/linear.md16 bd config set linear.api_key "YOUR_API_KEY"
HIGHinternal/linear/tracker.go59 " API key (devs): export LINEAR_API_KEY=... or bd config set linear.api_key \"YOUR_API_KEY\"")
HIGHdocs/CLI_REFERENCE.md4807 bd config set linear.api_key "YOUR_API_KEY"
HIGHscripts/generate-newsletter_README.md13export ANTHROPIC_API_KEY="your-api-key"
HIGHscripts/generate-newsletter_README.md16export OPENAI_API_KEY="your-api-key"
Fake / Example Data58 hits · 58 pts
SeverityFileLineSnippet
LOWcmd/bd/bootstrap_embedded_test.go118 cmd = exec.Command("git", "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_embedded_test.go142 cmd = exec.Command("git", "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_embedded_test.go184 gitCmd = exec.Command("git", "config", "user.email", "test@test.com")
LOWcmd/bd/shared_server_integration_test.go579 {"git", "config", "user.email", "test@test.com"},
LOWcmd/bd/show_embedded_test.go313 bdUpdate(t, bd, dir, issue.ID, "--status", "in_progress", "--assignee", "test@test.com")
LOWcmd/bd/init_test.go1319 runGit(mainRepo, "config", "user.email", "test@test.com")
LOWcmd/bd/init_test.go2274 _ = exec.Command("git", "-C", secondDir, "config", "user.email", "test@test.com").Run()
LOWcmd/bd/linear_test.go611 Name: "John Doe",
LOWcmd/bd/git_repo_template_test.go45 {"config", "user.email", "test@test.com"},
LOWcmd/bd/init_safety_test.go367 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/init_hooks_test.go861 {"config", "user.email", "test@test.com"},
LOWcmd/bd/init_hooks_test.go1138 {"config", "user.email", "test@test.com"},
LOWcmd/bd/init_hooks_test.go1244 {"config", "user.email", "test@test.com"},
LOWcmd/bd/init_embedded_test.go70 {"config", "user.email", "test@test.com"},
LOWcmd/bd/bootstrap_test.go291 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go417 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go736 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go810 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go892 runGitForBootstrapTest(t, rigDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go1025 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/bootstrap_test.go1231 runGitForBootstrapTest(t, sourceDir, "config", "user.email", "test@test.com")
LOWcmd/bd/sync_git_test.go141 runGitForSyncTest(t, repoDir, "config", "user.email", "test@test.com")
LOWcmd/bd/doctor/git_hygiene_test.go45 runGit(t, dir, "config", "user.email", "test@test.com")
LOWcmd/bd/doctor/git_hygiene_test.go278 runGit(t, clone, "config", "user.email", "test@test.com")
LOWcmd/bd/doctor/git_repo_template_test.go42 {"config", "user.email", "test@test.com"},
LOWcmd/bd/doctor/dolt_e2e_test.go234 {"config", "user.email", "test@test.com"},
LOWcmd/bd/doctor/fix/git_repo_template_test.go42 {"config", "user.email", "test@test.com"},
LOWcmd/bd/doctor/fix/metadata_test.go206 {"git", "config", "user.email", "test@test.com"},
LOWinternal/ado/tracker_test.go472 "displayName": "Jane Doe",
LOWinternal/ado/tracker_test.go504 if ti.Assignee != "Jane Doe" {
LOWinternal/ado/tracker_test.go505 t.Errorf("Assignee = %q, want %q", ti.Assignee, "Jane Doe")
LOWinternal/ado/tracker_test.go564 "displayName": "Jane Doe",
LOWinternal/ado/tracker_test.go567 wantAssignee: "Jane Doe",
LOWinternal/gitlab/mapping_test.go254 Name: "John Doe",
LOWinternal/gitlab/types_test.go30 "name": "John Doe",
LOWinternal/linear/mapping_test.go433 Assignee: &User{Name: "John Doe", Email: "john@example.com"},
LOWinternal/linear/mapping_test.go549 Assignee: &User{Name: "Jane Doe", Email: "jane@example.com"},
LOWinternal/remotecache/cache_test.go41 cmd := exec.Command("dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1151 runCmd(t, serverDataDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1158 runCmd(t, testdbDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1191 runCmd(t, clientDataDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1212 CommitterEmail: "test@test.com",
LOWinternal/storage/dolt/git_remote_test.go1268 runCmd(t, serverDataDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1274 runCmd(t, testdbDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1310 runCmd(t, clientTestdbDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_test.go1334 CommitterEmail: "test@test.com",
LOWinternal/storage/dolt/federation_test.go447 initCmd := exec.Command("dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/federation_test.go547 initCmd := exec.Command("dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/federation_test.go566 initRootCmd := exec.Command("dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_shared_server_test.go53 runCmd(t, sharedDoltDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_shared_server_test.go59 runCmd(t, sharedTestdbDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_shared_server_test.go92 runCmd(t, clientTestdbDir, "dolt", "init", "--name", "test", "--email", "test@test.com")
LOWinternal/storage/dolt/git_remote_shared_server_test.go119 CommitterEmail: "test@test.com",
LOWinternal/jira/client_test.go14 c := NewClient("https://example.atlassian.net", "user@example.com", "token123")
LOWinternal/github/mapping_test.go250 Name: "John Doe",
LOWinternal/github/types_test.go31 "name": "John Doe",
LOWinternal/beads/context_test.go1068 {"git", "config", "user.email", "test@test.com"},
LOWinternal/beads/fingerprint_test.go14 {"git", "config", "user.email", "test@test.com"},
Self-Referential Comments18 hits · 56 pts
SeverityFileLineSnippet
MEDIUMcmd/bd/branch.go21 bd branch feature-xyz # Create a new branch named feature-xyz`,
MEDIUMcmd/bd/setup/aider.go12# This file is marked read-only and cached for efficiency
MEDIUM…grations/beads-mcp/tests/test_workspace_auto_detect.py181 # Create main workspace with actual database
MEDIUM…grations/beads-mcp/tests/test_workspace_auto_detect.py241 # Create main workspace WITHOUT database
MEDIUMintegrations/beads-mcp/tests/test_config.py26 # Create a fake bd executable
MEDIUMintegrations/beads-mcp/tests/test_config.py53 # Create a non-executable file
MEDIUM…rations/beads-mcp/tests/test_mcp_server_integration.py344 # Create a ready issue (no dependencies)
MEDIUM…rations/beads-mcp/tests/test_mcp_server_integration.py634 # Create a fresh temp directory without any beads database
MEDIUM…rations/beads-mcp/tests/test_mcp_server_integration.py996 # Create a ready issue
MEDIUM…grations/beads-mcp/tests/test_bd_client_integration.py421 # Create a temporary directory to test in
MEDIUM…grations/beads-mcp/tests/test_worktree_separate_dbs.py91 # Create a worktree AFTER initializing beads in main
MEDIUMscripts/test-git-remote.sh74 # Create a local git repo as the remote (needs initial commit for dolt push)
MEDIUMscripts/release.sh197# Create the release molecule (wisp)
MEDIUMscripts/release.sh201# Create the wisp and capture the output
MEDIUMscripts/upgrade-smoke-test.sh196# Create an isolated workspace with git init
MEDIUMscripts/upgrade-smoke-test.sh215# Create an issue with the previous binary, tolerating missing --silent flag.
MEDIUMscripts/migration-test/lib/workspace.sh37# Create an issue, returning just the ID on stdout.
MEDIUMscripts/migration-test/lib/features.sh38# Create the canonical dataset for a given version.
AI Slop Vocabulary15 hits · 40 pts
SeverityFileLineSnippet
MEDIUMcmd/bd/doctor/integrity.go100 // Detect ID format using robust heuristic
MEDIUMcmd/bd/doctor/integrity.go431// This is more robust than checking a single ID's format, since base36 hash IDs can be all-numeric.
MEDIUMwebsite/package-lock.json17690 "resolved": "https://registry.npmjs.org/robust-predicates/-/robust-predicates-3.0.3.tgz",
MEDIUMinternal/linear/synclock.go17// It combines a PID-annotated lock file with flock for robust mutual exclusion.
MEDIUMinternal/utils/id_parser.go109 // Use the hash part as a search query to leverage SQL-level filtering
MEDIUMinternal/beads/beads.go1064 // Canonicalize the boundary so the `dir == gitRoot` comparison is robust
MEDIUMintegrations/beads-mcp/src/beads_mcp/tools.py716 """Run comprehensive database health checks.
MEDIUMexamples/formulas/gh-pr-review.formula.toml86description = """Fetch comprehensive PR metadata needed for classification and review.
MEDIUMscripts/upgrade-smoke-test.sh464 # data-copy is still covered by the migration-test harness; skip gracefully.
MEDIUMscripts/migration-test/run.sh423# Self-test: candidate as both source and target (validates the harness itself)
MEDIUMscripts/migration-test/run.sh25# ./scripts/migration-test/run.sh --self-test # candidate → candidate (harness validation)
LOWscripts/migration-test/run.sh137 # First try: just use candidate directly (auto-detect + migrate)
MEDIUMscripts/migration-test/recipes/sqlite_to_current.sh143 # direct upgrade attempt in the harness.
MEDIUMscripts/migration-test/lib/workspace.sh7# The migration harness runs in isolated temp-dir workspaces, so there is no
MEDIUM.github/workflows/main.yml872 # Linux/macOS run comprehensive tests; Windows just verifies binary works
Redundant / Tautological Comments23 hits · 34 pts
SeverityFileLineSnippet
LOWcmd/bd/merge_slot.go33 bd merge-slot check # Check if slot is available
LOWcmd/bd/init.go387 fmt.Fprintf(os.Stderr, " bd dolt status # Check if this is a server config issue\n\n")
LOWintegrations/beads-mcp/tests/conftest.py61 # Check if test is using bd_client fixture
LOWintegrations/beads-mcp/tests/test_config.py36 # Set BEADS_PATH to just "bd" (command name, not path)
LOWintegrations/beads-mcp/tests/test_config.py69 # Set BEADS_DB to non-existent file
LOW…grations/beads-mcp/tests/test_worktree_separate_dbs.py293 # Set context to worktree
LOWexamples/bash-agent/agent.sh39# Check if bd is installed
LOWexamples/bash-agent/agent.sh46# Check if we're in a beads-initialized directory
LOWexamples/startup-hooks/bd-version-check.sh50# Check if bd is installed
LOWexamples/startup-hooks/bd-version-check.sh55# Check if jq is installed (required for JSON manipulation)
LOWscripts/generate-newsletter.py240 # Read the file to extract cobra.Command definitions
LOWscripts/generate-newsletter.py570 # Check if we should use last week or since last release
LOWscripts/install.sh186 # Check if codesign is available
LOWscripts/install.sh402 # Check if install_dir is in PATH
LOWscripts/install.sh416# Check if Go is installed and meets minimum version
LOWscripts/install.sh426 # Check if Go version is 1.24 or later
LOWscripts/install.sh513 # Check if GOPATH/bin (or GOBIN) is in PATH
LOWscripts/install.sh573 # Check if install_dir is in PATH
LOWscripts/update-nix-vendorhash.sh48# Check if we're in the repo root
LOWscripts/update-nix-vendorhash.sh61 # Check if Docker is available
LOWscripts/update-nix-vendorhash.sh158 # Check if hash is actually the same
LOWscripts/upgrade-smoke-test.sh323# Check if old binary was able to initialize .beads/.
LOWscripts/migration-test/recipes/fix_dash_prefix.sh39 # Check if prefix has dashes
Docstring Block Structure6 hits · 30 pts
SeverityFileLineSnippet
HIGHintegrations/beads-mcp/src/beads_mcp/config.py45Validate BEADS_PATH points to an executable bd binary. Args: v: Path to bd executable (can be comma
HIGHintegrations/beads-mcp/src/beads_mcp/config.py83Validate BEADS_DIR points to an existing .beads directory. Args: v: Path to .beads directory or Non
HIGHintegrations/beads-mcp/src/beads_mcp/config.py112Validate BEADS_DB points to an existing database file. Args: v: Path to database file or None
HIGHintegrations/beads-mcp/src/beads_mcp/bd_client.py282Run bd command and parse JSON output. Args: *args: Command arguments to pass to bd cwd:
HIGHintegrations/beads-mcp/src/beads_mcp/bd_client.py476Show issue details. Args: params: Issue ID to show Returns: Issue details
HIGHintegrations/beads-mcp/src/beads_mcp/tools.py264Attempt to reconnect with exponential backoff. Args: canonical: Canonical workspace path max_retrie
Example Usage Blocks14 hits · 21 pts
SeverityFileLineSnippet
LOWcmd/bd/tips.go196// Example usage:
LOWexamples/formulas/gh-issue-to-pr.formula.toml20# Usage:
LOWexamples/formulas/gh-pr-review.formula.toml27# Usage:
LOWscripts/update-nix-vendorhash.sh20# Usage:
LOWscripts/sign-windows.sh14# Usage:
LOWscripts/cross-version-smoke-test.sh17# Usage:
LOWscripts/test-git-remote.sh7# Usage:
LOWscripts/migrate-sqlite-to-current.sh4# Usage:
LOWscripts/migrate-jsonl-to-dolt.sh4# Usage:
LOWscripts/gen-winres.sh8# Usage:
LOWscripts/upgrade-smoke-test.sh15# Usage:
LOWscripts/ci/go-test-shard-packages.sh4# Usage:
LOWscripts/ci/go-test-shard-names.sh4# Usage:
LOWscripts/migration-test/run.sh21# Usage:
Deep Nesting11 hits · 11 pts
SeverityFileLineSnippet
LOWintegrations/beads-mcp/src/beads_mcp/server.py282
LOWintegrations/beads-mcp/src/beads_mcp/server.py597
LOWintegrations/beads-mcp/src/beads_mcp/server.py1296
LOWintegrations/beads-mcp/src/beads_mcp/tools.py142
LOWintegrations/beads-mcp/src/beads_mcp/workspace.py13
LOWscripts/generate-newsletter.py156
LOWscripts/generate-newsletter.py205
LOWscripts/generate-newsletter.py302
LOWscripts/generate-newsletter.py337
LOWscripts/generate-newsletter.py373
LOWscripts/generate-newsletter.py641
Excessive Try-Catch Wrapping9 hits · 10 pts
SeverityFileLineSnippet
LOWintegrations/beads-mcp/src/beads_mcp/server.py300 except Exception:
LOWintegrations/beads-mcp/src/beads_mcp/config.py152 except Exception as e:
LOWintegrations/beads-mcp/src/beads_mcp/tools.py137 except Exception as e:
LOWintegrations/beads-mcp/src/beads_mcp/tools.py206 except Exception as e:
LOWintegrations/beads-mcp/src/beads_mcp/tools.py258 except Exception:
LOWintegrations/beads-mcp/src/beads_mcp/tools.py285 except Exception:
LOWintegrations/beads-mcp/src/beads_mcp/workspace.py40 except Exception as exc:
MEDIUMexamples/python-agent/agent.py141 print(f"Error running bd: {e}", file=sys.stderr)
LOWscripts/generate-newsletter.py759 except Exception as e:
Synthetic Comment Markers1 hit · 8 pts
SeverityFileLineSnippet
HIGHcmd/bd/mol_squash.go210// This enables agents to provide AI-generated summaries while keeping bd as a pure tool.
Unused Imports3 hits · 3 pts
SeverityFileLineSnippet
LOW…ations/beads-mcp/tests/test_multi_project_switching.py10
LOWintegrations/beads-mcp/src/beads_mcp/workspace.py3
LOWscripts/generate-newsletter.py34