Skip to content
    ↑↓ select↵ openesc close
    English中文
    bronteee

    Code Stroll

    v0.1.1Other
    code-stroll

    Interactive code review learning sessions for opencode

    GitHub stars

    0

    Monthly installs

    13

    5 in 7 days

    Composite scoreSCORE

    19.6

    Multi-signal model

    Last commit

    4 months ago

    2026-04-02

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["code-stroll@0.1.1"]
    }

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    Interactive code review learning mode for opencode.

    What it does

    Turns code review into a learning session. Presents diff changes grouped semantically, one chunk at a time, with Q&A and proactive explanations.

    Requirements

    • opencode installed in your project
    • Git

    Installation

    1. Add the plugin to your project's opencode.json:
    {
      "plugin": ["code-stroll"]
    }
    
    1. Install the slash command and review agent:
    npx code-stroll init
    

    This copies the command and agent files into your project's .opencode/ directory. The plugin itself is installed automatically by opencode at startup.

    Verify installation

    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
    

    Usage

    /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
    

    Depth modes

    • 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.

    Session controls

    During a review session, use these signals to advance:

    • next, continue, move on — advance to next chunk
    • skip — skip current chunk
    • done — end session early

    Ask questions at any point — the review agent will answer before moving on.

    Resume

    Sessions are persisted to .opencode/review-session.json. Use --resume to pick up where you left off.

    How it works

    1. Plugin creates an isolated git worktree for the branch under review
    2. Runs git diff between the branch and base
    3. LLM pre-analysis groups diff hunks semantically (falls back to file-based grouping on error)
    4. Groups are presented one at a time with concerns flagged
    5. Review agent opens Q&A for each group
    6. Session state is saved after each chunk advance

    Design

    See docs/plans/2026-03-01-code-stroll-design.md for full architecture.