# OpenCode Everything You Need to Know — .gitignore # We intentionally COMMIT the example .opencode/agents/, /commands/, and /skills/ # so readers can see a real configured project. Only user-specific runtime state # under .opencode/ is ignored. # ==================== SYSTEM FILES ==================== .DS_Store .DS_Store? ._* .Spotlight-V100 .Trashes .AppleDouble .LSOverride Thumbs.db ehthumbs.db Desktop.ini $RECYCLE.BIN/ *~ *.swp *.swo # ==================== EDITOR / IDE ==================== .vscode/ !.vscode/settings.json !.vscode/tasks.json !.vscode/launch.json !.vscode/extensions.json *.code-workspace .idea/ *.iml *.iws *.ipr .project .classpath .settings/ # ==================== OPENCODE RUNTIME (user-specific) ==================== # These are local to each user's machine — never commit. .opencode/node_modules/ .opencode/cache/ .opencode/logs/ .opencode/sessions/ .opencode/state.json .opencode/config.local.json .opencode/audit.jsonl .opencode/.gitignore # Plugin-dev scratch files (kept out of the example showcase) .opencode/package.json .opencode/bun.lock # NOTE: agents/, commands/, skills/, plugins/, themes/ subfolders ARE committed — # they're the worked example we want readers to see. # ==================== DEPENDENCIES ==================== node_modules/ npm-debug.log* yarn-debug.log* yarn-error.log* package-lock.json yarn.lock bun.lock # ==================== BUILD OUTPUTS ==================== dist/ build/ .out/ .next/ .nuxt/ docs/_build/ docs/_site/ docs/_out/ # ==================== ENVIRONMENT ==================== .env .env.local .env.development.local .env.test.local .env.production.local .env.*.local # ==================== TEMPORARY ==================== tmp/ temp/ *.tmp *.temp *.bak *.backup *.old # ==================== LOGS ==================== *.log logs/ # ==================== COVERAGE ==================== coverage/ .nyc_output *.lcov # ==================== OS-SPECIFIC ==================== Network Trash Folder Temporary Items .apdisk # ==================== PROJECT-SPECIFIC ==================== examples/*/node_modules examples/*/package-lock.json examples/*/yarn.lock examples/*/bun.lock plugins/*/node_modules plugins/*/dist plugins/*/build mcp-servers/*/node_modules mcp-servers/*/dist mcp-servers/*/build Images/thumbnails/ *.tsbuildinfo