Repository navigation
Closed
Description
Goal
Build an open-source, local-first learning companion for reviewing pull requests, Git diffs, and code without interrupting the main coding-agent session.
Product contract
- Browser stays open while the user reviews code and asks questions.
- Pi is the first honest harness connector; other harnesses appear only after working connectors exist.
- The user chooses the harness, model, explanation language, and up to three comparison programming languages.
- Code clicks and selections open a concise learning dialog with plain meaning, local context, closest language matches, notes, review-later, and an optional short quiz.
- Questions run in a separate tutor process and never enter the main Pi conversation.
- Questions, answers, notes, and quizzes remain on the webpage and in local storage outside source repositories.
- GitHub stays the source of truth. The tool never approves, comments on, or edits a pull request.
Acceptance criteria
- Load a GitHub pull request at an immutable head, a local working-tree or staged diff, a commit or range, and arbitrary code.
- Render a responsive unified diff with files, line numbers, additions, and deletions.
- Connect a local browser session to the Pi extension without exposing provider credentials.
- List available Pi models and run questions in an isolated read-only child process.
- Stream question status and answer text into the open learning dialog.
- Support one explanation language and up to three user-selected comparison languages through dropdown controls.
- Match the canonical Pickforge design system with accessible semantics, keyboard behavior, focus, contrast, and responsive layouts.
- Show an immediate accessible loading state after Ask and prevent duplicate submission while pending.
- Persist a learning log with source identity, code context, explanation, notes, review-later state, and quiz outcome.
- Offer an optional short quiz based on reviewed code with no scores, streaks, timers, or automatic prompts.
- Export a self-contained, network-free HTML learning log.
- Pass headless server, protocol, persistence, child-process, input, export, accessibility, desktop, and mobile validation.
Non-goals
- No daemon, cloud account, telemetry, provider key in the browser, or remote binding.
- No connectors other than Pi in v1.
- No side-by-side diff, code edits, PR comments, review verdicts, or automatic approval.
- No write, shell, or network tools in the tutor child.
- No global installation, npm publication, new public repository, or release in the prototype phase.
PR plan
- PR 1: secure local core and Pi connector — #60
- Protocol, input snapshots, isolated child process, durable log, export, and headless tests.
- Merged as
b88a04cafter local, CI, independent-review, and real Pi/GitHub manual-smoke validation. - Depends on: none.
- PR 2: guided review web app — #61
- Diff viewer, setup, learning dialog, live answers, log, quiz, responsive and accessible states.
- Treat the PR 1 page as temporary: apply Pickforge design standards, language dropdowns, and an accessible Ask loading state.
- Depends on: merged PR 1.
- PR 3: package and installation proof
- Pi package manifest, portable skill, docs, clean install, and final end-to-end review.
- Depends on: PR 2.
Traceability
| Acceptance area | Slice | Validation | Status |
|---|---|---|---|
| Inputs and immutable source identity | PR 1 | input and command-injection tests | validated locally and in CI; real GitHub PR smoke passed |
| Isolated model execution and live protocol | PR 1 | fake-child and Pi NDJSON contract tests | validated locally and in CI; real Pi/provider smoke passed |
| Durable log and standalone export | PR 1 | corruption, escaping, and offline export tests | validated locally and in CI |
| Diff and learning experience | PR 2 | browser tests, visual proof, real Pi/provider human smoke | validated locally and in CI; PR #61 merged |
| Notes, review-later, and quiz | PR 2 | persistence and interaction tests | validated locally and in CI; PR #61 merged |
| Package and skill | PR 3 | clean Pi install and real PR smoke test | pending |
Agent plan
Current status: PR #60 and PR #61 are merged. PR 3 remains package and installation proof.
Next action: plan PR 3 clean-package installation and final end-to-end proof. Structure (#62), additional harness connectors (#63), and streaming/multi-tab hardening (#64) remain separate follow-ups.
Human gate: PR 3 must stop at ready for human review unless Elberte explicitly authorizes its merge.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ElbertePlinio commentedon Aug 18, 2026
PR 1 local checkpoint
Secure local core and Pi connector implementation is ready for human review in the isolated worktree.
Validated on the current uncommitted tree:
review-tutor/src.git diff --checkpassed.EPIPEcontainment passed.ERR_CHILD_PROCESS_STDIO_MAXBUFFERregression test.Still intentionally deferred:
gh pr diffand GitHub head-race executionNo commit, push, publication, PR creation, installation, or merge was performed.
ElbertePlinio commentedon Aug 19, 2026
PR 1 is ready for human review: #60
Reviewed HEAD:
cb9e8dd44ba8cc83a5dea7a3a7f8edab8364497fProof:
429c865and is mergeablecheckpassedreview-tutor/srcStill intentionally unproven: real Pi/provider execution, real GitHub diff/head-race execution, and Windows-native process/browser behavior.
Status: Ready for human review. No merge was performed. PR 2 remains blocked on this review.
ElbertePlinio commentedon Aug 20, 2026
Manual PR 1 smoke passed locally with a real Pi session and provider. The GitHub PR source loaded and the isolated question flow worked.
PR 2 must treat the current page as temporary and materially redesign it before release:
These are PR 2 acceptance criteria, not deferred polish. The current PR 1 page is not an approved visual baseline.
ElbertePlinio commentedon Aug 20, 2026
PR 1 merged: #60
b88a04c1f6aeedfe8d1086cf52ea38df691be1c0PR 2 now owns the recorded Pickforge design-system, accessibility, language-dropdown, responsive-layout, and Ask loading-state requirements. No PR 2 source work has started yet.
ElbertePlinio commentedon Aug 20, 2026
Agent plan — PR 2
Goal: replace the temporary PR 1 page with a Pickforge-standard guided review surface that is responsive and accessible.
Checklist:
Validation:
bun run checkFeature flag: none. The package remains private with no released product entry point; PR 3 owns installation and release exposure.
Current status: design audit in progress
Next action: design lead inspects the current surface and locks the implementation contract
ElbertePlinio commentedon Aug 20, 2026
Design contract locked by Fable 5 (
run-20260820T213139-f991).Direction:
No framework, protocol, route, CSP, external asset, credential, or network-boundary change is allowed.
Current status: contract locked; implementation handoff next.
ElbertePlinio commentedon Aug 20, 2026
PR 2 is open: #61
This slice delivers the Pickforge-standard guided review UI on top of PR 1's unchanged local/security boundary:
Local validation is clean: 75 focused tests; 366 full-suite tests passed with 25 skipped; typecheck, lint, build, coverage, diff checks, and real Chrome renders at 1440/1024/390. Independent design and correctness review accepted the current direction; final fix verification found no issues.
Still unproven for this slice: a real Pi/provider question cycle through the redesigned page and Windows-native browser/process behavior. PR 3 remains packaging and installation proof.
Status: CI running. Merge remains human-authorized only.
ElbertePlinio commentedon Aug 20, 2026
PR 2 #61 is Ready for human review at
bedee25d7578200b559fcf67be4f440ef354f8f3.Gates:
keep32424885510: check, dependency audit, Gitleaks, and Database all passed54322port collision; its single failed-job rerun passed without source changesBounded deferrals for later triage:
Still unproven for this slice: a real Pi/provider question cycle through the redesigned page and Windows-native browser/process behavior. PR 3 remains packaging and installation proof.
No merge has been attempted. Final review and merge authorization remain with Elberte.
ElbertePlinio commentedon Aug 21, 2026
Human smoke testing found and resolved a desktop scrolling regression in PR #61.
Cause:
.diff-paneand.railretained CSS grid's defaultmin-height:auto, so a large diff expanded the fixed-height workbench to the full content height whilebodyremainedoverflow:hidden.Fix at
b6019f2247f4f61601a6a8edfe3e32eb066bd76e: constrain both desktop grid children withmin-height:0, preserving independent diff and tutor-rail scrolling. The mobile<=1040pxlayout remains unchanged.Proof with the 91.8 KiB PR #61 diff in real Chrome:
keep32480560913passed all jobsPR #61 is again Ready for human review. No merge attempted.
ElbertePlinio commentedon Aug 22, 2026
Human smoke correction — contextual tutor flow
The latest PR #61 smoke exposed a discoverability and layout mismatch:
The corrected PR 2 contract is now locked:
+affordance on diff-line hover/focus; click selects one line and Shift-click extends a contiguous range while code text remains natively selectableActual Claude Code and Codex connectors remain follow-up architecture work because they require real isolated execution, model discovery, cancellation, and security behavior. They will not be represented as working options before those connectors exist.
Current status: frozen design contract reviewed; focused four-file implementation handoff next. No commit, push, or merge authorized.
ElbertePlinio commentedon Aug 22, 2026
Contextual review correction — ready for human smoke
Human feedback on selection, harness/model clarity, and the overloaded sidebar has been implemented locally in PR #61's isolated worktree.
Delivered:
+or press Enter to open the inline Ask/Quiz composerPionly) and live Model selectors; no fake connectors and no protocol payload changeAcceptance corrections closed:
scrollIntoViewfrom displacing the desktop root; real Chromium keeps rootTop 0 and toolbar y52 after range centering, file navigation, and log jumpProof on the final local tree:
git diff --checkpassed+composer gap 8px, native copy unchanged, 1420 collapsed 1376/44, 947 rail 320/single-row toolbar/no overflow, 800/400 dialogs single-scroll, 400 toolbar y52/h99/file-head y150Status: Ready for Elberte's manual smoke. Changes remain uncommitted and unpushed; no merge attempted. Actual Claude Code and Codex connectors remain follow-up architecture work.
ElbertePlinio commentedon Aug 22, 2026
Progress update:
Latest local PR #61 smoke corrections:
RunningandReady to asklabels removedrunningProof on the current local tree:
git diff --checkpassedCurrent status: PR #61 manual smoke remains the priority. Changes are local, uncommitted, and unpushed.
Next: finish PR #61 human review; resume #62 afterward.
ElbertePlinio commentedon Aug 22, 2026
UI amendment checkpoint — ready for human smoke
The latest PR #61 work remains local and uncommitted while Elberte tests it.
Completed:
Diff | Learning logpeer views;Fable design acceptance: accepted, with no required correction before human smoke.
Validation after the final correction:
git diff --check: passedFollow-ups remain separate and deferred until PR #61 is human-approved:
Next gate: real human smoke of Ask, cancel, saved-range reopening/paging, fresh selections, quiz, notes/export, view switching, mobile/high zoom, and independent scrolling. No commit or push until Elberte approves.
ElbertePlinio commentedon Aug 23, 2026
PR #61 review-clean checkpoint
PR #61 is at reviewed HEAD
7d10887and ready to merge:116/116; repository407 passed | 25 skipped; coverage, typecheck, lint, build, and diff check passed;Deferred work is tracked separately:
Proceeding with the approved squash merge. PR 3 (package and installation proof) remains in #59.
ElbertePlinio commentedon Aug 23, 2026
PR #61 merged
PR #61 was squash-merged as
0c8fc3aafter human approval, clean local review, and green required CI.PR 2 is complete. The #59 checklist and traceability table now reflect the merged guided review web app.
Next slice: PR 3 package and installation proof. Deferred product work remains in #62, #63, and #64.
ElbertePlinio commentedon Aug 23, 2026
Agent plan — PR 3 (package and installation proof)
Goal: finish #59 with a clean-installable Pi package, honest docs, and a final end-to-end proof.
Checklist:
/review-tutormust honorctx.scopedModels(from--models/settings) with fallback to the availability snapshot, so out-of-scope models (e.g. Luna) never appear; add regression tests with a fake extension context.pikey, extensions, skills) and workspace install path.packages/review-tutor/README.md: product contract, install (pi install), usage, storage location (~/.pickforge/review-tutor-equivalent policy as implemented), security boundary.open/process-group paths exist), Windows code paths present but unproven.gh pr viewbefore/aftergh pr diffhead-race guard, snapshot pinned toheadRefOid,/commits/<sha>provenance link./review-tutorfrom a fresh session.Validation:
bun run check(typecheck, lint, test, coverage, build)vitest run packages/review-tutor/testpi install+/review-tutorsmoke transcriptCurrent status: In progress
Next action: implement scoped-model fix with regression tests in an isolated worktree
ElbertePlinio commentedon Aug 23, 2026
Progress update — PR 3 is open: #65
ctx.scopedModels(settingsenabledModels/--models) with snapshot fallback; live smoke served exactly the 5 resolvable scoped models and nogpt-5.6-luna(previously ~90 snapshot models). Explicitmodel:levelpins now carry into the tutor.pi-coding-agent >=0.83.0(first version withscopedModels).pi installfrom local path and from annpm packtarball into a second fresh sandbox; package listed, extension+skill loaded, server started, page fetched with auth gate and CSP verified.7d10887, real provider answer (deepseek-v4-flash), learning log persisted with PR provenance.bun run check: 411 passed | 25 skipped, coverage above floors.Blocked: none
Next: CI, then Ready for human review — no merge without Elberte's authorization.
ElbertePlinio commentedon Aug 23, 2026
PR 3 #65 is Ready for human review at
84a36eb(matches the locally reviewed tree).No merge attempted per the human gate. After approval, #62 (Structure view) is next, then #64; #63 remains optional expansion.
ElbertePlinio commentedon Aug 24, 2026
Human smoke on PR 3 #65 (
84a36eb): passed — Elberte ran the package viapi -eagainst PR #61 on 2026-08-24; scoped model list and question flow confirmed working. Merge remains Elberte's call.ElbertePlinio commentedon Aug 24, 2026
PR 3 merged — #59 complete
PR #65 was squash-merged as
2cfe8ecafter Elberte's manual smoke and green required CI. All three slices (#60, #61, #65) are merged; every acceptance criterion and traceability row is done.Follow-up work continues in #64 (PR #66), #62 (PR #67 + Connections list PR in progress), and optionally #63.