{"_id":"@anirudh242/contextbridge","_rev":"3-18f79a1882e679d522bdffe6bc4db86f","name":"@anirudh242/contextbridge","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@anirudh242/contextbridge","version":"0.1.0","keywords":["cli","ai","context","developer-tools","cursor","codex","antigravity"],"author":{"name":"anirudh242"},"license":"MIT","_id":"@anirudh242/contextbridge@0.1.0","maintainers":[{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"}],"homepage":"https://github.com/anirudh242/contextbridge#readme","bugs":{"url":"https://github.com/anirudh242/contextbridge/issues"},"bin":{"cb":"dist/index.js","contextbridge":"dist/index.js"},"dist":{"shasum":"09966e13fbdcabe1591617eb4383e3d47724e572","tarball":"https://registry.npmjs.org/@anirudh242/contextbridge/-/contextbridge-0.1.0.tgz","fileCount":20,"integrity":"sha512-OpD57g9N49MpZZj59ROikiDpotVkM8AztoRl8UQR6HckQRzbP4VIpCya2IuaPkIOKI/VnfYgfBvMdyJNQPp3sw==","signatures":[{"sig":"MEYCIQCWzYelQ15Jn3LVxB3PHc2prc/ne8JcMLlhc38Fwr0cJQIhAKG+1aqW97qBeS5F+DkkROK/nYZsYbdGbNOQNkn2cRdS","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59911},"type":"module","engines":{"node":">=18"},"gitHead":"c36a654a26fb84873df5ccc9fbcd2f6cbcf4a734","scripts":{"build":"tsc -p tsconfig.json","check":"tsc --noEmit -p tsconfig.json","start":"node dist/index.js","prepack":"npm run build"},"_npmUser":{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"},"repository":{"url":"git+https://github.com/anirudh242/contextbridge.git","type":"git"},"_npmVersion":"10.8.2","description":"Persistent, versioned AI project context for every coding tool you use.","directories":{},"_nodeVersion":"20.19.5","dependencies":{"ora":"^8.0.1","zod":"^3.24.1","boxen":"^8.0.1","chalk":"^5.3.0","commander":"^12.1.0","clipboardy":"^4.0.0","simple-git":"^3.27.0","zod-to-json-schema":"^3.24.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.29"},"_npmOperationalInternal":{"tmp":"tmp/contextbridge_0.1.0_1779652910742_0.14924567409569067","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@anirudh242/contextbridge","version":"0.1.1","keywords":["cli","ai","context","developer-tools","cursor","codex","antigravity"],"author":{"name":"anirudh242"},"license":"MIT","_id":"@anirudh242/contextbridge@0.1.1","maintainers":[{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"}],"homepage":"https://github.com/anirudh242/contextbridge#readme","bugs":{"url":"https://github.com/anirudh242/contextbridge/issues"},"bin":{"cb":"dist/index.js","contextbridge":"dist/index.js"},"dist":{"shasum":"3d3df3daf747a1bff40ac2efa753640931cbe650","tarball":"https://registry.npmjs.org/@anirudh242/contextbridge/-/contextbridge-0.1.1.tgz","fileCount":20,"integrity":"sha512-Ou3KD8ns251y3afAuwK1GSxlO3nWBkHcwRLQbTT7NWkPEYkLhXHeUsmUgwcY70LTXizmZoN3OkF+0KzZWqsBow==","signatures":[{"sig":"MEYCIQC8ojYYYd21ak3Wfr7mBn6WsvZAvqFeEddvXz2mkDOMqwIhANzroGm+BCetwNI0I++xO2bICo20dKjS0v+wTMtuYaIz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59935},"type":"module","engines":{"node":">=18"},"gitHead":"d9386600b0d456bd88edda5baca9c3898b4eb652","scripts":{"build":"tsc -p tsconfig.json","check":"tsc --noEmit -p tsconfig.json","start":"node dist/index.js","prepack":"npm run build"},"_npmUser":{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"},"repository":{"url":"git+https://github.com/anirudh242/contextbridge.git","type":"git"},"_npmVersion":"10.8.2","description":"Persistent, versioned AI project context for every coding tool you use.","directories":{},"_nodeVersion":"20.19.5","dependencies":{"ora":"^8.0.1","zod":"^3.24.1","boxen":"^8.0.1","chalk":"^5.3.0","commander":"^12.1.0","clipboardy":"^4.0.0","simple-git":"^3.27.0","zod-to-json-schema":"^3.24.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.29"},"_npmOperationalInternal":{"tmp":"tmp/contextbridge_0.1.1_1779653127106_0.5757150118776915","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@anirudh242/contextbridge","version":"0.1.2","description":"Persistent, versioned AI project context for every coding tool you use.","type":"module","bin":{"contextbridge":"dist/index.js","cb":"dist/index.js"},"engines":{"node":">=18"},"scripts":{"build":"tsc -p tsconfig.json","prepack":"npm run build","start":"node dist/index.js","check":"tsc --noEmit -p tsconfig.json"},"keywords":["cli","ai","context","developer-tools","cursor","codex","antigravity"],"author":{"name":"anirudh242"},"repository":{"type":"git","url":"git+https://github.com/anirudh242/contextbridge.git"},"bugs":{"url":"https://github.com/anirudh242/contextbridge/issues"},"license":"MIT","dependencies":{"boxen":"^8.0.1","chalk":"^5.3.0","clipboardy":"^4.0.0","commander":"^12.1.0","ora":"^8.0.1","simple-git":"^3.27.0","zod":"^3.24.1","zod-to-json-schema":"^3.24.6"},"devDependencies":{"@types/node":"^22.15.29","typescript":"^5.8.3"},"_id":"@anirudh242/contextbridge@0.1.2","gitHead":"5237d7e9cebfb28a3ba607ecf6eae6cf77e9aa4d","homepage":"https://github.com/anirudh242/contextbridge#readme","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-mZLjPTl/Nnj3qdr6nZ+mbWA6VB5533mEakh4u3OABfzs4MT9hHqxQqTXenEa551DH9QZsbu62TCXwtrnMPrrwQ==","shasum":"159e4bb9dda12cf0e9e2901eca2395a4e7b6877f","tarball":"https://registry.npmjs.org/@anirudh242/contextbridge/-/contextbridge-0.1.2.tgz","fileCount":20,"unpackedSize":59935,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFUNbAfb3B19izVK95eEqOs1OipFAKH6zJWoHsysI+1rAiEA7NxyxM0Bxe1kPXxekQv7DNtDR0wMMXDwbB7NviqW78I="}]},"_npmUser":{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"},"directories":{},"maintainers":[{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/contextbridge_0.1.2_1779653183072_0.16156649721001726"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-24T20:01:50.629Z","modified":"2026-05-24T20:06:23.332Z","0.1.0":"2026-05-24T20:01:50.904Z","0.1.1":"2026-05-24T20:05:27.242Z","0.1.2":"2026-05-24T20:06:23.220Z"},"bugs":{"url":"https://github.com/anirudh242/contextbridge/issues"},"author":{"name":"anirudh242"},"license":"MIT","homepage":"https://github.com/anirudh242/contextbridge#readme","keywords":["cli","ai","context","developer-tools","cursor","codex","antigravity"],"repository":{"type":"git","url":"git+https://github.com/anirudh242/contextbridge.git"},"description":"Persistent, versioned AI project context for every coding tool you use.","maintainers":[{"name":"anirudh242","email":"anirudhbhardwaj48@gmail.com"}],"readme":"# ContextBridge\n\nGit-style version control for your AI session context. Works across every coding tool you use.\n\n[![npm version](https://img.shields.io/npm/v/contextbridge.svg)](https://npmjs.org/package/contextbridge) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## The Problem\n\nWorking with AI assistants involves constantly running into context limits or losing the thread when switching between tools. Every time you start a new conversation, you have to painstakingly rebuild the project's current state and goals.\n\n## The Solution\n\nContextBridge captures your exact working state (git diffs, active tasks, blockers) and compresses it into an LLM-generated summary. You can then instantly inject that context into any agent or browser-based AI tool.\n\n```bash\ncb init          # set up once per project\ncb capture       # after any AI session — auto-reads your git diff\ncb inject        # before starting a new session — injects context everywhere\n```\n\n## Installation\n\n**Prerequisite:** Node.js >= 18\n\n```bash\nnpm install -g @anirudh242/contextbridge\n# or run without installing:\nnpx @anirudh242/contextbridge init\n```\n\n## Core Commands\n\n- `cb capture` - Analyzes your `git diff` and summarizes the current session context. Add `-m \"note\"` to manually steer the summary, or `--paste` to include clipboard content.\n- `cb inject` - Injects the latest trusted context into your AI tools.\n- `cb log` - View the version history of your project's captured sessions.\n- `cb status` - Show the current ContextBridge status and configuration for this project.\n\n## Provider Setup\n\nContextBridge works best with an LLM for summarisation. `cb init` will walk you through the initial setup.\n\n| Provider    | Model used                  | Note                                                |\n| ----------- | --------------------------- | --------------------------------------------------- |\n| `anthropic` | `claude-haiku-4-5-20251001` | Recommended. Fast and highly accurate.              |\n| `openai`    | `gpt-4o-mini`               | Good alternative.                                   |\n| `gemini`    | `gemini-2.0-flash`          | Google's high-speed option.                         |\n| `ollama`    | `qwen2.5-coder:7b`          | Free and completely private. Requires local Ollama. |\n\n_You can change your active provider at any time by running `cb provider`._\n_If you are using Ollama, you can configure the timeout limit by running `cb timeout <ms>`._\n\n## Tool-Specific Injection\n\nWhat happens when you run `cb inject`:\n\n- **Antigravity:** `AGENTS.md` is written automatically to your project root. Antigravity reads it on every agent task. Nothing else needed.\n- **Codex:** `cb inject --codex | codex exec -` pipes context directly into a new session.\n- **Browser tools (Claude, ChatGPT, Gemini):** Context is copied to your clipboard automatically. Paste it at the start of your conversation.\n\n## Privacy & Storage\n\nAll context and configuration are stored locally in `~/.contextbridge/` on your machine. When using a cloud provider, only the LLM summary request is sent — not your raw git diff or clipboard content. When using Ollama, no data leaves your machine.\n","readmeFilename":"README.md"}