mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-08 03:01:47 +00:00
feat: implement auto-mode for iterative task execution with state persistence and git integration
This commit is contained in:
parent
4eecaf06e4
commit
1cb68ded0b
2 changed files with 253 additions and 1 deletions
13
cli.py
13
cli.py
|
|
@ -9446,7 +9446,18 @@ class HermesCLI:
|
|||
if app.is_running:
|
||||
app.exit()
|
||||
continue
|
||||
|
||||
|
||||
# ✨ AUTO command — iterative task loop via execute_task()
|
||||
if isinstance(user_input, str) and user_input.startswith("auto "):
|
||||
task = user_input[len("auto "):].strip()
|
||||
if task:
|
||||
_cprint(f"\n🔄 AUTO mode: {task}")
|
||||
if self.agent is not None:
|
||||
self.agent.execute_task(task)
|
||||
else:
|
||||
_cprint(" ⚠ Agent not initialized yet — send a normal message first.")
|
||||
continue
|
||||
|
||||
# Expand paste references back to full content
|
||||
import re as _re
|
||||
_paste_ref_re = _re.compile(r'\[Pasted text #\d+: \d+ lines \u2192 (.+?)\]')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue