agentleFS
TheBeardedBearSASTheBeardedBearSAS/claude-craft/.claude/references/paperclip/CLAUDE.md

claude-craft / paperclip

CLAUDE.md106 starsChanged 4 months agoMITView on GitHub

Paperclip is a self-hosted AI agent orchestration platform (MIT). You run it — you do not build a control plane or write adapter integrations. The server, dashboard, CLI, and built-in adapters are all part of the Paperclip product. Docs: https://docs.paperclip.ing/ | Repo: https://github.com/paperclipai/paperclip After onboarding, the server runs on http://localhost:3100 and the dashboard is accessible at the configured port. The adapterType field on an agent hire payload selects which AI runtime powers the agent. The agentConfigurationDoc of each adapter (returned…

The file

We split this CLAUDE.md into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    After onboarding, the server runs on http://localhost:3100 and the dashboard is accessible at the configured port.

    line 27

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Paperclip 2026.609.0 — Quick Reference

Paperclip is a self-hosted AI agent orchestration platform (MIT). You run it — you do not build a control plane or write adapter integrations. The server, dashboard, CLI, and built-in adapters are all part of the Paperclip product. Docs: https://docs.paperclip.ing/ | Repo: https://github.com/paperclipai/paperclip

Versions requises (2026)

ComposantVersionNotes
Paperclip2026.609.0+Self-hosted orchestration platform (MIT)
Node.js22+ LTSRequired by Paperclip server and CLI
TypeScript5.7+Strict mode — for plugin/adapter development
Vitest4.1+Tests plugins and adapters
PostgreSQL15+Paperclip server persistence
pnpm9.15+Package manager (Paperclip monorepo)

Installation (self-hosted)

# Via npm (recommended for most operators)
npx paperclipai onboard --yes

# Via Docker
docker compose up -d          # see docker/ in the Paperclip repo

After onboarding, the server runs on http://localhost:3100 and the dashboard is accessible at the configured port.

Monorepo structure (Paperclip source, for contributors)

paperclip/
├── server/                    # @paperclipai/server — Node.js + TS HTTP API
│   └── src/
│       ├── routes/            # companies, agents, approvals, activity, ...
│       └── adapters/          # server-side adapter registry
├── ui/                        # @paperclipai/ui — React dashboard
├── cli/                       # paperclipai CLI (commander.js)
│   └── src/commands/          # onboard, doctor, company, agent, approval, ...
├── packages/
│   ├── shared/                # @paperclipai/shared — types + schemas
│   ├── db/                    # @paperclipai/db — schema, migrations
│   ├── mcp-server/            # @paperclipai/mcp-server
│   ├── adapter-utils/         # @paperclipai/adapter-utils
│   ├── adapters/              # Built-in adapters (see table below)
│   └── plugins/
│       ├── sdk/               # @paperclipai/plugin-sdk — public extension API
│       └── create-paperclip-plugin/  # Plugin scaffolder
└── tests/
    ├── e2e/                   # Playwright
    └── release-smoke/

Adapter types (adapterType)

The adapterType field on an agent hire payload selects which AI runtime powers the agent.

adapterTypeRuntimeMinimal adapterConfig fields
claude_localClaude Code (local)cwd, model, timeoutSec, graceSec, extraArgs, env
codex_localOpenAI Codex CLI (local)cwd, model, timeoutSec, graceSec, extraArgs, env
cursor_localCursor (local)cwd, model, timeoutSec, graceSec, extraArgs, env
gemini_localGemini CLI (local)cwd, model, timeoutSec, graceSec, extraArgs, env
opencode_localOpenCode (local)cwd, model, timeoutSec, graceSec, extraArgs, env
openclaw_gatewayOpenClaw gatewayendpoint, apiKey, model, timeoutSec
pi_localPi (local)cwd, model, timeoutSec, graceSec, extraArgs, env

The agentConfigurationDoc of each adapter (returned by the server) lists every accepted field and its constraints. Always consult it before hiring.

Company and agent management

# Operator CLI — run after onboarding
paperclipai company list
paperclipai company get --id <companyId>

paperclipai agent list
paperclipai agent get --id <agentId>

paperclipai approval list
paperclipai activity list

Hiring an agent is done via the dashboard (Agents → Hire) or POST /companies/:companyId/agents. See /paperclip:generate-agent-config for a guided payload builder.

Governance model (server-enforced)

Paperclip enforces governance as server-side invariants — they cannot be bypassed by adapters or plugins:

InvariantEnforcement
Budget limitsHard token cap on the server; agents are halted when exceeded
Approval gatesHuman-in-the-loop; execution blocked until approved
Activity logAppend-only; emitted for every mutation by the server
Tenant isolationcompanyId extracted from the authenticated session, never from the client payload
Adapter sandboxingAdapters select the AI runtime; they cannot modify governance state

Extension via @paperclipai/plugin-sdk

Plugins are the extension mechanism for Paperclip. They add features, UI slots, background jobs, or custom adapter logic.

# Scaffold a new plugin
npx create-paperclip-plugin my-plugin

# Manage plugins on a running instance
paperclipai plugin list
paperclipai plugin install ./my-plugin

A minimal plugin entry point:

import { definePlugin } from '@paperclipai/plugin-sdk';

export default definePlugin({
  name: 'my-plugin',
  setup(ctx) {
    // register routes, jobs, UI slots, ...
  },
});

Checklist rapide

  • Instance onboardée (paperclipai onboard --yes ou Docker)
  • Company créée (paperclipai company list)
  • adapterType vérifié contre les adapters enregistrés sur l'instance
  • Budget défini (entier positif en tokens) si enforcement souhaité
  • workMode choisi parmi les valeurs listées dans agentConfigurationDoc de l'adapter
  • Activity log consulté après chaque mutation (paperclipai activity list)
  • Plugins audités avant installation (licence, version pinée)
  • OpenTelemetry activé si observabilité requise

Documentation complémentaire

  • project-context.md — Contexte projet, conventions équipe
  • Dev/i18n/en/Paperclip/rules/02-architecture-paperclip.md — Architecture monorepo détaillée
  • Dev/i18n/en/Paperclip/rules/12-adapter-protocol.md — Protocole adapter (wire contract)
  • Dev/i18n/en/Paperclip/commands/generate-agent-config.md — Builder de payload hire
  • https://docs.paperclip.ing/ — Documentation officielle

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.