# Pi × Tokenade

> Tokenade covers all of Pi: every layer applies, and you change nothing about how you work.

## What `tokenade install` does

- Extension: `~/.pi/agent/extensions/tokenade.ts`, picked up automatically.
- It folds tool results and the whole request at `before_provider_request`, so context trimming is complete.
- Rules: `~/.pi/agent/AGENTS.md`.

## Coverage

- ✓ Command compaction — Supported
- ✓ Web search — Supported
- ✓ MCP optimization — Supported
- ✓ Code search — Supported
- ✓ Lean output — Supported
- ✓ Context optimization — Supported
- ✓ Re-read dedup — Supported
- ✓ Documents & media — Supported
- ✓ Privacy — Supported
- ✓ Secret redaction — Supported

## Install

    npm install -g @tokenade/cli
    tokenade install
    tokenade login

`tokenade uninstall` restores every file it touched.

## Read next

- https://tokenade.net/tokenade.md
- https://tokenade.net/install.md
- https://tokenade.net/en/docs/compatibility
