Remove the replay command#27
Merged
Merged
Conversation
`replay` re-issued a captured body to an OpenAI-compatible endpoint and rendered the result — thin glue over httpx that went unused outside the demo. Serious replay belongs in a purpose-built harness (e.g. kv-reuse-lab) that issues its own requests against the exported captures, which a one-shot CLI can't compose into. Removed the command, its tests, docs/replay.md, the demo tape + gif, and the SSE/JSON renderers. Kept the loader primitive (`agentcap.replay.load_request` / `resolve_workspace_rid`) — inspect depends on it and scripts can import it. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
With the replay command gone, the module is purely the captures loader (load_request / load_requests / resolve_workspace_rid). Rename replay.py -> captures.py (and test_replay.py -> test_captures.py) so the name reflects what it does; inspect's importer and the module docstring updated to match. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR removes the agentcap replay CLI command and its supporting rendering logic/docs/tests, while preserving and renaming the underlying “load captured request by id” primitive as agentcap.captures for continued use by inspect and by downstream scripts.
Changes:
- Deleted the
replayClick command implementation and the SSE/JSON response renderers from the CLI entrypoint. - Renamed the reusable replay-loader module to
agentcap.capturesand updated tests/imports accordingly. - Removed replay-related documentation and demo artifacts, and updated README/docs to no longer reference
agentcap replay.
Reviewed changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_cli.py | Removes CLI tests that were specific to the deleted replay command. |
| tests/test_captures.py | Updates imports/docs to validate the loader API under agentcap.captures. |
| src/agentcap/captures.py | Keeps the request-loading primitive with updated module-level framing (no longer “replay”). |
| src/agentcap/main.py | Removes the replay command and its renderers; updates internal references to use captures. |
| README.md | Removes replay from the CLI/docs narrative and quick-start usage examples. |
| docs/replay.md | Deletes replay command documentation (command removed). |
| docs/inspect.md | Removes replay-specific piping example; keeps --rid described generically. |
| docs/demo/replay.tape | Deletes the replay demo tape (command removed). |
| docs/capture.md | Removes replay from the “see also” links. |
| AGENTS.md | Removes the replay-related design decision entry and renumbers subsequent items. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
agentcap replay— a thin wrapper overhttpx.postplus a response renderer that went unused outside the demo. Serious replay happens in purpose-built harnesses that issue their own requests against the exported captures, which a one-shot CLI can't compose into.Removed
replaycommand, its tests,docs/replay.md, the demo tape, the 4 MB demo gif, and the SSE/JSON response renderers.Kept
agentcap.captures(load_request/resolve_workspace_rid) —inspectdepends on it and scripts can import it directly.inspect --ridas a generic "print the selected request-id" affordance.Commits
feat: remove the replay commandrefactor: rename replay module to captures🤖 Generated with Claude Code