# Sipcode

Watches Claude's context window, catches duplicate file reads, and shows where your tokens went.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed · ★ 46
- Author: Anuj7411
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/Anuj7411/sipcode
- Updated: 2026-10-16
- HTML: https://affpapa.org/en/nevibecode/mcp/sipcode

## What it does

Sipcode is a local CLI that also runs as an MCP server. It sits between you and Claude, tracks how full the context window gets, and flags a session that starts bloating. Duplicate reads of the same file get caught before they reach the model.

Most of the work happens in the terminal. `sipcode drift` compares the current session against your usual pattern, `sipcode proxy --stats` breaks down what the rewriter stripped out, and `sipcode today` plus `sipcode forecast` cover spend and a month-end projection. There is also `sipcode benchmark`, which runs a locked 20-task corpus for a reproducible savings figure. Those transcripts are scripted pairs, not recorded live sessions, so treat the number as a model of the mechanisms rather than an actual bill.

No network calls happen during normal use, so your data stays on the machine. For Codex the server reads session logs under `~/.codex/sessions` and `~/.codex/archived_sessions` (or wherever `CODEX_HOME` points) — spend analytics and usage limits only, it does not change what Codex does. Wiring up the MCP server by hand needs Node.js, since the commands launch `npx -y sipcode`.

## Requirements
- Needs: Node.js (commands run via npx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add sipcode -- npx -y sipcode
```

### Codex

**Platform CLI**
```bash
codex mcp add sipcode -- npx -y sipcode
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sipcode": {
            "command": "npx",
            "args": [
                "-y",
                "sipcode"
            ]
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sipcode": {
            "type": "stdio",
            "command": "npx",
            "args": [
                "-y",
                "sipcode"
            ]
        }
    }
}
```

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add sipcode npx -y sipcode
```

## When to use it
- spot a context window filling up mid-session
- stop the same file being read twice
- see token spend for the day
- project month-end usage
- check what Codex sessions consumed

## Example prompts
- Show me the rewriter stats for this session: `sipcode proxy --stats`
- Check the latest session for context drift
- What did I spend today, and what's the month-end forecast?

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
