From 6efef2700ae5da941042a2cf8518b9f5bcfb5fbe Mon Sep 17 00:00:00 2001 From: Xubin Ren <52506698+Re-bin@users.noreply.github.com> Date: Mon, 22 Jun 2026 17:02:06 +0800 Subject: [PATCH] docs: align my tool context window examples --- docs/my-tool.md | 6 +++--- nanobot/skills/my/SKILL.md | 2 +- nanobot/skills/my/references/examples.md | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/my-tool.md b/docs/my-tool.md index 6992d122..3e488d4c 100644 --- a/docs/my-tool.md +++ b/docs/my-tool.md @@ -38,7 +38,7 @@ Without parameters, returns a key config overview: ```text my(action="check") # → max_iterations: 40 -# context_window_tokens: 65536 +# context_window_tokens: 200000 # model: 'anthropic/claude-sonnet-4-20250514' # workspace: PosixPath('/tmp/workspace') # provider_retry_mode: 'standard' @@ -89,7 +89,7 @@ my(action="set", key="model_preset", value="fast") my(action="set", key="model", value="fast-model") # → Switch to a raw model and clear the active preset -my(action="set", key="context_window_tokens", value=131072) +my(action="set", key="context_window_tokens", value=262144) # → Expand context window for long documents ``` @@ -123,7 +123,7 @@ Other parameters (e.g. `workspace`, `provider_retry_mode`, `max_tool_result_char ```text Agent: This codebase is large, let me expand my context window to handle it. -→ my(action="set", key="context_window_tokens", value=131072) +→ my(action="set", key="context_window_tokens", value=262144) ``` ### "Simple question, don't waste compute" diff --git a/nanobot/skills/my/SKILL.md b/nanobot/skills/my/SKILL.md index be1e4846..8f35c738 100644 --- a/nanobot/skills/my/SKILL.md +++ b/nanobot/skills/my/SKILL.md @@ -35,7 +35,7 @@ always: true | Situation | Command | |-----------|---------| -| Large codebase analysis | `my(action="set", key="context_window_tokens", value=131072)` | +| Large codebase analysis | `my(action="set", key="context_window_tokens", value=262144)` | | Switch to a named model preset | `my(action="set", key="model_preset", value="")` | | Repetitive simple tasks without a preset | `my(action="set", key="model", value="")` | | Long multi-step task | `my(action="set", key="max_iterations", value=80)` | diff --git a/nanobot/skills/my/references/examples.md b/nanobot/skills/my/references/examples.md index 924ca2d0..3d179197 100644 --- a/nanobot/skills/my/references/examples.md +++ b/nanobot/skills/my/references/examples.md @@ -34,8 +34,8 @@ Concrete scenarios showing when and how to use the my tool effectively. ``` → my(action="check") → context_window_tokens: 200000 -→ my(action="set", key="context_window_tokens", value=131072) - → "Set context_window_tokens = 131072 (was 200000)" +→ my(action="set", key="context_window_tokens", value=262144) + → "Set context_window_tokens = 262144 (was 200000)" → "I've expanded my context window to handle this large codebase." ```