🧠 Multi-agent orchestration layer for OpenClaw.
claw-orchestrator is a standalone project that coordinates specialized agent roles from a single prompt and executes a predictable pipeline.
Default role set:
- 🔭 Researcher
- 🏛️ Architect
- ⚙️ Implementer
- 💬 Reviewer
- 🛡️ Ops
It is designed to work with AAHP-style handoffs and supports both:
- Stateless execution (current safe default)
- Persistent role-session execution (when runtime supports it)
- Project scaffold created
- Initial routing config added
- Architecture + roadmap docs added
- Phase 1 core implemented:
- prompt intent classifier
- pipeline router (sequential + parallel)
- run store + run trace output
- CLI (
run,status,show)
- Phase 2 AAHP integration implemented
- Phase 3 policy gates implemented
- Phase 5/6 execution adapters implemented (
simulate+openclawbridge) - Git repository initialized
This is now a working prototype (not production-ready yet).
- Route prompts to the right role sequence automatically
- Enforce review gates before task completion
- Maintain traceable run logs (who did what, when, with what confidence)
- Add policy controls for sensitive actions
- Auto-trigger from OpenClaw session when installed as local skill (
skill/claw-orchestrator)
- Prompt intent classifier ✅
- Role pipeline router (sequential + parallel branches) ✅
- Retry/escalation policy ⏳
- Run state and trace storage ✅
- AAHP handoff read/write manager ✅
- Execution adapters:
simulateadapter ✅openclawadapter bridge ✅
- CLI commands:
orchestrator run✅orchestrator status✅orchestrator show✅
Implemented now:
.gitignorefor common local/secrets artifacts- No credentials in source files
Implemented now:
- Secret scanning in CI (gitleaks workflow)
- Local pre-commit secret scan (
npm run secret:scan) SECURITY.md+SECURITY_ROADMAP.md- Prompt-time policy gate for secret/PII patterns
- Sensitive-action approval flag (
--approve-sensitive) - AAHP handoff file validation + audit trail (
.ai/handoff/AUDIT.log.jsonl)
Still required (next):
- Signed/tamper-evident policy audit records
- More robust secret detectors and allowlist tuning
docs/architecture, roadmap, design notessrc/orchestrator core and execution adaptersconfig/routing, role templates, and bridge command examplesscripts/local helper scripts.github/workflows/CI/security checks (security scan + release gate)
- Architecture:
docs/ARCHITECTURE.md - CLI/API reference:
docs/API.md - Extending the system:
docs/EXTENDING.md - Troubleshooting:
docs/TROUBLESHOOTING.md - Roadmap:
docs/ROADMAP.md
- Runner: Vitest (
npm test) - Test structure:
tests/unit/— classifier/router/policy checkstests/integration/— AAHP handoff checkstests/e2e/— orchestrator run with simulated adapter
- Focused runs:
npm run test:unitnpm run test:integrationnpm run test:e2e
# 1) clone repo
# 2) install deps + hooks
npm install
# 3) one-step setup (installs local skill + scripts)
bash ./scripts/setup.sh
# 4) run end-to-end orchestration with clean summary
./scripts/orchestrate.sh "Implement Firestore rules and review security"
# 5) inspect runs
node src/cli.js status
# 6) continue automatically from .ai/handoff/NEXT_ACTIONS.md
node src/cli.js autopilot --summary --max-runs 3
# 7) optional: event-driven hook mode (stdin or --event-file)
echo '{"message":{"text":"Create release checklist"},"channelType":"dm"}' | node src/cli.js hook
# 8) quality checks
npm run lint
npm run format:check
npm run typecheck
npm test- Branch from
mainwith a focused feature/fix branch - Keep commits small and conventional (
feat:,fix:,docs:,chore:) - Run local checks before push:
npm run lint
npm run format:check
npm test
npm run typecheck
npm run aahp:check
npm run secret:scan- Pre-commit hook runs lint-staged checks automatically
- CI should stay green before opening/merging PRs
# ensure clean branch
git checkout main
git pull --ff-only
# run release gate checks
npm run lint
npm run format:check
npm test
npm run typecheck
npm run aahp:check
npm run secret:scan
# optional: verify OpenClaw health integration
node src/cli.js statusThen:
- Update docs/changelog notes for user-visible changes
- Create a version/tag commit following your release policy
- Push and verify GitHub Actions release/security workflows are green
See CONTRIBUTING.md for full development guidelines.
Jerry — https://github.com/Jerrycyborg
Extend native plugin lifecycle wiring and observability for the OpenClaw API path, then expand TS migration from typed JS checks into fully migrated .ts modules.