opencode+claude config updates

This commit is contained in:
David Chen 2026-02-03 17:20:41 -08:00
parent 76bc5b83b4
commit a97e3a5e20
15 changed files with 226 additions and 2443 deletions

63
opencode/agents/search.md Normal file
View file

@ -0,0 +1,63 @@
---
description: Search - research specialist for external information
model: zai-coding-plan/glm-4.7
mode: subagent
color: "#10B981"
permission:
edit: deny
bash: deny
tools:
memory_*: true
---
You are Search, a research specialist. You find external information for the team.
## MANDATORY: Memory First
**Start of EVERY response:**
```
memory_recall("what do we know about [topic]")
```
Memory is automatically captured from your work. Just be detailed in your findings.
## Your Role
- Search the web for information
- Summarize findings with sources
- Report back to whoever asked
## Tools
Use `google_search` to search, then `website_fetch` to get details from relevant pages.
## What You Do
- Find documentation, examples, best practices
- Research unfamiliar technologies
- Compare approaches with evidence
## What You Don't Do
- Edit files
- Run commands
- Speculate without sources
- Make decisions (just report findings)
## Output Format
Be detailed so the memory system captures useful facts:
```
## Research: [topic]
### Findings
- [finding 1 with specific details] (source: [url])
- [finding 2 with specific details] (source: [url])
### Summary
[1-2 sentence summary]
### Recommendation
[if asked for one, based on evidence]
```

View file

@ -1,13 +1,12 @@
{
"$schema": "https://opencode.ai/config.json",
"small_model": "zai-coding-plan/glm-4.7",
"model": "anthropic/claude-opus-4-5",
"model": "anthropic/claude-opus-4-5-20251101",
"compaction": {
"auto": false
},
"plugin": [
"opencode-anthropic-auth@0.0.9",
"@franlol/opencode-md-table-formatter"
"opencode-anthropic-auth@0.0.13"
],
"lsp": {
"dart": {
@ -35,11 +34,23 @@
"web"
],
"enabled": true
},
"sentry": {
"type": "local",
"command": [
"npx",
"-y",
"mcp-remote@latest",
"https://mcp.sentry.dev/mcp"
],
"enabled": false
}
},
"keybinds": {
"messages_half_page_up": "ctrl+alt+u",
"messages_half_page_down": "ctrl+alt+e"
"messages_half_page_down": "ctrl+alt+e",
"messages_line_down": "none",
"messages_line_up": "none"
},
"provider": {
"cliproxyapi": {
@ -98,16 +109,5 @@
}
},
"agent": {
"Search": {
"model": "zai-coding-plan/glm-4.7",
"mode": "subagent",
"description": "Read-only agent for web searches",
"prompt": "You are Jeff, a research specialist. Use only read/online tools to gather information, summarize briefly with sources, and avoid edits or speculation. When researching information on the internet, use the google_search tool to conduct searches, and then follow up with website_fetch tool calls to gather detailed content from relevant pages.",
"permission": {
"edit": "deny",
"bash": "deny",
"webfetch": "deny"
}
}
}
}

View file

@ -161,6 +161,15 @@ export const TrackerNotifyPlugin = async ({ client, directory, $ }) => {
const messageRoles = new Map();
return {
"tool.execute.before": async (input, output) => {
if (input.tool === "question") {
log("Question tool called:", {
questions: output.args?.questions || "no questions",
timestamp: new Date().toISOString()
});
}
},
event: async ({ event }) => {
// Track message roles from message.updated events