From ed6747c487ada0f86523014676660ddaefa37e68 Mon Sep 17 00:00:00 2001 From: dave Date: Sat, 4 Apr 2026 20:59:40 +0000 Subject: [PATCH] huskies: create 481_bug_scaffold_does_not_copy_agent_definitions_from_project_toml_to_new_projects --- ...tions_from_project_toml_to_new_projects.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .huskies/work/1_backlog/481_bug_scaffold_does_not_copy_agent_definitions_from_project_toml_to_new_projects.md diff --git a/.huskies/work/1_backlog/481_bug_scaffold_does_not_copy_agent_definitions_from_project_toml_to_new_projects.md b/.huskies/work/1_backlog/481_bug_scaffold_does_not_copy_agent_definitions_from_project_toml_to_new_projects.md new file mode 100644 index 00000000..23d00a70 --- /dev/null +++ b/.huskies/work/1_backlog/481_bug_scaffold_does_not_copy_agent_definitions_from_project_toml_to_new_projects.md @@ -0,0 +1,33 @@ +--- +name: "Scaffold does not copy agent definitions from project.toml to new projects" +--- + +# Bug 481: Scaffold does not copy agent definitions from project.toml to new projects + +## Description + +When scaffolding a new project with `huskies init`, the `[[agent]]` definitions from huskies' own `project.toml` are not included in the new project's config. The scaffold generates a minimal `project.toml` with basic settings (default_qa, max_coders, etc.) but no agent blocks. + +Without agent definitions (prompts, system prompts, model, max_turns, budget), the agents run with no guidance — they don't know about the SDTW process, worktrees, feature branches, or the rule about not committing to master. Result: agents make changes directly in master. + +The scaffold should include the battle-tested agent definitions (coder, QA, mergemaster) with their prompts and system prompts so new projects get sensible agent behaviour out of the box. + +## How to Reproduce + +1. Run `huskies init` on a new project +2. Check the generated `.huskies/project.toml` +3. Note: no `[[agent]]` blocks present +4. Start a coder agent on a story +5. Agent works directly in master with no worktree, no feature branch, no process + +## Actual Result + +No agent definitions in scaffolded project.toml. Agents run with defaults and make changes directly in master. + +## Expected Result + +Scaffolded project.toml includes default agent definitions (coder, QA, mergemaster) with prompts that enforce the SDTW process, worktrees, and feature branches. + +## Acceptance Criteria + +- [ ] Bug is fixed and verified