Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 0 additions & 33 deletions agents/conductors/batch/batch.sh

This file was deleted.

21 changes: 0 additions & 21 deletions agents/conductors/clone/clone.sh

This file was deleted.

32 changes: 0 additions & 32 deletions agents/conductors/community/community.sh

This file was deleted.

33 changes: 0 additions & 33 deletions agents/conductors/cortex/cortex.sh

This file was deleted.

19 changes: 0 additions & 19 deletions agents/conductors/docs/docs.sh

This file was deleted.

27 changes: 0 additions & 27 deletions agents/conductors/eyes/eyes.sh

This file was deleted.

26 changes: 0 additions & 26 deletions agents/conductors/profiling/profiling.sh

This file was deleted.

23 changes: 0 additions & 23 deletions agents/conductors/workspace/workspace.sh

This file was deleted.

2 changes: 1 addition & 1 deletion agents/faculties/review/AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ produced by the reviewing agent (the session or subagent consulting this
faculty) following the procedure below — mirroring how vitals' script reads
Heart and the agent reasons over the verdict.

1. `review.sh` (→ `_review.py`, stdlib-only) resolves the task worktree —
1. `_review.py` (stdlib-only; `pyauto-brain review` runs it) resolves the task worktree —
or, for an in-place task with no worktree, the checkouts its `active.md`
`- repos:` block claims — or explicit repo paths and emits, per repo: merge-base against `origin/main`, commits
ahead, diff stat, changed files, and risk flags (public-API-shaped paths,
Expand Down
23 changes: 0 additions & 23 deletions agents/faculties/review/review.sh

This file was deleted.

31 changes: 21 additions & 10 deletions bin/pyauto-brain
Original file line number Diff line number Diff line change
Expand Up @@ -72,27 +72,34 @@ FACULTIES_DIR="$AGENTS_DIR/faculties"

declare -A AGENT_SCRIPT=(
[intake]="$CONDUCTORS_DIR/intake/intake.sh"
[batch]="$CONDUCTORS_DIR/batch/batch.sh"
[community]="$CONDUCTORS_DIR/community/community.sh"
[feature]="$CONDUCTORS_DIR/feature/feature.sh"
[bug]="$CONDUCTORS_DIR/bug/bug.sh"
[refactor]="$CONDUCTORS_DIR/refactor/refactor.sh"
[workspace]="$CONDUCTORS_DIR/workspace/workspace.sh"
[docs]="$CONDUCTORS_DIR/docs/docs.sh"
[eyes]="$CONDUCTORS_DIR/eyes/eyes.sh"
[profiling]="$CONDUCTORS_DIR/profiling/profiling.sh"
[cortex]="$CONDUCTORS_DIR/cortex/cortex.sh"
[hygiene]="$CONDUCTORS_DIR/hygiene/hygiene.sh"
[clone]="$CONDUCTORS_DIR/clone/clone.sh"
[build]="$CONDUCTORS_DIR/build/build.sh"
[release]="$CONDUCTORS_DIR/release/release.sh"
[health]="$CONDUCTORS_DIR/health/health.sh"
[vitals]="$FACULTIES_DIR/vitals/vitals.sh"
[review]="$FACULTIES_DIR/review/review.sh"
[memory]="$FACULTIES_DIR/memory/memory.sh"
[samplers]="$FACULTIES_DIR/samplers/samplers.sh"
[sizing]="$FACULTIES_DIR/sizing/sizing.sh"
)
# Agents with no launcher of their own: the verb runs its Python module
# directly (`exec python3 <module> "$@"`). This dispatcher has already resolved
# and exported the workspace root (bin/_pyauto_root.sh), which is all such a
# launcher used to add. Agents that resolve sibling checkouts or reorder
# arguments keep their script in AGENT_SCRIPT above.
declare -A AGENT_PY=(
[batch]="$CONDUCTORS_DIR/batch/_batch.py"
[community]="$CONDUCTORS_DIR/community/_community.py"
[workspace]="$CONDUCTORS_DIR/workspace/_workspace.py"
[docs]="$CONDUCTORS_DIR/docs/_docs.py"
[eyes]="$CONDUCTORS_DIR/eyes/_eyes.py"
[profiling]="$CONDUCTORS_DIR/profiling/_profiling.py"
[cortex]="$CONDUCTORS_DIR/cortex/_cortex.py"
[clone]="$CONDUCTORS_DIR/clone/_clone.py"
[review]="$FACULTIES_DIR/review/_review.py"
)
declare -A AGENT_DESC=(
[intake]="File classified prompts; never start development"
[batch]="Propose a review-budgeted shift; brief, watch and digest it"
Expand Down Expand Up @@ -134,7 +141,7 @@ cmd_help() {
if [[ $# -gt 0 ]]; then
local name="$1"
# The doc lives beside the agent's script, wherever its tier put it.
local script="${AGENT_SCRIPT[$name]:-}"
local script="${AGENT_SCRIPT[$name]:-${AGENT_PY[$name]:-}}"
local doc="${script:+$(dirname "$script")/AGENTS.md}"
if [[ -n "$doc" && -f "$doc" ]]; then
cat "$doc"
Expand Down Expand Up @@ -238,6 +245,10 @@ main() {
if [[ "$sub" == "merge-mode" ]]; then
exec python3 "$BRAIN_HOME/bin/merge_mode.py" "$@"
fi
local module="${AGENT_PY[$sub]:-}"
if [[ -n "$module" && -f "$module" ]]; then
exec python3 "$module" "$@"
fi
local script="${AGENT_SCRIPT[$sub]:-}"
if [[ -z "$script" || ! -f "$script" ]]; then
echo "pyauto-brain: unknown agent '$sub'" >&2
Expand Down
Loading