Skip to content

feat(cli): add read-only handoff preview - #73

Merged
HarryHeYu merged 1 commit into
mainfrom
feat-cli-preview
Nov 21, 2026
Merged

HarryHeYu merged 1 commit into
mainfrom
feat-cli-preview

Conversation

@HarryHeYu

Copy link
Copy Markdown
Owner

User problem

The three user questions are "what was I doing?", "which work do I continue?", and "what would I hand to the next agent?". The existing Core API had a read-only continue_context / bundle_preview, but the CLI had no read-only Handoff Preview: the closest command, voyager continue --no-launch, still refreshes the index, takes a lease and writes a bundle. Users had to either perform a write to see the result or hand-write JSON API requests.

Minimal change

Add voyager preview, a thin CLI spelling of the existing continue_context + thread_detail API ops. It compiles the same bundle in memory and prints:

  • explicit READ ONLY / no lease / no write / no launch contract;
  • every candidate WorkThread when repo scope is ambiguous, and labels the shown one a default;
  • selected thread title/goal/repo, target agent, source-missing member count, budget/tokens and the full bundle;
  • --json with the same fields for tools.

No new Core API op, Bridge schema change, Store schema change, scan, lease, pending attach, bundle file or second handoff engine.

Evidence

  • Red baseline: 3 failed with invalid choice: 'preview'.
  • Green: 3 passed (tests/test_cli_preview.py); targeted 56 passed with test_auto.py + test_docs.py.
  • Mutation A (behavioural): out["read_only"] = True → False; target test failed with assert False is True; file restored byte-identical.
  • Mutation B (structural): dispatch changed from cmd_preview to a no-op; target test failed with JSONDecodeError: Expecting value; file restored byte-identical.
  • Direct measurement on a synthetic two-project, multi-agent, multi-thread index: ambiguous repo scope listed both threads; explicit --thread selected the intended one; index SHA-256 set unchanged before/after preview.

Scope

Documentation is intentionally limited to CHANGELOG.md [Unreleased]: the current published release remains v1.5.0 / v1.3.0. User-facing Quickstart pin changes belong to the release-tagging commit.

Copilot AI balanced review requested due to automatic review settings November 21, 2026 08:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

@HarryHeYu
HarryHeYu merged commit a214445 into main Nov 21, 2026
10 checks passed
@HarryHeYu
HarryHeYu deleted the feat-cli-preview branch November 21, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants