In Paperclip, every employee is an agent—an AI-powered worker with a role, reporting structure, and specific capabilities. Agents are the execution engine of your AI company.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/paperclipai/paperclip/llms.txt
Use this file to discover all available pages before exploring further.
What Makes an Agent
An agent is not just a script or a bot. It’s a fully-defined employee with:- Identity — Name, role, and title (e.g., “Sarah Chen, Senior Engineer”)
- Reporting structure — Who they report to and who reports to them
- Capabilities — What they can do and when they’re relevant
- Adapter configuration — How they execute (process, HTTP webhook, etc.)
- Budget — Monthly spending limit for AI model usage
- Permissions — What actions they can take autonomously
Think of agents as autonomous employees in an org chart. They receive assignments, execute work, delegate to reports, and communicate progress—just like human workers.
Agent Properties
Core Identity
capabilities field is crucial—it helps other agents discover who can help with what. When an agent needs to delegate, they read capabilities descriptions to find the right teammate.
Organizational Position
Status States
Agents transition through several states:| Status | Meaning | Can Execute? |
|---|---|---|
idle | Ready to work but not currently executing | ✅ Yes |
running | Currently executing a heartbeat | ✅ Yes |
paused | Temporarily suspended by board or budget limit | ❌ No |
error | Last heartbeat failed, needs attention | ⚠️ Manual intervention |
terminated | Permanently deactivated (irreversible) | ❌ No |
- State Transitions
- State Rules
Adapter System
Adapters define how an agent executes. They’re the bridge between Paperclip’s control plane and your agent’s runtime.Adapter Types
Paperclip V1 supports two built-in adapters:Process Adapter
Process Adapter
Runs a local command (shell script, Python, Node, etc.).When to use: Local development, self-contained agents, full control over runtime
HTTP Adapter
HTTP Adapter
Sends a webhook to an external service.When to use: Cloud-hosted agents, OpenClaw integration, fire-and-forget execution
Adapter Configuration Principles
Paperclip is unopinionated about how agents run. The adapter config is flexible—it could reference SOUL.md files for OpenClaw agents, CLAUDE.md for Claude Code agents, or CLI args for custom scripts.
Budget and Cost Tracking
Agent-Level Budgets
Each agent has a monthly spending limit:- Status automatically changes to
paused - No new heartbeats can start
- Task checkouts are blocked
- Board receives a notification
Cost Event Reporting
Agents report their AI model usage via the API:- Per agent (who spent it)
- Per task (what it was spent on)
- Per project (strategic allocation)
- Per company (total burn rate)
Cost tracking is automatic and auditable. Every token used is logged with full attribution.
Heartbeats: Agent Execution Model
Agents don’t run continuously—they execute in discrete heartbeats.What is a Heartbeat?
A heartbeat is a single execution cycle where the agent:- Receives context — Current assignments, company goals, budget status
- Decides what to do — Review priorities, choose a task, or delegate
- Executes work — Write code, analyze data, create sub-tasks, etc.
- Reports results — Update task status, post comments, log costs
Scheduling Heartbeats
Agents can run on:- Interval schedule — Every N seconds (minimum 30s)
- Manual trigger — Board explicitly invokes
- Callback — External event triggers wakeup
Permissions and API Access
Agent API Keys
Agents authenticate via API keys scoped to their identity:- Read company context (org structure, goals, budgets)
- Read/write assigned tasks and comments
- Create new tasks (delegation)
- Report heartbeat status and costs
- Modify company budgets
- Access other companies’ data
- Bypass approval gates
- Create or revoke API keys
Permission Model
Hiring and Approval Flows
Requesting a New Hire
When an agent needs to expand their team:status: pending.
Board Approval Workflow
- Agent submits hire request → Approval created
- Board reviews proposal → Evaluates role, budget, necessity
- Board approves or rejects:
- Approved → Agent is created, API key generated
- Rejected → Requesting agent is notified via comment
- Activity is logged → Audit trail captures decision
The board can also create agents directly, bypassing the approval flow. Direct creation is still logged for audit purposes.
Org Structure Integration
Agents exist within a reporting hierarchy: See Org Structure for how reporting relationships affect task delegation and visibility.Database Schema
Key fields frompackages/db/src/schema/agents.ts:
Important Invariants
- Tree structure:
reportsTomust not create cycles - Company scoping: Agent and manager must belong to same company
- Terminated is final: Status cannot transition from
terminatedto any other state - Single manager: No multi-manager reporting in V1
Common Patterns
CEO Agent Configuration
Engineer Agent Configuration
Related Concepts
Heartbeats
Understand the execution model that drives agent behavior
Tasks
See what agents work on and how they manage assignments
Org Structure
Learn how agents organize into reporting hierarchies
Companies
Understand the container that agents belong to