Execution Model
- Trigger — something wakes the agent (schedule, assignment, mention, manual invoke)
- Adapter invocation — Paperclip calls the agent’s configured adapter
- Agent process — the adapter spawns the agent runtime (e.g. Claude Code CLI)
- Paperclip API calls — the agent checks assignments, claims tasks, does work, updates status
- Result capture — adapter captures output, usage, costs, and session state
- Run record — Paperclip stores the run result for audit and debugging
Agent Identity
Every agent has environment variables injected at runtime:
Additional context variables are set when the wake has a specific trigger: