{"_id":"@agent-friction/opencode","name":"@agent-friction/opencode","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@agent-friction/opencode","version":"0.0.1","description":"The agent-friction plugin for opencode: records the permission prompts you answer and the tool calls that fail.","license":"Apache-2.0","repository":{"type":"git","url":"git+https://github.com/agent-friction/agent-friction.git"},"type":"module","main":"./dist/plugin.js","types":"./dist/plugin.d.ts","exports":{".":{"types":"./dist/plugin.d.ts","default":"./dist/plugin.js"}},"scripts":{"build":"bun run build:js && bun run build:types","build:js":"bun build ./src/plugin.ts --outdir dist --target node --external @agent-friction/cli","build:types":"tsc -p tsconfig.build.json","typecheck":"tsc --noEmit","prepublishOnly":"bun run build"},"dependencies":{"@agent-friction/cli":"0.0.1"},"peerDependencies":{"@opencode-ai/plugin":">=1.18.18","@opencode-ai/sdk":">=1.18.18","typescript":"^5"},"devDependencies":{"@opencode-ai/plugin":"^1.18.18","@opencode-ai/sdk":"^1.18.18","@types/bun":"latest"},"_id":"@agent-friction/opencode@0.0.1","gitHead":"200a5481a58f0a16558ca329389eb72120dc54ca","bugs":{"url":"https://github.com/agent-friction/agent-friction/issues"},"homepage":"https://github.com/agent-friction/agent-friction#readme","_nodeVersion":"22.16.0","_npmVersion":"10.9.2","dist":{"integrity":"sha512-9wHmmo4bLSpIHCc21FFbv6rKt0KMUF5Qm7J5tvqxDNwgo84gHjsoDDNiHbESOfOVE1Ka5LrPlJUWsYCjkAAQBA==","shasum":"53c85c7a153d6354a32075d5a3dcfecf7d21c853","tarball":"https://registry.npmjs.org/@agent-friction/opencode/-/opencode-0.0.1.tgz","fileCount":4,"unpackedSize":6292,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCOAqOFrbFdhyJWm86qew6SL0gS2wenilJ1/2ehIwqfcgIhAOBc+2HtsVYccRbSMJm4w/OHx4An3laDqXq3Ad9RXsV6"}]},"_npmUser":{"name":"cali0707","email":"calumramurray+npm@gmail.com"},"directories":{},"maintainers":[{"name":"cali0707","email":"calumramurray+npm@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode_0.0.1_1787002748622_0.6944785179918751"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-17T21:39:08.498Z","0.0.1":"2026-08-17T21:39:08.739Z","modified":"2026-08-17T21:39:09.008Z"},"maintainers":[{"name":"cali0707","email":"calumramurray+npm@gmail.com"}],"description":"The agent-friction plugin for opencode: records the permission prompts you answer and the tool calls that fail.","homepage":"https://github.com/agent-friction/agent-friction#readme","repository":{"type":"git","url":"git+https://github.com/agent-friction/agent-friction.git"},"bugs":{"url":"https://github.com/agent-friction/agent-friction/issues"},"license":"Apache-2.0","readme":"# @agent-friction/opencode\n\nThe [agent-friction](https://github.com/agent-friction/agent-friction) plugin for\nopencode.\n\nRecords where an agent gets stuck — the permission prompts you answer and the\ntool calls that fail — so friction can be measured instead of guessed at.\n\n## Install\n\n```sh\nopencode plugin @agent-friction/opencode\n```\n\nThat installs the plugin and adds it to your config. Pass `-g` to install into\nyour global config instead of the current project:\n\n```sh\nopencode plugin -g @agent-friction/opencode\n```\n\n`@agent-friction/cli` comes with it, which brings the binary for your platform\nand puts the `agent-friction` command on your path.\n\n## What it does\n\nEvery permission prompt you answer is recorded against the tool and pattern it\nwas asked for, along with your decision. Every failed tool call is recorded with\nits error and input.\n\nOver time that builds a picture of which permission rules you approve so\nroutinely that they are worth allow-listing outright, and which tools fail often\nenough to be worth fixing. Ask it with:\n\n```sh\nagent-friction analyze\n```\n\nRecording is best-effort and never throws, so it cannot break a session.\n","readmeFilename":"README.md","_rev":"1-66df8908359caa20affc4787ee7b2203"}