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/ui-render-cost)<a href="https://agentmods.dev/rules/paperclipai/paperclip/ui-render-cost"><img src="https://agentmods.dev/badge/rules/paperclipai/paperclip/ui-render-cost/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/ui-render-cost"><img src="https://agentmods.dev/badge/rules/paperclipai/paperclip/ui-render-cost.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.00687 |
| Opus 5.5 | $0.00000 | $0.00275 |
| Sonnet 5.5 | $0.00000 | $0.00137 |
| Haiku 4.5 | $0.00000 | $0.00069 |
Grade A, and why
ui-render-cost 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 23d 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.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Render work must stay proportional to its data
Applies to components (ui/src/**/*.tsx) and hooks (ui/src/**/use*.ts) that
iterate over a collection during render, in a useMemo, or in a selector, when
the collection can be large. Large means hundreds of items or more. Examples are
catalogs shipped with the app and lists that grow with a company's data, such
as tasks, runs, agents, connections and activity.
Why
Render code runs on the main thread, often many times per second while queries poll or the user types. Work that is quadratic or worse in collection size looks free with test fixtures of a few items. At real size it can freeze the tab. Two patterns cause most of these problems:
- A hidden inner scan. A loop over one collection calls a helper that scans
another collection with
some,find,filterorincludes. Each line looks cheap, but the cost is the product of both sizes, and nesting multiplies again. - A memo that never hits. A
useMemodepends on an object, array orMapthat the component body builds again on every render. The memo then recomputes on every render, so expensive work runs on each keystroke and each poll.
Requirements
- Do not scan a large collection inside a loop over another large collection.
Build a
SetorMapindex once, outside the loop, and look items up in it. - Normalize keys (slugs, lowercase names, identities) once per item, not inside comparison callbacks.
- Keep every
useMemoanduseCallbackdependency referentially stable across renders that change no data. Memoize derived objects, or derive them from querydata, which TanStack Query keeps structurally shared.useQueriesreturns a new array on every render, so do not use it directly as a dependency. - When a change adds or reorders work over a large collection, test that path
with realistic data size. Load shipped data with
vi.importActualinstead of a few hand-written items, and turn on every flag or mode that gates the path. Bound the work with a deterministic counter, such as calls to a key normalizer, not with wall-clock time. Make the counter throw above its limit, so a runaway render fails at once instead of stalling the test worker.
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.
- 23d ago First seen · 61 lines · 0 tokens per session scan A c0ba1dfb3f2a
ui-render-cost 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 687 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-07.
ui-render-cost compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ui-render-costpaperclipai/paperclip | Cursor rule | 118k | yesterday | MIT | A | 0 | Cursor |
| reacttaberoajorge/loopforge | Cursor rule | 3 | 1mo 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 |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |