yesmem-config
Skill42 starsChanged 8 months agoApache-2.0View on GitHub
Use when managing pins, scratchpad, runtime config, session settings, persona traits, or opencode configuration. Trigger on "pin this"/"merk dir als Regel", persistent instructions, shared agent state, persona overrides, configuration changes like token_threshold, or opencode.json questions ("change opencode model", "add GLM provider", "opencode baseURL", "switch default model").
In this repository9 other files it gives its agents.
- redditSkill
- risk-based-code-reviewSkill
- security-reviewSkill
- subagent-driven-developmentSkill
- yesloopSkill
- yesmem-agentsSkill
- yesmem-cap-builderSkill
- yesmem-rememberSkill
- yesresearchSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 99
All providers route through the YesMem proxy at http://localhost:9099/v1.
- Very specific: line 116
After editing, ask the user to restart opencode (or run /mcp reconnect in opencode TUI).
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Configuration & State
Manage pins, scratchpad, persona, runtime settings, and opencode configuration.
Pins (Persistent Instructions)
Instructions visible in EVERY turn — survive collapse and stubbing.
| Action | Tool |
| Pin instruction | pin(content, scope="session|permanent") |
| Remove pin | unpin(id, scope) |
| List pins | get_pins(project) |
sessionpins last until /clearpermanentpins survive across sessions
Scratchpad (Shared State)
Key-value sections for inter-agent or cross-session data.
| Action | Tool |
| Write section | scratchpad_write(project, section, content) |
| Read section(s) | scratchpad_read(project, section) |
| List sections | scratchpad_list(project) |
| Delete | scratchpad_delete(project, section) |
Runtime Config
| Action | Tool |
| Read setting | get_config(key) |
| Change setting | set_config(key, value) |
Currently supported: token_threshold (per-session or global).
Persona
| Action | Tool |
| Set trait | set_persona(trait_key, value) — user override, highest priority |
Dimensions: communication, workflow, expertise, context, boundaries, learning_style.
Session Control
| Action | Tool |
| Skip indexing | skip_indexing(session_id) — session won't be extracted |
| Quarantine session | quarantine_session(session_id) — exclude all learnings |
| Who am I? | whoami() — get session ID and agent metadata |
Opencode Configuration Helper
opencode.json lives at ~/.config/opencode/opencode.json and controls opencode's default model, provider routing, and MCP wiring. The YesMem setup wizard writes defaults there on install but does NOT overwrite existing scalar values — so users who want to change model, small_model, or specific baseURL entries must edit the file manually or ask an agent to do it.
Top-level keys you can change
| Key | Type | Example | What it controls |
model | string (scalar) | "deepseek/deepseek-reasoner" or "zai-coding-plan/glm-5.2" | Default model for opencode prompts |
small_model | string (scalar) | "deepseek/deepseek-chat" | Lighter model for summaries, tool-choice, etc. |
provider | map | see below | Per-provider baseURL + models |
mcp.yesmem | map | see below | YesMem MCP integration |
compaction.auto | bool | false | opencode's own compaction (disabled by YesMem, proxy pipeline handles it) |
Common change requests
Switch default model (e.g. user asks "use GLM-5.2 instead of DeepSeek"):
{
"model": "zai-coding-plan/glm-5.2",
"small_model": "zai-coding-plan/glm-5.2"
}Add a provider (e.g. add zai-coding-plan for GLM-5.2):
"provider": {
"zai-coding-plan": {
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://localhost:9099/v1"
},
"models": {
"glm-5.2": {
"name": "GLM-5.2 Coding Plan",
"limit": {"context": 1000000, "output": 131072}
}
}
}
}All providers route through the YesMem proxy at http://localhost:9099/v1. The proxy forwards to the upstream API using keys from ~/.local/share/opencode/auth.json (per-provider key field).
Change DeepSeek to direct (bypass proxy) — only for debugging:
"provider": {
"deepseek": {
"options": {
"baseURL": "https://api.deepseek.com/v1"
}
}
}Without proxy routing, YesMem loses briefing/telemetry/compaction for that provider.
Validating changes
After editing, ask the user to restart opencode (or run /mcp reconnect in opencode TUI). If MCP fails, check:
mcp.yesmem.commandpoints to a valid yesmem binary pathmcp.yesmem.timeoutis 60000 or higher (default opencode 10s is too short for deep_search/embedding calls)mcp.yesmem.enabledistrue
Default vs user state
The setup wizard's defaultOpencodeSettings() in internal/setup/opencode_settings.go writes these defaults:
model: derived from user's chosen provider (viaderivePrimaryAndSmallModel)small_model: derived likewiseprovider.deepseek: baseURL localhost:9099 + 2 models (deepseek-chat as Flash, deepseek-reasoner as Pro)provider.openai: baseURL localhost:9099 + gpt-5.5provider.anthropic: baseURL localhost:9099 only (first-party, no models block)mcp.yesmem: local type, command [yesmem-binary, "mcp"], 60000 timeoutcompaction:{auto: false, prune: false}
These are merged via deepMergeJSON which does NOT overwrite existing scalars. So if the user already has model: deepseek/deepseek-reasoner and re-runs setup choosing GLM-5.2, the old DeepSeek value stays — they must edit the file.
When to recommend re-running setup
- User wants all provider baseURLs reset to proxy defaults
- User wants MCP timeout upgraded to 60000 (only applied via setup, not runtime)
- User wants compaction.auto set to false (only applied via setup)
- Fresh installation on a new machine
For pure model or single-provider changes, edit opencode.json directly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

