Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/znlgis/opengis-skillsnpx agentmods add skills/znlgis/opengis-skills/my-opencode-deepseek-configWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/znlgis/opengis-skills/my-opencode-deepseek-config)<a href="https://agentmods.dev/skills/znlgis/opengis-skills/my-opencode-deepseek-config"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/my-opencode-deepseek-config/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/my-opencode-deepseek-config"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/my-opencode-deepseek-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00115 | $0.06468 |
| Opus 5.5 | $0.00046 | $0.02587 |
| Sonnet 5.5 | $0.00023 | $0.01294 |
| Haiku 4.5 | $0.00012 | $0.00647 |
Grade A, and why
my-opencode-deepseek-config scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 19d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 330 lines — stays where its author put it; the contents beside it link to each section on GitHub.
项目地址: https://github.com/znlgis/my-opencode-deepseek-config
最新版本: v5.0.0(仓库最新 tag,截至 2026-11,Releases)| 代码基线:
main(截至 2026-11,v5.0.0 之后新增#maxthinking 档并重平衡 Agent 档位,见 commitfeat(config): add max thinking tier, rebalance agent tiers)许可证: MIT
文档: https://github.com/znlgis/my-opencode-deepseek-config/blob/main/README.md(中英双语)
前置条件: OpenCode v2(npm
@opencode/cli最新 2.2.7,截至 2026-11;以本机opencode --version为准;1.18.x 及更早不再支持)、DeepSeek API Key(https://platform.deepseek.com/api_keys)
概述
在 OpenCode v2 多 Agent 框架下,只用 deepseek/deepseek-flash 一个模型、用 thinking 档位区分 Agent 分工的纯配置方案——零额外依赖,能力全部由 opencode.jsonc + agents/*.md + skills/*/SKILL.md + AGENTS.md 实现。核心理念:Token 效率优先,用最小的上下文成本达到最好的开发效果。
- 默认主 Agent
orchestrator(意图门控 + 路由 + 后备链);第二 primarysolo(单模型内联执行、零委派) - 单模型四档:
deepseek/deepseek-flash(thinking 关 +temperature: 0)、#low、#high、#max,四档同价,差别只在 reasoning token 数量 - 12 个 Agent、23 个技能、18 个 slash 命令;
experimental.subagent_depth: 2;share: "disabled" - 权限基线:
read放行、shell默认ask、.env类deny、外部目录ask - 上下文压缩只用内置 compaction:
limit.input显式声明工作窗口,触发点 =limit.input − compaction.buffer - 唯一插件 superpowers(git URL 固定 tag
#v7.0.2),纯 skill 注入,不提供模型映射
安装部署
# 1. 克隆
git clone https://github.com/znlgis/my-opencode-deepseek-config.git
# 2. 指向仓库内的 opencode/ 配置目录(当前会话生效)
$env:OPENCODE_CONFIG_DIR = "D:\path\to\my-opencode-deepseek-config\opencode"
# 3. API Key(也可启动后在 TUI 里 /connect)
$env:DEEPSEEK_API_KEY = "sk-your-key-here"
# 4. 启动
opencode
永久生效(Windows):
[Environment]::SetEnvironmentVariable("OPENCODE_CONFIG_DIR", "D:\path\to\my-opencode-deepseek-config\opencode", "User")
Linux / macOS:把 export OPENCODE_CONFIG_DIR="$HOME/path/to/my-opencode-deepseek-config/opencode" 追加到 ~/.bashrc 或 ~/.zshrc。
替代方案是把 opencode/ 软链到全局配置路径(Windows 需管理员;Linux/macOS 用 ln -s)。
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 19d ago Changed · +4 lines · +2 tokens per session 6bfebe956e10
- 21d ago Changed · -3 lines 284175a07313
- 1mo ago Changed · +131 lines · +20 tokens per session 799f67e7070b
- 1mo ago Changed · +11 lines · +1 tokens per session 23a4db7c2d93
- 1mo ago Changed · +40 lines 0522f3c01eea
- 2mo ago Changed 9bc6ca0a2b51
- 2mo ago Changed · +1 lines 25f896fdaf04
- 2mo ago First seen · 146 lines · 92 tokens per session scan A 451bbdf1019a
my-opencode-deepseek-config is a skill published in the GitHub repository znlgis/opengis-skills (87 stars, last pushed 20d ago), licensed MIT. It adds 115 tokens to every session and 6,468 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-10.
my-opencode-deepseek-config compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| my-opencode-deepseek-configznlgis/opengis-skills | Skill | 87 | 20d ago | MIT | A | 115 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 101k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 395k | today | MIT | A | 36 | Claude Code |
| systematic-debuggingobra/superpowers | Skill | 331k | 3d ago | MIT | A | 21 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |