feat(cli): add interactive repl #339

Closed
opened 2026-02-22 23:41:24 +00:00 by freemo · 1 comment
Owner

Metadata

  • Commit: feat(cli): add interactive repl
  • Branch: feature/m7-post-repl

Subtasks

  • Implement agents repl command that dispatches to existing CLI commands with shared config handling.
  • Add history support with opt-out (--no-history) and default path ~/.cleveragents/history.
  • Add tab-completion for top-level commands and last command repetition (!!).
  • Add prompt context (active project/plan) and graceful handling of Ctrl+C/Ctrl+D.
  • Add multi-line input support for long commands and quoted strings.
  • Add :help and :exit built-in REPL commands.
  • Add REPL usage guide with supported commands and exit behavior.
  • Document history file location and privacy considerations.
  • Tests (Behave): Add REPL behavior scenarios (history on/off, unknown command, exit).
  • Tests (Robot): Add REPL smoke tests for command dispatch.
  • Tests (ASV): Add benchmarks/repl_bench.py for REPL startup baseline.
  • Verify coverage >=97% via nox -s coverage_report. If coverage is <97% then review the current unit test coverage report at build/coverage.xml and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun nox -s coverage_report to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across entire code base, do not ignore any failure even if it seems unrelated to this commit, fix it.

Section: ### Section 18: Deferred Work
Status: Open

## Metadata - **Commit**: `feat(cli): add interactive repl` - **Branch**: `feature/m7-post-repl` ## Subtasks - [ ] Implement `agents repl` command that dispatches to existing CLI commands with shared config handling. - [ ] Add history support with opt-out (`--no-history`) and default path `~/.cleveragents/history`. - [ ] Add tab-completion for top-level commands and last command repetition (`!!`). - [ ] Add prompt context (active project/plan) and graceful handling of Ctrl+C/Ctrl+D. - [ ] Add multi-line input support for long commands and quoted strings. - [ ] Add `:help` and `:exit` built-in REPL commands. - [ ] Add REPL usage guide with supported commands and exit behavior. - [ ] Document history file location and privacy considerations. - [ ] Tests (Behave): Add REPL behavior scenarios (history on/off, unknown command, exit). - [ ] Tests (Robot): Add REPL smoke tests for command dispatch. - [ ] Tests (ASV): Add `benchmarks/repl_bench.py` for REPL startup baseline. - [ ] Verify coverage >=97% via `nox -s coverage_report`. If coverage is <97% then review the current unit test coverage report at `build/coverage.xml` and use it to write new Behave based unit tests to improve code coverage. Specifically, write Behave style unit tests that are descriptively named and specifically improves coverage on whichever file has the most uncovered lines by writing tests that will target the uncovered lines in the report. Once that is done rerun `nox -s coverage_report` to verify all tests pass and coverage is above >=97%. Only mark this as complete once coverage is >=97%, if not repeat this task as many times as is needed until coverage reaches >=97%. - [ ] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes across **entire** code base, do not ignore any failure even if it seems unrelated to this commit, fix it. **Section**: ### Section 18: Deferred Work **Status**: Open
freemo added this to the (deleted) milestone 2026-02-22 23:41:24 +00:00
freemo modified the milestone from (deleted) to v3.6.0 2026-02-23 00:07:04 +00:00
Author
Owner

Closing as pre-existing inconsistency: PR #379 (interactive REPL) was already closed/merged, but this issue remained open. Marking as completed during Day 15 rebaseline sync.

Closing as pre-existing inconsistency: PR #379 (interactive REPL) was already closed/merged, but this issue remained open. Marking as completed during Day 15 rebaseline sync.
freemo 2026-02-23 18:34:06 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
cleveragents/cleveragents-core#339
No description provided.