# Protocol Philosophy <!-- ref: @protocol/protocol-philosophy type: appendix tags: [AI, protocols, efficiency, documentation, execution] triggers: [optimize context, refine protocols, execute tasks, manage knowledge] trigger_prompt: When seeking to improve the efficiency of AI context management or when needing clear, actionable instructions for executing tasks. category: meta last_reviewed: 2026-04-30 complements: [@protocol/orchestrate, @protocol/skill-to-protocol] audience: [agent-author] version: 10 updated_at: 2026-07-16T23:28:28.386Z --> Optimize AI context management by using protocols to enhance token efficiency and execution consistency. **Context is the only lever.** Put better tokens in, remove worse tokens, organize for retrieval. ## Protocols vs Documentation Documentation is informational -- it describes how things work. Protocols are executable -- they prescribe what to do. A doc says "our API uses JWT auth." A protocol says "when adding a new route: check auth middleware, add role claims, write integration test." Protocols are instructions an agent can follow without interpretation. ## Token Efficiency An AI's context window is finite and expensive. Protocols solve this: - **Load what you need** -- fetch specific protocols for the task at hand - **Discard when done** -- protocols are stateless; drop them after use - **Compress knowledge** -- a 30-line protocol replaces a 500-line doc Every token in context should earn its place. Protocols are high-density knowledge. ## Fractal Execution The same Research-Plan-Implement pattern works at every scale: - **Single function**: read the code, plan the change, implement it - **Feature**: research the domain, plan the architecture, build it - **Project**: research the market, plan the roadmap, execute phases Protocols encode this fractal pattern so agents apply it consistently regardless of scope. ## Living System Protocols evolve with use. When a protocol fails or feels wrong, refine it. When a new pattern emerges, capture it. The protocol repo is a living system, not a static reference. --- --- *Related: `@protocol/groom-protocols` · `@content/youtube/tiago-forte/where-to-focus-your-career-as-ai-changes-everything` · `@content/youtube/hormozi/reacting-to-my-first-videos-10-years-later` · `@content/youtube/yc-root-access/meet-the-devtool-founders-building-for-ai-agents` · `@content/youtube/aie/the-death-of-developer-advocates-stephanie-jarmak-sourcegraph`* --- *You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).* *Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*