How rjshree20/paperclip works
Paperclip is an open-source platform for operating AI-agent organizations. A user defines company goals, sets up agents and governance, assigns work, and starts execution; the dashboard then supports review, monitoring, and cost oversight. The server and runner provide orchestration, while adapters connect varied agent runtimes. The README also highlights training and skills, routines, integrations, and infrastructure controls. The excerpts establish schema responsibilities and selected storage behavior, but do not expose the main server routing or execution call chain, so those links are documented rather than inferred.
Main entry points: app.ts Server API · App.tsx Dashboard · durable-prp-control-plane.ts Runner control plane · run-lifecycle.ts Heartbeat lifecycle
Components 23
Goals and work
- Projects
packages/db/src/schema/projects.ts - Goals
packages/db/src/schema/goals.ts - Tasks and issues
packages/db/src/schema/issues.ts - Workflow pipelines
packages/db/src/schema/pipelines.ts - Pipeline cases
packages/db/src/schema/pipeline_cases.ts - Routines
packages/db/src/schema/routines.ts
Organization and governance
- Companies
packages/db/src/schema/companies.ts - Agents
packages/db/src/schema/agents.ts - Skills and training
packages - Evaluations and history
packages - Budgets and costs
packages/db/src/schema/companies.ts
Execution runtime
- Heartbeat lifecycle
server/src/services/heartbeat/run-lifecycle.ts - Runner control plane
packages/paperclip-runner/src/control-plane/durable-prp-control-plane.ts - Agent adapters
packages/adapters
Platform services
- Connections and MCP
packages - Postgres data
packages/db/src/client.ts - Workspace snapshots
server/src/services/remote-workspace-snapshot-storage.ts - Harness backups
server/src/services/native-runtime/native-harness-backup-storage.ts - Storage service
server/src/storage/types.ts - CLI setup and operations
cli/src/index.ts
User experience
- Dashboard
ui/src/App.tsx - Server API
server/src/app.ts
Other components
- Human operator
Connections 24
- Human operator → Dashboard: sets goals
- Dashboard → Server API: requests work
- Server API → Companies: manages organization
- Server API → Agents: configures agents
- Server API → Projects: organizes goals
- Server API → Goals: records intent
- Server API → Tasks and issues: assigns tasks
- Server API → Workflow pipelines: configures workflows
- Server API → Pipeline cases: tracks cases
- Server API → Routines: manages routines
- Server API → Postgres data: persists state
- Server API → Heartbeat lifecycle: starts runs
- Heartbeat lifecycle → Runner control plane: orchestrates
- Runner control plane → Agent adapters: dispatches agents
- Agent adapters → Human operator: returns results
- Dashboard → Skills and training: manages training
- Dashboard → Evaluations and history: reviews quality
- Dashboard → Connections and MCP: configures connections
- Dashboard → Budgets and costs: monitors spend
- Runner control plane → Workspace snapshots: uses snapshots
- Runner control plane → Harness backups: stores backups
- Workspace snapshots → Storage service: uses storage
server/src/services/remote-workspace-snapshot-storage.ts - Harness backups → Storage service: uses storage
server/src/services/native-runtime/native-harness-backup-storage.ts - CLI setup and operations → Human operator: configures instance