refactor(agent): gate sustained goals behind explicit /goal
Replace the legacy long-goal skill contract with command-scoped goal tools and runtime guidance. Keep goal state durable across continuations while restricting create and replace mutations to explicit user /goal turns.
This commit is contained in:
1 parent
edf78e7054
commit
7f8c3453e1
24 files changed
+1131
-375
No files matched your search
@@ -3,7 +3,8 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import re
|
||||
from dataclasses import dataclass
|
||||
from contextlib import AbstractContextManager
|
||||
from dataclasses import dataclass, field
|
||||
from typing import TYPE_CHECKING, Any, Awaitable, Callable
|
||||
|
||||
if TYPE_CHECKING:
|
||||
@@ -45,6 +46,8 @@ class CommandContext:
|
||||
args: str = ""
|
||||
loop: Any = None
|
||||
runtime: LLMRuntime | None = None
|
||||
is_user_turn: bool = False
|
||||
turn_scopes: list[AbstractContextManager[Any]] = field(default_factory=list)
|
||||
|
||||
|
||||
class CommandRouter:
|
||||
|
||||
Reference in new issue
Block a user