beads/cmd/bd/setup
matt wilkie 223895b89f
fix: make bd setup claude project-local by default and auto-setup in bd init (#2935) (#2972)
Changes:
- bd setup claude now defaults to project-local (.claude/settings.json)
  instead of global (~/.claude/settings.json)
- bd setup claude --global explicitly installs globally
- bd init automatically runs Claude hook setup (project-local)
- Legacy .claude/settings.local.json hooks are auto-migrated on install
  and cleaned on remove
- bd setup claude --check detects legacy installs with migration hint
- bd init stages .claude/settings.json and CLAUDE.md for git commit

Closes #2935

Amp-Thread-ID: https://ampcode.com/threads/T-019d4fc1-6587-75cb-bdcb-1912a98cb1c1

Co-authored-by: Amp <amp@ampcode.com>
2026-04-02 20:28:36 -07:00
..
agents.go feat(init): add --agents-file flag to customize agent instructions filename 2026-03-22 11:17:43 -07:00
agents_marker_test.go feat(setup): target CLAUDE.md and GEMINI.md for hooks integrations 2026-03-15 15:02:52 -07:00
aider.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
aider_test.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
claude.go fix: make bd setup claude project-local by default and auto-setup in bd init (#2935) (#2972) 2026-04-02 20:28:36 -07:00
claude_test.go fix: make bd setup claude project-local by default and auto-setup in bd init (#2935) (#2972) 2026-04-02 20:28:36 -07:00
codex.go feat: explicit profile:full on all AGENTS.md integrations (#2139, task 4) 2026-03-15 15:02:52 -07:00
codex_test.go feat(setup): add Codex CLI setup recipe (#1243) 2026-01-21 21:50:01 -08:00
constants.go feat: add context optimization features for AI agents (#297) 2025-11-12 10:48:36 -08:00
cursor.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
cursor_test.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
exit.go refactor: standardize error handling with FatalError wrappers (bd-qioh) 2026-02-21 16:27:09 -08:00
factory.go feat: explicit profile:full on all AGENTS.md integrations (#2139, task 4) 2026-03-15 15:02:52 -07:00
factory_test.go fix: Windows Dolt server lifecycle — stale state files and false auto-stop warning (GH#2670) 2026-03-21 12:31:20 -07:00
gemini.go feat(setup): target CLAUDE.md and GEMINI.md for hooks integrations 2026-03-15 15:02:52 -07:00
gemini_test.go feat(setup): target CLAUDE.md and GEMINI.md for hooks integrations 2026-03-15 15:02:52 -07:00
junie.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
junie_test.go fix: replace stale 'bd sync' references with bd dolt push/commit (GH#2435) 2026-03-07 17:00:19 +01:00
mux.go feat: explicit profile:full on all AGENTS.md integrations (#2139, task 4) 2026-03-15 15:02:52 -07:00
mux_test.go feat(setup): add Mux setup recipe with layered AGENTS and managed hooks 2026-02-22 15:33:06 -08:00
opencode.go feat: explicit profile:full on all AGENTS.md integrations (#2139, task 4) 2026-03-15 15:02:52 -07:00
opencode_test.go feat: add OpenCode recipe to bd setup 2026-03-03 13:39:56 -07:00
setup_test_helpers.go test: refactor factory setup for coverage (#790) 2025-12-29 14:15:56 -08:00
utils.go feat: consolidate prime SSOT section replacement into canonical ReplaceSection (bd-jfe5) 2026-03-15 18:59:15 -07:00
utils_test.go feat: consolidate prime SSOT section replacement into canonical ReplaceSection (bd-jfe5) 2026-03-15 18:59:15 -07:00