Repository navigation
agent-env task get --summary to print one line.. - #1006
Closed
williamloo-scale wants to merge 1 commit into
Closed
williamloo-scale wants to merge 1 commit into
williamloo-scale wants to merge 1 commit into
Conversation
From Ask AgentEnv (localdev MVP, FD-7169).
williamloo-scale
marked this pull request as ready for review
December 4, 2026 18:24
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.
Opened from Ask AgentEnv (localdev MVP, FD-7169).
Ask: As an env author, I want agent-env task get --summary to print one line per step (index, step type, and name) instead of the full JSON, so I can skim long tasks. Add the flag to src/agent_env/cli/task/get.py and a unit test in tst/unit/cli/task_get_summary_test.py that mocks Task.get
Plan:
This touches two files: a new flag in
src/agent_env/cli/task/get.pyand one new test file. Steps only have anidand atype(src/agent_env/task_step/task_step.py), with no separate name field, so the step'sidwill serve as its name.src/agent_env/cli/task/get.py: add a--summaryflag. When it's set, print one line per step afterTask.get(...): the index, the step type and the step id, separated by tabs. Without the flag, the JSON output stays as it is. Add one clause about the flag to the command's docstring.tst/unit/cli/task_get_summary_test.py: build a task withTask.from_dict, using the same two steps as the existingtst/unit/cli/test_task_get.py. ReplaceTask.getwith a stub that returns it, run the command withCliRunner, and check that it exits 0 and prints exactly0\tdeploy_sandbox\tboxand1\tverify_sandbox\ttests.headline_verifierson the task, and check that the summary is identical either way and isn't JSON. The existingtest_task_get.pykeeps covering the JSON output.pytest tst/unit/cli/task_get_summary_test.py tst/unit/cli/test_task_get.py -vandmake lint.I haven't edited anything. The plan is also saved at
/Users/william.loo/.claude/plans/as-an-env-author-zesty-dragonfly.md.Factory checks (local): config pass, docs skipped, tests pass
Confidence Score: 5/5

This PR appears safe to merge.Summary
Adds
--summarytoagent-env task get.No actionable issues found. Tests were inspected, not run.
Reviews (1) · Last reviewed commit: "As an env author, I want agent-env task ..." · Reviewed by Greptile