{"_id":"@anthonyfangqing/opencode-special-edition","_rev":"2-dda92ac89b0e3a05b71d1a791a330ce3","name":"@anthonyfangqing/opencode-special-edition","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@anthonyfangqing/opencode-special-edition","version":"1.0.0","keywords":["opencode","opencode-plugin","prompt","llm"],"license":"MIT","_id":"@anthonyfangqing/opencode-special-edition@1.0.0","maintainers":[{"name":"anthony-fangqing-yu","email":"anthony.fangqing@gmail.com"}],"homepage":"https://github.com/AnthonyFangqing/opencode-special-edition#readme","bugs":{"url":"https://github.com/AnthonyFangqing/opencode-special-edition/issues"},"dist":{"shasum":"ed51df1c67af1a8cc1a2c93210c63b21148d0597","tarball":"https://registry.npmjs.org/@anthonyfangqing/opencode-special-edition/-/opencode-special-edition-1.0.0.tgz","fileCount":21,"integrity":"sha512-OTeLud+uN7WwMizXiKiEXf2WCtsEoVwUR1Uyf70mb87R+fer50amcptjpAxbVkzhwgcBucSeoEYl+VDDavWqzw==","signatures":[{"sig":"MEQCICpuILmDA/BciyJRW6mVtB7G7PHkpMmjphEDn6IZiqa4AiBIitOmdwTkAoikhZ9fwejuqvB1i13fB1IyEBm+ZXRFpg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13855},"main":"./index.ts","type":"module","types":"./index.ts","$schema":"https://json.schemastore.org/package.json","engines":{"node":">=18"},"exports":{".":{"types":"./index.ts","default":"./index.ts"}},"gitHead":"20650903474ac1c78a941704aa7b3ac90f863152","_npmUser":{"name":"anthony-fangqing-yu","email":"anthony.fangqing@gmail.com"},"repository":{"url":"git+https://github.com/AnthonyFangqing/opencode-special-edition.git","type":"git"},"_npmVersion":"11.12.1","description":"OpenCode plugin that replaces the default system prompt and built-in tool descriptions with shorter alternatives to reduce prompt size.","directories":{},"_nodeVersion":"24.15.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"@opencode-ai/plugin":"^1.14.20"},"peerDependencies":{"@opencode-ai/plugin":">=1.0.0"},"peerDependenciesMeta":{"@opencode-ai/plugin":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/opencode-special-edition_1.0.0_1776814323886_0.16171939343464747","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"$schema":"https://json.schemastore.org/package.json","name":"@anthonyfangqing/opencode-special-edition","version":"1.0.1","description":"OpenCode plugin that replaces the default system prompt and built-in tool descriptions with shorter alternatives to reduce prompt size.","type":"module","license":"MIT","keywords":["opencode","opencode-plugin","prompt","llm"],"repository":{"type":"git","url":"git+https://github.com/AnthonyFangqing/opencode-special-edition.git"},"bugs":{"url":"https://github.com/AnthonyFangqing/opencode-special-edition/issues"},"homepage":"https://github.com/AnthonyFangqing/opencode-special-edition#readme","publishConfig":{"access":"public"},"exports":{".":{"types":"./index.ts","default":"./index.ts"}},"main":"./index.ts","types":"./index.ts","engines":{"node":">=18"},"peerDependencies":{"@opencode-ai/plugin":">=1.0.0"},"peerDependenciesMeta":{"@opencode-ai/plugin":{"optional":true}},"devDependencies":{"@opencode-ai/plugin":"^1.14.20"},"gitHead":"7ca3a14c2d83bd4ce7de29a70c7084fc7ca0187e","_id":"@anthonyfangqing/opencode-special-edition@1.0.1","_nodeVersion":"24.15.0","_npmVersion":"11.12.1","dist":{"integrity":"sha512-tvb4ZQD3xHhpziwqDhzI/ONvBq5zNR+xdlmN5sFwRcR+jtxZFh6sergrOFnEkrnCqDdmKVdY2aZAsHXS/7Z6BQ==","shasum":"9db6eb122a35b80ebda85056f69f85aef1dbef99","tarball":"https://registry.npmjs.org/@anthonyfangqing/opencode-special-edition/-/opencode-special-edition-1.0.1.tgz","fileCount":21,"unpackedSize":14203,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIBx1f0qlx8q2IJEIkdMFoLrPJfXGQRU4Hmaz+vfUYWSAAiAuB7ZtXGS7V8YZ9QtCJMyYZzVyxv5dEs3pGQATT2+oHQ=="}]},"_npmUser":{"name":"anthony-fangqing-yu","email":"anthony.fangqing@gmail.com"},"directories":{},"maintainers":[{"name":"anthony-fangqing-yu","email":"anthony.fangqing@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-special-edition_1.0.1_1776814877820_0.2082516687545901"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-21T23:32:03.811Z","modified":"2026-04-21T23:41:18.113Z","1.0.0":"2026-04-21T23:32:04.036Z","1.0.1":"2026-04-21T23:41:17.965Z"},"bugs":{"url":"https://github.com/AnthonyFangqing/opencode-special-edition/issues"},"license":"MIT","homepage":"https://github.com/AnthonyFangqing/opencode-special-edition#readme","keywords":["opencode","opencode-plugin","prompt","llm"],"repository":{"type":"git","url":"git+https://github.com/AnthonyFangqing/opencode-special-edition.git"},"description":"OpenCode plugin that replaces the default system prompt and built-in tool descriptions with shorter alternatives to reduce prompt size.","maintainers":[{"name":"anthony-fangqing-yu","email":"anthony.fangqing@gmail.com"}],"readme":"# opencode-special-edition\n\nMOSTLY CLANKER-BUILT\n\nOpenCode plugin that shortens the default system prompt and built-in tool descriptions so each request sends fewer tokens. Inspired by the minimal style of [pi](https://github.com/mariozechner/pi).\n\nThe built-in JSON parameter schemas for tools are unchanged. This package only replaces the long prose descriptions where a shorter version exists.\n\n## What it does\n\n### System prompt\n\nReplaces OpenCode’s default system prompt with a shorter version from `prompt/default.txt`. Keeps the environment block (model name, cwd, date), the skills block (see below), and `AGENTS.md` content when OpenCode composes the default layout.\n\n### Skills section (not modified by this plugin)\n\nOpenCode adds a **separate** system fragment listing discovered skills (from `SKILL.md` files under paths such as `skill/`, `skills/`, `.claude`, `.agents`). It is built in `SystemPrompt.skills` and concatenated with env + instructions when assembling the prompt. Typical shape:\n\n```text\nSkills provide specialized instructions and workflows for specific tasks.\nUse the skill tool to load a skill when a task matches its description.\n<available_skills>\n  <skill>\n    <name>…</name>\n    <description>…</description>\n    <location>file://…</location>\n  </skill>\n  …\n</available_skills>\n```\n\nIf no skills are loaded, the third part is the line `No skills are currently available.` If the agent has the `skill` permission disabled, this block is omitted entirely.\n\n### Tool descriptions\n\nSupplies shorter description strings from `tool/<tool-id>.txt` for built-in tools OpenCode exposes. Parameter schemas are still the full definitions from OpenCode.\n\n### Rough size comparison\n\n| Component | Typical before | With this plugin | Approx. savings |\n|-----------|----------------|------------------|-----------------|\n| System prompt (provider text only) | ~1800 tokens | ~100 tokens | ~1700 |\n| Tool descriptions | ~5500 tokens | ~350 tokens | ~5150 |\n| Skills section | (unchanged) | (unchanged) | — |\n| **Total (order of magnitude)** | | | **~6850** |\n\nExact counts depend on model tokenizer and OpenCode version.\n\n## Install\n\n### From npm\n\n```bash\nnpm install @anthonyfangqing/opencode-special-edition\n```\n\nIn `opencode.json` / `opencode.jsonc`:\n\n```jsonc\n{\n  \"plugin\": [\"@anthonyfangqing/opencode-special-edition\"]\n}\n```\n\n### Local path\n\n```jsonc\n{\n  \"plugin\": [\"./path/to/opencode-special-edition/index.ts\"]\n}\n```\n\n### Project plugin directory\n\nCopy or link the package under `.opencode/plugins/` (see [OpenCode plugins](https://opencode.ai/docs/plugins/)). Files there load automatically; you do not have to list them in `plugin` unless you also use npm plugins and want a specific setup.\n\n## Customization\n\n- Project rules: use `AGENTS.md`; this plugin keeps that content when it is injected into the default prompt shape.\n- Full custom system prompt: set `agent.build.prompt` in config. The plugin skips rewriting when the prompt does not look like the default.\n\n## What it does not change\n\n- The **skills** fragment OpenCode adds (`Skills provide specialized…`, `<available_skills>`, etc.): this plugin does not remove or edit it; it remains after the env block in the composed system text.\n- JSON parameter schemas for tools (still full definitions)\n- Environment lines (model, cwd, date) when present in the default prompt\n- `AGENTS.md` text when present in the composed prompt\n- Plan-mode reminders, compaction/summary/title prompts, or other internal agent prompts\n- MCP tool descriptions (only OpenCode’s built-in tools are overridden here)\n\n## Publish\n\nFrom this directory, logged in as a member of the [anthonyfangqing](https://www.npmjs.com/org/anthonyfangqing) org (`npm login`):\n\n```bash\nnpm publish\n```\n\n`package.json` sets `publishConfig.access` to `public` so the scoped package is visible without passing `--access public`. Use `npm pack --dry-run` to inspect the tarball before publishing.\n","readmeFilename":"README.md"}