Dashboard › opencode-lore › OpenCode skill, configuration, project-…
01a0a72b-12aa-7eb9-bf74-fdff6c7b1667| Project | Hits | Last recalled |
|---|---|---|
| cli | 2 | 8d ago |
OpenCode skill names must match folder names, use lowercase hyphenated text, and be at most 64 characters. Each skill needs a trigger-focused third-person description; use Use ONLY when... to avoid adjacent activation. In opencode.json, model names include the provider prefix, and each MCP requires type plus a string-array command. Store each project's path and Git remote together in a map keyed by project ID; separate globals cause cross-project races. Prefer request-specific chat.headers; use currentProject only when the fetch interceptor lacks a session ID. Bound SSE events and bytes per subscriber while preserving order and terminal events; allow one active stream per reconnecting TUI. On disconnect, cancellation, overflow, or failure, release responses, listeners, queues, and retained payloads. Unbounded cloned payloads can exhaust V8. For high RSS or CPU, or empty 502s, inspect Mark-Compact logs and heap_used_bytes; repeated GC near V8's ceiling indicates JavaScript retention. Capture heap snapshot before assigning ownership.