Skip to content

Consolidate CLI output commands into results + query#80

Merged
DeveshParagiri merged 4 commits intomainfrom
fix/consolidate-cli-output-commands
Feb 17, 2026
Merged

Consolidate CLI output commands into results + query#80
DeveshParagiri merged 4 commits intomainfrom
fix/consolidate-cli-output-commands

Conversation

@RandomOscillations
Copy link
Copy Markdown
Collaborator

Summary

  • results converted to sub-app with subcommands: summary (default), timeline, segment <attr>, agent <id> — replaces --timeline/--segment/--agent flags
  • query expanded to absorb export (agents/edges/states with --to), inspect (summary/network/network-status), and report network — all with study folder auto-detection
  • Deleted: report.py, export.py, inspect.py, migrate.py (dead code)
  • Net result: 7 commands → 2 commands, ~60 fewer lines of code

Test plan

  • pytest tests/test_cli.py — 27 tests pass (new tests for all subcommands)
  • pytest — 823 tests pass
  • ruff check . && ruff format --check . — clean
  • Manual smoke test against test-v2-e2e/ study folder

Closes #72

🤖 Generated with Claude Code

RandomOscillations and others added 4 commits February 16, 2026 21:17
Reduce CLI surface from 7 overlapping commands to 2 focused ones:

- `results` becomes a sub-app with subcommands: summary (default),
  timeline, segment <attr>, agent <id>. Absorbs `report run`
  functionality via agent mode JSON output.

- `query` absorbs `export` (agents/edges/states with --to for JSONL),
  `inspect` (summary/network/network-status), and gains study folder
  auto-detection (no more --study-db flag). SQL argument is now
  positional.

Delete: report.py, export.py, inspect.py, migrate.py (dead code).

Closes #72

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@DeveshParagiri DeveshParagiri force-pushed the fix/consolidate-cli-output-commands branch from 4d6ea48 to ff11091 Compare February 17, 2026 02:17
@DeveshParagiri DeveshParagiri merged commit 86392eb into main Feb 17, 2026
4 of 5 checks passed
@DeveshParagiri DeveshParagiri deleted the fix/consolidate-cli-output-commands branch February 17, 2026 02:17
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.

Consolidate CLI output commands + delete migrate

2 participants