{"id":51556242,"url":"https://github.com/involvex/opencode-statusbar","last_synced_at":"2026-07-10T05:30:46.944Z","repository":{"id":367870191,"uuid":"1282554549","full_name":"involvex/opencode-statusbar","owner":"involvex","description":"A statusbar displaying useful information for opencode","archived":false,"fork":false,"pushed_at":"2026-06-28T09:06:07.000Z","size":93,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-07-05T14:41:58.743Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/involvex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":["involvex"],"custom":["https://buymeacoffee.com/involvex","https://paypal.me/involvex","https://rewards.bing.com/welcome?rh=14525F68\u0026ref=rafsrchae\u0026form=ML2XE3\u0026OCID=ML2XE3\u0026PUBL=RewardsDO\u0026CREA=ML2XE3"]}},"created_at":"2026-06-27T23:34:04.000Z","updated_at":"2026-06-28T09:06:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/involvex/opencode-statusbar","commit_stats":null,"previous_names":["involvex/opencode-statusbar"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/involvex/opencode-statusbar","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/involvex%2Fopencode-statusbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/involvex%2Fopencode-statusbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/involvex%2Fopencode-statusbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/involvex%2Fopencode-statusbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/involvex","download_url":"https://codeload.github.com/involvex/opencode-statusbar/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/involvex%2Fopencode-statusbar/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35322488,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-10T02:00:06.465Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-10T05:30:46.272Z","updated_at":"2026-07-10T05:30:46.938Z","avatar_url":"https://github.com/involvex.png","language":"TypeScript","funding_links":["https://github.com/sponsors/involvex","https://buymeacoffee.com/involvex","https://paypal.me/involvex","https://rewards.bing.com/welcome?rh=14525F68\u0026ref=rafsrchae\u0026form=ML2XE3\u0026OCID=ML2XE3\u0026PUBL=RewardsDO\u0026CREA=ML2XE3"],"categories":[],"sub_categories":[],"readme":"# opencode-statusbar\n\nOpenCode plugin.\n\n## Installation\n\nAdd to your `opencode.json` (global or per-project):\n\n```json\n{\n\t\"plugin\": [\"@involvex/opencode-statusbar@latest\"]\n}\n```\n\nOpenCode will automatically install the plugin on next launch.\n\n## Development\n\n```bash\n# Install dependencies\nbun install\n\n# Run OpenCode with the plugin loaded from source\nbun dev\n\n# Typecheck\nbun typecheck\n```\n\n### Project Structure\n\n```\nopencode-statusbar/\n├── src/\n│   └── index.ts      # Plugin entry point with all available hooks\n├── dev.ts            # Development script (runs OpenCode with plugin)\n├── package.json\n├── tsconfig.json\n└── ...\n```\n\n### Plugin Context\n\nYour plugin receives a context object with:\n\n- `client` - OpenCode SDK client for API calls (logging, toasts, etc.)\n- `project` - Current project information\n- `directory` - Current working directory\n- `worktree` - Git worktree path\n- `$` - Bun shell for executing commands\n\n### Available Hooks\n\nSee `src/index.ts` for all available hooks with descriptions. Key hooks:\n\n| Hook                  | Description                                                    |\n| --------------------- | -------------------------------------------------------------- |\n| `event`               | Subscribe to OpenCode events (session.idle, file.edited, etc.) |\n| `chat.message`        | Intercept user messages                                        |\n| `chat.params`         | Modify LLM parameters (temperature, etc.)                      |\n| `tool.execute.before` | Modify tool arguments or block execution                       |\n| `tool.execute.after`  | Process tool results                                           |\n| `permission.ask`      | Auto-allow/deny permissions                                    |\n| `tool`                | Register custom tools                                          |\n\n### Logging\n\nUse `client.app.log()` for structured logging instead of `console.log`:\n\n```typescript\nawait ctx.client.app.log({\n\tbody: {\n\t\tservice: 'opencode-statusbar',\n\t\tlevel: 'info', // 'debug' | 'info' | 'warn' | 'error'\n\t\tmessage: 'Something happened',\n\t\textra: {foo: 'bar'},\n\t},\n})\n```\n\n### Custom Tools\n\n```typescript\nimport {tool} from '@opencode-ai/plugin'\n\nexport const MyPlugin: Plugin = async ctx =\u003e {\n\treturn {\n\t\ttool: {\n\t\t\tmytool: tool({\n\t\t\t\tdescription: 'What this tool does',\n\t\t\t\targs: {\n\t\t\t\t\tinput: tool.schema.string(),\n\t\t\t\t},\n\t\t\t\tasync execute(args, context) {\n\t\t\t\t\treturn `Result: ${args.input}`\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t}\n}\n```\n\n## Publishing\n\n```bash\nnpm publish\n```\n\nAfter publishing, users can install with:\n\n```json\n{\n\t\"plugin\": [\"@involvex/opencode-statusbar@latest\"]\n}\n```\n\n## Resources\n\n- [Plugin Documentation](https://opencode.ai/docs/plugins/)\n- [SDK Reference](https://opencode.ai/docs/sdk/)\n- [Community Plugins](https://opencode.ai/docs/ecosystem/#plugins)\n- [OpenCode Discord](https://opencode.ai/discord)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvolvex%2Fopencode-statusbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finvolvex%2Fopencode-statusbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finvolvex%2Fopencode-statusbar/lists"}