Interactive code review learning mode for opencode.
Turns code review into a learning session. Presents diff changes grouped semantically, one chunk at a time, with Q&A and proactive explanations.
- opencode installed in your project
- Git
- Add the plugin to your project's
opencode.json:
{
"plugin": ["code-stroll"]
}- Install the slash command and review agent:
npx code-stroll initThis copies the command and agent files into your project's .opencode/ directory. The plugin itself is installed automatically by opencode at startup.
After installing, check that the files are in place:
your-project/
opencode.json ← plugin registered here
.opencode/
commands/
code-stroll.md ← slash command entry point
agents/
review-agent.md ← conversational review agent
/code-stroll # review current branch vs main
/code-stroll --depth skim # flag concerns only
/code-stroll --focus auth,api # only review these directories
/code-stroll --base develop # diff against develop instead of main
/code-stroll --resume # continue previous session
- deep (default): Explains architectural rationale, notes patterns and alternatives.
- skim: Flags high-severity concerns only (security issues, missing error handling). Keeps explanations under 3 sentences.
During a review session, use these signals to advance:
next,continue,move on— advance to next chunkskip— skip current chunkdone— end session early
Ask questions at any point — the review agent will answer before moving on.
Sessions are persisted to .opencode/review-session.json. Use --resume to pick up where you left off.
- Plugin creates an isolated git worktree for the branch under review
- Runs
git diffbetween the branch and base - LLM pre-analysis groups diff hunks semantically (falls back to file-based grouping on error)
- Groups are presented one at a time with concerns flagged
- Review agent opens Q&A for each group
- Session state is saved after each chunk advance
See docs/plans/2026-03-01-code-stroll-design.md for full architecture.