Repository navigation
Description
Overview
Nine agent wrappers in PyAutoBrain (docs, clone, workspace, profiling, eyes, community, cortex, batch, review) only source _common.sh and exec python3 "$HERE/_<verb>.py" "$@". This makes them a registry entry in bin/pyauto-brain (the verb's _<verb>.py) with one exec python3 branch in main(), deletes the nine scripts after their header usage is checked against each AGENTS.md, and updates the two PyAutoMind repos_sync.py allow-list keys that name clone.sh and profiling.sh.
Plan
bin/pyauto-brain: anAGENT_PYregistry for the nine verbs;main()runsexec python3 "${AGENT_PY[$sub]}" "$@";help <verb>still finds the verb'sAGENTS.mdbeside its module.- Before deleting each script, move any usage its header documents that its
AGENTS.mdlacks into thatAGENTS.md. - PyAutoMind
scripts/repos_sync.py: drop theclone.shandprofiling.shallow-list entries (their files are gone);--checkmust pass. Own PR, from a PyAutoMind worktree. - Leave
sizing,memory,samplers,refactor,feature,bug,intake,vitals,releaseandboardas they are. - Witness: capture
--helpand one read-only invocation per verb before and after (byte-identical) plus the environment the Python process receives; runtests/test_skill_install.py,tests/test_conductor_discovery.py,repos_sync.py --checkand the full suite. - Tier + merge mode: effective level: supervised; merge mode: auto-merge on green (this session: PRs opened, merge left to the human).
Detailed implementation plan
Affected Repositories
- PyAutoBrain (primary)
- PyAutoMind
Branch Survey
| Repository | Current Branch | Dirty? |
|---|---|---|
| ./organs/PyAutoBrain | main | clean |
| ./organs/PyAutoMind | main (shared checkout) | untracked .worktrees/ only |
Suggested branch: feature/launcher-registry
Implementation Steps
bin/pyauto-brain:declare -A AGENT_PYfor the nine; remove them fromAGENT_SCRIPT;cmd_helpresolves the doc from either map;main()execs python forAGENT_PY.- Delete
agents/conductors/{docs,clone,workspace,profiling,eyes,community,cortex,batch}/<verb>.shandagents/faculties/review/review.sh; fix references (review/AGENTS.md). - PyAutoMind
scripts/repos_sync.py: remove the two allow-list keys. - Witness captures before/after, tests,
repos_sync.py --check.
Key Files
bin/pyauto-brain, the nine*.sh, theirAGENTS.md- PyAutoMind
scripts/repos_sync.py
Original Prompt
Click to expand starting prompt
Replace the nine pure launcher scripts with a registry entry
Type: refactor
Target: PyAutoBrain
Repos:
- PyAutoBrain
- PyAutoMind
Difficulty: large
Autonomy: supervised
Priority: normal
Status: formalised
Consequence: notify
Witness: every verb's output is byte-identical before and after for--helpand one real invocation;tests/test_skill_install.pyandtests/test_conductor_discovery.pypass;repos_sync.py --checkpasses.
Review-minutes: 0
Unattended: ready
Lane: any
Replace the nine pure launcher scripts with a registry entry
Type: refactor
Target: PyAutoBrain
Repos:
- PyAutoBrain
- PyAutoMind
Lane: any
Nine agent wrappers in @PyAutoBrain only exec python3 "$HERE/_<verb>.py" "$@" after sourcing _common.sh: docs.sh, clone.sh, workspace.sh, profiling.sh, eyes.sh, community.sh, cortex.sh, batch.sh, review.sh (265 lines, 36 of them code; board/board.sh is the same shape). Let a registry value in bin/pyauto-brain name _<verb>.py and add one exec python3 branch in main(); the dispatcher already exports PYAUTO_ROOT. Check each script's header usage text against its AGENTS.md before deleting it. @PyAutoMind scripts/repos_sync.py (around lines 1860 and 1884) lists clone.sh and profiling.sh in allow-lists and needs the matching edit. Leave sizing, memory, samplers, refactor, feature, bug, intake, vitals, release: they resolve sibling checkouts or reorder arguments. Found in the 2026-11-22 refactor review (PyAutoBrain#700).
Witness: every verb's output is byte-identical before and after for --help and one real invocation; tests/test_skill_install.py and tests/test_conductor_discovery.py pass; repos_sync.py --check passes.
Activity
Jammy2211 commentedon Nov 22, 2026
PRs opened: PyAutoBrain #711 and PyAutoLabs/PyAutoMind#598. Witness:
--helpand one real read-only run per verb byte-identical for all nine (captures in the session scratchpad); test_skill_install + test_conductor_discovery 39 passed; Brain full suite 2450 passed, 1 skipped; Mind repos_sync tests 186 passed.repos_sync.py --check: tenant firewall OK, no new failure, but it still exits 1 on the pre-existing euclid_assistant stale block (also red on main; euclid_assistant#18) and the worktree bundle's COWLS layout. Trial merge with #703/#705/#707/#709 clean. Heart: door YELLOW (unrelated); dev-ship STALE only from a TLS timeout in Heart's CI poll. Merge left to the human (/prm).Jammy2211 commentedon Nov 22, 2026
Shipped
Merged in #711 and PyAutoLabs/PyAutoMind#598 (2026-11-22). The nine pure launcher scripts (
docs,clone,workspace,profiling,eyes,community,cortex,batch,review) are replaced by anAGENT_PYregistry entry inbin/pyauto-brain; CLI output is unchanged. Mind'srepos_sync.pydrops the tenant-firewall allow-list keys for the deletedclone.shandprofiling.sh. #598's firewall leg was re-run green after #711 merged.Heart STALE at ship time was this network's TLS timeouts only; accepted by the human.