{
  "slug": "opencode",
  "name": "OpenCode",
  "repo": "https://github.com/anomalyco/opencode",
  "license": "MIT",
  "stack": "TypeScript/Bun workspace; inspected package version 2.0.26 and package manager bun@1.4.2.",
  "fit": "Consider it for coding workflows where you can inspect the active agent, session rules, and saved approvals.",
  "review": "Review persisted approvals and plugins as well as the selected agent. Do not infer effective permissions from an agent name or a single default.",
  "findings": [
    {
      "label": "Permission evaluation",
      "observation": "The evaluator uses the last matching rule and falls back to ask when no rule matches. The service also combines agent/session rules and saved project approvals.",
      "path": "packages/core/src/permission.ts",
      "line": 84,
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/permission.ts#L84"
    },
    {
      "label": "External file boundary",
      "observation": "The file-access interface distinguishes external-directory authorization from reading a file and requests the external boundary before read authorization.",
      "path": "packages/core/src/file-access.ts",
      "line": 24,
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/file-access.ts#L24"
    },
    {
      "label": "Agent-specific rules",
      "observation": "The built-in Explore agent has explicit tool permissions, including shell and external-directory rules. These differ from a blanket no-tools configuration.",
      "path": "packages/core/src/plugin/agent.ts",
      "line": 96,
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/plugin/agent.ts#L96"
    }
  ],
  "manifest": "package.json",
  "commit": "d21b0790a6c146815f28fea604e41e922f009590",
  "checkedAt": "2026-10-11",
  "dataBoundary": "Network destinations and retained data depend on the configured providers, tools, and extensions. A complete network or storage trace was not performed for this source review.",
  "costBoundary": "The source license does not include model usage, hosting, storage, or operational work. No new paid execution or total-cost measurement was performed for this review.",
  "rea": {
    "version": "6.4.0",
    "command": "import-reference-source . --format json",
    "schema": "HistoricalSourceGraph",
    "authority": "historical-reference",
    "inventoryState": "partial",
    "rootSha256": "fc1a0d6f1f3797e2abb5a8c1a46d4ddabb3f837f880477c365ff4b3d434048ac",
    "entries": 9802,
    "relationships": 27581,
    "parseFailures": 0,
    "exclusions": 4,
    "limitations": [
      "Path identity is revalidated around operations; Node lacks portable descriptor-relative openat traversal, so a syscall-boundary pathname race remains."
    ],
    "rawGraphSha256": "4880fc5f0a07ed3752e552debd3977bc1b3687ad312500fd6bd48441bc2f5d24"
  },
  "files": [
    {
      "path": "LICENSE",
      "sha256": "625f0f619133f89bbbb2abe37369613dfa1885eba1e50d02170deb62bb42cb6b",
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/LICENSE"
    },
    {
      "path": "package.json",
      "sha256": "09ab22d46509f617157a1573a59d9a5868aa6d8f5556d758ee5415d8c5679abd",
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/package.json"
    },
    {
      "path": "packages/core/src/permission.ts",
      "sha256": "d69278896f9a541dac7cf46056c859834d840ecc16ac57a639cbabc1afdda9a5",
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/permission.ts"
    },
    {
      "path": "packages/core/src/file-access.ts",
      "sha256": "811ceafb0f9b2f89c169a5d1c1158311cfaca1e9ccb2c5140b486ddf6ba103e9",
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/file-access.ts"
    },
    {
      "path": "packages/core/src/plugin/agent.ts",
      "sha256": "9e9cc7546a5a13b1e4655cfc14da2d96280be555e2c322f6b024ff93539ffa45",
      "url": "https://github.com/anomalyco/opencode/blob/d21b0790a6c146815f28fea604e41e922f009590/packages/core/src/plugin/agent.ts"
    }
  ]
}
