Skip to content

docs: restructure AGENTS.md and slim CLAUDE.md#90

Merged
chapel merged 2 commits intomainfrom
docs/restructure-agents-md
Feb 8, 2026
Merged

docs: restructure AGENTS.md and slim CLAUDE.md#90
chapel merged 2 commits intomainfrom
docs/restructure-agents-md

Conversation

@chapel
Copy link
Copy Markdown
Contributor

@chapel chapel commented Feb 8, 2026

Summary

  • Rewrite AGENTS.md from 287 → 488 lines to match kynetic-spec's lean-doc standard (PR #350)
  • Add 20 sections covering: project identity, dual shadow branch architecture (.kspec/ + .kbot/), bot-specific architecture (ACP client, supervisor checkpoint protocol, memory persistence), kspec foundation (essential rules, task workflow, spec-first development), ralph loop mode, PR workflow, and troubleshooting
  • Replace CLAUDE.md (68 lines of duplicated CLI reference) with single @AGENTS.md directive — all content migrated into AGENTS.md

Key additions vs previous AGENTS.md

  • What This Project Is: 7-package monorepo overview with responsibilities
  • Bot Architecture: Message flow diagram, ACP gotchas (single prompt per session, cancel fallback to SIGTERM), supervisor semantics (clean exit = no respawn, checkpoint protocol), memory auto-commit scheduling
  • Ralph Loop Mode: Full loop description, task inheritance priority, blocking rules
  • PR Workflow: 3-step lifecycle (/local-review → /pr → /pr-review), quality gates
  • Running the Bot: Env var reference, AGENT_COMMAND split gotcha, strict integer parsing
  • Troubleshooting: Expanded from 4 to 10 entries with bot-specific failure modes

Test plan

  • wc -l AGENTS.md = 488 lines (target ~440, overshoot justified by bot-specific architecture)
  • wc -l CLAUDE.md = 1 line
  • Codex cross-review verified all MUST-FIX items addressed
  • No code changes — docs only

Generated with Claude Code

Rewrite AGENTS.md from 287 → 480 lines to match kynetic-spec's
lean-doc standard. Adds 20 sections covering project identity,
dual shadow branch architecture, bot-specific architecture (ACP,
supervisor, memory), kspec foundation, ralph loop mode, PR workflow,
and troubleshooting.

Replace CLAUDE.md (68 lines of duplicated CLI reference) with a
single @AGENTS.md directive — all content migrated into AGENTS.md.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor Author

@chapel chapel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strong restructure overall: this is much closer to the reference AGENTS style and the flow is substantially clearer. I found one MUST-FIX factual mismatch and a few SHOULD-FIX/SUGGESTION items for accuracy/clarity.

- Fix escalation claim: emits event/logs, not Discord notification
- Fix session IDs: opaque strings, not ULIDs
- Clarify SHUTDOWN_TIMEOUT dual defaults (10s kbot, 30s supervisor)
- Distinguish .kspec CLI auto-commit vs .kbot runtime scheduler
- Consolidate duplicate "Creating Work" section into pointer

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@claude
Copy link
Copy Markdown

claude bot commented Feb 8, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@chapel chapel merged commit 0306e53 into main Feb 8, 2026
3 of 4 checks passed
@chapel chapel deleted the docs/restructure-agents-md branch February 8, 2026 10:08
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.

1 participant