ClaudeMods
☰
KO
● 0 명 접속 중 · 조회 0 회
후원프로젝트 제출
GitHub 저장소 · 작성자 johntrob14

lens-view

코딩 에이전트 옆에서 실행되는 lens trace(Jacobian lens, logit lens, tuned lens)뷰어입니다. Claude Code 플러그인의 /lens-view 명령과 Claude Code 안에 창을 여는 모델 호출 가능 도구, MCP 프런트엔드와 독립형 터미널 뷰어를 제공합니다.

번역 완료

이 mod 소개

lens-view는 Jacobian lens, logit lens 또는 tuned lens가 각 레이어와 token 위치에서 보고하는 내용을 읽어 내고, 해당 trace를 만든 코딩 에이전트 옆에 표시합니다. Claude Code 프런트엔드는 플러그인 marketplace에서 설치하는 mod입니다(/plugin marketplace add johntrob14/lens-view 후 /plugin install lens-view@lens-view 실행). /lens-view <path> 명령과 모델이 호출하는 도구를 제공하며 둘 다 Claude Code 안에 창을 엽니다. 다른 에이전트는 MCP 도구 lens_view를 사용해 tmux 창에서 터미널 뷰어를 열 수 있고, 터미널 뷰어는 lens-view trace.json으로 단독 실행할 수도 있습니다. 모든 프런트엔드는 하나의 파서(src/lens_view/trace.py)를 공유하며 uv가 필요합니다. tmux 프런트엔드는 에이전트가 tmux 안에서 실행되어야 합니다. trace 형식은 초안(FORMAT.md)이며 앞으로 변경됩니다.

설치

먼저 작성자의 README에서 marketplace와 플러그인 이름을 확인하세요. 저장소 구조에 따라 명령어가 달라질 수 있습니다.

claude plugin marketplace add johntrob14/lens-view
claude plugin install lens-view
원문 / README

lens-view

A viewer for lens traces: what a Jacobian lens, logit lens or tuned lens reads out at every layer and token position. It runs beside a coding agent, so you can look at a trace while you work on the code that produced it.

The trace format is described in FORMAT.md. It is a draft and will change.

Front ends

| Where | What you get | Install | | --- | --- | --- | | Claude Code (default) | A mod: a /lens-view <path> command and a tool the model calls, both opening a pane inside Claude Code | Plugin, below | | Codex, or any agent with MCP | An MCP tool, lens_view, that opens the terminal viewer in a tmux pane beside the agent | MCP, below | | A terminal | The terminal viewer on its own: lens-view trace.json | uv tool install git+https://github.com/johntrob14/lens-view |

All three read traces through the Python package (src/lens_view/trace.py). The mod calls lens-view-json, which prints a trace as normalized JSON, so there is one parser.

All three need uv. The tmux front end needs the agent to run inside tmux.

Claude Code plugin

/plugin marketplace add johntrob14/lens-view
/plugin install lens-view@lens-view

Codex and other MCP clients

# ~/.codex/config.toml
[mcp_servers.lens-view]
command = "uv"
args = ["run", "--quiet", "--frozen", "--no-dev", "--project", "/path/to/lens-view", "lens-view-mcp"]
env_vars = ["TMUX", "TMUX_PANE"]

The repository also carries a Codex plugin manifest (.codex-plugin/plugin.json, mcp.json).

Layout

| Path | What | | --- | --- | | src/lens_view/trace.py | Trace format: parsing, loading, lens-view-json | | src/lens_view/app.py | Terminal viewer (Textual), lens-view | | src/lens_view/pane.py, mcp_server.py | tmux pane launcher and MCP server, lens-view-mcp | | .claude-plugin/, hooks/, types/ | Claude Code plugin: the mod | | .codex-plugin/, mcp.json | Codex plugin |

Development

uv run --group dev pytest           # Python
claude plugin validate . && claude plugin test .   # the mod

비슷한 프로젝트