Skip to content

feat: subagent task persistence + /tasks command#1

Open
zkksdk wants to merge 2 commits into
mainfrom
feat-subagent-persistence
Open

feat: subagent task persistence + /tasks command#1
zkksdk wants to merge 2 commits into
mainfrom
feat-subagent-persistence

Conversation

@zkksdk

@zkksdk zkksdk commented Apr 21, 2026

Copy link
Copy Markdown
Owner

Summary

Persist subagent run history and add /tasks command.

Changes

  • delegate_tool.py: SubagentRunRecord 持久化到 ~/.hermes/subagent-runs.json,完成/失败时自动记录
  • run_agent.py: AIAgent.get_active_children_summary() + AIAgent.get_all_subagent_runs()
  • hermes_cli/commands.py: 注册 /tasks CLI 命令
  • cli.py: _handle_tasks_command() 支持 running/recent/all 子命令

Hermes Agent added 2 commits April 21, 2026 23:38
- delegate_tool.py: persist SubagentRunRecord to ~/.hermes/subagent-runs.json
  on subagent completion (success and error paths). Records include runId,
  session keys, task description, status, timestamps, and outcome summary.

- run_agent.py: add AIAgent.get_active_children_summary() (instance method)
  and AIAgent.get_all_subagent_runs() (static method) for querying running
  and persisted subagent tasks.

- hermes_cli/commands.py: register new /tasks CLI command in Tools & Skills.

- cli.py: implement _handle_tasks_command with 'running', 'recent', and
  'all' subcommands to display active children and persisted run history.
- hermes_cli/dashboard.py: full-screen dark-theme live dashboard
  with 8 panels: Header, System, Subagents, Tasks, Cron, Usage, Sessions, Footer
  Auto-refreshes every 5s via rich.live.Live
  All data fetching wrapped in try/except with N/A fallbacks
  Standalone: python hermes_cli/dashboard.py

- cli.py: add _handle_dashboard_command + dispatch for /dashboard
  Launches the dashboard in the current terminal session
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