Skip to content

feat(subagents): /agents management UI with CLI and TUI CRUD#1218

Merged
bug-ops merged 3 commits intomainfrom
feat/m27/agents-management-ui
Mar 5, 2026
Merged

feat(subagents): /agents management UI with CLI and TUI CRUD#1218
bug-ops merged 3 commits intomainfrom
feat/m27/agents-management-ui

Conversation

@bug-ops
Copy link
Owner

@bug-ops bug-ops commented Mar 5, 2026

Summary

Closes #1154 (Phase 8 of sub-agents epic #1145 — final phase).

  • CLI: zeph agents list|show|create|edit|delete subcommand with $EDITOR integration (VISUAL > EDITOR > vi fallback)
  • TUI: 5-state FSM panel (List, Detail, Create form, Edit form, ConfirmDelete) with wizard for metadata fields
  • Core: serialize_to_markdown() via WritableRawDef, save_atomic() via tempfile::NamedTempFile, delete_file(), default_template(), file_path field on SubAgentDef
  • Security: AGENT_NAME_RE validation on all create paths, UTF-8 safe truncation, char-aware cursor in TUI form, extra confirmation for non-project scope delete

Test delta

3631 → 3713 (+82 tests: +47 from this PR, +35 from upstream #1153 merge)

Test plan

  • cargo +nightly fmt --check
  • cargo clippy --workspace -- -D warnings
  • cargo nextest run --workspace --lib --bins (3713/3713 pass)
  • Architect review + adversarial critique
  • Security audit (SEC-AGT-01 through SEC-AGT-05 addressed)
  • Performance analysis (PERF-01 through PERF-04, no blockers)
  • Implementation critique (C1-C3, S1-S5 fixed)
  • Test coverage validation (GAP-01/GAP-02 tracked for follow-up)

bug-ops added 2 commits March 5, 2026 02:36
Add interactive management interface for sub-agent definitions:

CLI: `zeph agents list|show|create|edit|delete` subcommand with
$EDITOR integration (VISUAL > EDITOR > vi fallback chain).

TUI: 5-state FSM panel (List, Detail, Create, Edit, ConfirmDelete)
with form wizard for metadata fields and extra confirmation for
non-project scope delete.

Core: serialize_to_markdown() via WritableRawDef (avoids serde
asymmetry), save_atomic() via tempfile::NamedTempFile, delete_file(),
default_template(), file_path field on SubAgentDef.

Security: AGENT_NAME_RE validation on all create paths, UTF-8 safe
truncation, char-aware cursor positioning in TUI form input.
Keep both AgentsCommand CRUD tests and AgentCommand::Resume tests.
Merge CHANGELOG entries for #1153 and #1154.
@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes core zeph-core crate dependencies Dependency updates enhancement New feature or request size/XL Extra large PR (500+ lines) labels Mar 5, 2026
@bug-ops bug-ops linked an issue Mar 5, 2026 that may be closed by this pull request
9 tasks
@bug-ops bug-ops enabled auto-merge (squash) March 5, 2026 01:41
- sub-agents.md: fix TUI panel section, expand CLI create examples
- cli.md: add `zeph agents` subcommand table and `/agent resume` row
- Root README: add agents management CLI/TUI mention
- zeph-core README: document CRUD helpers and AgentsCommand
- zeph-tui README: document 5-state FSM agents panel
@bug-ops bug-ops merged commit b3fb60f into main Mar 5, 2026
28 checks passed
@bug-ops bug-ops deleted the feat/m27/agents-management-ui branch March 5, 2026 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core zeph-core crate dependencies Dependency updates documentation Improvements or additions to documentation enhancement New feature or request rust Rust code changes size/XL Extra large PR (500+ lines)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: /agents management UI Sub-Agents: close gap with Claude Code spec

1 participant