feat: Add /autonomous command for swarm-based autonomous coding#1
feat: Add /autonomous command for swarm-based autonomous coding#1ten-jampa wants to merge 3 commits into
Conversation
- Add /autonomous command to COMMAND_REGISTRY - Add CLI handler in cli.py with subcommands (status, logs, list) - Add Gateway handler for Telegram support - Add hermes_cli/autonomous.py with: - Run ID generation - Run directory management - Vault sync functions - Codex swarm prompt builder - PR submission helpers This is the foundation for autonomous coding mode where Hermes spawns a swarm of GSD-powered Codex agents to execute tasks.
|
Full implementation: - Add spawn_swarm() to spawn Codex agents with GSD in background - Add check_run_status() to track running tasks - Add run_iteration() for retry logic (max 3 retries) - Add complete_vault_sync() for vault backup - Add execute_autonomous_task() as main entry point - Update CLI handler to accept --problem, --scope, --tests flags - Update gateway handler for Telegram - Track running processes in RUNNING_PROCESSES dict This enables: - Full autonomous coding mode - Background execution - Iteration on failure - Vault sync The /autonomous command now works end-to-end.
|
1 similar comment
|
Issue NousResearch#2869: Session history not persisting between restarts Root cause: The /resume command was registered but not implemented as a slash command - only worked via --resume CLI flag. Changes: 1. Add /resume slash command handler in cli.py - Lists available sessions when used without args - Resumes specified session and loads history from DB 2. Improve /history command - Loads history from database if not in current session - Shows saved sessions when no history available 3. Fix NoneType crash in session listing - Handle explicitly null title to prevent 'NoneType is not subscriptable' - Applied to both /resume and /history handlers
d588e7c to
91ec166
Compare
|
Summary
This PR adds the
/autonomouscommand for Hermes, enabling autonomous coding mode where Hermes spawns a swarm of GSD-powered Codex agents to execute tasks.Changes
Usage
/autonomous <task-description>Will ask clarifying questions, then execute via swarm.
Built with Hermes Autonomous Mode