{"id":49306996,"url":"https://github.com/tokentopapp/agent-gemini","last_synced_at":"2026-04-26T10:02:03.857Z","repository":{"id":343098921,"uuid":"1176317122","full_name":"tokentopapp/agent-gemini","owner":"tokentopapp","description":"tokentop agent plugin for Gemini — session parsing, credential discovery, and real-time cost tracking for Gemini CLI, Antigravity, and all gemini-cli-core tools","archived":false,"fork":false,"pushed_at":"2026-03-08T23:08:23.000Z","size":25,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-09T01:50:23.276Z","etag":null,"topics":["agent","ai","antigravity","bun","gemini","gemini-cli","google","tokentop","tokentop-plugin","typescript"],"latest_commit_sha":null,"homepage":"https://github.com/tokentopapp/tokentop","language":"TypeScript","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/tokentopapp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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-03-08T22:28:54.000Z","updated_at":"2026-03-08T23:08:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/tokentopapp/agent-gemini","commit_stats":null,"previous_names":["tokentopapp/agent-gemini"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tokentopapp/agent-gemini","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-gemini","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-gemini/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-gemini/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-gemini/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tokentopapp","download_url":"https://codeload.github.com/tokentopapp/agent-gemini/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tokentopapp%2Fagent-gemini/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32292958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["agent","ai","antigravity","bun","gemini","gemini-cli","google","tokentop","tokentop-plugin","typescript"],"created_at":"2026-04-26T10:02:02.001Z","updated_at":"2026-04-26T10:02:03.852Z","avatar_url":"https://github.com/tokentopapp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @tokentop/agent-gemini\n\n[![npm](https://img.shields.io/npm/v/@tokentop/agent-gemini?style=flat-square\u0026color=CB3837\u0026logo=npm)](https://www.npmjs.com/package/@tokentop/agent-gemini)\n[![CI](https://img.shields.io/github/actions/workflow/status/tokentopapp/agent-gemini/ci.yml?style=flat-square\u0026label=CI)](https://github.com/tokentopapp/agent-gemini/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-blue?style=flat-square)](LICENSE)\n\n[tokentop](https://github.com/tokentopapp/tokentop) agent plugin for **Gemini** — the canonical plugin for all tools built on Google's `gemini-cli-core` session format, including [Gemini CLI](https://github.com/google-gemini/gemini-cli) and Antigravity.\n\n## Capabilities\n\n| Capability | Status |\n|-----------|--------|\n| Session parsing | Yes |\n| Credential reading | Yes |\n| Real-time tracking | Yes |\n| Multi-provider | No |\n\n## What This Plugin Does\n\n- **Parses Gemini sessions** from `~/.gemini/tmp/\u003cproject-hash\u003e/chats/*.json`\n- **Extracts token usage** (input, output, cached, thoughts) per message\n- **Watches for real-time activity** via filesystem watchers with dirty-path optimization\n- **Reads credentials** from both `~/.gemini/oauth_creds.json` (Gemini CLI) and `~/.config/opencode/antigravity-accounts.json` (Antigravity)\n- **Two-layer caching** — TTL-based result cache + per-session LRU aggregate cache\n\n## Supported Tools\n\nThis plugin covers any tool that writes the `ConversationRecord` JSON format to `~/.gemini/tmp/`:\n\n| Tool | Detected |\n|------|----------|\n| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | Yes |\n| Antigravity IDE | Yes |\n| Any `gemini-cli-core` consumer | Yes |\n\n## Install\n\nThis plugin is **bundled with tokentop** — no separate install needed. If you need it standalone:\n\n```bash\nbun add @tokentop/agent-gemini\n```\n\n## Requirements\n\n- [Gemini CLI](https://github.com/google-gemini/gemini-cli) or Antigravity installed\n- [Bun](https://bun.sh/) \u003e= 1.0.0\n- `@tokentop/plugin-sdk` ^1.0.0 (peer dependency)\n\n## Permissions\n\n| Type | Access | Paths |\n|------|--------|-------|\n| Filesystem | Read | `~/.gemini` |\n\n## Replaces\n\nThis plugin supersedes both `@tokentop/agent-gemini-cli` and `@tokentop/agent-antigravity`. Both read from the same `~/.gemini/tmp` directory with identical session formats — there is no way to distinguish which tool created a given session file.\n\n## Development\n\n```bash\nbun install\nbun run build\nbun test\nbun run typecheck\n```\n\n## Contributing\n\nSee the [Contributing Guide](https://github.com/tokentopapp/.github/blob/main/CONTRIBUTING.md). Issues for this plugin should be [filed on the main tokentop repo](https://github.com/tokentopapp/tokentop/issues/new?template=bug_report.yml\u0026labels=bug,agent-gemini).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokentopapp%2Fagent-gemini","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftokentopapp%2Fagent-gemini","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftokentopapp%2Fagent-gemini/lists"}