Skip to content

Add CLI flags for self-improvement flow observability - #587

Merged
tombedor merged 1 commit into
mainfrom
self-improvement-cli-flags
Jun 3, 2026
Merged

Add CLI flags for self-improvement flow observability#587
tombedor merged 1 commit into
mainfrom
self-improvement-cli-flags

Conversation

@tombedor

@tombedor tombedor commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds elroy list-tools [--contrib-tools-path PATH] [--no-base-tools] — prints a sorted JSON array of registered tool names, optionally filtered to contrib only
  • Adds elroy list-plugins [--contrib-tools-path PATH] — prints a JSON array of {name, tab_label} objects for plugins discovered in the contrib directory
  • Adds elroy list-codex-sessions [--database-url URL] [--user-token TOKEN] [--status STATUS] — queries the SQLite DB and prints recorded Codex session metadata, with optional status filtering (e.g. --status running)

Motivation

These flags make the self-improvement cycle observable from a shell or test without launching the full TUI. The pattern is: start a Codex edit session → poll list-codex-sessions --status running to wait for completion → confirm list-tools and list-plugins reflect the new artifacts.

Test plan

  • just test tests/test_self_improvement_cli.py — 14 tests covering each flag individually plus a combined E2E flow test
  • elroy list-tools — returns base tool names as JSON
  • elroy list-tools --no-base-tools --contrib-tools-path /path/to/contrib — returns only contrib tools
  • elroy list-plugins --contrib-tools-path /path/to/contrib — returns plugin info
  • elroy list-codex-sessions --status running — returns only in-progress sessions

🤖 Generated with Claude Code

Adds three non-interactive commands so the self-improvement cycle can be
observed and tested from outside a running session:

- `elroy list-tools [--contrib-tools-path PATH] [--no-base-tools]`
  — prints a JSON array of all registered tool names
- `elroy list-plugins [--contrib-tools-path PATH]`
  — prints a JSON array of plugin name/tab_label objects from the contrib dir
- `elroy list-codex-sessions [--database-url URL] [--user-token TOKEN] [--status STATUS]`
  — queries the DB and prints recorded Codex session metadata

Adds an end-to-end test suite (tests/test_self_improvement_cli.py) covering
each flag individually and a combined flow test that walks through the full
cycle: empty contrib → Codex writes tool+plugin → flags confirm new artifacts
are visible → session recorded as completed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tombedor
tombedor marked this pull request as ready for review June 3, 2026 18:43
@tombedor
tombedor merged commit c1bfb93 into main Jun 3, 2026
1 check passed
@tombedor
tombedor deleted the self-improvement-cli-flags branch June 3, 2026 18:43
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