feat(cli): add config get/set/list commands #257

Closed
opened 2026-02-22 23:40:37 +00:00 by freemo · 0 comments
Owner

Metadata

  • Commit: feat(cli): add config get/set/list commands
  • Branch: feature/m3-config-cli

Subtasks

  • Implement agents config set <key> <value>, agents config get <key>, and agents config list [<regex>] with --filter-values regex support.
  • Ensure config updates write to the configured path (create file + parent dirs if missing) and preserve existing comments ordering when possible.
  • Mask secret values in config list output by default with --show-secrets override.
  • Emit explicit errors for unknown keys and invalid regex filters.
  • Add docs/reference/config_cli.md with examples and masking rules for secrets.
  • Tests (Behave): Add features/config_cli.feature for set/get/list, filter behavior, and secret masking.
  • Tests (Robot): Add robot/config_cli.robot smoke tests for config list output.
  • Tests (ASV): Add benchmarks/config_cli_bench.py for CLI parsing.
  • Verify coverage >=97% via nox -s coverage_report.
  • Run nox (all default sessions, including benchmark), fix any errors if needed ensuring nox passes.

Section: #### Section 3 Notes
Status: Completed

## Metadata - **Commit**: `feat(cli): add config get/set/list commands` - **Branch**: `feature/m3-config-cli` ## Subtasks - [x] Implement `agents config set <key> <value>`, `agents config get <key>`, and `agents config list [<regex>]` with `--filter-values` regex support. - [x] Ensure config updates write to the configured path (create file + parent dirs if missing) and preserve existing comments ordering when possible. - [x] Mask secret values in `config list` output by default with `--show-secrets` override. - [x] Emit explicit errors for unknown keys and invalid regex filters. - [x] Add `docs/reference/config_cli.md` with examples and masking rules for secrets. - [x] Tests (Behave): Add `features/config_cli.feature` for set/get/list, filter behavior, and secret masking. - [x] Tests (Robot): Add `robot/config_cli.robot` smoke tests for config list output. - [x] Tests (ASV): Add `benchmarks/config_cli_bench.py` for CLI parsing. - [x] Verify coverage >=97% via `nox -s coverage_report`. - [x] Run `nox` (all default sessions, including benchmark), fix any errors if needed ensuring nox passes. **Section**: #### Section 3 Notes **Status**: Completed
freemo added this to the v3.4.0 milestone 2026-02-22 23:40:37 +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.

Blocks Depends on
#132 develop-brent-2
cleveragents/cleveragents-core
Reference
cleveragents/cleveragents-core#257
No description provided.