{"id":50799506,"url":"https://github.com/foxted/context-mate","last_synced_at":"2026-06-12T18:02:02.745Z","repository":{"id":356385177,"uuid":"1232305484","full_name":"foxted/context-mate","owner":"foxted","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-07T20:01:13.000Z","size":213,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-07T21:39:32.674Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/foxted.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":"ROADMAP.md","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-05-07T19:52:03.000Z","updated_at":"2026-05-07T20:11:15.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/foxted/context-mate","commit_stats":null,"previous_names":["foxted/context-mate"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/foxted/context-mate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Fcontext-mate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Fcontext-mate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Fcontext-mate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Fcontext-mate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxted","download_url":"https://codeload.github.com/foxted/context-mate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxted%2Fcontext-mate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34256188,"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-12T02:00:06.859Z","response_time":109,"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-06-12T18:02:01.750Z","updated_at":"2026-06-12T18:02:02.736Z","avatar_url":"https://github.com/foxted.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# context-mate\n\nLocal web dashboard that tracks **context pressure** across your AI coding agents — Cursor, Claude Code, and Codex — so you can review how context use has played out over time and adjust your strategy in future conversations.\n\n![Cross-agent context pressure dashboard](public/screenshot.png)\n\n## What it does\n\n- **Cursor** — reads `state.vscdb` (`cursorDiskKV → messageRequestContext:*`), shows each composer's snapshot size broken down into buckets (`webReferences`, `diffsSinceLastApply`, `projectLayouts`, `knowledgeItems`, etc.) with cause tags (user-attached vs auto-injected vs mixed)\n- **Claude Code** — parses `~/.claude/projects/**/*.jsonl` transcripts, surfaces token usage per conversation and per turn\n- **Codex** — reads the Codex SQLite DB (best-effort)\n\nAll three are normalized into a unified model so you can compare projects and conversations side-by-side, sorted by heaviest context first.\n\n## Requirements\n\n- Node 20+\n- pnpm\n\n## Install \u0026 run\n\n```bash\npnpm install\npnpm dev\n```\n\nOpen http://localhost:3000.\n\n**JSON export** (same data as the UI): http://localhost:3000/api/context\n\nQuery parameters for `/api/context`:\n\n| Parameter | Default | Description |\n|---|---|---|\n| `db=` | macOS globalStorage path | Path to Cursor `state.vscdb` |\n| `redact=1` | off | Redact path-like strings before parsing |\n| `cursor=0` | on | Disable Cursor ingestion |\n| `claude=0` | on | Disable Claude Code ingestion |\n| `codex=0` | on | Disable Codex ingestion |\n\nSave a snapshot to disk:\n\n```bash\ncurl -s 'http://localhost:3000/api/context?redact=1' -o report.json\n```\n\n**Production**\n\n```bash\npnpm build\npnpm start\n```\n\n## Caveats\n\n- Cursor's schema is **undocumented** and may change between releases.\n- Cursor rows measure **serialized snapshot size** (bytes), not token counts. Claude Code and Codex use token-ish fields from transcripts or SQLite — not directly comparable.\n- Read Cursor's DB while Cursor is **idle** so the WAL is checkpointed, or copy `state.vscdb*` and pass `db=` to point at the copy.\n\n## Contributing\n\nSee [CONTRIBUTING.md](./CONTRIBUTING.md).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Fcontext-mate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxted%2Fcontext-mate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxted%2Fcontext-mate/lists"}