omni-context-cli 0.0.83 → 0.0.85
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 +13 -10
- package/README.zh-CN.md +13 -10
- package/dist/agents/deduce.md +47 -0
- package/dist/agents/explore.md +1 -1
- package/dist/agents/glance.md +1 -1
- package/dist/agents/recall.md +49 -0
- package/dist/agents/review.md +46 -0
- package/dist/agents/search.md +1 -1
- package/dist/bin/aarch64-apple-darwin/reminders +0 -0
- package/dist/bin/x86_64-apple-darwin/reminders +0 -0
- package/dist/cli.js +7 -7
- package/dist/clients/extension.vsix +0 -0
- package/dist/clients/web/assets/{_baseUniq-BhucQAx8.js → _baseUniq-DPXZIoRI.js} +1 -1
- package/dist/clients/web/assets/{arc-DCXJhqjf.js → arc-DY6tHnoQ.js} +1 -1
- package/dist/clients/web/assets/{architectureDiagram-VXUJARFQ-Co3KwSpb.js → architectureDiagram-VXUJARFQ-Kwn-Eayz.js} +1 -1
- package/dist/clients/web/assets/{blockDiagram-VD42YOAC-DU6RRN8D.js → blockDiagram-VD42YOAC-D2z0aL0I.js} +1 -1
- package/dist/clients/web/assets/{c4Diagram-YG6GDRKO-16fd-x82.js → c4Diagram-YG6GDRKO-ByIv3z1W.js} +1 -1
- package/dist/clients/web/assets/channel-Dn1hKnnO.js +1 -0
- package/dist/clients/web/assets/{chunk-4BX2VUAB-5g-HPCZY.js → chunk-4BX2VUAB-DrPbd9N4.js} +1 -1
- package/dist/clients/web/assets/{chunk-55IACEB6-BaobwOT0.js → chunk-55IACEB6-BoDPzIjE.js} +1 -1
- package/dist/clients/web/assets/{chunk-B4BG7PRW-BXEqAVZ9.js → chunk-B4BG7PRW-CM2YZtXd.js} +1 -1
- package/dist/clients/web/assets/{chunk-DI55MBZ5-CAVGoHdr.js → chunk-DI55MBZ5-4H2aa_y_.js} +1 -1
- package/dist/clients/web/assets/{chunk-FMBD7UC4-Bxj9xhWB.js → chunk-FMBD7UC4-9_6jj8Fa.js} +1 -1
- package/dist/clients/web/assets/{chunk-QN33PNHL-BXnFDMFI.js → chunk-QN33PNHL-DDgJe79T.js} +1 -1
- package/dist/clients/web/assets/{chunk-QZHKN3VN-dYBdLfue.js → chunk-QZHKN3VN-DtAYVGIR.js} +1 -1
- package/dist/clients/web/assets/{chunk-TZMSLE5B-CZiCZobU.js → chunk-TZMSLE5B-brEdW_Wx.js} +1 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-BdvHM_DJ.js +1 -0
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-BdvHM_DJ.js +1 -0
- package/dist/clients/web/assets/clone-cgW5GTJs.js +1 -0
- package/dist/clients/web/assets/{cose-bilkent-S5V4N54A-KkzA-wdk.js → cose-bilkent-S5V4N54A-lCOfQXtB.js} +1 -1
- package/dist/clients/web/assets/{dagre-6UL2VRFP-wkfpxi2i.js → dagre-6UL2VRFP-D_pD2mTL.js} +1 -1
- package/dist/clients/web/assets/{diagram-PSM6KHXK-C4albtoO.js → diagram-PSM6KHXK-Bu5J6kyW.js} +1 -1
- package/dist/clients/web/assets/{diagram-QEK2KX5R-DIT-iXzE.js → diagram-QEK2KX5R-CUVkZ3ve.js} +1 -1
- package/dist/clients/web/assets/{diagram-S2PKOQOG-B6vlDQWG.js → diagram-S2PKOQOG-mHERzzm4.js} +1 -1
- package/dist/clients/web/assets/{erDiagram-Q2GNP2WA-C-i0tH4M.js → erDiagram-Q2GNP2WA-CJRkSTX3.js} +1 -1
- package/dist/clients/web/assets/{flowDiagram-NV44I4VS-D9QlDl7K.js → flowDiagram-NV44I4VS-C0Y90ham.js} +1 -1
- package/dist/clients/web/assets/{ganttDiagram-JELNMOA3-99ZXm_j4.js → ganttDiagram-JELNMOA3-BdUVkpzH.js} +1 -1
- package/dist/clients/web/assets/{gitGraphDiagram-NY62KEGX-BvG2b96g.js → gitGraphDiagram-NY62KEGX-BtrqYBNt.js} +1 -1
- package/dist/clients/web/assets/{graph-DskrZt2F.js → graph-CHwi4EhD.js} +1 -1
- package/dist/clients/web/assets/index-5mQ2UgiF.css +1 -0
- package/dist/clients/web/assets/index-CKVwxImE.js +2 -0
- package/dist/clients/web/assets/{infoDiagram-WHAUD3N6-CeaE3BIl.js → infoDiagram-WHAUD3N6-CILo2fKO.js} +1 -1
- package/dist/clients/web/assets/{journeyDiagram-XKPGCS4Q-BGvc13gp.js → journeyDiagram-XKPGCS4Q-Dpq5iNqi.js} +1 -1
- package/dist/clients/web/assets/{kanban-definition-3W4ZIXB7-GRGUHFd_.js → kanban-definition-3W4ZIXB7-Ct5y6xSX.js} +1 -1
- package/dist/clients/web/assets/{layout-Dqh7tXnS.js → layout-BnAA2IUO.js} +1 -1
- package/dist/clients/web/assets/{linear-CAvmmGuA.js → linear-2R4AdsOq.js} +1 -1
- package/dist/clients/web/assets/{min-CFmdQFhA.js → min-gW-yM5RQ.js} +1 -1
- package/dist/clients/web/assets/{mindmap-definition-VGOIOE7T-vizYavma.js → mindmap-definition-VGOIOE7T-B0qidwDV.js} +1 -1
- package/dist/clients/web/assets/{pieDiagram-ADFJNKIX-CIHUcxPM.js → pieDiagram-ADFJNKIX-DlifPJiS.js} +1 -1
- package/dist/clients/web/assets/{quadrantDiagram-AYHSOK5B-Vo43uM-B.js → quadrantDiagram-AYHSOK5B-Crn33A5s.js} +1 -1
- package/dist/clients/web/assets/{requirementDiagram-UZGBJVZJ-BIx-xVfI.js → requirementDiagram-UZGBJVZJ-D7ZEQ5Ko.js} +1 -1
- package/dist/clients/web/assets/{sankeyDiagram-TZEHDZUN-DZL45Cw0.js → sankeyDiagram-TZEHDZUN-CE4CxFqE.js} +1 -1
- package/dist/clients/web/assets/{sequenceDiagram-WL72ISMW-DiRfj68s.js → sequenceDiagram-WL72ISMW-BAaRV6XI.js} +1 -1
- package/dist/clients/web/assets/{stateDiagram-FKZM4ZOC-BC6eofKf.js → stateDiagram-FKZM4ZOC-DegPr2lo.js} +1 -1
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-D8PiOhPS.js +1 -0
- package/dist/clients/web/assets/{timeline-definition-IT6M3QCI-D7FZfilq.js → timeline-definition-IT6M3QCI-DisR5qy_.js} +1 -1
- package/dist/clients/web/assets/{treemap-KMMF4GRG-CxtUbtJF.js → treemap-KMMF4GRG-JpVr6-kW.js} +1 -1
- package/dist/clients/web/assets/{xychartDiagram-PRI3JC2R-Cqgj1cDw.js → xychartDiagram-PRI3JC2R-otgrE-B-.js} +1 -1
- package/dist/clients/web/index.html +3 -3
- package/dist/skills/landmark/SKILL.md +35 -0
- package/dist/workflows/analytics.md +27 -0
- package/dist/workflows/general.md +25 -9
- package/dist/workflows/programming.md +22 -2
- package/dist/workflows/recall.md +21 -0
- package/package.json +3 -1
- package/scripts/wrap-prompts.mjs +98 -0
- package/dist/clients/web/assets/channel-CVFOemLv.js +0 -1
- package/dist/clients/web/assets/classDiagram-2ON5EDUG-DoLxPFQr.js +0 -1
- package/dist/clients/web/assets/classDiagram-v2-WZHVMYZB-DoLxPFQr.js +0 -1
- package/dist/clients/web/assets/clone-Dg0kyf3N.js +0 -1
- package/dist/clients/web/assets/index-BgpKq9gl.css +0 -1
- package/dist/clients/web/assets/index-whs1emOP.js +0 -2
- package/dist/clients/web/assets/stateDiagram-v2-4FDKWEC3-uahq2mzE.js +0 -1
package/README.md
CHANGED
|
@@ -7,30 +7,33 @@ A context-first, zero-telemetry coding assistant that extends into VS Code, Offi
|
|
|
7
7
|
Every token matters. OmniContext CLI is engineered from the ground up to squeeze maximum value out of every context window.
|
|
8
8
|
|
|
9
9
|
- **Lean system prompts** - the built-in system prompts are short, focused, and free of boilerplate. Tool descriptions are minimal. Your context budget goes toward actual work, not framework overhead.
|
|
10
|
-
- **Agentic tools** - exploratory tasks (searching code, surveying project structure, previewing files) run as agentic tools on a
|
|
10
|
+
- **Agentic tools** - exploratory tasks (searching code, surveying project structure, previewing files) run as separate agentic tools, optionally on a dedicated agent model. Intermediate tool calls, file contents, and reasoning never enter your main context. You get a concise answer back; the scratch work stays off the books.
|
|
11
11
|
- **Context editing** - as a conversation grows, older rounds accumulate tool call payloads and thinking blocks that are no longer relevant. Context editing automatically compresses these, replacing bulky tool inputs and outputs with compact placeholders and stripping reasoning traces, so the model sees a clean, focused history.
|
|
12
12
|
- **Cross-session memory** - every time a conversation is compacted, the model distills key points and evaluates existing memories. Good insights accumulate weight, stale knowledge decays naturally. When the next session starts, accumulated memories are injected automatically so the assistant knows your preferences and project context from the first message.
|
|
13
13
|
- **Prompt caching** - you choose the cache TTL: 5 minutes for quick iteration, 1 hour for long work sessions. Cache control for Anthropic is applied automatically, so repeated context blocks are served from cache, cutting token usage and cost significantly.
|
|
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
|
-
The desktop app also installs a **Browser** workflow for the Chrome sidebar, with tab, page content, bookmark, history, and
|
|
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
|
|
|
26
28
|
Create your own by dropping a markdown file in `~/.omx/workflows/` or `.omx/workflows/`. Each workflow is a markdown file with YAML frontmatter that defines the tool set and a body that becomes the system prompt:
|
|
27
29
|
|
|
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
|
---
|
|
@@ -38,11 +41,11 @@ Your system prompt here. Template variables like {{OS_TYPE}},
|
|
|
38
41
|
{{PLATFORM}}, {{ARCH}}, {{CWD}}, and {{TODAY}} are available.
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
Switch workflows at startup with `omx --workflow my-workflow` or
|
|
44
|
+
Switch workflows at startup with `omx --workflow my-workflow` or save a default in OmniContext CLI's app config.
|
|
42
45
|
|
|
43
46
|
## Native Multi-Protocol
|
|
44
47
|
|
|
45
|
-
Each LLM API protocol has its own dedicated request builder and stream handler. Prompt caching, extended thinking,
|
|
48
|
+
Each LLM API protocol has its own dedicated request builder and stream handler. Prompt caching, extended thinking, function calling, and other provider-specific features work in their native protocol shape. There is no translation layer. Anthropic requests are not converted into OpenAI format or vice versa.
|
|
46
49
|
|
|
47
50
|
| Protocol | Description |
|
|
48
51
|
|----------|-------------|
|
|
@@ -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 drop below -10 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
|
|
79
|
+
Points that drop below -10 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
|
|
|
@@ -83,7 +86,7 @@ Terminal is home base, but OmniContext CLI extends into every tool you use. The
|
|
|
83
86
|
- **VS Code Extension** - IDE integration with file context, diagnostics, and diff views
|
|
84
87
|
- **Chrome Extension** - sidebar on any webpage for summarization, data extraction, and browser automation
|
|
85
88
|
- **Office Add-in** - AI panel inside Word, Excel, and PowerPoint
|
|
86
|
-
- **
|
|
89
|
+
- **ACP Clients** - external agent integration via Agent Client Protocol over stdio
|
|
87
90
|
- **Web Client** - browser UI with LaTeX, Mermaid diagrams, file attachments, and drag-and-drop
|
|
88
91
|
- **Mobile Access** - run `omx --serve` and connect from your phone
|
|
89
92
|
|
package/README.zh-CN.md
CHANGED
|
@@ -7,30 +7,33 @@
|
|
|
7
7
|
每一个 token 都很重要。OmniContext CLI 从底层开始就为最大化利用上下文窗口而设计。
|
|
8
8
|
|
|
9
9
|
- **精简系统提示词** - 内置提示词短小、聚焦、没有模板废话。工具描述力求精简。你的上下文预算用在实际工作上,而不是框架开销。
|
|
10
|
-
- **智能体式工具** -
|
|
10
|
+
- **智能体式工具** - 探索性任务(搜索代码、勘察项目结构、预览文件)作为独立的智能体式工具运行,也可以单独指定 Agent 模型。中间工具调用、文件内容和推理过程不会进入主上下文。你只拿到一个简洁的结论,中间草稿完全不占空间。
|
|
11
11
|
- **上下文编辑** - 随着对话增长,早期的工具调用负载和思考块变得不再相关。上下文编辑自动压缩这些内容,用紧凑的占位符替换庞大的工具输入输出,剥离推理痕迹,让模型看到干净、聚焦的历史。
|
|
12
12
|
- **跨会话记忆** - 每次对话压缩时,模型自动提炼关键要点并评估已有记忆。好的见解不断积累权重,过时的知识自然衰减。下次会话开始时,积累的记忆自动注入,让助手从第一句话就了解你的偏好和项目背景。
|
|
13
13
|
- **提示词缓存** - 你可以自主选择缓存 TTL:5 分钟适合快速迭代,1 小时适合长时间工作。Anthropic 的缓存控制自动应用,重复的上下文块直接从缓存读取,大幅降低 token 消耗和成本。
|
|
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
|
-
桌面应用还会安装 **Browser** 工作流供 Chrome
|
|
26
|
+
桌面应用还会安装 **Browser** 工作流供 Chrome 侧边栏使用,可访问标签页、页面内容、书签、历史记录、截图和脚本执行能力。它也会安装 **Memo** 工作流用于提醒和通知。
|
|
25
27
|
|
|
26
28
|
在 `~/.omx/workflows/` 或 `.omx/workflows/` 中放一个 Markdown 文件即可创建自定义工作流。每个工作流是一个带 YAML frontmatter 的 Markdown 文件,frontmatter 定义工具集,正文成为系统提示词:
|
|
27
29
|
|
|
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
|
---
|
|
@@ -38,11 +41,11 @@ allowRemoteTools: true
|
|
|
38
41
|
{{PLATFORM}}、{{ARCH}}、{{CWD}} 和 {{TODAY}}。
|
|
39
42
|
```
|
|
40
43
|
|
|
41
|
-
启动时用 `omx --workflow my-workflow`
|
|
44
|
+
启动时用 `omx --workflow my-workflow` 切换工作流,也可以把默认值保存到 OmniContext CLI 的应用配置中。
|
|
42
45
|
|
|
43
46
|
## 原生多协议
|
|
44
47
|
|
|
45
|
-
每种 LLM API
|
|
48
|
+
每种 LLM API 协议都有专用的请求构建器和流处理器。提示词缓存、扩展思考、函数调用和其他供应商专属特性都按原生协议工作。没有转换层,不会把 Anthropic 请求转成 OpenAI 格式,也不会反过来。
|
|
46
49
|
|
|
47
50
|
| 协议 | 说明 |
|
|
48
51
|
|------|------|
|
|
@@ -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
|
|
|
@@ -73,7 +76,7 @@ omx --remove-provider openrouter
|
|
|
73
76
|
| 中性 | -1 |
|
|
74
77
|
| 有害 | -6 |
|
|
75
78
|
|
|
76
|
-
评分低于 -10
|
|
79
|
+
评分低于 -10 的要点被剪枝。好的见解在多次会话中不断积累权重,坏的建议很快被清除,过时的知识自然衰减。每个项目都会把记忆存放在 `~/.omx/projects/<project-id>/memory.json` 里,想要完全控制可以直接编辑。
|
|
77
80
|
|
|
78
81
|
## 桌面版与集成
|
|
79
82
|
|
|
@@ -83,7 +86,7 @@ omx --remove-provider openrouter
|
|
|
83
86
|
- **VS Code 扩展** - IDE 集成,感知打开文件、诊断信息和 diff 视图
|
|
84
87
|
- **Chrome 扩展** - 任意网页上的侧边栏,支持摘要、数据提取和浏览器自动化
|
|
85
88
|
- **Office 插件** - Word、Excel 和 PowerPoint 内的 AI 面板
|
|
86
|
-
- **
|
|
89
|
+
- **ACP 客户端** - 通过 Agent Client Protocol over stdio 作为外部代理接入
|
|
87
90
|
- **Web 客户端** - 浏览器 UI,支持 LaTeX、Mermaid 图表、文件附件和拖拽
|
|
88
91
|
- **移动端访问** - 运行 `omx --serve` 后从手机连接
|
|
89
92
|
|
|
@@ -0,0 +1,47 @@
|
|
|
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}}
|
|
18
|
+
|
|
19
|
+
{{#if hints}}Known hints: {{hints}}.{{/if}}
|
|
20
|
+
|
|
21
|
+
Do not modify any files. Bash is allowed for read-only commands like ls, cat, git log, git diff, git blame.
|
|
22
|
+
|
|
23
|
+
Spend multiple rounds reading, searching, and tracing. Form hypotheses, gather evidence, rule out alternatives, and land on a root cause. Cite file:line for every claim. If something cannot be proven, say where the trail went cold.
|
|
24
|
+
|
|
25
|
+
Return the results in this format:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
Question: Restate what was investigated.
|
|
29
|
+
|
|
30
|
+
Evidence:
|
|
31
|
+
- Finding with file:line
|
|
32
|
+
- Finding with file:line
|
|
33
|
+
|
|
34
|
+
Root Cause:
|
|
35
|
+
One or two sentences stating what is actually going on, backed by the evidence above.
|
|
36
|
+
|
|
37
|
+
Fix Proposal:
|
|
38
|
+
- Concrete change at file:line
|
|
39
|
+
- Side effects to watch for
|
|
40
|
+
|
|
41
|
+
Open Questions:
|
|
42
|
+
- What still needs user input or runtime verification.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If the investigation is inconclusive, say so and list what would be needed to finish it.
|
|
46
|
+
|
|
47
|
+
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:
|
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:
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Recall
|
|
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
|
+
allowBuiltinTools: [RecallSearch, RecallRead]
|
|
5
|
+
displayFields: [question, limit, days]
|
|
6
|
+
parameters:
|
|
7
|
+
properties:
|
|
8
|
+
question:
|
|
9
|
+
type: string
|
|
10
|
+
description: What you want to recall from earlier sessions. Be specific about the topic, task, decision, bug, or project.
|
|
11
|
+
limit:
|
|
12
|
+
type: number
|
|
13
|
+
description: Maximum number of past sessions to summarize. Defaults to 3.
|
|
14
|
+
days:
|
|
15
|
+
type: number
|
|
16
|
+
description: Only search sessions from the last N days.
|
|
17
|
+
required: [question]
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
Recall what happened in past sessions about: {{question}}
|
|
21
|
+
|
|
22
|
+
Summarize at most {{#if limit}}{{limit}}{{else}}3{{/if}} relevant sessions.{{#if days}} Only look at the last {{days}} days.{{/if}}
|
|
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).
|
|
31
|
+
|
|
32
|
+
Return the results in this format:
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
Overview: One short paragraph summarizing what past sessions say about the topic.
|
|
36
|
+
|
|
37
|
+
Sessions:
|
|
38
|
+
- title or session id
|
|
39
|
+
- When: relative or absolute time if clear
|
|
40
|
+
- What happened: the key actions, findings, or decisions
|
|
41
|
+
- Useful details: commands, files, errors, URLs, or constraints worth remembering
|
|
42
|
+
|
|
43
|
+
Gaps:
|
|
44
|
+
- Anything unclear, conflicting, or still unresolved.
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
If there are no matches after all attempts, say that no relevant past sessions were found.
|
|
48
|
+
|
|
49
|
+
Do not include explanations beyond the result format. Keep responses concise and structured.
|
|
@@ -0,0 +1,46 @@
|
|
|
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 work just completed with fresh eyes.
|
|
14
|
+
|
|
15
|
+
{{#if focus}}Prioritize this angle: {{focus}}.{{/if}}
|
|
16
|
+
|
|
17
|
+
Do not modify any files. Read the changed files to verify the claims made. Do not assume what was described is what was really written.
|
|
18
|
+
|
|
19
|
+
Check for:
|
|
20
|
+
- Correctness bugs, unhandled edge cases, missing validation
|
|
21
|
+
- Inconsistency with surrounding code style
|
|
22
|
+
- Unclear naming or logic that will confuse later readers
|
|
23
|
+
- Over-engineering or unneeded complexity
|
|
24
|
+
- Gaps between what was requested and what was delivered
|
|
25
|
+
|
|
26
|
+
Return the results in this format:
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
Verdict: ship / fix blockers / rethink
|
|
30
|
+
|
|
31
|
+
Blockers:
|
|
32
|
+
- Issue that would cause real problems. Cite file:line.
|
|
33
|
+
|
|
34
|
+
Important:
|
|
35
|
+
- Worth addressing before shipping. Cite file:line.
|
|
36
|
+
|
|
37
|
+
Nits:
|
|
38
|
+
- Style or polish. Safe to skip.
|
|
39
|
+
|
|
40
|
+
Missed:
|
|
41
|
+
- Anything the work should have covered but did not.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
If nothing needs changing, say so plainly. Do not invent problems.
|
|
45
|
+
|
|
46
|
+
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:
|
|
Binary file
|
|
Binary file
|