Repository navigation
Add agents runs list/show/approve/discard - #5
Merged
Merged
Conversation
Lets the CLI review what hosted agents evaluated and drafted, matching the MCP mailly_list_agent_runs and mailly_review_agent_draft tools. approve sends only the reviewed text from --text-file and requires --yes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FAznJLAQsuDssMvrQcAggq
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.
Requested by fatwang2 · project thread
Before: the CLI could only configure hosted agents (
agents list/show/create/update). Seeing what an agent evaluated, or approving the reply it drafted, needed the web console or MCP.After:
mailly agents runslists agent runs (filter by agent, thread, email, status, approval status, limit),runs showprints one run with its summary and draft,runs approve <run-id> --text-file <path> --yessends the reviewed reply, andruns discarddrops the draft. This matches the MCP toolsmailly_list_agent_runsandmailly_review_agent_draft.How: four commands under
agents runscall the existing server endpointsGET /agents/runs,GET /agents/runs/{id},POST /agents/runs/{id}/approveandPOST /agents/runs/{id}/discard. Like MCP,approvealways sends explicit reviewed text (file or stdin) instead of whatever the draft currently says, and it requires--yes. The skill reference, the Chinese command doc and the README table are updated, and new tests intests/agents.test.mjscover them.npm testpasses 50/50 andnpm pack --dry-runis clean.No server change is needed because the endpoints are already live. This touches
src/commands/agents.tsandsrc/client.ts, which #4 (summary prompt) also edits, so the two PRs may conflict a little.🤖 Generated with Claude Code
https://claude.ai/code/session_01FAznJLAQsuDssMvrQcAggq
Generated by Claude Code