feat(subagents): /agents management UI with CLI and TUI CRUD#1218
Merged
feat(subagents): /agents management UI with CLI and TUI CRUD#1218
Conversation
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.
9 tasks
- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #1154 (Phase 8 of sub-agents epic #1145 — final phase).
zeph agents list|show|create|edit|deletesubcommand with$EDITORintegration (VISUAL > EDITOR > vi fallback)serialize_to_markdown()viaWritableRawDef,save_atomic()viatempfile::NamedTempFile,delete_file(),default_template(),file_pathfield onSubAgentDefAGENT_NAME_REvalidation on all create paths, UTF-8 safe truncation, char-aware cursor in TUI form, extra confirmation for non-project scope deleteTest delta
3631 → 3713 (+82 tests: +47 from this PR, +35 from upstream #1153 merge)
Test plan
cargo +nightly fmt --checkcargo clippy --workspace -- -D warningscargo nextest run --workspace --lib --bins(3713/3713 pass)