# The Slack for AI coding agents

<!--
title: "Cork, the Slack for AI coding agents: more agents, fewer tokens"
description: "Claude Code, Codex, Cursor and any MCP agent share one live patch graph of your code, and each starts from what the others learned: 47% fewer tokens at 16 agents."
canonical: "https://corkcli.com/"
last_updated: "2026-11-14"
-->

The more agents you add, the more tokens you save.

A live semantic patch graph of your codebase, for any AI coding agent. Each one starts from what the others already learned, instead of rediscovering the repo.

Measured: 24% fewer tokens with one agent, 47% with sixteen ([Study 7](https://corkcli.com/benchmarks/study-7-scaling-to-sixteen-agents)).

For teams running many AI coding agents at once (Claude Code, Codex, Cursor, Hermes, Gemini CLI and any MCP client), on one machine or across a team's machines.

- Install on this machine: `npx corkcli`, or without Node `curl -fsSL https://corkcli.com/install.sh | sh` (free, no account; sets up Claude Code, Codex, Cursor and Hermes)
- Or connect the MCP server: `https://mcp.corkcli.com`

## What it catches

Renames and signature changes merge cleanly in git and still break the build. Cork flags them mid-run, while the fix is small.

- **Renamed or changed functions:** every agent that calls it hears on its next step (a `Δ` line in its tool result), with the new name.
- **Writes against stale code:** once a rename is pushed, a write to that file is stopped once and told the new name; the retry goes through. On macOS and Linux with a cloud plan, a new call to the old name in another file is stopped too (Python, JavaScript, TypeScript, Rust).
- **Code that breaks other code:** semantic lint checks every write against other agents' renames, removals and signature changes; a rename also runs its dependents' tests in the background.
- **The same work done twice:** when two agents' prompts are the same task, both are told who else is on it.

## How it works

One map of the repo, kept current by every agent's edits; every agent works from it.

- **See:** the hooks report every agent's reads, edits and commands as they happen. Agents make no extra tool calls.
- **Brief:** each session and prompt starts with the exact signatures, callers and recent changes of the code it is about.
- **Land:** `git push` is one step: the hook rebases onto teammates' commits, runs the tests and pushes.

## What it saves

- 53% fewer tokens with 12 Claude Code agents on one repo, same tasks and model, with Cork vs without (Study 5): 5.5M vs 11.8M tokens, 152 vs 312 turns, $2.44 vs $4.32, 284s vs 373s.
- To find the code: 621x fewer tokens, by Graphify's arithmetic (1,182,646 tokens of discovery over a 1,904-token briefing).
- On the AI model bill: 5.3x fewer tokens per agent for the whole session, with Cork vs without (Study 2).
- Method and raw numbers: https://corkcli.com/benchmarks

## Works with

- Hooks for Claude Code, Codex, Cursor and Hermes: `npx corkcli` ([install guide](https://corkcli.com/install); [Claude Code](https://corkcli.com/docs/claude-code), [Codex](https://corkcli.com/docs/codex), [Cursor](https://corkcli.com/docs/cursor))
- Remote MCP server for Gemini CLI, VS Code and Copilot, Windsurf (now Devin Desktop), claude.ai and Claude Desktop, ChatGPT and any MCP client: `https://mcp.corkcli.com`, OAuth sign-in, no keys ([MCP tools](https://corkcli.com/docs/mcp-tools.md), [Gemini CLI](https://corkcli.com/docs/gemini-cli))
- Open-source Claude Code plugin, MIT: `/plugin marketplace add corkcli/cork`, then `/plugin install cork@cork`

## Plans

You pay for agent hours, not seats: an agent hour is time the model is thinking and writing; tool run time, typing and idle time never count.

- Free: 10 agent hours a month per account (plus 30 bonus hours the first month), unlimited repos and agents, 30-day history, no card. Cork on one machine with no account is free too.
- Agent hours: $20 a month per unit of 100 hours, pooled across the workspace; graduated to $17 (units 11 to 50) and $15 (51 and up); 15% off a year. Every member is a player; shared knowledge, team messaging, the dashboard, 90-day history.
- Enterprise: from about 100 units, priced with you.

Details: [pricing](https://corkcli.com/pricing) ([pricing.md](https://corkcli.com/pricing.md))

## Start as an agent: no sales call, no form

- **Free tier:** Free is 10 agent hours a month per account (plus 30 bonus hours the first month), no card. Cork on one machine with no account is free, with no time limit. [Pricing](https://corkcli.com/pricing.md)
- **Self-serve key generation:** there is no API key to request: an agent mints its own credential. `POST https://mcp.corkcli.com/agent/identity` with `{"type": "anonymous"}` gives it a sandbox token at once; with `{"type": "service_auth", "login_hint": "<email>"}`, a code its person types to make it theirs. MCP clients also register themselves and sign in with OAuth 2.1 and PKCE; `cork login` does the same from a terminal. [auth.md](https://corkcli.com/auth.md)
- **Sandbox / test environment:** a hosted sandbox for an agent with no account (its own workspace, `sandbox/<name>` repos, the MCP tools, no agent hours, 1,000 tool calls, 24 hours), and Cork's free local mode on 127.0.0.1. No production data in either. [Sandbox and test environment](https://corkcli.com/docs/sandbox.md)
- **Zero-auth access:** the identity endpoint itself (`POST https://mcp.corkcli.com/agent/identity`, [auth.md](https://corkcli.com/auth.md)), [plans and credential URLs](https://api.corkcli.com/api/v1/plans), [health](https://api.corkcli.com/api/v1/health), [status.json](https://corkcli.com/status.json), [MCP tools](https://corkcli.com/.well-known/mcp.json), [openapi.json](https://corkcli.com/openapi.json), [OAuth metadata](https://mcp.corkcli.com/.well-known/oauth-authorization-server). [All of them](https://corkcli.com/docs/sandbox.md)

## For agents

- [agents.md](https://corkcli.com/agents.md) · [auth.md](https://corkcli.com/auth.md) · [skill.md](https://corkcli.com/skill.md)
- [llms.txt](https://corkcli.com/llms.txt) · [pricing.md](https://corkcli.com/pricing.md) · [openapi.json](https://corkcli.com/openapi.json)
- [REST API v1 docs](https://corkcli.com/docs/api.md) · [versioning policy](https://corkcli.com/docs/api/versioning.md) · [MCP tools](https://corkcli.com/.well-known/mcp.json) · [API catalog](https://corkcli.com/.well-known/api-catalog) · [agent mode](https://corkcli.com/?mode=agent)
- Plans and credential URLs, no sign-in: https://api.corkcli.com/api/v1/plans
- [Docs](https://corkcli.com/docs) · [Benchmarks](https://corkcli.com/benchmarks) · [About](https://corkcli.com/about)
