Skip to content

feat: Add agent-templates directory and copy on init#236

Merged
dlorenc merged 1 commit intomainfrom
multiclaude/zealous-tiger
Jan 23, 2026
Merged

feat: Add agent-templates directory and copy on init#236
dlorenc merged 1 commit intomainfrom
multiclaude/zealous-tiger

Conversation

@dlorenc
Copy link
Copy Markdown
Owner

@dlorenc dlorenc commented Jan 23, 2026

Summary

  • Creates internal/templates/agent-templates/ directory with current prompts extracted to markdown files (merge-queue.md, worker.md, reviewer.md)
  • Adds internal/templates package that embeds templates and provides CopyAgentTemplates() function
  • Adds RepoAgentsDir() method to pkg/config for ~/.multiclaude/repos/<repo>/agents/ path
  • Updates multiclaude init to copy templates to per-repo agents directory when initializing a repo

Test plan

  • All existing tests pass
  • New internal/templates package has unit tests for ListAgentTemplates() and CopyAgentTemplates()
  • Code compiles and passes gofmt check
  • Manual testing: run multiclaude init <repo> and verify templates are copied to ~/.multiclaude/repos/<repo>/agents/

Notes

This is PR 1 for issue #233. No behavior changes yet - daemon still reads from old locations (internal/prompts). This is preparation for making agents user-configurable.

The next PRs will:

  1. Update daemon to read from ~/.multiclaude/repos/<repo>/agents/
  2. Update supervisor to interpret agent definitions
  3. Make agents fully configurable

Related: #233

🤖 Generated with Claude Code

This is PR 1 of issue #233 (Configurable agents via markdown definitions).

Changes:
- Create internal/templates/agent-templates/ directory with current prompts
  extracted to markdown files:
  - merge-queue.md
  - worker.md
  - reviewer.md
- Add internal/templates package that embeds templates and provides
  CopyAgentTemplates() function
- Add RepoAgentsDir() method to pkg/config for ~/.multiclaude/repos/<repo>/agents/
- Update initRepo to copy templates to per-repo agents directory on init

No behavior changes yet - daemon still reads from old locations (internal/prompts).
This is preparation for making agents user-configurable.

Related: #233

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@dlorenc dlorenc added the multiclaude PRs created by multiclaude workers label Jan 23, 2026
@dlorenc dlorenc merged commit 52060ce into main Jan 23, 2026
6 checks passed
@dlorenc dlorenc deleted the multiclaude/zealous-tiger branch January 23, 2026 02:09
aronchick pushed a commit to aronchick/multiclaude that referenced this pull request Feb 18, 2026
This is PR 1 of issue dlorenc#233 (Configurable agents via markdown definitions).

Changes:
- Create internal/templates/agent-templates/ directory with current prompts
  extracted to markdown files:
  - merge-queue.md
  - worker.md
  - reviewer.md
- Add internal/templates package that embeds templates and provides
  CopyAgentTemplates() function
- Add RepoAgentsDir() method to pkg/config for ~/.multiclaude/repos/<repo>/agents/
- Update initRepo to copy templates to per-repo agents directory on init

No behavior changes yet - daemon still reads from old locations (internal/prompts).
This is preparation for making agents user-configurable.

Related: dlorenc#233

Co-authored-by: Test User <test@example.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multiclaude PRs created by multiclaude workers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant