Paperclip
Overview
Section titled “Overview”Paperclip is a platform for orchestrating AI agents. The Open Accountant adapter (@openaccountant/adapter-paperclip) makes Wilson available as a selectable agent type — with pre-built CFO and Bookkeeper agents that run on daily or weekly heartbeats.
How It Works
Section titled “How It Works”The adapter acts as a bridge between Paperclip and Wilson CLI:
- Paperclip routes a task to the Wilson agent type
- The adapter builds a natural-language prompt from the task context
- Wilson CLI executes in headless mode (
--run) - Output streams back to Paperclip’s transcript viewer
- The UI parser structures Wilson’s stdout into readable transcript entries
Installation
Section titled “Installation”Install the adapter
Section titled “Install the adapter”curl -X POST http://localhost:3100/api/adapters \ -H "Content-Type: application/json" \ -d '{"packageName": "@openaccountant/adapter-paperclip"}'Or install from a local development path:
curl -X POST http://localhost:3100/api/adapters \ -H "Content-Type: application/json" \ -d '{"localPath": "/path/to/adapter-paperclip"}'Import the company template
Section titled “Import the company template”The skills repository includes pre-built Paperclip agent templates:
npx paperclipai company import --from ./open-accountantDownload the skills
Section titled “Download the skills”npx skills add openaccountant/skillsPrerequisites
Section titled “Prerequisites”| Requirement | Check |
|---|---|
| Bun runtime | bun --version |
| Wilson CLI on PATH | wilson --version |
| SQLite database | Auto-created on first Wilson run at ~/.openaccountant/data.db |
The adapter validates all prerequisites before running and surfaces clear error messages if anything is missing.
Configuration
Section titled “Configuration”| Field | Type | Default | Purpose |
|---|---|---|---|
wilsonPath | string | "wilson" | Path to Wilson CLI binary |
dbPath | string | ~/.openaccountant/data.db | SQLite database location |
timeout | number | 120000 | Max execution time in milliseconds |
Pre-built Agents
Section titled “Pre-built Agents”CFO (Weekly heartbeat)
Section titled “CFO (Weekly heartbeat)”Strategic financial analysis and reporting. Skills:
profit-loss— Income statement generationcash-flow-forecast— 3-6 month projectionsrunway-calculator— Months of runway at current burn ratequarterly-taxes— Estimated tax payment calculationcontractor-tracking— 1099 payment trackingrevenue-concentration— Client concentration risk analysis
Bookkeeper (Daily heartbeat)
Section titled “Bookkeeper (Daily heartbeat)”Day-to-day transaction management. Skills:
import-transactions— Automated transaction importsmart-categorize— AI-powered batch categorizationmonth-end-close— Monthly bookkeeping checklistexpense-optimizer— Recurring expense reductionmonthly-digest— Financial summary with highlights
Architecture
Section titled “Architecture”The adapter has three main modules:
| Module | File | Purpose |
|---|---|---|
| Metadata | src/index.ts | Registers Wilson as an agent type in Paperclip |
| Executor | src/server/execute.ts | Spawns Wilson CLI and captures output |
| UI Parser | src/ui-parser.ts | Parses stdout into Paperclip transcript entries |
The UI parser recognizes Wilson’s output patterns — report headers (=== ... ===), tool calls ([tool]), and results ([result]) — and converts them into structured transcript format for Paperclip’s viewer.