Skip to content

infra: generate the command surface into AGENTS.md (agent-agnostic discovery)#101

Merged
Jammy2211 merged 2 commits into
mainfrom
claude/agents-md-standardization-ye6ig6
Jul 12, 2026
Merged

infra: generate the command surface into AGENTS.md (agent-agnostic discovery)#101
Jammy2211 merged 2 commits into
mainfrom
claude/agents-md-standardization-ye6ig6

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

The PyAutoBrain half of the ecosystem AGENTS.md/CLAUDE.md/command-surface standardization (epic: PyAutoMind/z_features/agents_md_standardization.md). Companion to the PyAutoMind PR.

What changed

  • bin/install.sh--write-agents-surface / --check-agents-surface modes generate a drift-checked command-surface block (verb · purpose · bin/pyauto-brain <verb>) into an organ's auto-loaded AGENTS.md, sourced from the bin/pyauto-brain agent registry (the single source of truth).
  • bin/pyauto-brain — guard main "$@" on direct execution so the installer can source the registry (no second verb list).
  • AGENTS.md — replaced the hand-maintained ## Running list with the generated command-surface block. Brain is the sole home for this block: it's loaded in every session, so the surface reaches everywhere without per-organ copies.
  • tests/test_skill_install.py — two tests: the committed block matches the registry, and it covers every public agent — wiring the drift check into Brain CI.

Design note

The command surface (and the organism map) live once in PyAutoBrain, not duplicated into each organ. PyAutoBrain is guaranteed loaded in every web/mobile session, so its auto-loaded AGENTS.md carries both shared blocks into context everywhere. Per-tool slash-command sugar remains deferred (agent-agnostic layer only). Every repo still keeps its own CLAUDE.md → @AGENTS.md pointer.

🤖 Generated with Claude Code


Generated by Claude Code

claude added 2 commits July 12, 2026 16:43
…scovery)

Spec 2 (command_surface_in_agents_md), agent-agnostic layer only:

- bin/install.sh: add --write-agents-surface / --check-agents-surface modes
  that generate a drift-checked command-surface block (verb · purpose ·
  bin/pyauto-brain <verb>) into each organ's auto-loaded AGENTS.md. Unified
  block (all verbs, hosted in Brain), so a single-repo web session still
  discovers every verb; skips absent repos / repos without markers.
- bin/pyauto-brain: guard `main "$@"` on direct execution so the installer can
  source the agent registry as the single source of truth (no second list).
- AGENTS.md: replace the hand-maintained `## Running` list with the generated
  block.
- tests/test_skill_install.py: assert the committed block is current and covers
  every public agent — wires the drift check into Brain CI.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KUGujq6jAgU3CExnLkkELe
Reflect the Brain-only design in the generated block's intro and the generator
comments: PyAutoBrain is loaded in every session, so its auto-loaded AGENTS.md
carries the command surface everywhere — no per-organ copy. Regenerate Brain's
block with the corrected wording. No change to the verb data.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KUGujq6jAgU3CExnLkkELe
@Jammy2211 Jammy2211 merged commit 6ffce1e into main Jul 12, 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.

2 participants