Employee System
The boss agent dispatches tasks to CLI employees -- other AI runtimes that execute work in parallel. CLI-JAW supports 12 runtimes and manages employee sessions, isolation, and result collection.
How It Works
Your main agent (the "boss") can delegate specific tasks to employee agents using the jaw dispatch command. Each employee runs in an isolated temporary working directory with injected context files.
jaw dispatch --agent "Frontend" --task "Implement the login page"
The boss prompt includes delegation rules that guide the agent to use cli-jaw dispatch for employee work, while CLI-native sub-agents (Task/Agent tools) are allowed for internal parallelization.
12 CLI Runtimes
CLI-JAW's registry (src/cli/registry.ts) defines 11 top-level runtimes. Each employee can be assigned any runtime.
| Runtime | Binary | Default Model | Default Effort |
|---|---|---|---|
| agy | agy | gemini-3.5-flash | - |
| ai-e | ai-e | claude-opus-4-8 | medium |
| claude | claude | claude-opus-4-8 | medium |
| claude-e | claude-e | claude-opus-4-8 | medium |
| codex | codex | gpt-5.5 | medium |
| codex-app | codex | gpt-5.5 | medium |
| cursor | cursor-agent | composer-2.5 | medium-fast |
| gemini | gemini | gemini-3-flash-preview | - |
| grok | grok | grok-build | - |
| opencode | opencode | opencode-go/kimi-k2.6 | - |
| copilot | copilot | claude-sonnet-4.6 | high |
Employee vs Sub-Agent
| Employee (jaw dispatch) | CLI Sub-Agent (Task/Agent tool) | |
|---|---|---|
| Scope | Cross-CLI delegation | Internal parallelization within the same CLI |
| Isolation | Separate tmp directory, injected AGENTS.md | Same process/session |
| Auth | Boss token required (employees cannot re-dispatch) | No extra auth needed |
| Depth | 1 level only (employees cannot dispatch to other employees) | Employees can freely use sub-agents |
Dispatch Command
# From the boss prompt:
cli-jaw dispatch --agent "Backend" --task "Add rate limiting to /api/upload"
# From the CLI:
jaw dispatch --agent "Frontend" --task "Fix responsive layout" --port 3457
The dispatch endpoint (POST /api/orchestrate/dispatch) requires a boss-scoped x-jaw-boss-token. This token is stripped from employee spawn environments, preventing employees from dispatching further.
Employee Prompt
Employee prompts are built by getEmployeePromptV2() and include:
- Base
employee.mdtemplate - Static system patch and declared skill injection
- Common
dev/SKILL.md - Role-specific skills (e.g.,
dev-frontend,dev-backend) - Phase-specific skills (e.g.,
dev-code-reviewerfor Audit,dev-testingfor Check) - Worker context with phase-specific rules
- Delegation rules (no re-dispatch, sub-agents allowed)
Managing Employees
# List employees
jaw employee help
# Reset to defaults
jaw employee reset
# Via slash command
/employee reset
The Web UI provides full CRUD for employees under the sidebar settings panel. You can set each employee's name, CLI runtime, model, and role.
Default Employees
On first run, CLI-JAW seeds a default set of employees (Frontend, Backend, Documentation, etc.). The /employee reset command re-seeds these defaults.
- 프론트 직원한테 CSS 고치라고 해줘
- 백엔드 직원한테 API 만들라고 해줘
- 직원 목록 보여줘