Skip to main content

Bridger

Bridger is a repository intelligence and knowledge system for AI coding agents. The design is documented in docs/bridger.

Local development

uv sync
uv run pytest
uv run ruff check .
uv run ruff format .
uv run mypy src

Install and connect a coding agent

Install Bridger once, then initialize each repository you want it to serve:

uv tool install usebridger
bridger auth set-key
cd ~/my-project
bridger init --reasoning low

bridger auth set-key prompts for a hidden OpenAI API key and stores it in the system credential store. Use bridger auth status to check the active source or bridger auth remove to delete the stored key. For CI or a temporary override, set OPENAI_API_KEY instead. It takes precedence over the stored credential. Bridger does not store API keys in the repository, .bridger/, or config.toml.

Successful bridger auth set-key setup creates an editable, non-secret config.toml in the platform-specific Bridger user config directory if one does not exist. Its initial contents come from Bridger's bundled config.toml:

schema_version = 1

[openai]
model = "gpt-6-sol"
reasoning = "xhigh"

--reasoning overrides the configured reasoning value. Existing BRIDGER_OPENAI_MODEL environment settings continue to override the configured model. Without a user config file, Bridger reads the bundled defaults and does not create files in the home directory.

Register a local stdio MCP server in your coding agent. For Codex, a minimal configuration is:

[mcp_servers.bridger]
command = "bridger"
args = ["mcp"]

For a project-local Cursor configuration, pass the workspace explicitly:

{
  "mcpServers": {
    "bridger": {
      "type": "stdio",
      "command": "bridger",
      "args": ["mcp", "--repository", "${workspaceFolder}"]
    }
  }
}

bridger mcp uses the coding agent's subprocess working directory by default. It resolves nested directories to the Git repository root. Use bridger mcp --repository /path/to/repository when the host starts the process elsewhere. Each server process serves one repository and stops with its host session. It exposes understand, impact, query_graph, search_repository, get_graph_entity, get_graph_neighbors, get_graph_subgraph, get_graph_path, list_graph_communities, and get_graph_community.

CLI commands

uv run bridger init
uv run bridger understand "How does repository initialization work?"
uv run bridger impact RepositoryLoader
uv run bridger understand "How does repository initialization work?" --json

Run consumption commands from inside an initialized repository. UNDERSTAND combines Repository Brain knowledge with structural context. IMPACT accepts exact repository symbols and reports potential structural impact. Use --json for the canonical machine-readable result.

Bridger is licensed under Apache-2.0. Vendored Graphify remains third-party code; its license and attribution notices are in THIRD_PARTY_NOTICES/Graphify.

Release files for usebridger 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for usebridger 0.1.0
File Size Uploaded
usebridger-0.1.0.tar.gz 1.5 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for usebridger 0.1.0
File Interpreter ABI Platform
usebridger-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 3.1 MB

Release files / usebridger-0.1.0.tar.gz

Download URL usebridger-0.1.0.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
5166661b73c1ac7c876335e752d5483f3bcf5abe4d6ead1028cb66eb62db5850
BLAKE2b-256 checksum
How to use checksums
9af605b9dfac7e0a0d06b736c0689989fadfe78d8e81cc9d3289ca17df594a3d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / usebridger-0.1.0-py3-none-any.whl

Download URL usebridger-0.1.0-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
edce5aba6dc1df46809401236abbdd17a04b434fb055bd917623c39c8408c8e6
BLAKE2b-256 checksum
How to use checksums
604c60e14af04e3766598c439c33f5e318731f3ecc65155f4bec856a970c526b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.12.19 {"installer":{"name":"uv","version":"0.12.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page