{
 "schema_version": 1,
 "generated": "2026-10-20",
 "id": "anomalyco-opencode--explore-unfamiliar-codebase-read-only",
 "repo": "anomalyco/opencode",
 "repo_url": "https://github.com/anomalyco/opencode",
 "repo_slug": "anomalyco-opencode",
 "title": "Explore an unfamiliar codebase without risking edits",
 "page_title": "How to explore an unfamiliar codebase without risking edits with Opencode",
 "summary": "Use the read-only plan agent to map a new repo and plan changes before touching any files.",
 "who": "A developer who just joined a project or inherited a repo and needs to understand it before changing anything.",
 "problem": "Pointing a coding agent at unknown code is risky when it can edit files or run commands right away.",
 "outcome": "A written summary of how the codebase is structured and a short change plan, with no files edited.",
 "steps": [
  "Run `npm i -g @opencode/cli@latest` (or use `brew install anomalyco/tap/opencode-v2` on macOS and Linux).",
  "Change into the project folder and start OpenCode with `opencode`. (inferred, check the README)",
  "Press the `Tab` key until the plan agent is selected.",
  "Ask it to map the main modules, entry points, and how the tests are run.",
  "Ask for a step-by-step plan for your change and review it before switching to the build agent."
 ],
 "agent_prompt": "Using the OpenCode repo at anomalyco/opencode, start the plan agent in <project-path> and ask it to summarize the code structure and list the files that would need changes for <task>. Expected output: a structured summary plus a numbered change plan. Verify that no files were edited, since the plan agent denies file edits by default.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README names the plan and build agents but does not say which models or providers they use, so check Opencode.ai/docs before relying on a specific setup.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "typescript",
 "requirements": [
  "A terminal on macOS, Linux, or Windows, or the desktop app installer for your platform",
  "One package manager available: npm, bun, pnpm, yarn, or brew",
  "A local project folder you want the agent to work in",
  "Configuration for OpenCode as described in the docs at opencode.ai/docs (the README only links to them)"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "Any model or provider credentials you configure for OpenCode are used by the agent, so keep them out of shared project files."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anomalyco-opencode/explore-unfamiliar-codebase-read-only/",
 "md": "https://dedupedai.com/use-cases/anomalyco-opencode/explore-unfamiliar-codebase-read-only/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anomalyco-opencode--explore-unfamiliar-codebase-read-only.json",
 "api_version": "v1"
}
