How I Set Up OpenCode: A Real Agent OS (Config, Skills, MCPs, Memory) A developer published a detailed account of configuring OpenCode into what they call an "agent OS," built from a single config file, 40+ subagents, 123 skills, 20 slash commands, and 8 MCP servers. The setup adds a two-layer plain-file memory pipeline (global and project-scoped) that persists state across context compaction, plus a learning file tracking patterns with evidence and confidence scores. All components are stored as plain files rather than a database or proprietary format, so the conventions work with any tool that can read a file. You have inherited a repository. At a glance: 1 config file · 40+ subagents · 123 skills · 20 commands · 8 MCP servers · 2 memory layers. OpenCode becomes a real agent OS once you wire config, subagents, skills, MCP servers, commands, and a plain-file memory pipeline together. This post is my actual setup, so you can copy the shape rather than guess it. Everything is a plain file: no database, no proprietary format, no vendor lock-in. The interesting part isn't the component count. It's the decisions behind them: what should be reusable, what should be persistent, where responsibilities should live, how much autonomy to allow, and how to keep the whole thing understandable as it grows. Out of the box, an AI coding tool is a chat window. It forgets your conventions between sessions, has no idea which model is cheap enough for bulk work, and re-learns your repo every morning. I wanted an agent OS: config that loads my rules into every tool, a roster of cheap and quality subagents, installed skills with real workflows, MCP servers for docs/search/filesystem, and a memory pipeline that survives compaction. Two constraints shaped everything: A fully configured OpenCode environment. It includes one config file model, instructions, plugins, MCP servers, formatter, LSP, permissions , 40+ subagents, 123 skills under the agents skills directory, and 20 commands. There is also a two-layer plain-file memory pipeline global + project with compaction duty, plus a separate learning file that tracks patterns with evidence and confidence scores. Stack: OpenCode, superpowers plugin, a learning-memory plugin, MCP web research, data extraction, neural search, docs lookup, filesystem, fetch, memory, sequential thinking , and a CLI config for the terminal interface. php flowchart TB OC "OpenCode" -- CFG "config file" CFG -- INS "instructions: