Skip to main content
Glama
README.md
# Code Lens

**See what your AI agent changed, as a map of the real code.** Ask "Make a Code Lens board of my changes" and the agent
builds one board next to the chat: every changed method as a card with its whole body, arrows from the exact call
lines, one frame per flow, and a **Show changes** switch between Before and After. The board is saved locally, so you
can reopen it tomorrow without rebuilding.

![A Code Lens board: method cards with whole bodies, call arrows and the Before/After switch (synthetic example)](docs/images/code-map.png)

## Download and install (version 0.7.2)

- **Codex Desktop:** [CodeLens-Codex-0.7.2-Direct.zip](https://github.com/Kanoel7/codelens/releases/download/v0.7.2/CodeLens-Codex-0.7.2-Direct.zip)
  → Plugins → Add → New plugin → pick the ZIP (do not unpack). Needs Node.js 20+. [Step-by-step guide](docs/install-codex.md)
- **Claude Desktop** (regular chat and the Code tab): [CodeLens.mcpb](https://github.com/Kanoel7/codelens/releases/download/v0.7.2/CodeLens.mcpb)
  → Settings → Desktop app → Extensions → Manage → Advanced settings → Extension Developer → Install Extension…
  (uninstall an older Code Lens entry first). [Step-by-step guide](docs/install-claude.md)

All files, checksums and later versions: [Releases](https://github.com/Kanoel7/codelens/releases/latest).

Then, in a project with uncommitted Git changes, ask: `Make a Code Lens board of my changes`.

**Status of 0.7.2:** checked with automated tests on the built packages (a simulated app host). The owner also checked
it live on a small synthetic project: building a board in Codex Desktop, and building and reopening a board in the Code
tab of Claude Desktop. Not yet checked live with 0.7.2: reopening in Codex Desktop and the regular Claude chat
(0.7.1 was checked live in both Desktop apps, in the Code tab for Claude).

## What you get

- **One interactive Code Map**, not a summary: whole method bodies, arrows from the real call lines, frames per flow,
  Before/After of the same change, explicit limits written inside each frame ("static path, not a runtime trace").
- **Saved boards reopen from the chat** after a restart: "Show my last Code Lens board", "Open the board about the
  discount and go to discount()". In a new chat in the same project folder you get that project's board; in a chat
  without a folder the agent asks which project, or tells you whose board it opened. If several boards match, it asks.
- **Extended board only when you ask** ("Make an extended Code Lens board of my changes"): adds a side frame of the
  classes involved, unchanged callers/helpers that explain the change and short line notes. A normal request stays
  compact. See [saved and extended boards, local and offline use](docs/boards-guide.md).
- **Read-only**: Code Lens never edits, stages or commits your project and runs no project code.

## Where it works

| Client | File | Board panel next to the chat | Status |
| --- | --- | --- | --- |
| Codex Desktop | `CodeLens-Codex-0.7.2-Direct.zip` | yes (MCP App) | 0.7.2: board build checked live, reopening and the rest checked locally; 0.7.1 checked live |
| Claude Desktop: regular chat and Code tab | `CodeLens.mcpb` | yes (MCP App) | 0.7.2: Code tab checked live (build and reopen); regular chat checked live only with an earlier test build |
| Codex CLI (terminal) | `CodeLens-Codex.zip` (local marketplace) | no panel in a terminal | install/remove checked automatically in a throwaway `CODEX_HOME`; open saved boards in `CodeLens-Viewer.html` |
| Claude Code (terminal CLI) | none | no | not supported in this release; a different client from the Code tab of Claude Desktop, and `.mcpb` is for Claude Desktop only |

## Requirements

- Codex Desktop / Codex CLI: **Node.js 20 or newer** on `PATH` (`node -v`); the plugin starts its server with `node`.
- Claude Desktop: nothing extra, extensions run on Claude's built-in Node.js.
- A Git project with changes. Tested on Windows; macOS and Linux paths exist in the code but are untested.

## Privacy, in one paragraph

The model receives only the board title and counts (and, when it must ask, a short list of title/date/id). Code and
notes go only to the board panel through app-only tools. Boards and drafts stay in a local folder
(`%LOCALAPPDATA%\CodeLens` on Windows). This describes what the Code Lens protocol sends; it does **not** prove what
the host app or the agent itself does with your code, because the agent reads your diff to build the board.

## Support the project

If Code Lens is useful to you, you can support it on
[Patreon](https://patreon.com/Kanoel7?utm_medium=unknown&utm_source=join_link&utm_campaign=creatorshare_creator&utm_content=copyLink).

## Contributing

Ideas and pull requests from forks are welcome; see [CONTRIBUTING.md](CONTRIBUTING.md).

## Build from source (for contributors)

```
npm ci
npm run release
```

This builds everything, runs the unit tests, writes the packages and `SHA256SUMS.txt` into `release-assets/` and runs
the package smoke test on the unpacked packages. Browser tests: `npm run test:e2e`. Details:
[docs/development.md](docs/development.md).

## License

Code Lens is released under the [MIT License](LICENSE). The packages bundle third-party components under their own
licences, listed with their texts in `THIRD_PARTY_NOTICES.txt` inside each package.