docs: align runtime references with current behavior
This commit is contained in:
1 parent
0c7dbc6aac
commit
dfb3843b4d
4 files changed
+58
-47
No files matched your search
@@ -57,6 +57,8 @@ description: Inspect or troubleshoot the agent's runtime state, adjust runtime s
|
||||
## Constraints
|
||||
|
||||
- `model_preset` is saved for the current session; other modifications are in-memory only
|
||||
- Scratchpad values survive across turns until the agent runtime restarts and are shared by its sessions; do not treat them as private per-session storage.
|
||||
- Use `my(action="check", key="workspace_sandbox")` for the current project and file restriction. `workspace` is only a legacy agent-directory display.
|
||||
- Direct `model` and `context_window_tokens` writes are rejected during active sessions because they would change the shared instance default. Use a configured `model_preset` instead.
|
||||
- Protected params have type/range validation: `max_iterations` (1–100), `context_window_tokens` (4096–1M), `model` (non-empty str)
|
||||
- If `tools.my.allow_set` is false, check only
|
||||
@@ -65,8 +67,8 @@ description: Inspect or troubleshoot the agent's runtime state, adjust runtime s
|
||||
|
||||
| Need | Use | Persists? |
|
||||
|------|-----|-----------|
|
||||
| Per-session temp state | `my(action="set", key="...", value=...)` | No |
|
||||
| Temporary runtime notes | `my(action="set", key="...", value=...)` | Across turns, not restarts |
|
||||
| Long-term facts | Memory skill (`MEMORY.md`, `USER.md`) | Yes |
|
||||
| Permanent config change | Edit config file | Yes |
|
||||
|
||||
**Rule of thumb:** Tomorrow? Memory. This turn only? My.
|
||||
**Rule of thumb:** Durable facts? Memory. Temporary runtime notes? My.
|
||||
@@ -8,7 +8,7 @@ Concrete scenarios showing when and how to use the my tool effectively.
|
||||
```
|
||||
→ my(action="check", key="web_config.enable")
|
||||
→ False
|
||||
→ "Web search is disabled. Add web.enable: true to your config to enable it."
|
||||
→ "Web search is disabled. Set tools.web.enable: true in your config to enable it."
|
||||
```
|
||||
|
||||
### "Why did you stop?"
|
||||
@@ -26,6 +26,16 @@ Concrete scenarios showing when and how to use the my tool effectively.
|
||||
→ 'deep'
|
||||
```
|
||||
|
||||
### "Which project can you access?"
|
||||
```
|
||||
→ my(action="check", key="workspace_sandbox.workspace_root")
|
||||
→ workspace_sandbox.workspace_root: '/projects/nanobot'
|
||||
→ my(action="check", key="workspace_sandbox.restrict_to_workspace")
|
||||
→ workspace_sandbox.restrict_to_workspace: True
|
||||
```
|
||||
|
||||
`workspace` is a legacy agent-directory display. Setting it does not switch the project or change file permissions.
|
||||
|
||||
## Adaptive Behavior
|
||||
|
||||
### Large codebase analysis
|
||||
@@ -44,9 +54,11 @@ Concrete scenarios showing when and how to use the my tool effectively.
|
||||
→ "Selected the fast preset for this session's next turn."
|
||||
```
|
||||
|
||||
## Cross-Turn Memory
|
||||
## Temporary Runtime Notes
|
||||
|
||||
### Remembering user preferences
|
||||
Scratchpad values survive across turns until the runtime restarts and are shared by its sessions. Use them only for non-sensitive temporary notes, not private per-session state or durable preferences.
|
||||
|
||||
### Keeping a temporary style preference
|
||||
```
|
||||
# Turn 1: user says "keep it brief"
|
||||
→ my(action="set", key="user_style", value="concise")
|
||||
|
||||
Reference in new issue
Block a user