Skip to content

Add consolidated AGENT.md for faster AI agent onboarding#174

Open
jnun wants to merge 1 commit intomainfrom
claude/optimize-ai-agent-code-dSSOq
Open

Add consolidated AGENT.md for faster AI agent onboarding#174
jnun wants to merge 1 commit intomainfrom
claude/optimize-ai-agent-code-dSSOq

Conversation

@jnun
Copy link
Copy Markdown
Owner

@jnun jnun commented Mar 25, 2026

Summary

  • src/docs/5day/AGENT.md — Single, scannable reference (~75 lines) that replaces agents needing to read 3 separate narrative prose files. Covers structure, rules, naming, commands, and task format in one place.
  • CLAUDE.md — Dev repo agent context so contributors using Claude Code get oriented immediately.
  • setup.sh — Now copies AGENT.md to user projects, and offers to create/update the user's CLAUDE.md with a one-liner pointing to it.

The problem

AI agents working in a project with 5DayDocs installed had to discover and read 3 files in docs/5day/ai/ (task-writing-rules.md, task-creation.md, feynman-method.md) — all written as narrative prose. That's 3 tool calls and ~9KB of context before an agent could do anything useful. For a lightweight protocol, that's too heavy.

The fix

One dense file (docs/5day/AGENT.md) gives agents everything they need in a single read. The existing protocol files remain as supplementary deep-reads for specific workflows, but are no longer required for routine task management.

setup.sh now also offers to wire a CLAUDE.md one-liner so Claude Code auto-discovers 5DayDocs conventions on session start — zero exploration needed.

Test plan

  • Run ./setup.sh . and verify AGENT.md is copied to docs/5day/
  • Run ./setup.sh /tmp/test-project on a fresh directory and verify CLAUDE.md creation prompt appears
  • Run setup on a project with existing CLAUDE.md and verify append prompt (and idempotent skip if already present)
  • Verify existing docs/5day/ai/*.md files still ship unchanged

https://claude.ai/code/session_01EkKMhGhVEd8VvLrErSdftB

Replaces the pattern of agents needing to read 3+ narrative prose files
with a single scannable reference. setup.sh now offers to wire CLAUDE.md
in user projects so agents auto-discover 5DayDocs conventions.

https://claude.ai/code/session_01EkKMhGhVEd8VvLrErSdftB
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.

2 participants