Skip to content

agent-env task get --summary to print one line.. - #1006

Closed
williamloo-scale wants to merge 1 commit into
mainfrom
ask/as-an-env-author-i-want-agent-env-task-g-d12537d7
Closed

williamloo-scale wants to merge 1 commit into
mainfrom
ask/as-an-env-author-i-want-agent-env-task-g-d12537d7

Conversation

@williamloo-scale

@williamloo-scale williamloo-scale commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

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.py and one new test file. Steps only have an id and a type (src/agent_env/task_step/task_step.py), with no separate name field, so the step's id will serve as its name.

  1. src/agent_env/cli/task/get.py: add a --summary flag. When it's set, print one line per step after Task.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.
  2. New tst/unit/cli/task_get_summary_test.py: build a task with Task.from_dict, using the same two steps as the existing tst/unit/cli/test_task_get.py. Replace Task.get with a stub that returns it, run the command with CliRunner, and check that it exits 0 and prints exactly 0\tdeploy_sandbox\tbox and 1\tverify_sandbox\ttests.
  3. Same test file: run that test both with and without headline_verifiers on the task, and check that the summary is identical either way and isn't JSON. The existing test_task_get.py keeps covering the JSON output.
  4. Check: run pytest tst/unit/cli/task_get_summary_test.py tst/unit/cli/test_task_get.py -v and make 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/5RetriggerView in Greptile

This PR appears safe to merge.

Summary

Adds --summary to agent-env task get.

  • Task get can print a compact line for each step.

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

@williamloo-scale
williamloo-scale marked this pull request as ready for review December 4, 2026 18:24
@williamloo-scale
williamloo-scale requested a review from a team as a code owner December 4, 2026 18:24
@williamloo-scale williamloo-scale changed the title As an env author, I want agent-env task get --summary to print one lin agent-env task get --summary to print one line.. Dec 4, 2026
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