# Running Out of Context? No More

> Source: <https://github.com/shrey1110-dotcom/CLAUDE_API_SAVER>
> Published: 2026-06-14 03:42:35+00:00

ScopeKit creates task-complete context packs for AI coding agents. It gives Claude, Codex, Cursor, and MCP clients the relevant files, symbols, tests, relationships, risks, and validation commands for a specific task.

**The right files, not a graph to wander.**

```
npm install -g scopekit
scopekit setup
scopekit index .
scopekit pack "Find auth/session logic" --profile claude
```

`scopekit setup`

writes repo-local instruction files for Claude, Codex, and Cursor.- It does
**not** globally install anything into Claude or Codex accounts. - For remote or cloud agents, commit the generated instruction files to the repo.

```
npx scopekit setup
npx scopekit pack "Find auth/session logic" --profile claude
```

| File | Purpose |
|---|---|
`CLAUDE.md` |
Claude Code instructions |
`AGENTS.md` |
Codex / agent instructions |
`.cursor/rules/scopekit.mdc` |
Cursor rule |
`.scopekit/mcp-config.example.json` |
MCP snippet (when you run `scopekit install mcp` ) |
`.scopekit/README.md` |
Local quick reference |

These files teach repo-local agents to use ScopeKit before broad repo search.

| Command | Description |
|---|---|
`scopekit setup` |
Write repo-local agent instructions |
`scopekit status` |
Show graph/cache status |
`scopekit index .` |
Build graph + context cache |
`scopekit query "<task>"` |
Compact query answer |
`scopekit pack "<task>"` |
Task-specific context pack (default profile) |
`scopekit pack "<task>" --profile claude` |
Richer pack for Claude / Cursor |
`scopekit pack "<task>" --profile ultra` |
Smallest pack for Codex-style workflows |
`scopekit install cursor` |
Write Cursor rule only |
`scopekit install claude` |
Write `CLAUDE.md` only |
`scopekit install codex` |
Write `AGENTS.md` only |
`scopekit install mcp` |
Write MCP config snippet |
`scopekit mcp` |
Start optional MCP server (stdio) |

| Profile | Best for |
|---|---|
`default` |
Balanced markdown pack |
`ultra` |
Smallest context — Codex-style workflows |
`claude` |
Richer relationships, tests, and risks — Claude / Cursor |

*Illustrative pack (not from a specific repo):*

```
Task: Find auth/session logic

Relevant files:
  src/auth/login.ts — login entrypoint
  src/auth/session.ts — session validation/storage
  src/server/auth.controller.ts — API route layer

Relationships:
  controller calls session service
  login UI calls auth endpoint
  tests cover session behavior

Validation:
  npm test
  npm run test:auth
```

**Claude / Cursor**

```
scopekit pack "Plan a safe edit to auth flow" --profile claude
```

**Codex**

```
scopekit pack "Find impacted files for this change" --profile ultra
```

**Remote / cloud agents**

Commit the files `scopekit setup`

creates so agents can see them:

```
git add CLAUDE.md AGENTS.md .cursor/rules/scopekit.mdc .scopekit/
git commit -m "chore: add ScopeKit agent instructions"
```

The CLI/skill workflow by default. MCP is optional and gives live tool access to compatible clients.

```
scopekit install mcp   # writes .scopekit/mcp-config.example.json
scopekit mcp             # stdio MCP server
```

Client setup guides: [docs/client-configs/](/shrey1110-dotcom/CLAUDE_API_SAVER/blob/clean-main/docs/client-configs) · Example config: [examples/generic-stdio/mcp-server.json](/shrey1110-dotcom/CLAUDE_API_SAVER/blob/clean-main/examples/generic-stdio/mcp-server.json)

Scoped benchmarks in this repository — not universal superiority claims.

**Codex (supplied context, no MCP):** Across a 5-task Codex supplied-context benchmark, ScopeKit produced ~94% smaller supplied context than Graphify best-effort, achieved equal-or-better quality on 5/5 tasks, and lowered median Codex usage on 5/5 tasks.

**Claude (supplied context, no MCP):** Across a 5-task Claude supplied-context benchmark in Cursor, ScopeKit's Claude profile produced 79–88% smaller supplied context than Graphify-derived context, with equal-or-better quality on 5/5 tasks. Exact Claude token usage was not available from Cursor, so no Claude token-savings claim is made.

**MCP locked-mode:** Scoped Codex locked-mode MCP proofs show 80.0% mean reduction on auth-discovery and 94.3% mean reduction on impact-analysis.

Details: [docs/benchmarks.md](/shrey1110-dotcom/CLAUDE_API_SAVER/blob/clean-main/docs/benchmarks.md) · [docs/benchmarks/skill-head-to-head.md](/shrey1110-dotcom/CLAUDE_API_SAVER/blob/clean-main/docs/benchmarks/skill-head-to-head.md) · [docs/proofs/](/shrey1110-dotcom/CLAUDE_API_SAVER/blob/clean-main/docs/proofs)

Benchmarks are scoped to this repo, tasks, and clients. They are not universal Graphify superiority claims. Diagnostic compression metrics are not proof of real agent savings. Token savings are not guaranteed.

```
git clone https://github.com/shrey1110-dotcom/CLAUDE_API_SAVER.git
cd CLAUDE_API_SAVER
npm install
npm run build
npm run graph:build
npm run context:build
npm link
scopekit --help
scopekit setup --dry-run
```

`repo-context`

and `repo-context-mcp`

still work as deprecated aliases. They print a rename notice and forward to ScopeKit. New users should use `scopekit`

.

| Resource | URL |
|---|---|
| npm package |
|
