Paperclip is a Node.js server and React application for coordinating AI agents as a business team, with goals, organizational roles, budgets, governance, and work tracking in one interface. It is used by people managing multiple agents or autonomous agent organizations across tools such as OpenClaw, Claude Code, Codex, and Cursor. The catalogue includes skills, agents, an MCP add-on, and an instruction for working with Paperclip.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/paperclipai/paperclipWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/rules/paperclipai/paperclip/api-route-expectations)<a href="https://agentmods.dev/rules/paperclipai/paperclip/api-route-expectations"><img src="https://agentmods.dev/badge/rules/paperclipai/paperclip/api-route-expectations/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/rules/paperclipai/paperclip/api-route-expectations"><img src="https://agentmods.dev/badge/rules/paperclipai/paperclip/api-route-expectations.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00463 |
| Opus 5.5 | $0.00000 | $0.00185 |
| Sonnet 5.5 | $0.00000 | $0.00093 |
| Haiku 4.5 | $0.00000 | $0.00046 |
Grade A, and why
api-route-expectations scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
API route expectations
Scope and purpose
This rule applies to new or changed HTTP routes under server/src/routes/.
Paperclip is a multi-company control plane, so each route must keep one
company's data away from another company's actors.
Auth model
- The base path is
/api. - Board access is treated as full-control operator context.
- Agent access uses bearer API keys (
agent_api_keys), hashed at rest. - Agent keys must not access other companies.
Requirements
When you add or change an endpoint that reads or writes company data:
- Apply company access checks. Use the helpers in
server/src/routes/authz.ts, such asassertCompanyAccess, instead of a new check. - Enforce actor permissions (board vs agent), for example with
assertBoardorassertBoardOrAgent. - Write an activity log entry for each mutation.
- Return consistent HTTP errors. The common codes are
400/401/403/404/409/422/500. Other codes are valid when they are the correct status, such as429for rate limits and503while the server starts or drains.
Instance-level routes such as health.ts, liveness.ts, ready.ts,
public-mcp.ts, and org-chart-svg.ts have no company to check. Do not add a
company access check to a route that serves no company data.
The API reference for callers is in docs/api/. Update it when a public
endpoint changes.
Review criteria
Flag a route that reads or writes company data without a company access check. Flag a route that lets an agent key reach another company. Flag a mutation with no activity log entry. Flag an error response with an incorrect status code or an error that hides a failure behind a success status. Do not flag a correct status code only because it is not in the common list. Do not flag an instance-level route for a missing company check.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago First seen · 51 lines · 0 tokens per session scan A 586cba5f4057
api-route-expectations is a cursor rule published in the GitHub repository paperclipai/paperclip (118,214 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 463 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.
api-route-expectations compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| api-route-expectationspaperclipai/paperclip | Cursor rule | 118k | yesterday | MIT | A | 0 | Cursor |
| backend-architectureEricLortie/laborforge-release | Cursor rule | 7 | 4mo ago | none | A | 1,021 | Cursor |
| titanclip-serverCES-Ltd/TitanClip | Cursor rule | 13 | 7mo ago | none | A | 0 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 4d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |