How kc1t/alethe-orchestrate-skill works
Alethe is an installable agent skill that helps a lead coding agent delegate bounded work to provider CLIs, then integrate results and explain the cost. The main workflow is: a user requests work; the lead chooses and previews a playbook plan; the runner launches workers; the lead reviews and integrates their results; the report records outcomes and cost. Passive hooks, setup and quota checks are additional capabilities. The runner is a large, partially sampled module, so its internal stages are grouped by responsibility; unsampled implementation links are omitted or marked unverified.
Main entry points: orchestrate.py Worker Runner · SKILL.md Lead Agent · playbooks.yaml Playbooks · hook.py Passive Hook
Components 18
Lead Workflow
- Lead Agent
skills/alethe/SKILL.md - Playbooks
skills/alethe/playbooks.yaml - Worker Briefs
skills/alethe/references/briefs.md - Review And Integration
skills/alethe/SKILL.md
Orchestration Runtime
- Plan Validation
skills/alethe/scripts/orchestrate.py - Worker Runner
skills/alethe/scripts/orchestrate.py - Worker Safety
skills/alethe/scripts/orchestrate.py - Worktrees
skills/alethe/scripts/orchestrate.py - User Policy
skills/alethe/scripts/orchestrate.py
Usage And Reports
- Quota And Usage
skills/alethe/scripts/orchestrate.py - Session State
skills/alethe/scripts/orchestrate.py - Run Reports
skills/alethe/scripts/orchestrate.py
Hooks And Preview
- Passive Hook
skills/alethe/scripts/hook.py - Plan Diagram
skills/alethe/scripts/diagram.py - Playbook Validator
tools/check_playbooks.py
Other components
- User
- Provider CLIs
- Claude Session
Connections 21
- User → Lead Agent: requests work
README.md - Lead Agent → Playbooks: chooses playbook
README.md - Lead Agent → Worker Briefs: writes briefs
README.md - Lead Agent → Plan Validation: previews plan
README.md - Playbooks → Plan Validation: configures plan
- Plan Validation → Worker Runner: starts workers
README.md - Worker Runner → Provider CLIs: runs workers
README.md - Worker Runner → Worker Safety: confines execution
README.md - Worker Runner → Worktrees: isolates work
README.md - Worker Runner → Review And Integration: returns results
README.md - Review And Integration → Lead Agent: integrates results
README.md - Lead Agent → Run Reports: requests report
README.md - Worker Runner → Run Reports: records outcomes
skills/alethe/scripts/orchestrate.py - Lead Agent → User Policy: configures policy
- Passive Hook → Session State: reads state
skills/alethe/scripts/hook.py - Claude Session → Passive Hook: sends events
README.md - Passive Hook → Worker Runner: loads full handler
skills/alethe/scripts/hook.py - Worker Runner → Quota And Usage: checks quota
skills/alethe/scripts/orchestrate.py - Worker Runner → Session State: stores usage
skills/alethe/scripts/orchestrate.py - Worker Runner → Plan Diagram: writes preview input
- Playbooks → Playbook Validator: validates config
tools/check_playbooks.py