| name | paperclip-orchestrator |
| description | PaperClip Orchestrator v2.0 โ AI agent orchestration platform with 6 native sub-agents, automated hooks, heartbeat scheduling, task queues, and budget governance. Use when the user wants to orchestrate AI agents as a structured team, set up recurring agent check-ins, manage multi-agent projects, or create agent workflows. Triggers on /paperclip, "agent company", "orchestrate agents", "agent team". |
PaperClip Orchestrator v2.0
Orchestrate multiple AI agents as a structured "company" โ define org charts, assign roles, schedule heartbeats, manage task queues, enforce budgets, and govern autonomous workflows.
All state stored as JSON files under .paperclip/. No database required.
Full documentation: See README.md for quickstart guide, complete walkthrough, and FAQ.
v2.0 New: Native Sub-Agents & Hooks
PaperClip v2.0 ships with 6 native Claude Code sub-agents and 3 automation hooks. /agents to discover, hooks run automatically.
| Component | Count | Details |
|---|
Sub-Agents (agents/) | 6 | architect (opus), developer, reviewer, tester, operator (sonnet), design-fetcher (haiku) |
Hooks (hooks/hooks.json) | 3 | SessionStart dashboard, PostToolUse audit, SubagentStop heartbeat |
How it works:
- User creates a task โ auto-dispatched to matching agent role
- Heartbeat fires โ Claude invokes the native sub-agent (e.g.,
paperclip-architect) with independent context
- Sub-agent reads its state from
.paperclip/, executes the task, updates status
- Hooks auto-append audit logs and update heartbeat timestamps โ no manual bookkeeping
Two Operating Modes
Mode A: Dialogue (primary, no dependencies)
All operations happen in Claude Code conversation. Use natural language or slash commands:
| Operation | How |
|---|
| Init company | /paperclip-init or "็จ PaperClip ๅๅงๅ my-project" |
| Dashboard | /paperclip-status |
| Create task | "ๅๅปบไปปๅก 'ๆ ้ข' --type feature" |
| Execute | "ๅผๅง" โ Claude invokes the matching sub-agent |
| Budget | /paperclip-status --company-dir ./my-project |
Mode B: Terminal CLI
./bin/paperclip-init my-project --budget 500000
/paperclip-status --company-dir ./my-project
๏ผdesign-fetcher agent ่ชๅจ่ทๅ๏ผ
No pip install required. Zero Python dependencies (PyYAML removed in v2.1).
Command Mapping
| User Input | Execution |
|---|
init <name> [--budget N] | Write company.json from template + .paperclip/* |
start <name> | Register CronCreate jobs (one per agent), record IDs in company.json |
status <name> | Read .paperclip/agents/.json + tasks/.json, summarize |
task <name> "<title>" [--type T] | Write task_NNN.json with auto-dispatch |
budget <name> | /paperclip-status --company-dir ./<name> |
heartbeat <name> --agent <id> | Invoke paperclip- sub-agent via Agent tool |
pause <name> | CronDelete all heartbeat job IDs |
resume <name> | Same as start (re-register CronCreate) |
Natural language triggers:
- "ๅฏๅจๅฟ่ทณ" โ start heartbeats
- "ๅผๅง" / "็ปง็ปญ" โ invoke paperclip sub-agent with pending tasks
- "ๆต่ฏ" โ invoke paperclip-tester
- "ๆฅ็็ถๆ" โ show dashboard
/agents โ discover all 6 paperclip sub-agents
Six Native Sub-Agents
| Sub-Agent | /agents Name | Model | Max Turns | Use When |
|---|
| ๐๏ธ Architect | paperclip-architect | opus | 30 | design tasks, architecture, decomposition |
| ๐ป Developer | paperclip-developer | sonnet | 25 | feature, bug, refactor, docs |
| ๐ Reviewer | paperclip-reviewer | sonnet | 20 | review, security audit, in_review tasks |
| ๐งช Tester | paperclip-tester | sonnet | 20 | test creation, bug reporting |
| โ๏ธ Operator | paperclip-operator | sonnet | 15 | deploy, monitor, automation |
| ๐จ Design | paperclip-design-fetcher | haiku | 10 | fetch DESIGN.md for brand specs |
Sub-agents are defined in agents/*.md. Each has independent context, model selection, and tool permissions. The Developer cannot create Cron jobs; the Architect uses opus for deeper reasoning.
Three Automation Hooks
| Hook | Event | Behavior |
|---|
| Dashboard | SessionStart | Auto-displays company status when .paperclip/ exists |
| Audit | PostToolUse | Auto-appends to audits.jsonl on task status changes |
| Heartbeat | SubagentStop | Auto-updates last_heartbeat when a paperclip sub-agent finishes |
Hooks are defined in hooks/hooks.json. They eliminate manual bookkeeping โ no more manually typing audit entries or updating timestamps after every task.
Core Concepts
| PaperClip Concept | Claude Code Implementation |
|---|
| Company | YAML config + file-based state |
| Org Chart (v2.1) | agents/*.md paperclip: frontmatter โ one source of truth |
| Agent | Native sub-agent with independent context, model, and permissions |
| Heartbeat | CronCreate scheduled prompts |
| Task/Issue | .paperclip/tasks/*.json files |
| Checkout | File-based atomic write |
| Budget | budget.json tracking |
| Board | AskUserQuestion for approvals |
| Hooks (v2.0) | Auto-audit, auto-heartbeat, session dashboard |
Runtime State Structure
my-project/
โโโ company.json # Company config (JSON, user-editable)
โโโ .paperclip/ # Runtime state (auto-managed, no database)
โโโ company.json # Company info + schema_version + heartbeat IDs
โโโ budget.json # Budget tracking
โโโ audits.jsonl # Append-only audit log (auto-managed by hooks)
โโโ agents/ # One JSON file per agent (no write conflicts)
โ โโโ architect.json
โ โโโ developer.json
โ โโโ reviewer.json
โ โโโ tester.json
โ โโโ operator.json
โโโ tasks/ # One JSON file per task
โ โโโ task_001.json
โ โโโ task_002.json
โโโ design/ # DESIGN.md cache (optional, fetched by design-fetcher agent)
Plugin Structure (v2.0)
paperclip-orchestrator/
โโโ .claude-plugin/plugin.json # v2.0.0 โ registers skills, agents, hooks
โโโ SKILL.md # This file
โโโ README.md # Full documentation
โโโ agents/ # ๐ 6 native sub-agents
โ โโโ architect.md
โ โโโ developer.md
โ โโโ reviewer.md
โ โโโ tester.md
โ โโโ operator.md
โ โโโ design-fetcher.md
โโโ hooks/ # ๐ Automation hooks
โ โโโ hooks.json
โโโ assets/company_template/ # Templates for company init
โโโ scripts/ # Python CLI helpers
โโโ references/ # Detailed reference docs
Workflow
1. Initialize a Company
./bin/paperclip-init my-project --budget 500000
Creates company.json and .paperclip/ with file-based state.
See references/company-structure.md for full configuration reference.
2. Define Agent Roles
Agent roles defined in each agents/*.md file under the paperclip: frontmatter. Six default roles: architect (opus), developer, reviewer, tester, operator (sonnet), design-fetcher (haiku). Each sub-agent carries its own capabilities, budget share, and role definition.
The legacy agents.yaml is no longer generated for new companies, but existing companies with the file continue to work.
3. Schedule Heartbeats
"ๅฏๅจๅฟ่ทณ"๏ผๅจๅฏน่ฏไธญๅฏน Claude ่ฏด๏ผ
Registers CronCreate jobs. At each heartbeat, Claude invokes the corresponding paperclip-* sub-agent.
Protocol: CronCreate fires โ Claude invokes sub-agent โ Sub-agent reads state โ Executes โ Reports โ Hook updates timestamps
See references/heartbeat-system.md for scheduling patterns.
4. Manage Tasks
Lifecycle: todo โ in_progress โ in_review โ done
"ๅๅปบไปปๅก 'Implement JWT login' --type feature"๏ผๅจๅฏน่ฏไธญๅฏน Claude ่ฏด๏ผ
See references/task-lifecycle.md for complete lifecycle.
5. Track Budget
/paperclip-status --company-dir ./my-project --format summary
Enforces per-task caps, daily limits, auto-throttling at 80%.
See references/budget-governance.md for governance rules.
6. Multi-Agent Workflows
With native sub-agents in v2.0, use Workflow.pipeline or Workflow.parallel for concurrent agent execution:
- Architect designs โ Developer implements โ Reviewer verifies (pipeline)
- Developer + Tester run in parallel on independent tasks
See
references/workflow-patterns.md for detailed patterns.
Pro Mode (4-Layer Integration)
PaperClip Pro integrates four skill layers for production-grade agent teams:
| Layer | Skills | Provides |
|---|
| Orchestration | PaperClip Core | Org chart, heartbeats, task queue, budget, governance |
| Engineering Quality | mattpocock/skills | /tdd, /diagnose, /triage, /code-review, /to-prd |
| Design Taste | taste-skill | Anti-slop frontend, design variance, motion, visual density |
| Design Spec | awesome-design-md | 58+ brand DESIGN.md specs, on-demand fetching |
Quick Setup (Pro)
./bin/paperclip-init my-app --budget 500000
๏ผdesign-fetcher agent ่ชๅจ่ทๅ๏ผ
๏ผdesign-fetcher agent ่ชๅจ่ทๅ๏ผ
๏ผdesign-fetcher agent ่ชๅจ่ทๅ๏ผ
Role โ Skill Mapping
| Role | Engineering (Matt Pocock) | Design (Taste) |
|---|
| Architect | /grill-me, /to-prd, /to-issues, /grill-with-docs, /zoom-out | - |
| Developer | /tdd, /diagnose, /prototype, /caveman, /handoff | taste-skill, output-skill, image-to-code, soft-skill, minimalist-skill |
| Reviewer | /triage, /code-review, /diagnose, /zoom-out, /grill-me | taste-skill (frontend), output-skill |
| Tester | /tdd, /diagnose, /triage | - |
| Operator | /diagnose, /triage, /handoff | - |
See references/skill-matrix.md for the complete cross-reference.