AGENTS.md · paperclipai/paperclip
AGENTS.md from paperclipai/paperclip: 262 lines covering 1.
Template by paperclipai
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/paperclipai/paperclip/master/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 262 lines
- File
AGENTS.md
Sections
- 1. Purpose
- 2. Read This First
- 3. Repo Map
- 4. Dev Setup (Auto DB)
- 5. Core Engineering Rules
- 6. Database Change Workflow
- 7. Verification Before Hand-off
- 8. API and Auth Expectations
- 9. UI Expectations
- 10. Pull Request Requirements
- 11. Definition of Done
- Design system
First lines (shown under the repo's MIT license)
# AGENTS.md Guidance for human and AI contributors working in this repository. ## 1. Purpose Paperclip is a control plane for AI-agent companies. The current implementation target is V1 and is defined in `doc/SPEC-implementation.md`. ## 2. Read This First Before making changes, read in this order: 1. `doc/GOAL.md` 2. `doc/PRODUCT.md` 3. `doc/SPEC-implementation.md` 4. `doc/DEVELOPING.md` 5. `doc/DATABASE.md` `doc/SPEC.md` is long-horizon product context. `doc/SPEC-implementation.md` is the concrete V1 build contract. When adding or changing an Apps catalog connection, also follow `doc/connections/CONNECTOR-PLAYBOOK.md`. It is the canonical connection authoring runbook for provider research, supported transport/auth patterns, credential handling, branding, implementation, testing, live proof, and PR submission. ### Scoped repository rules Before editing or reviewing files, read the matching rules in `rules/*.mdc`. Each rule has Markdown content and YAML frontmatter: `globs` contains comma-separated, repository-relative file patterns, and `alwaysApply: true` means the rule applies throughout the repository. Read all rules whose scope matches the affected files. These rules supplement this file and any applicable nested `AGENTS.md` instructions. For `server/src/services/chat-channels.ts` and everything under `server/src/services/chat-channels/`, read [`rules/chat-channel-platform-boundaries.mdc`](rules/chat-channel-platform-boundaries.mdc). For `server/src/services/heartbeat.ts`, `server/src/services/heartbeat/`, heartbeat-prefixed sibling services, and heartbeat regression tests, read [`rules/heartbeat-execution-boundaries.mdc`](rules/heartbeat-execution-boundaries.mdc). See [`rules/README.md`](rules/README.md) for rule authoring and Greptile setup. ## 3. Repo Map - `server/`: Express REST API and orchestration services - `ui/`: React + Vite board UI - `packages/db/`: Drizzle schema, migrations, DB clients - `packages/shared/`: shared types, constants, validators, API path constants - `packages/adapters/`: agent adapter implementations (Claude, Codex, Cursor, etc.) - `packages/adapter-utils/`: shared adapter utilities - `packages/plugins/`: plugin system packages - `packages/skills-catalog/`: app-shipped skills catalog (`@paperclipai/skills-catalog`) - `packages/teams-catalog/`: app-shipped teams catalog (`@paperclipai/teams-catalog`) - `cli/`: `paperclipai` CLI package (published bin, agent-facing commands) - `skills/`: Paperclip runtime/operational skills (not part of the app catalog) - `doc/`: operational and product docs ## 4. Dev Setup (Auto DB) Use embedded PGlite in dev by leaving `DATABASE_URL` unset. ```sh pnpm install pnpm dev ``` This starts: - API: `http://localhost:3100` - UI: `http://localhost:3100` (served by API server in dev middleware mode) Quick checks: ```sh curl http://localhost:3100/api/health curl http://localhost:3100/api/companies ``` Reset local dev DB: ```sh rm -rf data/pglite pnpm dev ``` ## 5. Core Engineering Rules 1. Keep changes company-scoped. Every domain entity should be scoped to a company and company boundaries must be enforced in routes/services. Explicit exception: announcement dismissals are instance-wide user preferences, keyed by user and announcement so they persist across companies. Their audit context must still validate company membership. The announcement publication-ID registry is instance-level feed metadata; it contains no company or user data. Personal workspace presentation preferences are also instance-wide by user, with validated company membership supplying audit context. They never grant execution authority, change company capabilities or agent configuration, or rewrite canonical work records. Optional conversation guidance must retain the same action permissions. 2. Keep contracts synchronized. If you change schema/API behavior, update all impacted layers: - `packages/db` schema and exports - `packages/shared` types/constants/validators - `server` routes/services - `ui` API clients and pages 3. Preserve control-plane invariants. - Single-assignee task model - Atomic issue checkout semantics - Approval gates for governed actions - Budget hard-stop auto-pause behavior - Activity logging for mutating actions 4. Do not replace strategic docs wholesale unless asked. Prefer additive updates. Keep `doc/SPEC.md` and `doc/SPEC-implementation.md` aligned. 5. Keep repo plan docs dated and centralized. When you are creating a plan file in the repository itself, new plan documents belong in `doc/plans/` and should use `YYYY-MM-DD-slug.md` filenames. This does not replace Paperclip issue planning: if a Paperclip issue asks for a plan, update the issue `plan` document per the `paperclip` skill instead of creating a repo markdown file. 6. Attach inspectable generated artifacts. When your task produces a user-inspectable deliverable file, follow the Paperclip skill's "Generated Artifacts and Work Products" workflow before final disposition. In this repo, prefer the self-contained skill helper at `skills/paperclip/scripts/paperclip-upload-artifact.sh` so the file is available through the Paperclip API, create/update an artifact work product when the file is the deliverable, link the uploaded artifact in the final issue comment, and then set status. Do not rely on local filesystem paths as the only access path. If an important file intentionally remains workspace-only, create/update a work product with `metadata.resourceRef.kind: "workspace_file"` and a workspace-relative path, then name that work product and path in the final comment. Treat browse/search as a fallback for recovering workspace files, not the preferred deliverable path. See `doc/AGENT-ARTIFACTS.md` for details and `.mp4`/`.webm` examples. 7. Name the three data paths correctly. This repo has three separate data paths. Do not confuse them. Match a change to a path by its file path, not by the word "observability" or "telemetry" alone. - **Telemetry** is the Paperclip first-party event system. It is opt-out and it sends data to a Paperclip endpoint by default. Its paths are: - `packages/shared/src/telemetry/` - the generated contract `packages/shared/src/telemetry/generated/paperclip-telemetry.ts` - each caller of `packages/shared/src/telemetry/events.ts` or `packages/shared/src/telemetry/client.ts` - **Observability** is the OpenTelemetry trace path. An operator must set an OTLP endpoint. Until an operator sets the endpoint, the tracer is a no-operation. Its paths are: - `server/src/instrumentation.ts` - `doc/observability.md` - `packages/adapter-utils/src/duplex-observability.ts` - `server/src/services/duplex-observability-recorder.ts` - the span attributes in `packages/adapter-utils/src/acpx-engine/startup-timing.ts` - **The run log** holds rows in the local `heartbeat_run_events` table. The data stays in the instance database. Its paths are: - `doc/run-log-events.md` - `packages/db/src/schema/heartbeat_run_events.ts` - the append path `appendRunEvent` in `server/src/services/heartbeat.ts` Apply a review level that matches the path: - **Telemetry change (strict review).** The author updates the generated contract first. The author updates `packages/shared/src/telemetry/README.md` in the same pull request. The author requests a privacy review. Reason: a Telemetry event goes to a Paperclip endpoint by default, so a mistake sends data immediately. - **Observability change (lighter review).** The operator endpoint gate stays in place. The no-operation behaviour stays when no endpoint is set. A privacy review is not necessary while the change stays inside the closed span-attribute allowlist. - **Run-log change (no extra review).** A run-log change needs neither review level above, because the data stays in the instance database. **Exclusion.** The word "observability" in a file such as `server/src/services/recovery-observability.ts` names a different concept. Apply this rule by path, not by word match. ## 6. Database Change Workflow When changing data model: 1. Edit `packages/db/src/schema/*.ts` 2. Ensure new tables are exported from `packages/db/src/schema/index.ts` 3. Generate migration: ```sh
Signals
- Stars
- 106,854
- Forks
- 17,747
- Open issues
- 3,281
- Contributors
- 236
- Last commit (this folder)
- Oct 13, 2026 (15 days ago)
- Last release
- Oct 24, 2026 (5 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/paperclipai/paperclip
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from paperclipai
- 0.743score
codemod-runner
paperclipai
Subagent "codemod-runner" from paperclipai/paperclip: Writes and runs codemod scripts that replace hardcoded visual values with token references in…
TemplateAFreshness: A★ 106.9KClaude Code - 0.743score
token-auditor
paperclipai
Subagent "token-auditor" from paperclipai/paperclip: Scans ui/src/ for hardcoded visual values, duplicate components, and shadcn replacement candidates…
TemplateAFreshness: A★ 106.9KClaude Code
Cite this page
AGENTS.md · paperclipai/paperclip. Agent Mart. https://agentmart.dev/templates/paperclipai-paperclip-agents-md (last updated 2026-10-24)