Pi Lens UI — port the Lens margin notes, squeeze rows, flow tab and map pane to Pi's TUI
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript, python
- Domain
- developer-experience, tooling
Research direction
Read plugins/claude-code/hooks/lens.js, plugins/claude-code/.claude-plugin/plugin.json, and docs/agent/LENS.md, then inspect Pi’s TUI component and RPC/UI APIs and the proposed plugins/pi/ package in #5307. First settle which features and configuration surface the initial version will use. Done means the chosen features work in a live Pi session, every toggle is configurable, and the docs identify feature availability per host.
Written by the indexing model from the issue text.
Description
Follow-up from #5308, as suggested there: the hook behaviours and the Lens UI are separable, and Lens is the larger and less certain half.
plugins/claude-code/hooks/lens.js is 201 KB built on the Claude Code SDK UI surface. Pi has no equivalent of that surface — its equivalent is its own TUI component API plus an RPC/UI layer — so this is a rewrite against a different interface, not a port.
What Lens does today
Seven lens_* userConfig settings in plugins/claude-code/.claude-plugin/plugin.json, driving:
| Feature | Behaviour |
|---|---|
| Margin notes | Under an Edit/Write, show the governing decision or recent fix history the hook flagged for that file |
| Squeeze rows | Under a Bash result repowise distill shortened, show the lines before/after and the command that restores the rest |
| Change review | After a turn that edits files, review the working tree with get_change_risk and show the result beneath the answer |
| Flow tab | Dashboard of each turn in the /lens pane: what an edit reaches that the agent did not look at, the files it worked from, what filled its context, what RepoWise answered |
| Pane auto-open | Open the Lens map on the first read, when the terminal is wide enough |
| Map health colours | Colour the Lens map's tiles by code health from the start |
Proposed
Port Lens to Pi's TUI, ideally shipping inside the Pi package proposed in #5307 (plugins/pi/), which is Pi's supported distribution unit for extensions + skills + prompts together.
Scope questions worth settling before implementation:
- Which of the six features is in the first version? Margin notes and squeeze rows are per-tool-call annotations; the Flow tab and map pane are a persistent dashboard — the dashboard is the larger piece.
- Do the seven
lens_*toggles move into the Pi extension's own settings block, or Pi'spi configresource surface? docs/agent/LENS.mdis the current authority for what these features are; it should gain a Pi section or an explicit Claude-Code-only marker.
Acceptance
- The ported features work in a live Pi session, verified by observation.
- Every
lens_*toggle is reachable from Pi configuration, with defaults chosen deliberately rather than copied from Claude Code. docs/agent/LENS.mdreflects which features are available per host.- If any feature is not ported, it is documented as Claude-Code-only rather than left silent.
- Dominant language
- Python
- Stars
- 7.1k
- Forks
- 756
- Avg merge
- 21h 5m
- Merged PRs (30d)
- 797
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from repowise-dev/repowise
-
[Bug] Elixir `.formatter.exs`, `.credo.exs`, `config/*.exs` and `priv/**/*.exs` are reported as unreachable filesPossibly taken @ZYZ666-RGB claimed this 1 day ago. Openbug good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#6296 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug] Coverage stack detection omits Swift, Dart, and Scala, falling through to UNKNOWN in evidence setupPossibly taken @RishabhIIITD claimed this 2 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 80/100
repowise-dev/repowise#5838 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] PR-mined decisions store the decision sentence again as their rationalePossibly taken @suyashgitt claimed this 11 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#5702 · 2 comments ·
Maintainers usually reply within 1 day
-
[Bug] CICS CSD `DEFINE _PGMLIST` startup programs (`_PGMPH`) are not rootsPossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
repowise-dev/repowise#4477 ·
Maintainers usually reply within 1 day
-
[Bug] COBOL listing directives EJECT, SKIP1/SKIP2/SKIP3 and TITLE fail to parse and drop the rest of the filePossibly taken @dchaudhari7177 claimed this 34 days ago. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 91/100
repowise-dev/repowise#4474 ·
Maintainers usually reply within 1 day
All issues in repowise-dev/repowise
Similar issues
-
triage
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
kornia/kornia-rs#1416 · 1 comment ·
Maintainers usually reply within 2 days
-
ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
PolicyEngine/ai-inequality#64 ·
Maintainers usually reply within 1 day
-
LinearGaussianStateSpace.dist splits states and observations wrongly when the transition varies over timePossibly taken @PabloRoque claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
pymc-devs/pymc-extras#839 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day