beads/cmd/bd
Steve Yegge 3d484587e3 fix(setup): auto-allowlist bd commands in Claude Code (#511)
Add bd to Claude Code allowedTools when running `bd setup claude` so
that all bd commands (create, update, close, etc.) can run without
requiring per-command approval.

Changes:
- Add addAllowedTool() and removeAllowedTool() helper functions
- InstallClaude() now adds "Bash(bd:*)" to allowedTools
- RemoveClaude() cleans up the allowedTools entry
- Add tests for new functionality

Users who have already run `bd setup claude` can run it again to add
the missing allowedTools entry while keeping their existing hooks.

Fixes #511

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-13 09:42:52 +11:00
..
doctor feat(doctor): add configuration value validation (bd-alz) 2025-12-07 20:21:22 +11:00
setup fix(setup): auto-allowlist bd commands in Claude Code (#511) 2025-12-13 09:42:52 +11:00
templates chore: Bump version to 0.29.0 2025-12-03 16:24:46 -08:00
testdata fix: Update dep_add test to match current show output format 2025-11-04 00:23:25 -08:00
autoflush.go fix(multi-repo): filter issues by prefix when flushing from non-primary repos (GH #437) 2025-12-01 21:17:56 -08:00
autoimport.go fix: use proper YAML parsing for no-db mode detection (bd-r6k2) 2025-12-07 21:09:32 +11:00
autoimport_test.go fix: use proper YAML parsing for no-db mode detection (bd-r6k2) 2025-12-07 21:09:32 +11:00
autostart_test.go Fix failing tests 2025-10-27 20:08:50 -07:00
clean.go bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
clean_security_test.go test: Add security and error handling tests for lint warnings 2025-11-21 19:30:48 -05:00
cleanup.go bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
cli_fast_test.go feat: Add label operations to bd update command 2025-11-21 22:17:26 -05:00
comments.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
comments_test.go test: Refactor P1 test files to use shared DB pattern (bd-1rh) 2025-11-21 15:51:07 -05:00
compact.go feat(tombstones): add migrate-tombstones command and compact pruning 2025-12-07 21:34:35 +11:00
compact_test.go feat(tombstones): add migrate-tombstones command and compact pruning 2025-12-07 21:34:35 +11:00
config.go feat(bd-1pj6): Add custom status states via config 2025-11-28 23:19:21 -08:00
config_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
count.go feat: Add 'bd count' command for counting and grouping issues 2025-11-21 19:21:05 -05:00
create.go feat: add --estimate flag to bd create/update commands (GH #443) 2025-12-03 15:55:35 -08:00
create_test.go test: Refactor P1 test files to use shared DB pattern (bd-1rh) 2025-11-21 15:51:07 -05:00
daemon.go feat(daemon): add --foreground flag for systemd/supervisord integration 2025-12-01 21:09:00 -08:00
daemon_autoimport_test.go Optimize test suite: split integration tests, add -short support 2025-11-05 20:39:47 -08:00
daemon_autostart.go refactor: remove deprecated global daemon support 2025-11-24 23:39:54 -08:00
daemon_config.go refactor: remove deprecated global daemon support 2025-11-24 23:39:54 -08:00
daemon_crash_test.go bd-vcg5: Add daemon crash recovery with panic handler + socket cleanup 2025-11-07 21:17:24 -08:00
daemon_debouncer.go Fix FileWatcher robustness issues (bd-71) 2025-10-29 22:55:13 -07:00
daemon_debouncer_test.go fix: CI test failures on Windows 2025-11-26 20:59:07 -08:00
daemon_event_loop.go refactor: rename last_import_hash to jsonl_content_hash (bd-39o) 2025-11-28 23:14:12 -08:00
daemon_health_unix.go fix(ci): more changes to fix failing CI (#415) 2025-11-29 22:24:29 -08:00
daemon_health_wasm.go feat: implement health checks in daemon event loop (bd-gqo) 2025-11-28 23:10:44 -08:00
daemon_health_windows.go feat: implement health checks in daemon event loop (bd-gqo) 2025-11-28 23:10:44 -08:00
daemon_lifecycle.go feat(daemon): add --foreground flag for systemd/supervisord integration 2025-12-01 21:09:00 -08:00
daemon_local_test.go feat(daemon): add --local flag for git-free daemon operation (#433) 2025-12-01 17:37:56 -08:00
daemon_lock.go Fix daemon orphaning: track parent PID and exit when parent dies 2025-11-07 18:57:43 -08:00
daemon_lock_test.go Optimize test suite: split integration tests, add -short support 2025-11-05 20:39:47 -08:00
daemon_lock_unix.go Fix bd-54: Prevent multiple daemon instances via file locking 2025-10-22 13:59:58 -07:00
daemon_lock_wasm.go WIP: WASM port - switch to ncruces/go-sqlite3, add WASM stubs 2025-11-02 22:17:08 -08:00
daemon_lock_windows.go Fix bd-54: Prevent multiple daemon instances via file locking 2025-10-22 13:59:58 -07:00
daemon_logger.go Increase daemon log rotation limits for production use 2025-11-23 21:33:00 -08:00
daemon_parent_test.go Fix integration test compilation errors in cmd/bd 2025-12-11 07:11:15 -05:00
daemon_rotation_test.go Increase daemon log rotation limits for production use 2025-11-23 21:33:00 -08:00
daemon_server.go refactor: remove deprecated global daemon support 2025-11-24 23:39:54 -08:00
daemon_sync.go Refactor daemon sync functions to reduce duplication (bd-73u) 2025-12-01 21:10:56 -08:00
daemon_sync_branch.go Fix daemon sync branch commit failing with pre-commit hooks 2025-12-09 22:17:23 -05:00
daemon_sync_branch_test.go Update pre-commit hook regression test for proper isolation 2025-12-11 07:11:42 -05:00
daemon_sync_test.go refactor: rename last_import_hash to jsonl_content_hash (bd-39o) 2025-11-28 23:14:12 -08:00
daemon_test.go Fix integration test compilation errors in cmd/bd 2025-12-11 07:11:15 -05:00
daemon_unix.go feat: Complete GH #353 follow-up phases (bd-9nw, bd-u3t, bd-e0o) 2025-11-21 19:32:45 -05:00
daemon_unix_test.go feat: Complete GH #353 follow-up phases (bd-9nw, bd-u3t, bd-e0o) 2025-11-21 19:32:45 -05:00
daemon_wasm.go WIP: WASM port - switch to ncruces/go-sqlite3, add WASM stubs 2025-11-02 22:17:08 -08:00
daemon_watcher.go fix: address critical resource leaks and error handling issues (#327) 2025-11-20 08:13:06 -08:00
daemon_watcher_platform_test.go Optimize test suite: split integration tests, add -short support 2025-11-05 20:39:47 -08:00
daemon_watcher_test.go Optimize test suite: split integration tests, add -short support 2025-11-05 20:39:47 -08:00
daemon_windows.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
daemons.go fix: address critical resource leaks and error handling issues (#327) 2025-11-20 08:13:06 -08:00
daemons_test.go Improve test coverage for cmd/bd 2025-10-31 18:40:32 -07:00
delete.go Enable daemon RPC support for delete operations to trigger auto-sync, Fix for issue #527 (#528) 2025-12-12 13:19:31 -08:00
delete_recording_test.go bd sync: 2025-11-25 11:46:06 2025-11-25 11:46:06 -08:00
delete_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
deleted.go feat(deletions): complete deletions manifest epic with integration tests 2025-11-25 16:36:46 -08:00
deletion_propagation_test.go bd sync: 2025-11-25 12:03:21 2025-11-25 12:03:21 -08:00
deletion_tracking.go Fix lint errors: handle error return values 2025-11-15 12:52:34 -08:00
deletion_tracking_test.go fix(multi-repo): filter issues by prefix when flushing from non-primary repos (GH #437) 2025-12-01 21:17:56 -08:00
dep.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
dep_test.go bd sync: 2025-11-25 19:32:04 2025-11-25 19:32:05 -08:00
detect_pollution.go feat: Complete command set standardization (bd-au0) 2025-11-23 20:33:31 -08:00
direct_mode.go Fix fresh clone UX with friendly error messages (bd-dmb) 2025-11-27 22:40:57 -08:00
direct_mode_test.go fix(test): Complete rootCtx initialization fix for all hanging tests (issue #355) 2025-11-21 23:09:47 -08:00
doctor.go fix: use proper YAML parsing for no-db mode detection (bd-r6k2) 2025-12-07 21:09:32 +11:00
doctor_test.go test(doctor): add tests for export diagnostics feature (bd-9cc) 2025-12-07 20:19:49 +11:00
duplicates.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
duplicates_test.go Implement auto-merge functionality for duplicates command 2025-11-27 22:39:13 -08:00
epic.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
epic_test.go test: Refactor epic_test.go to use shared DB pattern (P2) 2025-11-21 16:14:30 -05:00
errors.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
export.go chore: sync changes from beads-sync 2025-12-07 20:57:58 +11:00
export_import_test.go test(export): add test for tombstone inclusion in JSONL export (bd-yk8w) 2025-12-07 21:14:13 +11:00
export_integrity_integration_test.go fix: replace string(rune()) with strconv.Itoa in tests (bd-fmc) 2025-12-02 22:41:07 -08:00
export_mtime_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
export_staleness_test.go Fix bd-srwk: Add ID-based staleness detection to bd export 2025-11-07 20:07:59 -08:00
export_test.go Fix context propagation lifecycle bugs 2025-11-20 21:54:11 -05:00
flags.go feat: Add --body flag as alias for --description 2025-11-21 20:08:55 -05:00
flush_manager.go Fix linter issues and test failures 2025-11-22 00:11:45 -08:00
flush_manager_test.go Fix linter issues and test failures 2025-11-22 00:11:45 -08:00
git_sync_test.go Optimize test suite: split integration tests, add -short support 2025-11-05 20:39:47 -08:00
helpers_test.go fix: support multi-part prefixes in issue ID extraction (#398) 2025-11-26 17:42:14 -08:00
hooks.go fix: support git worktrees in hooks installation 2025-11-29 23:19:57 -08:00
hooks_test.go fix: make hook tests worktree-aware by using getGitDir() 2025-12-13 08:42:26 +11:00
import.go fix(sync): protect local issues from git-history-backfill during sync (#485) 2025-12-12 13:28:48 -08:00
import_bug_test.go Remove vestigial --resolve-collisions flag 2025-10-31 01:07:42 -07:00
import_cancellation_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
import_idempotent_test.go fix(test): Complete rootCtx initialization fix for all hanging tests (issue #355) 2025-11-21 23:09:47 -08:00
import_mtime_test.go fix: Fix daemon export leaving JSONL newer than database (issues #301, #321) 2025-11-19 05:06:12 -05:00
import_multipart_id_test.go bd sync: 2025-11-09 14:53:59 2025-11-09 14:53:59 -08:00
import_profile_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
import_shared.go fix(sync): protect local issues from git-history-backfill during sync (#485) 2025-12-12 13:28:48 -08:00
import_uncommitted_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
info.go docs: update changelog and info.go for v0.29.0 release 2025-12-03 16:24:24 -08:00
info_test.go feat: Add bd info --whats-new for agent version awareness (bd-eiz9) 2025-11-08 02:28:54 -08:00
init.go fix(init): use correct gitRef in error message, remove unused var 2025-12-05 14:51:32 -08:00
init_contributor.go feat: configure sync.remote for contributor fork workflows 2025-11-29 23:22:52 -08:00
init_hooks_test.go fix: make hook tests worktree-aware by using getGitDir() 2025-12-13 08:42:26 +11:00
init_team.go fix: Auto-configure sync.branch during bd init (bd-flil) 2025-11-23 19:42:21 -08:00
init_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
integrity.go fix(bd-53c): Add reverse ZFC check to prevent stale DB from corrupting JSONL 2025-11-29 17:01:36 -08:00
integrity_content_test.go test: Tag 16 slow integration tests with build tags 2025-11-21 14:40:22 -05:00
integrity_test.go refactor: rename last_import_hash to jsonl_content_hash (bd-39o) 2025-11-28 23:14:12 -08:00
jira.go fix: resolve CI lint errors and Windows test timeout 2025-12-03 17:50:23 -08:00
jira_test.go test: add unit tests for Jira integration 2025-11-30 15:35:30 -08:00
jsonl_integrity_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
label.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
label_test.go Fix all test failures from bd-166 (missing issue_prefix) 2025-10-26 22:31:24 -07:00
list.go Add --sort and --reverse flags to bd list command 2025-11-24 20:16:07 -08:00
list_test.go test: Refactor P1 test files to use shared DB pattern (bd-1rh) 2025-11-21 15:51:07 -05:00
main.go fix: use proper YAML parsing for no-db mode detection (bd-r6k2) 2025-12-07 21:09:32 +11:00
main_test.go fix(ci): more changes to fix failing CI (#415) 2025-11-29 22:24:29 -08:00
markdown.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
markdown_test.go Add native Windows support (#91) 2025-10-20 21:08:49 -07:00
merge.go docs(UX): improve daemon and merge documentation (bd-bt6y) 2025-11-28 23:11:24 -08:00
merge_security_test.go fix: skip /etc/passwd check on Windows in security test (#363) 2025-11-22 16:49:29 -08:00
message.go Fix lint errors: handle error return values 2025-11-15 12:52:34 -08:00
migrate.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
migrate_hash_ids.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
migrate_hash_ids_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
migrate_issues.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
migrate_sync.go feat: add bd migrate-sync command for sync.branch workflow setup (bd-epn) 2025-12-01 20:07:27 -08:00
migrate_sync_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
migrate_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
migrate_tombstones.go feat(tombstones): add migrate-tombstones command and compact pruning 2025-12-07 21:34:35 +11:00
migrate_tombstones_test.go feat(tombstones): add migrate-tombstones command and compact pruning 2025-12-07 21:34:35 +11:00
nodb.go fix: support multi-part prefixes in issue ID extraction (#398) 2025-11-26 17:42:14 -08:00
nodb_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
onboard.go fix: make bd onboard output generic, not beads-specific (#465) 2025-12-05 13:20:51 -08:00
onboard_test.go fix: make bd onboard output generic, not beads-specific (#465) 2025-12-05 13:20:51 -08:00
output_test.go Close bd-157: Complete auto-import refactoring 2025-10-18 18:21:17 -07:00
prime.go feat(prime): add --stealth flag for flush-only workflow 2025-12-03 18:08:33 -08:00
prime_test.go feat(prime): add --stealth flag for flush-only workflow 2025-12-03 18:08:33 -08:00
quickstart.go Fix quickstart EXTENDING.md reference to use full URL (#12) 2025-10-14 01:10:18 -07:00
readonly_test.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
ready.go feat(tombstone): add P2 code review improvements (bd-saa, bd-1bu, bd-nyt) 2025-12-05 15:48:46 -08:00
ready_test.go feat(ready): add --unassigned filter for bd ready 2025-11-30 00:38:57 -08:00
reinit_test.go fix(init): bootstrap from sync-branch when configured (bd-0is) 2025-12-05 14:47:02 -08:00
rename_prefix.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
rename_prefix_repair_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
rename_prefix_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
reopen.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
reopen_test.go Fix all test failures from bd-166 (missing issue_prefix) 2025-10-26 22:31:24 -07:00
repair_deps.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
repair_deps_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
repo.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
restore.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
restore_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
sandbox_test.go feat: Complete GH #353 follow-up phases (bd-9nw, bd-u3t, bd-e0o) 2025-11-21 19:32:45 -05:00
sandbox_unix.go feat: Complete GH #353 follow-up phases (bd-9nw, bd-u3t, bd-e0o) 2025-11-21 19:32:45 -05:00
sandbox_windows.go feat: Complete GH #353 follow-up phases (bd-9nw, bd-u3t, bd-e0o) 2025-11-21 19:32:45 -05:00
scripttest_test.go Optimize test suite performance - 45% reduction in integration tests 2025-11-04 11:25:36 -08:00
search.go bd sync: 2025-11-24 21:16:44 2025-11-24 21:16:44 -08:00
search_test.go feat: Add date and priority filters to bd search (bd-au0.5) 2025-11-21 22:46:12 -05:00
setup.go feat(setup claude): add --stealth flag 2025-12-03 18:10:35 -08:00
show.go feat: add --estimate flag to bd create/update commands (GH #443) 2025-12-03 15:55:35 -08:00
simple_helpers_test.go bd-211: Remove deprecated rename functions from import_shared.go 2025-10-27 20:38:13 -07:00
snapshot_manager.go Fix bd-pq5k: merge conflicts now prefer closed>open and deletion>modification 2025-11-23 21:42:43 -08:00
stale.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
stale_test.go fix: replace string(rune()) with strconv.Itoa in tests (bd-fmc) 2025-12-02 22:41:07 -08:00
staleness.go bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
status.go bd-6xd: Standardize on issues.jsonl as canonical filename 2025-11-26 22:02:59 -08:00
status_test.go Fix: TestGetAssignedStatus - Missing rootCtx initialization 2025-11-21 23:22:12 -08:00
sync.go fix(sync): protect local issues from git-history-backfill during sync (#485) 2025-12-12 13:28:48 -08:00
sync_local_only_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
sync_merge_test.go Fix: Change default JSONL filename from beads.jsonl to issues.jsonl 2025-11-21 23:34:22 -08:00
sync_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
template.go fix: CI failures - performance thresholds, test eligibility, Nix hash, lint errors 2025-11-03 22:01:37 -08:00
template_security_test.go Add template support for issue creation (bd-164b) 2025-11-03 20:31:11 -08:00
template_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
test_helpers_test.go Context propagation with graceful cancellation (bd-rtp, bd-yb8, bd-2o2) 2025-11-20 21:57:23 -05:00
test_wait_helper.go fix: CI test failures and lint errors 2025-11-24 00:21:01 -08:00
tips.go feat: add hooks to plugin.json, eliminating need for global install 2025-12-04 22:44:42 -08:00
tips_example_test.go Add tip system infrastructure (bd-d4i) 2025-11-24 10:56:14 -08:00
tips_test.go bd sync: 2025-11-24 11:28:32 2025-11-24 11:28:32 -08:00
upgrade.go fix: Code review fixes for bd-loka 2025-11-23 17:16:27 -08:00
validate.go feat: add --readonly flag for worker sandboxes (gt-ymo) 2025-12-02 23:44:22 -08:00
validate_test.go fix: add test parallelism and increase Windows CI timeout 2025-12-03 18:30:53 -08:00
version.go chore: Bump version to 0.29.0 2025-12-03 16:24:46 -08:00
version_test.go Add support for bd --version flag 2025-11-05 17:37:53 -08:00
version_tracking.go fix: store version in gitignored .local_version to prevent notification spam (bd-tok) 2025-12-02 23:38:20 -08:00
version_tracking_test.go test: replace manual os.Chdir with t.Chdir in tests (#457) 2025-12-04 11:21:43 -08:00
worktree.go Reorganize project structure: move Go files to internal/beads, docs to docs/ 2025-11-05 21:04:00 -08:00
worktree_test.go Improve cmd/bd test coverage from 20.2% to 23.3% 2025-11-08 18:22:28 -08:00