Skip to content

Update README for CLI/MCP parity: daemon model, new commands, --json#119

Merged
obj-p merged 2 commits intocli-mcp-parityfrom
docs-refresh
Apr 16, 2026
Merged

Update README for CLI/MCP parity: daemon model, new commands, --json#119
obj-p merged 2 commits intocli-mcp-parityfrom
docs-refresh

Conversation

@obj-p
Copy link
Copy Markdown
Owner

@obj-p obj-p commented Apr 16, 2026

Summary

Wave 3 — documentation. The CLI section hadn't been updated since the parity stack landed. Covers all 12 subcommands, the daemon model, magical session reuse, session targeting, --json, and project config.

No code changes. README only.

🤖 Generated with Claude Code

obj-p and others added 2 commits April 15, 2026 22:31
The CLI section hadn't been updated since the parity stack landed.
Expands it to cover:

- All 12 subcommands grouped by purpose (previewing, snapshotting,
  inspecting, session management, enumeration/diagnostics).
- The daemon model (auto-start, socket location, persistence,
  kill-daemon).
- Magical session reuse for snapshot/variants.
- --session / --file / sole-session resolution convention.
- --json flag on 7 read-oriented commands with jq examples.
- Separated "Project config" into its own section for scannability.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Subagent audit found several stale items after the parity migration.

AGENTS.md:
- Updated test count (~34 → ~100+) and added daemon-touching
  test examples.
- Added "Daemon model" section documenting the architecture, key
  files, and how PreviewsMCPApp routes commands.
- Added "CLI subcommands" table listing all 13 commands with
  purpose and daemon/local classification.
- Added "Structured output (--json)" section documenting the
  convention and the structuredContent wire format.
- Updated MCP tools list to include session_list.
- Added note about structuredContent on tool responses.

Help text:
- SnapshotCommand and VariantsCommand had "(ephemeral session only)"
  qualifiers on --width, --height, --preview that were misleading
  post-migration. Changed to "(new session only; ignored when
  reusing a live session)" which is accurate.

--json tests:
- Added SimulatorsCommandTests.simulatorsJSON — asserts stdout is
  valid JSON with a "simulators" array.
- Added ListCommandTests.listJSON — asserts stdout is valid JSON
  with "file" and "previews" fields, correct preview count.
- These were the two commands with zero --json test coverage.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@obj-p obj-p merged commit 1a5207f into cli-mcp-parity Apr 16, 2026
@obj-p obj-p deleted the docs-refresh branch April 16, 2026 08:14
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.

1 participant