Skip to content

refactor: replace the nine pure launcher scripts with a registry entry - #711

Merged
Jammy2211 merged 1 commit into
mainfrom
feature/launcher-registry
Nov 22, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
feature/launcher-registry

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

Summary

Nine agent wrappers only sourced _common.sh and ran exec python3 "$HERE/_<verb>.py" "$@": docs, clone, workspace, profiling, eyes, community, cortex, batch and review. They are now an AGENT_PY registry entry in bin/pyauto-brain naming the verb's module, and main() has one exec python3 "${AGENT_PY[$sub]}" "$@" branch. help <verb> still prints the AGENTS.md beside the module. The nine scripts are deleted.

  • Before deleting, I checked each script's header usage against its AGENTS.md: every subcommand and flag in the headers is already documented there. review/AGENTS.md named review.sh; it now names _review.py.
  • Left alone, as the prompt says: sizing, memory, samplers, refactor, feature, bug, intake, vitals, release, plus hygiene, build, health and board.
  • PyAutoMind companion PR: repos_sync: drop allow-list keys for the deleted clone.sh and profiling.sh PyAutoMind#598 drops the repos_sync.py tenant-firewall allow-list keys for the deleted clone.sh and profiling.sh.

Closes #710

API Changes

None to the CLI. pyauto-brain <verb> output is unchanged. The nine agents/**/<verb>.sh files are gone; call pyauto-brain <verb> or the _<verb>.py module.
See full details below.

Test Plan

  • Witness, captured in the task worktree before and after the change: pyauto-brain <verb> --help and one real read-only run per verb are byte-identical for all nine, as are pyauto-brain help and help docs/help batch. The runs were docs 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-dev and review --repo <a feature-branch checkout>. help review differs only by the one-line AGENTS.md edit above.
  • The environment each Python module receives, captured with a python3 shim, is identical except PYAUTO_ROOT_REASON. It now reads .pyauto-root marker, which review always saw, instead of PYAUTO_ROOT from _common.sh re-resolving the root. No Python code reads that variable.
  • tests/test_skill_install.py and tests/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_Survey comes from the task-worktree bundle layout.
  • A trial merge with fix: agent --help text rotted in feature, build and bug #703, docs: --help docstrings and messages still carry incident history #705, refactor: remove what batch collect left behind in the planner and status box #707 and refactor: one reader for repos.yaml instead of about ten #709 is clean.
  • Heart: the dev-ship gate read STALE only because Heart's CI poll hit a TLS timeout on this network; main is green by 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.sh

Added

  • bin/pyauto-brain: AGENT_PY registry (verb → Python module)

Migration

  • Before: bash agents/conductors/docs/docs.sh audit README.md
  • After: pyauto-brain docs audit README.md (or python3 agents/conductors/docs/_docs.py audit README.md)

Generated by the PyAutoLabs agent workflow.

🤖 Generated with Claude Code

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>
@Jammy2211
Jammy2211 merged commit 3d92a7d into main Nov 22, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the feature/launcher-registry branch November 22, 2026 18:23
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.

refactor: replace the nine pure launcher scripts with a registry entry

1 participant