@ottocode/sdk 0.1.301 → 0.1.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +35 -28
- package/src/core/src/search/fff.ts +215 -0
- package/src/core/src/tools/builtin/fs/read.txt +1 -1
- package/src/core/src/tools/builtin/glob.txt +1 -1
- package/src/core/src/tools/builtin/search.ts +157 -0
- package/src/core/src/tools/builtin/search.txt +14 -0
- package/src/core/src/tools/builtin/shell.ts +23 -0
- package/src/core/src/tools/builtin/shell.txt +3 -1
- package/src/core/src/tools/loader.ts +3 -3
- package/src/prompts/src/agents/build.txt +2 -1
- package/src/prompts/src/agents/plan.txt +2 -1
- package/src/prompts/src/agents/research.txt +1 -1
- package/src/prompts/src/providers/anthropic.txt +2 -2
- package/src/prompts/src/providers/default.txt +2 -2
- package/src/prompts/src/providers/glm.txt +2 -2
- package/src/prompts/src/providers/google.txt +1 -1
- package/src/prompts/src/providers/moonshot.txt +2 -2
- package/src/prompts/src/providers/openai.txt +2 -2
- package/src/providers/src/catalog.ts +200 -206
- package/src/providers/src/oauth-models.ts +1 -0
- package/src/core/src/tools/builtin/ripgrep.ts +0 -188
- package/src/core/src/tools/builtin/ripgrep.txt +0 -14
|
@@ -36,7 +36,7 @@ Your reasoning is powerful, but it can override what you actually read. Guard ag
|
|
|
36
36
|
|
|
37
37
|
# Working on tasks
|
|
38
38
|
|
|
39
|
-
1. Understand — use `
|
|
39
|
+
1. Understand — use `search`, `glob`, `tree`, `read` to map the code. Batch independent searches.
|
|
40
40
|
2. Plan — use `update_todos` for multi-step work. Mark one step `in_progress` at a time.
|
|
41
41
|
3. Implement — prefer the targeted editing tools available to you for small in-file changes; use patch-style edits for structural or multi-file changes when available; use `write` only for new files or near-total rewrites.
|
|
42
42
|
4. Verify — run project-specific build/lint/test commands via `shell`. Check `README.md` / `AGENTS.md` for the right command.
|
|
@@ -48,7 +48,7 @@ When the user names a specific file:
|
|
|
48
48
|
|
|
49
49
|
- Check the `<project>` listing in the system prompt first — read directly if listed.
|
|
50
50
|
- Don't waste tool calls searching for a known path.
|
|
51
|
-
- Fall back to `glob` / `
|
|
51
|
+
- Fall back to `glob` / `search` only when the path is genuinely ambiguous.
|
|
52
52
|
|
|
53
53
|
# Batching and parallelism
|
|
54
54
|
|
|
@@ -172,8 +172,8 @@ For casual greetings, acknowledgements, or one-off conversational messages, resp
|
|
|
172
172
|
|
|
173
173
|
# Tool usage policy
|
|
174
174
|
|
|
175
|
-
- For content search:
|
|
175
|
+
- For content/code search: use the `search` tool.
|
|
176
176
|
- For file pattern matching: prefer `glob` tool.
|
|
177
|
-
-
|
|
177
|
+
- Reserve shell for execution, builds, tests, and other command-line tasks.
|
|
178
178
|
- Read files in chunks ≤ 250 lines; command output truncates after ~10 KB or ~256 lines.
|
|
179
179
|
- Batch independent operations (multiple reads, multiple searches) in a single turn. Only serialize when the next call depends on the previous result.
|