Repository navigation
refactor: replace the nine pure launcher scripts with a registry entry - #711
Merged
Merged
Conversation
docs, clone, workspace, profiling, eyes, community, cortex, batch and review only sourced _common.sh and exec'd their _<verb>.py. bin/pyauto-brain now names each module in an AGENT_PY registry and execs python3 on it; help <verb> still prints the AGENTS.md beside the module. The nine scripts are deleted (their header usage was already in each AGENTS.md). --help and a real run of every verb are byte-identical before and after. Closes #710 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Nine agent wrappers only sourced
_common.shand ranexec python3 "$HERE/_<verb>.py" "$@":docs,clone,workspace,profiling,eyes,community,cortex,batchandreview. They are now anAGENT_PYregistry entry inbin/pyauto-brainnaming the verb's module, andmain()has oneexec python3 "${AGENT_PY[$sub]}" "$@"branch.help <verb>still prints theAGENTS.mdbeside the module. The nine scripts are deleted.AGENTS.md: every subcommand and flag in the headers is already documented there.review/AGENTS.mdnamedreview.sh; it now names_review.py.sizing,memory,samplers,refactor,feature,bug,intake,vitals,release, plushygiene,build,healthandboard.repos_sync.pytenant-firewall allow-list keys for the deletedclone.shandprofiling.sh.Closes #710
API Changes
None to the CLI.
pyauto-brain <verb>output is unchanged. The nineagents/**/<verb>.shfiles are gone; callpyauto-brain <verb>or the_<verb>.pymodule.See full details below.
Test Plan
pyauto-brain <verb> --helpand one real read-only run per verb are byte-identical for all nine, as arepyauto-brain helpandhelp docs/help batch. The runs weredocs audit README.md,clone PyAutoFit --workspace autofit_workspace --howto HowToFit(analyze, writes nothing),workspace survey autofit_workspace,profiling triage,eyes survey autolens_visualization,community scan,cortex census,batch plan --lane local-devandreview --repo <a feature-branch checkout>.help reviewdiffers only by the one-lineAGENTS.mdedit above.python3shim, is identical exceptPYAUTO_ROOT_REASON. It now reads.pyauto-root marker, whichreviewalways saw, instead ofPYAUTO_ROOTfrom_common.shre-resolving the root. No Python code reads that variable.tests/test_skill_install.pyandtests/test_conductor_discovery.py: 39 passed. Full suite: 2450 passed, 1 skipped.repos_sync.py --check(with the Mind PR) adds no new failure; the tenant firewall check is OK. It still exits 1 for two reasons that are not from this change.euclid_assistant's end-at-deliverable block is stale, which also fails on main and is the open euclid_assistant#18.COWLS_COSMOS_Web_Lens_Surveycomes from the task-worktree bundle layout.gh run list. Organism door: YELLOW, for the unrelated euclid_assistant reason.Full API Changes (for automation & release notes)
Removed
agents/conductors/{batch,clone,community,cortex,docs,eyes,profiling,workspace}/<verb>.sh,agents/faculties/review/review.shAdded
bin/pyauto-brain:AGENT_PYregistry (verb → Python module)Migration
bash agents/conductors/docs/docs.sh audit README.mdpyauto-brain docs audit README.md(orpython3 agents/conductors/docs/_docs.py audit README.md)Generated by the PyAutoLabs agent workflow.
🤖 Generated with Claude Code