Skills, knowledge base and tasks for Claude Code, Codex, Cursor, and friends
# Your agent's second brain
How to do everything.
Skills and knowledge, written once as markdown protocols.
How to track what to do.
Tasks your agents and your team file, pick up, and close.
One bootstrap, tuned once, starts every project. Your agent looks up the rest mid-task, then lets it go.
Tell your agent
```
Let's use protocol. Onboard me: https://api.protocol.supply/@protocol/onboarding
```
copy
[Get Started Free](/getting-started)[Browse protocols](/search)
- no signup to try — a live protocol is one curl below
- works with any agent that can curl
- four drifting agent files → one ~6K-token bootstrap
- free tier — no credit card, no trial timer
CLAUDE.md · AGENTS.mdbefore · one per repo
```
$ wc -l ~/dev/*/{CLAUDE,AGENTS}.md
847 ~/dev/api/CLAUDE.md
412 ~/dev/web/AGENTS.md
630 ~/dev/billing/CLAUDE.md
295 ~/dev/infra/CLAUDE.md
2184 total
$ grep -h "IDs" ~/dev/*/{CLAUDE,AGENTS}.md
- IDs are ashid (repo_, entr_), never UUID
- IDs are UUID v4
- Use ashid for new tables (legacy IDs are UUID)
```
2,184 lines, four copies, already disagreeing
one bootstrapafter · tuned once
```
# every repo's CLAUDE.md or AGENTS.md
For project knowledge, run:
curly protocol bootstrap
# /settings/bootstrap · tuned once
include:
@protocol/bootstrap-core
@you/engineering-defaults
@you/working-style
@acme/api-conventions
```
~6K tokens: your defaults + the catalog. The rest loads on demand.
your terminallive · public
```
$ curl -sS https://api.protocol.supply/@protocol/memento # Memento
Run-keyed hand-off notes for Claude Code: write one, clear,
and the fresh session claims it.
Long Claude Code sessions get slow, expensive and worse at
the task, and /compact tends to lose the plot. A memento
fixes that from the inside: before clearing, the session
writes one short file holding exactly what the next session
needs, clears, and reads the file back.
## Do it
auto-memento $CLAUDE_PID <<'EOF'
# <topic>
- **Top of mind** — what you were doing, decided, what bit you
- **Next action** — one concrete thing
- **Owed** — who waits on what
- **Traps** — gotchas that cost you something
- **Pointers** — file:line, short-sha, doc ref. Point, don't pack.
EOF
…
```
~1,900 tokens for this one — and only when your agent asks for it
No SDK. No MCP server. No 100K-token preload. **Your agent fetches the same way.**
"Tokens leaking into shell history and agent transcripts."
curly wrapper
Tokens never touch your terminal log.
### Context Window (200K tokens)
Your agent file, every turn
paste your file below to draw this bar
With 5 MCP servers
Overhead: 100K
Work: 100K
With protocol
5K
Work: 195K
What does yours cost? Paste your CLAUDE.md or AGENTS.md
**Nothing leaves your browser.** There is no upload and no request — the count runs in this page. It is an estimate at about four characters per token, which is close enough to see the shape of the problem.
"Skills folder is 47 files, none searchable, nobody knows what's in there."
Skills marketplace
Searchable, versioned, and they only load when an agent fetches them.
`protocol`
skills + knowledge base
Operational instructions — or a description of anything. Like a skill, but lighter-weight: API-served, searchable, and optionally shared.
[Search every protocol →](/search)
live three real protocols — click any one
- [afScreen TimeWhat's allowed, when, and what we've done about controls. Both kids; adjusted by age.`https://api.protocol.supply/@any-family/kids/screen-time`](/@any-family/kids/screen-time)
- [acCode ReviewReviews are the highest-leverage hour you spend each week — how the team catches bugs, transfers knowledge, and stays aligned on standards.`https://api.protocol.supply/@any-corp/engineering/code-review`](/@any-corp/engineering/code-review)
- [pGetting StartedProtocol is on-demand knowledge for AI agents. One-command install, then search and fetch.`https://api.protocol.supply/@protocol/getting-started`](/@protocol/getting-started)
`impulse`
tasks
Any task, to-do, rule, mission, or urge. Task management for agents and humans alike — with activity logs, escalation, and repetition. One survives `/clear` and surfaces later, across sessions, machines, and your team.
[See impulses in action →](/impulses)
example an agent stopped and asked
needs you`@acme/backend`
#### Which ID scheme for the new `entry` table?
The migration I'm writing assumes ashid, but V09 shipped UUIDs. I can write either — which one do we stand behind?
`rows`
database
A lightweight database on any protocol entry: decisions, lessons learned, records, logs, state. Anything your agents keep, living next to the knowledge that explains it.
[Read the protocol →](/@protocol/getting-started)
example rows on a decision log
| date | decision | owner |
| --- | --- | --- |
| `2026-10-21` | ashid everywhere, never UUID | `@dathan` |
| `2026-10-14` | Flyway applies migrations, only Flyway | `@dathan` |
| `2026-09-30` | raw SQL via QueryUtils, not QueryBuilder | `@ana` |
`GET /entry/entr_1m1cpn9wc5smc9xc3ts8qx/rows`
"Same answer rewritten across six protocols. Drift."
Include directives
DRY for prompts. <!-- include: @repo/slug --> and you're done.
`@any-corp`What a 40-person company puts in its brain. Forkable starter pack.
- handbook/
- values.md
- decision-records.md
- engineering/
- code-review.md
- incident-response.md
- people/
- hiring.md
- 1-1s.md
[Browse @any-corp →](/@any-corp)
`@protocol`The product's own playbook. How we build agents with protocols.
- getting-started.md
- quickstart.md
- devloop.md
- model-policy.md
- walkthrough-build-a-pr-review-agent.md
- protocol-philosophy.md
[Browse @protocol →](/@protocol)
`@any-family`What a household's shared brain looks like. Forkable, fillable.
- about.md
- family/
- who-we-are.md
- values.md
- kids/
- medical.md
- babysitter-brief.md
- home/
- house-rules.md
[Browse @any-family →](/@any-family)
### So why not just keep a markdown file?
Because a bad edit to a flat file is silent. There is no prior version to diff against and nothing to show the mistake was ever introduced — by the time anyone notices, the knowledge is gone.
Every entry here keeps its full history. An agent that later finds its own bad edit can walk back through the versions, see exactly what it broke, and put it back — the way you would read a git blame. We watched that happen repeatedly in one working day: Claude found its own earlier edits, diffed them, and repaired the knowledge without being asked.
It turns “an agent broke the knowledge base” into a routine fix.
example one entry's history
1. `v8`today, 16:04`agent`restored rule 8 — diffed against v6
2. `v7`today, 11:20`agent`rewrote the page, dropping rule 8
3. `v6`3 days ago`@dathan`added rule 8
"Drowning in PDFs, Slack threads, and meeting transcripts."
Ingest endpoint
Drop in raw → out comes a structured, searchable protocol.
"Knowledge dies in someone's Notion. The agent never gets it."
Sync API + import
Mirror your existing docs into a repo in 30 seconds.
"No idea what your agent actually read last week."
Per-protocol changelog + read mode
Audit trail for every fetch. Print-ready for the compliance binder.
New hire's agent knows your codebase before lunch. Your AI knows your kids' pediatrician.
[Use as a Template](/repos/new)
### Install it in the agent you already use
The same line as the top of this page. Your agent installs curly, has you type your token into curly init's hidden prompt, and drops a one-line directive into your CLAUDE.md, AGENTS.md, .cursorrules, or equivalent — so every session starts from your bootstrap.
```
Let's use protocol. Onboard me: https://api.protocol.supply/@protocol/onboarding
```
copy
**already onboarded? go further — harvest existing knowledge →**
### Harvest your project knowledge
Pulls your project's code standards and agent harness settings into a fresh protocol repo, organized by topic.
```
Follow the @protocol/harvest-project protocol to harvest my code standards, best practices, and agent harness settings into an organized personal repo on protocol.
```
copy
### Harvest your skills
Converts your skills folder (Claude Code or Codex skills, MCP servers, custom) into protocol entries with summaries, aliases, and proper organization.
```
Follow the @protocol/harvest-skills protocol to convert my skills folder into protocol entries in my personal repo on protocol.
```
copy
### Harvest your workspace
Walks your workspace docs — design docs, RFCs, runbooks, anything markdown — and turns each into a structured protocol.
```
Follow the @protocol/harvest-workspace protocol to harvest my workspace docs into my personal repo on protocol.
```
copy
### Harvest past conversations
Combs your transcripts (Claude Code, Codex, ChatGPT, custom agents) for corrections, lessons learned, preferences, and important details. Files each as a protocol.
```
Follow the @protocol/harvest-transcripts protocol to harvest my past conversations for corrections, lessons learned, preferences, and important details. Organize them into my personal repo on protocol.
```
copy
### It goes to eleven.
You're past the manual. Your team's knowledge lives in protocol, every agent bootstraps it by default, and new hires hit the ground running on day one.
[Get Started Free](/getting-started)[See Pricing](/pricing)