Skip to content

Unify AGENTS.md as single source for agent instructions#28

Merged
chubes4 merged 1 commit into
mainfrom
fix/agents-md-single-source
Apr 10, 2026
Merged

Unify AGENTS.md as single source for agent instructions#28
chubes4 merged 1 commit into
mainfrom
fix/agents-md-single-source

Conversation

@chubes4

@chubes4 chubes4 commented Apr 10, 2026

Copy link
Copy Markdown
Member

Summary

  • CLAUDE.md delegates to @AGENTS.md — no more duplicated content between templates
  • Unified {{WP_CLI_CMD}} placeholder across both runtimes (replaces {{SITE_PATH}}/{{WP_FLAGS}})
  • Claude Code runtime now generates AGENTS.md (was a no-op before)
  • Removed forbidden inline fallback from claude-code.sh — errors if template missing
  • AGENTS.md is the single source for: Data Machine memory, Workspace, WordPress Source, Multisite, Rules

Test plan

  • Run ./setup.sh --runtime claude-code --local --dry-run and verify AGENTS.md + CLAUDE.md output
  • Run ./setup.sh --runtime opencode --dry-run and verify AGENTS.md output
  • Verify --no-data-machine strips DM/Workspace sections from AGENTS.md
  • Verify multisite section removed for single-site installs

Closes #27

CLAUDE.md now delegates to @AGENTS.md instead of duplicating content.
All operational instructions (memory, workspace, source, rules) live in
AGENTS.md. CLAUDE.md only handles DM @ includes and Studio reference.

- Unified AGENTS.md template with {{WP_CLI_CMD}} placeholder
- Claude Code runtime now generates AGENTS.md (was no-op before)
- OpenCode runtime uses same {{WP_CLI_CMD}} placeholder
- Removed forbidden inline fallback from claude-code.sh
- Removed duplicate content from CLAUDE.md.tmpl

Closes #27
@chubes4 chubes4 merged commit b7cf48c into main Apr 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable Claude Code auto memory during setup

1 participant