{"versions":{"0.1.0":{"name":"@honcho-ai/opencode-honcho","version":"0.1.0","license":"MIT","_id":"@honcho-ai/opencode-honcho@0.1.0","maintainers":[{"name":"anonymous","email":"abigail@plasticlabs.ai"},{"name":"anonymous","email":"hello@plasticlabs.ai"}],"bin":{"opencode-honcho":"dist/cli.js"},"dist":{"shasum":"60de26d9362d7e4f14cb3a767b9bb2b28809da78","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@honcho-ai/opencode-honcho/-/opencode-honcho-0.1.0.tgz","fileCount":16,"integrity":"sha512-1qOKi1Hvbxh+sllJpu4HCprIt0WUKXw9edFn6Tegyv4qznpTijm9mu+MpNfWP9NtcUvicyKY7JUYYcmalxDAsg==","signatures":[{"sig":"MEQCIBcWrkxmpRiy7glt4bd80jRZGE+MHi6jn3FGab4wqC5TAiBW9YLM14n3fsVSBZxfPIP4wmhKw2u27CnU0VshJDXeVg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1345278,"size":183522},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./tui":{"import":"./dist/tui.js"},"./server":{"import":"./dist/server.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js"}},"gitHead":"4ad3af964eba0783933a7ccd857c453a1e9ca8d8","scripts":{"test":"bun run build && bun test ./tests","build":"bun build ./src/index.ts ./src/cli.ts ./src/server.ts ./src/tui.ts ./src/capabilities.ts --outdir ./dist --target bun --external @opencode-ai/plugin && tsc --emitDeclarationOnly","check":"tsc --noEmit","prepublishOnly":"bun run build"},"_npmUser":{"name":"anonymous","email":"abigail@plasticlabs.ai"},"_npmVersion":"11.6.2","description":"Honcho memory integration for OpenCode","directories":{},"_nodeVersion":"24.11.1","dependencies":{"zod":"4.0.0","@honcho-ai/sdk":"^2.1.1","@opencode-ai/plugin":"^1.3.13"},"_hasShrinkwrap":false,"packageManager":"bun@1.3.9","devDependencies":{"@types/bun":"^1.2.8","typescript":"^5.9.3","@types/node":"^22.13.9"},"_npmOperationalInternal":{"tmp":"tmp/opencode-honcho_0.1.0_1776965826357_0.22922481999104782","host":"s3://npm-registry-packages-npm-production"},"_cnpmcore_publish_time":"2026-04-23T17:37:06.520Z","publish_time":1776965826520,"_source_registry_name":"default","contributors":[]},"0.1.1":{"name":"@honcho-ai/opencode-honcho","version":"0.1.1","type":"module","description":"Honcho memory integration for OpenCode","license":"MIT","packageManager":"bun@1.3.9","main":"./dist/index.js","types":"./dist/index.d.ts","bin":{"opencode-honcho":"dist/cli.js"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./server":{"import":"./dist/server.js"},"./tui":{"import":"./dist/tui.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js"}},"scripts":{"build":"bun build ./src/index.ts ./src/cli.ts ./src/server.ts ./src/tui.ts ./src/capabilities.ts --outdir ./dist --target bun --external @opencode-ai/plugin && tsc --emitDeclarationOnly","check":"tsc --noEmit","test":"bun run build && bun test ./tests","prepublishOnly":"bun run build"},"dependencies":{"@opencode-ai/plugin":"^1.3.13","@honcho-ai/sdk":"^2.1.1","zod":"4.0.0"},"devDependencies":{"@types/bun":"^1.2.8","@types/node":"^22.13.9","typescript":"^5.9.3"},"gitHead":"75d53388452fdfafd5fd141c37a1f59353a6d1de","_id":"@honcho-ai/opencode-honcho@0.1.1","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-ilXY4GQiTyE4kB7lVF01F11I4C/BsnbXr5IHV6ukJ/dbhibEklnwBhnrHZisWYLQvtVajE8qDnd0FSeN9W67pw==","shasum":"d30e91f9d6b18df75f4ccde8489e34707ef2776f","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@honcho-ai/opencode-honcho/-/opencode-honcho-0.1.1.tgz","fileCount":16,"unpackedSize":1343805,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDFUAmANEaXd64ylKF+zOeKIAp/K4Ozdi92Uro/1JRkfgIgTEWJmTLgs0a1Z8ld/OIYXuYdhwncF5Qb3KD+hQD3Eow="}],"size":182986},"_npmUser":{"name":"anonymous","email":"abigail@plasticlabs.ai"},"directories":{},"maintainers":[{"name":"anonymous","email":"abigail@plasticlabs.ai"},{"name":"anonymous","email":"hello@plasticlabs.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-honcho_0.1.1_1777038273697_0.440331904816305"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-24T13:44:33.851Z","publish_time":1777038273851,"_source_registry_name":"default","contributors":[]},"0.1.2":{"name":"@honcho-ai/opencode-honcho","version":"0.1.2","type":"module","description":"Honcho memory integration for OpenCode","license":"MIT","packageManager":"bun@1.3.9","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./server":{"import":"./dist/server.js"},"./tui":{"import":"./dist/tui.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js"}},"scripts":{"build":"bun --eval \"const { rm } = await import('node:fs/promises'); await rm('dist', { recursive: true, force: true })\" && bun build ./src/index.ts ./src/server.ts ./src/tui.ts ./src/capabilities.ts --outdir ./dist --target bun --external @opencode-ai/plugin && tsc --emitDeclarationOnly","check":"tsc --noEmit","test":"bun run build && bun test ./tests","prepublishOnly":"bun run build"},"dependencies":{"@opencode-ai/plugin":"^1.3.13","@honcho-ai/sdk":"^2.1.1"},"devDependencies":{"@types/bun":"^1.2.8","@types/node":"^22.13.9","typescript":"^5.9.3"},"gitHead":"baef24e6051e9b624447cfdfaf3e24d67a4c3fa9","_id":"@honcho-ai/opencode-honcho@0.1.2","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-oDFDoqzmmMwMJJpXE5jgOYiiXC2W/MohRcuRUwm2zYCCfZO6DutlGFqVGrPLDwmFKDEr4L/Uw7R0HV/LwHGH2A==","shasum":"4813892a44737a0478ea04dff7c646f0e75886f3","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@honcho-ai/opencode-honcho/-/opencode-honcho-0.1.2.tgz","fileCount":13,"unpackedSize":1332181,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHvqtpqxo6o574h7tZTM5ImWPk55/IRIk5wlyzyt6qhlAiBJTREEU/mRrMXFjHMZcyCjr0F9uK69ml0DfqbaUHPwsw=="}],"size":179972},"_npmUser":{"name":"anonymous","email":"abigail@plasticlabs.ai"},"directories":{},"maintainers":[{"name":"anonymous","email":"abigail@plasticlabs.ai"},{"name":"anonymous","email":"hello@plasticlabs.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-honcho_0.1.2_1777387595909_0.32500480744310667"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-04-28T14:46:36.172Z","publish_time":1777387596172,"_source_registry_name":"default","contributors":[]},"0.1.3":{"name":"@honcho-ai/opencode-honcho","version":"0.1.3","type":"module","description":"Honcho memory integration for OpenCode","license":"MIT","packageManager":"bun@1.3.9","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./server":{"import":"./dist/server.js"},"./tui":{"import":"./dist/tui.js"},"./capabilities":{"types":"./dist/capabilities.d.ts","import":"./dist/capabilities.js"}},"scripts":{"build":"bun --eval \"const { rm } = await import('node:fs/promises'); await rm('dist', { recursive: true, force: true })\" && bun build ./src/index.ts ./src/server.ts ./src/tui.ts ./src/capabilities.ts --outdir ./dist --target bun --external @opencode-ai/plugin && tsc --emitDeclarationOnly","check":"tsc --noEmit","test":"bun run build && bun test ./tests","prepublishOnly":"bun run build"},"dependencies":{"@opencode-ai/plugin":"^1.3.13","@honcho-ai/sdk":"^2.1.1"},"devDependencies":{"@types/bun":"^1.2.8","@types/node":"^22.13.9","typescript":"^5.9.3"},"gitHead":"617250452bfe5d51409b672a7fd6c3eab50baea9","_id":"@honcho-ai/opencode-honcho@0.1.3","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-zZF1Eqct5OyL3Q9K6Ha2SYeGjSXGX7+HJ7K5SKOp/1/yurC/ppcl6uckIqPqd3//vd4ItvgDMD2trNqnVhNGfQ==","shasum":"d2834c7b4725dd1d9c482a5cdf362cdacdeafc6d","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@honcho-ai/opencode-honcho/-/opencode-honcho-0.1.3.tgz","fileCount":13,"unpackedSize":1335861,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDc2x+416F3Ez9NAX/MaZH76XfRkzfKKCdQUwnwzz2zlgIhAM2O9XZ8cde/u5ujcWfjlpb4jqL7SY1anCpwg/Dd81gF"}],"size":180956},"_npmUser":{"name":"anonymous","email":"abigail@plasticlabs.ai"},"directories":{},"maintainers":[{"name":"anonymous","email":"abigail@plasticlabs.ai"},{"name":"anonymous","email":"hello@plasticlabs.ai"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/opencode-honcho_0.1.3_1781982929717_0.5121422237539188"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2026-06-20T19:15:29.862Z","publish_time":1781982929862,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.1.3"},"name":"@honcho-ai/opencode-honcho","time":{"created":"2026-04-24T13:44:48.652Z","modified":"2026-06-20T19:15:43.233Z","0.1.0":"2026-04-23T17:37:06.520Z","0.1.1":"2026-04-24T13:44:33.851Z","0.1.2":"2026-04-28T14:46:36.172Z","0.1.3":"2026-06-20T19:15:29.862Z"},"readme":"# Honcho Plugin for Opencode\n\n> Add AI-native memory to OpenCode\n\nGive OpenCode long-term memory that survives context wipes, session restarts, and fresh chats. Honcho remembers what you're working on, durable preferences, and prior context across your projects.\n\n## Quick Start\n\n### Step 1: Get Your Honcho API Key\n\n1. Go to **[app.honcho.dev](https://app.honcho.dev)**\n2. Sign up or log in\n3. Copy your API key\n\n### Step 2: Install the Plugin\n\nOpenCode installs the Honcho plugin and adds it to your global OpenCode config.\n\n```bash\nopencode plugin \"@honcho-ai/opencode-honcho\" --global\n```\n\nTo update an existing plugin install:\n\n```bash\nopencode plugin \"@honcho-ai/opencode-honcho\" --force\n```\n\nThis command expects the `opencode` CLI to already be installed and available on your `PATH`.\nIf your shell cannot find `opencode`, restart your shell or source your shell config and run the command again.\n\n### Step 3: Run Setup in OpenCode\n\n1. Start OpenCode\n2. Run `/honcho:setup`\n3. Keep the default `Honcho Cloud` option unless you explicitly want a self-hosted or local endpoint\n4. Enter your Honcho API key\n5. Enter your `peerName`\n6. Run `/honcho:status` to verify the runtime\n\n## What You Get\n\n- **Persistent Memory** - OpenCode can retain durable context across sessions\n- **Cloud or Local Deployments** - Use Honcho Cloud or point at a self-hosted or local Honcho instance\n- **Workspace Mapping** - OpenCode projects map to Honcho workspaces\n- **Session Mapping** - Sessions can be scoped per directory, repo, branch, chat instance, or globally\n- **Durable Writes** - Honcho can retain stable conclusions and session context\n- **Memory Retrieval** - Search memory, query Honcho knowledge, and inject relevant context into prompts\n- **Peer Modeling** - User and root-agent peers follow a fixed observation model tuned for OpenCode\n\n## Installation Output\n\nOpenCode:\n\n- registers `@honcho-ai/opencode-honcho` with OpenCode\n- resolves the package's native server and TUI plugin targets\n- updates plugin entries in your global OpenCode config\n- activates the plugin globally for all OpenCode projects\n\n## Configuration\n\nOpenCode Honcho configuration lives in:\n\n- `~/.honcho/config.json`\n\nOpenCode reads and writes this shared config file directly. OpenCode-specific defaults live under `hosts.opencode` in that file.\n\n```jsonc\n{\n  \"apiKey\": \"hch-...\",\n  \"peerName\": \"user\",\n  \"baseUrl\": \"https://api.honcho.dev\",\n  \"hosts\": {\n    \"opencode\": {\n      \"workspace\": \"opencode\",\n      \"aiPeer\": \"opencode\",\n      \"recallMode\": \"hybrid\",\n      \"sessionStrategy\": \"per-directory\",\n      \"removeUserPrefix\": true // true uses the bare peerName; false (default on upgrade) keeps the legacy user-<peerName> peer\n    }\n  }\n}\n```\n\n### Cloud vs Local\n\nFor Honcho Cloud:\n\n- `apiKey` is required\n- `baseUrl` should remain `https://api.honcho.dev`\n\nFor self-hosted or local Honcho:\n\n- `baseUrl` should point to your deployment, for example `http://127.0.0.1:8000`\n- `apiKey` is required only if that deployment requires authentication\n\nIf OpenCode is running in Docker or another remote environment, `localhost` may not refer to your machine. The configured `baseUrl` must be reachable from the OpenCode host runtime.\n\n### Session Strategies\n\n| Strategy | Behavior | Best for |\n| --- | --- | --- |\n| `per-directory` | One session per working directory | Default project memory |\n| `per-repo` | One session per repository | Repos with multiple entry directories |\n| `git-branch` | Session changes with the current branch | Branch-specific workflows |\n| `per-session` | New session for each OpenCode session id | Short-lived isolated work |\n| `chat-instance` | Session follows the current chat instance | Highly ephemeral usage |\n| `global` | One session for everything | Shared memory across all work |\n\n## Operator Commands\n\n| Command | Description |\n| --- | --- |\n| `/honcho:setup` | First-time setup for cloud or local Honcho |\n| `/honcho:status` | Show effective Honcho status for the current OpenCode project, including live workspace and session names when available |\n| `/honcho:settings` | Show effective config values and config paths |\n| `/honcho:config` | Edit shared Honcho fields in `~/.honcho/config.json` |\n\n## Agent Tools\n\nThe plugin exposes these tools inside OpenCode:\n\n| Tool | Description |\n| --- | --- |\n| `honcho_setup` | Validate setup and persist shared credentials or endpoint settings |\n| `honcho_status` | Show effective runtime status |\n| `honcho_get_config` | Read effective and persisted settings |\n| `honcho_set_config` | Update a persisted shared setting |\n| `honcho_search` | Search Honcho session messages in the current session |\n| `honcho_chat` | Query Honcho for reasoning-backed context |\n| `honcho_create_conclusion` | Save a durable memory conclusion |\n\n## Plugin Surfaces\n\nThe plugin uses these OpenCode plugin capabilities:\n\n- `event`\n- `chat.message`\n- `tool.execute.after`\n- `command.execute.before`\n- `experimental.chat.system.transform`\n- `experimental.session.compacting`\n- `shell.env`\n- `tool`\n\n## Development\n\nFor macOS/Linux local branch testing:\n\n```bash\nbun install\nbun run build\nopencode plugin \"$PWD\" --global --force\n```\n\nThat command wires the current checkout into OpenCode with `--force`, which is the intended local branch-testing flow.","users":{}}