{"id":51224990,"url":"https://github.com/srmdn/opcode-kit","last_synced_at":"2026-06-28T10:30:36.257Z","repository":{"id":366841462,"uuid":"1278114304","full_name":"srmdn/opcode-kit","owner":"srmdn","description":"Small Unix-style helpers for OpenCode sessions and account switching","archived":false,"fork":false,"pushed_at":"2026-06-23T16:14:32.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-28T10:30:33.371Z","etag":null,"topics":["account-switching","cli","developer-tools","opencode","productivity","session-history","shell","sqlite"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/srmdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":null,"dco":null,"cla":null}},"created_at":"2026-06-23T13:28:42.000Z","updated_at":"2026-06-23T16:14:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/srmdn/opcode-kit","commit_stats":null,"previous_names":["srmdn/opcode-kit"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/srmdn/opcode-kit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Fopcode-kit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Fopcode-kit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Fopcode-kit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Fopcode-kit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/srmdn","download_url":"https://codeload.github.com/srmdn/opcode-kit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/srmdn%2Fopcode-kit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34885801,"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-06-28T02:00:05.809Z","response_time":54,"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":["account-switching","cli","developer-tools","opencode","productivity","session-history","shell","sqlite"],"created_at":"2026-06-28T10:30:35.697Z","updated_at":"2026-06-28T10:30:36.251Z","avatar_url":"https://github.com/srmdn.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# opcode-kit\n\nSmall Unix-style helpers for OpenCode workflows.\n\n## Tools\n\n### `opcode-last`\n\n- find recent OpenCode sessions for current directory\n- preview session context before resume\n- reopen intended session without guessing\n\nCompatibility alias:\n\n- `oc-last` still works and forwards to `opcode-last`\n\n### `opcode-switch`\n\n- switch between local OpenCode accounts\n- save current auth as named profile\n- activate another account without editing auth files by hand\n\n## Install\n\nInstall all tools:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/srmdn/opcode-kit/main/install.sh | bash\n```\n\nInstall `opcode-last` only:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/srmdn/opcode-kit/main/install.sh | bash -s -- opcode-last\n```\n\nInstall `opcode-switch` only:\n\n```bash\ncurl -fsSL https://raw.githubusercontent.com/srmdn/opcode-kit/main/install.sh | bash -s -- opcode-switch\n```\n\nInstall from local checkout:\n\n```bash\n./install.sh\n```\n\nInstall one tool from local checkout:\n\n```bash\n./install.sh opcode-last\n```\n\nRequires:\n\n- `bash`\n- [OpenCode](https://opencode.ai/)\n\nTool-specific notes:\n\n- `opcode-last` needs `sqlite3`\n- `opcode-switch --verify` needs `opencode` on `PATH`\n- `install.sh` with no args installs all tools in `bin/`\n- `install.sh \u003ctool\u003e` installs one tool only\n\n## Quick Start\n\nSession recovery:\n\n```bash\nopcode-last\nopcode-last --show 1\nopcode-last --open 1\nopcode-last --recent\n```\n\nAccount switching:\n\n```bash\nopcode-switch\nopcode-switch --save personal\nopcode-switch work\nopcode-switch --verify\n```\n\n## Example Output\n\n```text\n$ oc-last\nOpenCode sessions for:\n  /path/to/project\n\n[1] Fix installer edge case\n     id: ses_abc123\n     dir: /path/to/project\n     updated: 2026-06-23 19:41:02\n     messages: 38\n     first user: make install.sh support one-tool installs too\n     last user: sanitize repo before first commit\n     last assistant: no confidential data found in tracked files...\n\nNext:\n  opcode-last --show N\n  opcode-last --open N\n```\n\n## Why This Exists\n\nOpenCode keeps local session history, but finding the right session later is not always easy.\n\nCommon failure mode:\n\n- a session still exists\n- the user knows useful context is still somewhere in local history\n- built-in session discovery is not enough to quickly find and resume the right one\n\n`opcode-kit` exists to fill gaps like that with small, inspectable command-line tools.\n\n## Repo Shape\n\n`opcode-kit` is a small monorepo toolbox.\n\nEach tool is a standalone executable in `bin/`, with focused docs in `docs/`.\n\n```text\nopcode-kit/\n  README.md\n  LICENSE\n  install.sh\n  bin/\n    opcode-last\n    oc-last\n    opcode-switch\n    ...\n  docs/\n    oc-last.md\n    opcode-switch.md\n    ...\n```\n\nShared repo, separate commands. No heavy framework, no package-manager lock-in.\n\n## Principles\n\n- keep tools small\n- keep tools readable\n- prefer direct shell workflows\n- avoid unnecessary dependencies\n- solve real OpenCode workflow problems\n\n## Docs\n\n- [docs/oc-last.md](docs/oc-last.md)\n- [docs/opcode-switch.md](docs/opcode-switch.md)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrmdn%2Fopcode-kit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrmdn%2Fopcode-kit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrmdn%2Fopcode-kit/lists"}