Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add znlgis/my-opencode-deepseek-config --skill opencode-configgit clone --depth 1 https://github.com/znlgis/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/my-opencode-deepseek-config/opencode-config)<a href="https://agentmods.dev/skills/znlgis/my-opencode-deepseek-config/opencode-config"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/opencode-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/my-opencode-deepseek-config/opencode-config"><img src="https://agentmods.dev/badge/skills/znlgis/my-opencode-deepseek-config/opencode-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.00080 | $0.04727 |
| Opus 5.5 | $0.00032 | $0.01891 |
| Sonnet 5.5 | $0.00016 | $0.00945 |
| Haiku 4.5 | $0.00008 | $0.00473 |
Grade E, and why
opencode-config scanned grade E with 2 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 yesterday.
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.
Reaches for credential fileshighPrivilege escalation
SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.
- `deny` `.env*` reads (except `.env.example`); deny private keys and credential files (`*.pem`, `*.key`, `*.p12`, `*.pfx`, `id_*`, `.ssh/id_*`, `*.npmrc`, `*.pypirc`, `*.git-credentials`, `*.netrc`); `ask` on destructiv Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
- `deny` `.env*` reads (except `.env.example`); deny private keys and credential files (`*.pem`, `*.key`, `*.p12`, `*.pfx`, `id_*`, `.ssh/id_*`, `*.npmrc`, `*.pypirc`, `*.git-credentials`, `*.netrc`); `ask` on destructiv How it starts
The opening of the file, as written. The whole thing — 178 lines — stays where its author put it; the contents beside it link to each section on GitHub.
OpenCode Config Authoring (v2)
For the authoritative v2 shapes, read the schema in the local docs repo rather
than reconstructing them from memory — packages/schema/src/config*.ts is the
loader's own contract:
C:\Users\Administrator\.local\share\opencode\repos\github.com\anomalyco\opencode@dev.
This file only covers this repository's local conventions plus the traps already
paid for.
Repository layout
| Path | Role |
|---|---|
opencode.jsonc |
Global config: model, permissions, plugins, agents, commands, compaction |
AGENTS.md |
Global rules auto-loaded into every agent's context |
agents/<name>.md |
One custom agent per file (frontmatter + system prompt) |
skills/<name>/SKILL.md |
On-demand skills, auto-discovered from the config dir |
Hard constraints
- Only the natively multimodal
deepseek/deepseek-flash, with its thinking variants#low/#high/#max. Never another model; the one model handles both text and visual input. A variant (deepseek/deepseek-flash#low) is a thinking mode of the allowed model, not another model. - v2-only, native keys. This repo targets OpenCode v2 (the desktop app's bundled
opencode-cli.exe, desktop 2.4.4 measured on 2026-12-04). OpenCode 1.18.x is not supported. Write the v2-native spellings —plugins,providers,agents,commands,permissions,media— never the v1 spellings (plugin,provider,agent,command,permission,attachment,small_model,autoupdate, top-levelsubagent_depth). - The
opencodeonPATHis the wrong binary. Measured 2026-10-16, re-measured 2026-12-04: WinGet ships 1.18.4 there, while the runtime in use is the desktop app's 2.4.4 (2026-12-04). Always invoke"$env:LOCALAPPDATA\Programs\@opencode-aidesktop\resources\opencode-cli.exe";opencode --version→1.18.4means you are about to test the wrong thing.
Target runtime: desktop v2 (CLI 2.4.4)
2.4.3/2.4.4 added no static config keys: permission.ts is unchanged; config.ts only gained Config.Patch's agents.title.model (a patch API shape, not a config key); normalize.ts refactored formatter/lsp normalization and added the MCP OAuth camelCase migration, with unsupportedTopLevel and the legacy branches unchanged. provider.ts raised the DeepSeek/Gemini default headerTimeout to 10 minutes; variant.ts/aisdk.ts/openai-chat.ts are stream/protocol refactors and still carry settings.reasoningEffort → reasoning_effort and body.thinking. 2.4.3 added optional agent name (ID override); 2.4.4 added the experimental.tool.auto / experimental.permission.save policy actions (not used here) and removed the recommended_api flag. (Compared tag-by-tag on 2026-12-04.)
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.
- yesterday Changed · +4 lines scan C → E ce818b2a1049
- 6d ago Changed · +3 lines 146a04b29c2b
- 12d ago Changed · +3 lines 3459dd880113
- 17d ago Changed 238d404fea33
- 22d ago Changed 66b69e7d492e
- 26d ago Changed 9fec8a608221
- 1mo ago Changed · -7 lines 21a80b069068
- 1mo ago Changed · +7 lines bbccbc124c0a
- 1mo ago Changed a49827950c35
- 1mo ago First seen · 168 lines · 80 tokens per session scan C c018b30a852d
opencode-config is a skill published in the GitHub repository znlgis/my-opencode-deepseek-config (66 stars, last pushed yesterday), licensed MIT. It adds 80 tokens to every session and 4,727 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it E with 2 findings (reaches for credential files, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
opencode-config compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| opencode-configznlgis/my-opencode-deepseek-config | Skill | 66 | yesterday | MIT | E | 80 | Claude Code, Codex |
| orca-emulator-androidstablyai/orca | Skill | 159k | today | MIT | A | 102 | Claude Code, Codex |
| skill-creatorzhayujie/CowAgent | Skill | 48k | today | MIT | A | 61 | Claude Code, Codex |
| ralplanYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 21 | Claude Code |
| create-verification-skillYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 45 | Claude Code |
| rememberYeachan-Heo/oh-my-claudecode | Skill | 41k | yesterday | MIT | A | 20 | Claude Code |
| python-engineering-guidelinesanywhere-labs/Agents-Anywhere | Skill | 4.0k | today | Apache-2.0 | A | 75 | Codex |