How lumekh000/papaerclip works
Paperclip is an AI-agent orchestration control plane: users manage companies, goals, projects, agents, work, budgets, and governance through a dashboard and API. The principal workflow is to define organizational goals and projects, assign work to agents, execute it through agent adapters, and observe outcomes and spending. This map emphasizes documented product capabilities and sampled schema/runtime evidence; several server and UI stages are located only at directory level because their implementations were not excerpted.
Main entry points: server/src REST API · db/src Relational database · companies.ts Company model · projects.ts Projects
Components 23
Organization & planning
- Company model
packages/db/src/schema/companies.ts - Goals
packages/db/src/schema/goals.ts - Projects
packages/db/src/schema/projects.ts - Work issues
server/src/services/issues.ts - Pipelines & cases
packages/db/src/schema/pipeline_cases.ts
Agent execution
- Agent registry
packages/db/src/schema/agents.ts - Heartbeat runs
packages/db/src/schema/heartbeat_runs.ts - Agent adapters
packages/adapters - Agent runner
packages/paperclip-runner/src - Execution workspaces
Governance & operations
- Budgets & costs
packages/db/src/schema/agents.ts - Approvals & access
packages/db/src/schema/tool_access.ts - Authentication
server/src
Application platform
- Unified dashboard
ui/src - REST API
server/src - Chat & connectors
server/src/services/connectors - Voice sessions
server/src/services/voice/voice-session-service.ts - Workspace snapshots
server/src/services/remote-workspace-snapshot-storage.ts - Git restore points
server/src/services/git-restore-point-storage.ts - Relational database
packages/db/src - Admin CLI
cli/src
Other components
- Team user
- Agent providers
Connections 24
- Team user → Unified dashboard: manages
README.md - Unified dashboard → REST API: API requests
README.md - REST API → Company model: manages
- REST API → Goals: tracks
- REST API → Projects: manages
packages/db/src/schema/projects.ts - REST API → Work issues: coordinates
server/src/services/voice/voice-session-service.ts - REST API → Agent registry: configures
packages/db/src/schema/agents.ts - Work issues → Heartbeat runs: records runs
- REST API → Pipelines & cases: manages cases
packages/db/src/schema/pipeline_cases.ts - REST API → Budgets & costs: enforces limits
- REST API → Approvals & access: applies governance
- REST API → Authentication: authenticates
- REST API → Chat & connectors: integrates channels
README.md - REST API → Voice sessions: coordinates calls
server/src/services/voice/voice-session-service.ts - REST API → Execution workspaces: authorizes runtime
server/src/routes/workspace-runtime-service-authz.ts - Execution workspaces → Agent runner: enables execution
- Agent runner → Agent adapters: dispatches agents
README.md - Agent adapters → Agent providers: runs tasks
README.md - Execution workspaces → Workspace snapshots: snapshots state
- Execution workspaces → Git restore points: captures restore points
- Company model → Relational database: persists
packages/db/src/schema/companies.ts - Agent registry → Relational database: persists
packages/db/src/schema/agents.ts - Projects → Relational database: persists
packages/db/src/schema/projects.ts - Admin CLI → Team user: configures instance
README.md