Skip to content

docs(readme): align with Mode A pivot, protocol 0.2.0, and shipped L3 wrappers#21

Merged
manojp99 merged 4 commits into
mainfrom
docs/readme-protocol-0.2.0-mode-a-pivot
May 28, 2026
Merged

docs(readme): align with Mode A pivot, protocol 0.2.0, and shipped L3 wrappers#21
manojp99 merged 4 commits into
mainfrom
docs/readme-protocol-0.2.0-mode-a-pivot

Conversation

@manojp99

Copy link
Copy Markdown
Collaborator

Summary

The README was significantly out of date with recent changes across multiple PRs. The most impactful: PR #8 (Mode A pivot) replaced the stdio JSON-RPC wire protocol with a subprocess driver (argv in / JSON envelope out), but the README still documented Mode B (--stdio flag, JSON-RPC methods) as the primary interface. Additionally, PR #17 bumped protocol version 0.1.0 → 0.2.0 and changed MCP config delivery from inline JSON (--mcp-servers) to file-path-based (--mcp-config-path), PR #20 changed the OpenAI default to gpt-5.5, and PR #7 shipped L3 wrappers (TypeScript 0.4.0 on npm, Python in wrappers/python/), yet the README claimed they were 'designed, implementation next'.

Changes Applied

# Section What changed Why
1 'What it is' Removed Mode B --stdio bullet; corrected lifecycle (no agent/shutdown JSON-RPC) Mode B doesn't exist; Mode A is single-turn exit
2 'Why' Removed JSON-RPC-mirrors-MCP claim Mode A is subprocess (argv/JSON), not bidirectional JSON-RPC
3 'Quick start' Removed amplifier-agent run --stdio example; pointed at wrapper SDKs Flag doesn't exist; SDKs are the recommended interfaces
4 'Modes' table Collapsed to single Mode A row; added historical design-doc reference Only Mode A implemented; Mode B is historical
5 'Admin commands' Added missing prepare and verify commands Both are registered commands missing from README
6 'Approval flow' Removed c (cancel) response; removed 'in stdio mode' paragraph c not implemented; only y vs anything-else; no stdio mode
7 'Embedding in Python' Replaced broken classmethod example with correct constructor + instance method usage Previous example called nonexistent API: Engine.boot() is instance method, constructor requires turn_handler + protocol_points, CliDisplaySystem requires stream= kwarg
8 Architecture diagram Updated arrow label Changed from 'JSON-RPC over stdio' to 'subprocess (argv in / JSON envelope out)'
9 'Wire protocol' section Replaced entire Mode B docs with Mode A (0.2.0 flags, JSON schema, stdout/stderr split) Mode B section was stale; Mode A is the actual protocol
10 'Status' Updated from 'Phase 1, L3 next' to shipped state Engine 0.3.0, TS wrapper 0.4.0, Python wrapper, protocol 0.2.0, conformance suite, path-based MCP. Next: L2 hosts, containers

Verification

Ran grep -n 'stdio\|Mode B\|--stdio\|Engine.boot(\|JSON-RPC over stdio\|agent/initialize' README.md to verify only legitimate references remain:

No stale --stdio flag references, no surviving JSON-RPC method references outside the historical context.


Generated with Amplifier

Manoj Prabhakar Paidiparthy and others added 4 commits May 28, 2026 13:53
… wrappers

This README was significantly out of date with recent changes:

- PR #8 (Mode A pivot): Replaced stdio JSON-RPC wire protocol with subprocess driver
  model (argv in / JSON envelope out). README still documented Mode B (--stdio flag,
  agent/initialize JSON-RPC methods) as primary interface.

- PR #17: Bumped protocol version 0.1.0 → 0.2.0, changed --mcp-servers (inline JSON)
  to --mcp-config-path (file path) for MCP config delivery. Neither reflected in README.

- PR #20: Changed OpenAI default from gpt-4 to gpt-5.5 (matches extended_thinking=true
  in bundle). README used outdated default.

- PR #7: TypeScript wrapper shipped at 0.4.0 on npm, Python wrapper shipped in
  wrappers/python/. README claimed L3 wrappers were 'designed, implementation next'.

Applied 10 targeted corrections across README:
1. 'What it is' section — removed Mode B bullet, fixed lifecycle
2. 'Why' section — removed JSON-RPC-mirrors-MCP claim
3. 'Quick start' — removed --stdio example, pointed at wrapper SDKs
4. 'Modes' table — collapsed to Mode A only, added historical design-doc note
5. 'Admin commands' — added missing 'prepare' and 'verify' commands
6. 'Approval flow' — removed unimplemented 'c' response, removed stdio paragraph
7. 'Embedding in Python' — replaced broken classmethod example with correct constructor
   and instance method usage
8. 'Architecture diagram' — updated arrow label to reflect Mode A transport
9. 'Wire protocol' section — replaced Mode B docs with Mode A (0.2.0 argv flags, JSON
   envelope schema, stdout/stderr split)
10. 'Status' — updated from 'Phase 1, L3 next' to shipped state (0.3.0 engine, 0.4.0 TS
    wrapper, Python wrapper, 0.2.0 protocol, conformance suite, path-based MCP) with next
    steps (L2 host adapters, container packaging).

Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
- Added "TypeScript / Node.js SDK" section documenting the shipped npm package
  (amplifier-agent-ts@0.4.0) with install command, quick-start example, Node ≥ 20
  requirement, and pointers to full README and type definitions.

- Fixed broken Python install commands: replaced bare PyPI references
  (uv tool install / pipx install) with git+URL form pinned to engine-v0.3.0.
  Package is not yet published to PyPI; this fixes the broken install path
  demonstrated by user feedback. Added explanatory note about separate engine
  vs wrapper version tagging (engine-v0.3.0 vs wrapper-v0.4.0).

Both gaps were identified during PR #21 review: TypeScript SDK was effectively
undocumented for consumers despite npm publication, and Python install was
impossible without the git+URL form.

Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
The Python engine hasn't been published to any registry. Removed all
registry-style install commands (uv tool install amplifier-agent, pipx
install amplifier-agent, and git+URL forms with PEP 508 specs) as they
were misleading. From-source install via git clone + uv tool install -e .
is now the only documented path.

Added note that engine and wrapper releases are tagged separately
(engine-v0.3.0 vs wrapper-v0.4.0) so users can git checkout <tag> before
installing if they want a pinned version.

This does not affect the TypeScript section — amplifier-agent-ts is
published to npm and npm install amplifier-agent-ts is correct.

🤖 Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
uv tool install works fine with a raw git+https://... argument; no PEP 508
name @ url wrapper, no registry, no separate clone+sync step. Pinning
supported via @<tag>. From-source editable install retained as a
contributor note.

Generated with [Amplifier](https://github.com/microsoft/amplifier)

Co-Authored-By: Amplifier <240397093+microsoft-amplifier@users.noreply.github.com>
@manojp99 manojp99 merged commit 5c5d164 into main May 28, 2026
1 of 3 checks passed
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