omni-context-cli 0.0.84 → 0.0.86
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/README.md +8 -5
- package/README.zh-CN.md +7 -4
- package/dist/agents/deduce.md +43 -0
- package/dist/agents/explore.md +9 -14
- package/dist/agents/glance.md +5 -13
- package/dist/agents/recall.md +3 -11
- package/dist/agents/review.md +35 -0
- package/dist/agents/search.md +4 -14
- package/dist/cli.js +7 -7
- package/dist/clients/extension.vsix +0 -0
- package/dist/clients/web/assets/{_baseUniq-CXLGS_pA.js → _baseUniq-Dsxc-T1P.js} +1 -1
- package/dist/clients/web/assets/{arc-4Z7JckQX.js → arc-CMQQBY_l.js} +1 -1
- package/dist/clients/web/assets/{architectureDiagram-VXUJARFQ-Dp64qP_w.js → architectureDiagram-VXUJARFQ-DqTLTlec.js} +1 -1
- package/dist/clients/web/assets/{blockDiagram-VD42YOAC-CLQKEpqC.js → blockDiagram-VD42YOAC-86Meerwo.js} +1 -1
- package/dist/clients/web/assets/{c4Diagram-YG6GDRKO-QgDkv6UE.js → c4Diagram-YG6GDRKO-D81tExta.js} +1 -1
- package/dist/clients/web/assets/channel-CXq_cifN.js +1 -0
- package/dist/clients/web/assets/{chunk-4BX2VUAB-Dahw83LE.js → chunk-4BX2VUAB-C5ssvWON.js} +1 -1
- package/dist/clients/web/assets/{chunk-55IACEB6-DzaxJDHn.js → chunk-55IACEB6-Cvdg8xp7.js} +1 -1
- package/dist/clients/web/assets/{chunk-B4BG7PRW-D0vomqbV.js → chunk-B4BG7PRW-0CHrG_Hs.js} +1 -1
- package/dist/clients/web/assets/{chunk-DI55MBZ5-qiVnK6p8.js → chunk-DI55MBZ5-0aprlnZg.js} +1 -1
- package/dist/clients/web/assets/{chunk-FMBD7UC4-C2sJxaxL.js → chunk-FMBD7UC4-BNp5fhyr.js} +1 -1
- package/dist/clients/web/assets/{chunk-QN33PNHL-D5AwC2-G.js → chunk-QN33PNHL-BIp3X2y1.js} +1 -1
- package/dist/clients/web/assets/{chunk-QZHKN3VN-IFvcMven.js → chunk-QZHKN3VN-DE_Vb2Ey.js} +1 -1
- package/dist/clients/web/assets/{chunk-TZMSLE5B-DMB_9lpR.js → chunk-TZMSLE5B-obEhEoxZ.js} +1 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-DEKRSPX6.js +1 -0
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-DEKRSPX6.js +1 -0
- package/dist/clients/web/assets/clone-oEZTL9ZT.js +1 -0
- package/dist/clients/web/assets/{cose-bilkent-S5V4N54A-kviy0s3Q.js → cose-bilkent-S5V4N54A-CXEduseV.js} +1 -1
- package/dist/clients/web/assets/{dagre-6UL2VRFP-CH4Wzhwt.js → dagre-6UL2VRFP-BXubH0xM.js} +1 -1
- package/dist/clients/web/assets/{diagram-PSM6KHXK-CJG0PuJC.js → diagram-PSM6KHXK-CZBAfcgp.js} +1 -1
- package/dist/clients/web/assets/{diagram-QEK2KX5R-Bfcdv7nY.js → diagram-QEK2KX5R-D90gIpnn.js} +1 -1
- package/dist/clients/web/assets/{diagram-S2PKOQOG-CFAxMjgR.js → diagram-S2PKOQOG-CzkRT9UZ.js} +1 -1
- package/dist/clients/web/assets/{erDiagram-Q2GNP2WA-B1IZMS-3.js → erDiagram-Q2GNP2WA-CHNDMVwn.js} +1 -1
- package/dist/clients/web/assets/{flowDiagram-NV44I4VS-B20jmVdi.js → flowDiagram-NV44I4VS-yNfgSsGF.js} +1 -1
- package/dist/clients/web/assets/{ganttDiagram-JELNMOA3-CN_UmMdY.js → ganttDiagram-JELNMOA3-0L9yFLGa.js} +1 -1
- package/dist/clients/web/assets/{gitGraphDiagram-NY62KEGX-4_JTxeSU.js → gitGraphDiagram-NY62KEGX-DAtW2Vxz.js} +1 -1
- package/dist/clients/web/assets/{graph-q8jimC6O.js → graph-BSgS9fOU.js} +1 -1
- package/dist/clients/web/assets/index-5mQ2UgiF.css +1 -0
- package/dist/clients/web/assets/index-DbXgt1hK.js +2 -0
- package/dist/clients/web/assets/{infoDiagram-WHAUD3N6-CZ6m9EkC.js → infoDiagram-WHAUD3N6-DsTel83v.js} +1 -1
- package/dist/clients/web/assets/{journeyDiagram-XKPGCS4Q-DQDsc9_r.js → journeyDiagram-XKPGCS4Q-DTlonb7Q.js} +1 -1
- package/dist/clients/web/assets/{kanban-definition-3W4ZIXB7-BnCFTjcI.js → kanban-definition-3W4ZIXB7-BYcIEQd1.js} +1 -1
- package/dist/clients/web/assets/{layout-Cpghn7MH.js → layout-CvbMl185.js} +1 -1
- package/dist/clients/web/assets/{linear-CQh1t4yP.js → linear-CbnyxXYA.js} +1 -1
- package/dist/clients/web/assets/{min-D8ZfxGeM.js → min-UZWiyiiu.js} +1 -1
- package/dist/clients/web/assets/{mindmap-definition-VGOIOE7T-B1wT0z3Z.js → mindmap-definition-VGOIOE7T-B1ucs9zb.js} +1 -1
- package/dist/clients/web/assets/{pieDiagram-ADFJNKIX-D3fiR6Th.js → pieDiagram-ADFJNKIX-BSO05wUp.js} +1 -1
- package/dist/clients/web/assets/{quadrantDiagram-AYHSOK5B-D9BQB94o.js → quadrantDiagram-AYHSOK5B-CfQqGwYy.js} +1 -1
- package/dist/clients/web/assets/{requirementDiagram-UZGBJVZJ-DUYZZiA1.js → requirementDiagram-UZGBJVZJ-DDm_RXIi.js} +1 -1
- package/dist/clients/web/assets/{sankeyDiagram-TZEHDZUN-B0sGIcH7.js → sankeyDiagram-TZEHDZUN-DcSg4fJK.js} +1 -1
- package/dist/clients/web/assets/{sequenceDiagram-WL72ISMW-D7SULYFs.js → sequenceDiagram-WL72ISMW-zNxce8Lq.js} +1 -1
- package/dist/clients/web/assets/{stateDiagram-FKZM4ZOC-C3HTi2Ed.js → stateDiagram-FKZM4ZOC-CBvdE9-4.js} +1 -1
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-jbcsUwN8.js +1 -0
- package/dist/clients/web/assets/{timeline-definition-IT6M3QCI-C2-N2wnL.js → timeline-definition-IT6M3QCI-dxU-2yg6.js} +1 -1
- package/dist/clients/web/assets/{treemap-KMMF4GRG-BTZXx0BR.js → treemap-KMMF4GRG-LJiLcqEJ.js} +1 -1
- package/dist/clients/web/assets/{xychartDiagram-PRI3JC2R-HRlOIi7r.js → xychartDiagram-PRI3JC2R-DEJ8TCKE.js} +1 -1
- package/dist/clients/web/index.html +2 -2
- package/dist/skills/landmark/SKILL.md +12 -0
- package/dist/skills/simplify/SKILL.md +6 -43
- package/dist/workflows/analytics.md +8 -18
- package/dist/workflows/general.md +8 -9
- package/dist/workflows/memory.md +16 -0
- package/dist/workflows/programming.md +14 -27
- package/dist/workflows/recall.md +6 -12
- package/package.json +1 -1
- package/dist/clients/web/assets/channel-BpF6PGG7.js +0 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-DyrQA-YS.js +0 -1
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-DyrQA-YS.js +0 -1
- package/dist/clients/web/assets/clone-i_-uxRn_.js +0 -1
- package/dist/clients/web/assets/index-BxRbZ9su.js +0 -2
- package/dist/clients/web/assets/index-CUmxgXdk.css +0 -1
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-CBHbI6jw.js +0 -1
package/README.md
CHANGED
|
@@ -14,12 +14,14 @@ Every token matters. OmniContext CLI is engineered from the ground up to squeeze
|
|
|
14
14
|
|
|
15
15
|
## Workflow System
|
|
16
16
|
|
|
17
|
-
A workflow controls everything about how OmniContext CLI behaves: the system prompt, which tools are available, and how the assistant interacts with you.
|
|
17
|
+
A workflow controls everything about how OmniContext CLI behaves: the system prompt, which tools are available, and how the assistant interacts with you. Four workflows ship built-in:
|
|
18
18
|
|
|
19
19
|
| Preset | Use Case | Description |
|
|
20
20
|
|--------|----------|-------------|
|
|
21
21
|
| **Programming** (default) | Terminal, VS Code | Coding assistant with base tools, agent tools, and MCP integration. Concise output, minimal overhead. |
|
|
22
22
|
| **General** | Office, desktop | Personal assistant for documents, spreadsheets, and presentations. Proactive with tools, conversational tone. |
|
|
23
|
+
| **Analytics** | Usage analysis | Query the local request analytics database to explore token usage, costs, latency, and model comparison. |
|
|
24
|
+
| **Recall** | Session search | Search and review past chat sessions for decisions, context, and discussion history. |
|
|
23
25
|
|
|
24
26
|
The desktop app also installs a **Browser** workflow for the Chrome sidebar, with tab, page content, bookmark, history, screenshot, and script execution access. It also installs a **Memo** workflow for reminders and notifications.
|
|
25
27
|
|
|
@@ -28,9 +30,10 @@ Create your own by dropping a markdown file in `~/.omx/workflows/` or `.omx/work
|
|
|
28
30
|
```markdown
|
|
29
31
|
---
|
|
30
32
|
name: My Workflow
|
|
31
|
-
|
|
33
|
+
allowBuiltinTools: true
|
|
34
|
+
allowExternalTools: true
|
|
32
35
|
allowBuiltinAgents: true
|
|
33
|
-
|
|
36
|
+
allowExternalAgents: true
|
|
34
37
|
allowMcpTools: true
|
|
35
38
|
allowRemoteTools: true
|
|
36
39
|
---
|
|
@@ -61,7 +64,7 @@ omx --add-provider openrouter --api-key sk-...
|
|
|
61
64
|
omx --remove-provider openrouter
|
|
62
65
|
```
|
|
63
66
|
|
|
64
|
-
Built-in providers: **Zenmux**, **DeepSeek**, **Kimi for Coding**, **OpenRouter**, **Zhipu (GLM)
|
|
67
|
+
Built-in providers: **Zenmux**, **DeepSeek**, **Kimi for Coding**, **MiniMax**, **OpenCode Go**, **OpenRouter**, **Zhipu (GLM)**
|
|
65
68
|
|
|
66
69
|
## Cross-Session Memory
|
|
67
70
|
|
|
@@ -73,7 +76,7 @@ Memory extraction runs automatically when a conversation is compacted. The model
|
|
|
73
76
|
| Neutral | -1 |
|
|
74
77
|
| Harmful | -6 |
|
|
75
78
|
|
|
76
|
-
Points that
|
|
79
|
+
Points that reach -10 or lower are pruned. This means good insights accumulate weight over multiple sessions while bad advice is flushed quickly and stale knowledge decays on its own. Every project keeps its memory in `~/.omx/projects/<project-id>/memory.json`. Edit it directly for full control.
|
|
77
80
|
|
|
78
81
|
## Desktop & Integrations
|
|
79
82
|
|
package/README.zh-CN.md
CHANGED
|
@@ -14,12 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
## 工作流系统
|
|
16
16
|
|
|
17
|
-
工作流控制 OmniContext CLI
|
|
17
|
+
工作流控制 OmniContext CLI 行为的方方面面:系统提示词、可用工具列表、助手交互方式。内置四套工作流:
|
|
18
18
|
|
|
19
19
|
| 预设 | 使用场景 | 说明 |
|
|
20
20
|
|------|----------|------|
|
|
21
21
|
| **Programming**(默认) | 终端、VS Code | 编程助手,包含基础工具、Agent 工具和 MCP 集成。简洁输出,最小开销。 |
|
|
22
22
|
| **General** | Office、桌面端 | 多功能个人助理,处理文档、表格和演示文稿。主动使用工具,匹配对话语气。 |
|
|
23
|
+
| **Analytics** | 使用分析 | 查询本地请求分析数据库,探索 token 用量、成本、延迟和模型对比。 |
|
|
24
|
+
| **Recall** | 会话搜索 | 搜索和回顾过去的聊天会话,查找决策、上下文和讨论历史。 |
|
|
23
25
|
|
|
24
26
|
桌面应用还会安装 **Browser** 工作流供 Chrome 侧边栏使用,可访问标签页、页面内容、书签、历史记录、截图和脚本执行能力。它也会安装 **Memo** 工作流用于提醒和通知。
|
|
25
27
|
|
|
@@ -28,9 +30,10 @@
|
|
|
28
30
|
```markdown
|
|
29
31
|
---
|
|
30
32
|
name: My Workflow
|
|
31
|
-
|
|
33
|
+
allowBuiltinTools: true
|
|
34
|
+
allowExternalTools: true
|
|
32
35
|
allowBuiltinAgents: true
|
|
33
|
-
|
|
36
|
+
allowExternalAgents: true
|
|
34
37
|
allowMcpTools: true
|
|
35
38
|
allowRemoteTools: true
|
|
36
39
|
---
|
|
@@ -61,7 +64,7 @@ omx --add-provider openrouter --api-key sk-...
|
|
|
61
64
|
omx --remove-provider openrouter
|
|
62
65
|
```
|
|
63
66
|
|
|
64
|
-
内置供应商:**Zenmux**、**DeepSeek**、**Kimi for Coding**、**OpenRouter**、**Zhipu (GLM)
|
|
67
|
+
内置供应商:**Zenmux**、**DeepSeek**、**Kimi for Coding**、**MiniMax**、**OpenCode Go**、**OpenRouter**、**Zhipu (GLM)**
|
|
65
68
|
|
|
66
69
|
## 跨会话记忆
|
|
67
70
|
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Deduce
|
|
3
|
+
description: Work through a bug or complex question using read-only exploration. Spends multiple rounds tracing code and evidence, returns root cause and fix proposal. Does not modify files.
|
|
4
|
+
inheritContext: true
|
|
5
|
+
displayFields: [question]
|
|
6
|
+
parameters:
|
|
7
|
+
properties:
|
|
8
|
+
question:
|
|
9
|
+
type: string
|
|
10
|
+
description: The bug, symptom, or question to investigate. Be specific about what is happening and what is expected to happen.
|
|
11
|
+
hints:
|
|
12
|
+
type: string
|
|
13
|
+
description: Optional known clues, such as stack traces, recent changes, or files where the issue likely lives.
|
|
14
|
+
required: [question]
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
Investigate this question: {{question}}. {{#if hints}}Use these hints as starting clues: {{hints}}.{{/if}}
|
|
18
|
+
|
|
19
|
+
Do not modify files. Use read-only exploration only. Bash is allowed for read-only inspection such as `ls`, `cat`, `git log`, `git diff`, and `git blame`. Work in multiple rounds. Form hypotheses, trace code paths, gather evidence, and rule out alternatives before landing on a conclusion. Cite file:line for every material claim. If something cannot be proven from the code or available evidence, say where the trail went cold instead of overstating confidence.
|
|
20
|
+
|
|
21
|
+
Return the results in this format:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
Question: Restate what was investigated.
|
|
25
|
+
|
|
26
|
+
Evidence:
|
|
27
|
+
- Finding with file:line
|
|
28
|
+
- Finding with file:line
|
|
29
|
+
|
|
30
|
+
Root Cause:
|
|
31
|
+
One or two sentences stating what is actually going on, backed by the evidence above.
|
|
32
|
+
|
|
33
|
+
Fix Proposal:
|
|
34
|
+
- Concrete change at file:line
|
|
35
|
+
- Side effects to watch for
|
|
36
|
+
|
|
37
|
+
Open Questions:
|
|
38
|
+
- What still needs user input or runtime verification.
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
If the investigation is inconclusive, say so and list what would be needed to finish it.
|
|
42
|
+
|
|
43
|
+
Do not include explanations beyond the result format. Keep responses concise and structured.
|
package/dist/agents/explore.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Explore
|
|
3
3
|
description: Get a high-level overview of how a project or directory is organized. Use this to understand what exists and where things live, not to answer specific code questions.
|
|
4
|
-
|
|
4
|
+
allowBuiltinTools: [Read, Glob, Grep, Bash, BashOutput]
|
|
5
5
|
displayFields: [directory]
|
|
6
6
|
parameters:
|
|
7
7
|
properties:
|
|
@@ -10,30 +10,25 @@ parameters:
|
|
|
10
10
|
description: Directory to explore. If not provided, explores the entire project.
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
Survey the project
|
|
13
|
+
Survey the project or directory at a high level. {{#if directory}}Keep the exploration inside this directory: {{directory}}.{{/if}}
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
Use glob to map out the directory tree. Start broad, then selectively read key files (READMEs, configs, entry points) to understand their roles.
|
|
18
|
-
|
|
19
|
-
Focus on the big picture: what directories exist, how the project is organized, where different concerns are separated. Don't dive deep into implementation details.
|
|
15
|
+
Start broad. Use Glob to map the tree, then read a small set of anchor files such as READMEs, package files, configs, and obvious entry points. Focus on what exists, how the project is organized, and where the main concerns live. Do not drift into detailed implementation analysis. If the structure is large, prefer representative directories and key files over exhaustive reading. Use Bash only when the other tools would be awkward for a simple read-only inspection.
|
|
20
16
|
|
|
21
17
|
Return the results in this format:
|
|
22
18
|
|
|
23
19
|
```
|
|
24
|
-
Overview: One
|
|
20
|
+
Overview: One short paragraph summarizing the project, stack, and overall shape.
|
|
25
21
|
|
|
26
22
|
Directory Structure:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
scripts/ - Build and deployment scripts
|
|
23
|
+
path/ - What lives here
|
|
24
|
+
path/ - What lives here
|
|
30
25
|
|
|
31
26
|
Key Files:
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
path/to/file - Why it matters
|
|
28
|
+
path/to/file - Why it matters
|
|
34
29
|
|
|
35
30
|
Architecture:
|
|
36
|
-
|
|
31
|
+
One short section explaining how the main pieces fit together.
|
|
37
32
|
```
|
|
38
33
|
|
|
39
34
|
Do not include explanations beyond the result format. Keep responses concise and structured.
|
package/dist/agents/glance.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Glance
|
|
3
3
|
description: Preview multiple files at once. Reads files and directories, returns a brief summary for each file to help understand what's in them without reading the full contents.
|
|
4
|
-
|
|
4
|
+
allowBuiltinTools: [Read, Glob, Grep, Bash, BashOutput]
|
|
5
5
|
displayFields: [paths, recursive, maxFiles]
|
|
6
6
|
parameters:
|
|
7
7
|
properties:
|
|
@@ -19,26 +19,18 @@ parameters:
|
|
|
19
19
|
required: [paths]
|
|
20
20
|
---
|
|
21
21
|
|
|
22
|
-
Preview these files and directories: {{paths}}
|
|
22
|
+
Preview these files and directories: {{paths}}. {{#if recursive}}Scan directories recursively.{{else}}Only inspect the top level inside any directory.{{/if}} Respect the max file budget: {{#if maxFiles}}{{maxFiles}}{{else}}20{{/if}}.
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
Maximum files to process: {{#if maxFiles}}{{maxFiles}}{{else}}20 (default){{/if}}.
|
|
27
|
-
|
|
28
|
-
First, expand any directories into file lists using glob. Then read each file and write a brief summary (under 100 words) describing what the file does, its main exports, or key contents.
|
|
29
|
-
|
|
30
|
-
For large files, focus on the top-level structure rather than reading everything.
|
|
24
|
+
Expand directories with Glob before reading. For each file, read just enough to understand its role. For large files, skim the top-level structure and the most informative sections instead of reading everything. Keep each summary under 100 words. If a path cannot be read, note that briefly and move on.
|
|
31
25
|
|
|
32
26
|
Return the results in this format:
|
|
33
27
|
|
|
34
28
|
```
|
|
35
29
|
path/to/file.ts
|
|
36
|
-
|
|
30
|
+
Short summary of the file's purpose, main exports, or important contents.
|
|
37
31
|
|
|
38
32
|
path/to/config.json
|
|
39
|
-
|
|
33
|
+
Short summary of the configuration or data stored here.
|
|
40
34
|
```
|
|
41
35
|
|
|
42
|
-
If a file can't be read (binary, missing, etc.), note it briefly and move on.
|
|
43
|
-
|
|
44
36
|
Do not include explanations beyond the result format. Keep responses concise and structured.
|
package/dist/agents/recall.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Recall
|
|
3
3
|
description: Search past chat sessions and summarize the most relevant history for the current question. Use this when earlier conversations might have useful context for the current task.
|
|
4
|
-
|
|
4
|
+
allowBuiltinTools: [RecallSearch, RecallRead]
|
|
5
5
|
displayFields: [question, limit, days]
|
|
6
6
|
parameters:
|
|
7
7
|
properties:
|
|
@@ -17,17 +17,9 @@ parameters:
|
|
|
17
17
|
required: [question]
|
|
18
18
|
---
|
|
19
19
|
|
|
20
|
-
Recall what
|
|
20
|
+
Recall what past sessions say about this topic: {{question}}. Summarize at most {{#if limit}}{{limit}}{{else}}3{{/if}} sessions.{{#if days}} Only search the last {{days}} days.{{/if}}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
Use RecallSearch to find matching sessions.{{#if days}} Pass days={{days}} to limit the time range.{{/if}}
|
|
25
|
-
|
|
26
|
-
RecallSearch is keyword-based, not semantic. It only matches exact words in the text. Search for words that would literally appear in the conversation, not abstract category labels.
|
|
27
|
-
|
|
28
|
-
If no results, rethink what words the conversation would actually contain and retry. Try up to 3 rounds before giving up.
|
|
29
|
-
|
|
30
|
-
When you find relevant hits, use RecallRead to get the surrounding conversation. Pass the sessionId and messageIndex from the hit. Use contextBefore and contextAfter to control the reading window (defaults to 2 before, 5 after).
|
|
22
|
+
Start with RecallSearch. It is literal full-text search, not semantic recall, so search for names, file paths, error strings, commands, or short phrases that would actually appear in the conversation. If the first query is weak or returns nothing, try better keyword variations. Make up to three search attempts before giving up. When you find promising hits, use RecallRead with the sessionId and messageIndex from RecallSearch. Read enough surrounding context to understand the key decision, bug, or task. Use contextBefore and contextAfter to widen the window only when needed. Pay attention to totalMatchedSessions so you notice when search results were truncated.
|
|
31
23
|
|
|
32
24
|
Return the results in this format:
|
|
33
25
|
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Review
|
|
3
|
+
description: Review the recent work in this conversation with a fresh eye. Returns blockers, important issues, and nits found in the changes. Does not modify files.
|
|
4
|
+
inheritContext: true
|
|
5
|
+
displayFields: [focus]
|
|
6
|
+
parameters:
|
|
7
|
+
properties:
|
|
8
|
+
focus:
|
|
9
|
+
type: string
|
|
10
|
+
description: Optional angle to prioritize during the review, such as security, performance, tests, readability, or error handling.
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
Review the recent work in this conversation with fresh eyes. {{#if focus}}Prioritize {{focus}}.{{/if}} Do not modify files. Read the changed files and verify the actual code before judging it. Do not assume the implementation matches what was described in the conversation.
|
|
14
|
+
|
|
15
|
+
Look for real problems first: correctness bugs, edge cases, missing validation, broken assumptions, gaps between the request and the implementation, and complexity that was not needed. Also note important inconsistencies with surrounding code, confusing naming or logic, and smaller nits that are safe to skip. If the work is clean, say so plainly. Do not invent issues just to fill the format.
|
|
16
|
+
|
|
17
|
+
Return the results in this format:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
Verdict: ship / fix blockers / rethink
|
|
21
|
+
|
|
22
|
+
Blockers:
|
|
23
|
+
- Issue that would cause real problems. Cite file:line.
|
|
24
|
+
|
|
25
|
+
Important:
|
|
26
|
+
- Worth addressing before shipping. Cite file:line.
|
|
27
|
+
|
|
28
|
+
Nits:
|
|
29
|
+
- Style or polish. Safe to skip.
|
|
30
|
+
|
|
31
|
+
Missed:
|
|
32
|
+
- Anything the work should have covered but did not.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
Do not include explanations beyond the result format. Keep responses concise and structured.
|
package/dist/agents/search.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: Search
|
|
3
3
|
description: Search the codebase to answer a specific question. Returns targeted code segments from across the project that address the query.
|
|
4
|
-
|
|
4
|
+
allowBuiltinTools: [Read, Glob, Grep, Bash, BashOutput]
|
|
5
5
|
displayFields: [question, directory]
|
|
6
6
|
parameters:
|
|
7
7
|
properties:
|
|
@@ -14,19 +14,11 @@ parameters:
|
|
|
14
14
|
required: [question]
|
|
15
15
|
---
|
|
16
16
|
|
|
17
|
-
Find
|
|
17
|
+
Find code that answers this question: {{question}}. {{#if directory}}Keep the search inside this directory: {{directory}}.{{/if}}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Start by running Grep with keywords drawn from the question. Follow function calls, imports, and references until you reach the code that actually answers it. Use Glob to narrow the file set when Grep reveals likely locations. Read only the files and sections that matter. For single-file answers, return the most relevant section. For multi-file flows, include the key segments from each file so the caller can see how the pieces connect. Use line ranges when you are excerpting, and full file contents only when the file is small and the whole thing is relevant.
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
Use glob to identify relevant files based on your grep findings.
|
|
24
|
-
|
|
25
|
-
Read the files that contain the answer to the question. Focus on the specific code sections that address what's being asked.
|
|
26
|
-
|
|
27
|
-
For complex flows, read multiple files to understand the complete picture.
|
|
28
|
-
|
|
29
|
-
Return the results in this format. Use line ranges when only a section is relevant, complete contents for small files:
|
|
21
|
+
Return the results in this format:
|
|
30
22
|
|
|
31
23
|
```
|
|
32
24
|
File: path/to/file.ts
|
|
@@ -37,6 +29,4 @@ File: path/to/another.ts
|
|
|
37
29
|
<complete file contents>
|
|
38
30
|
```
|
|
39
31
|
|
|
40
|
-
If the code references other parts that explain the answer, include those too.
|
|
41
|
-
|
|
42
32
|
Do not include explanations beyond the result format. Keep responses concise and structured.
|