@brokkai/bifrost-linux-x64-gnu

中文文档
0.15.1发布于 2026/11/05Apache-2.0零依赖构建来源已验证近 30 天下载 4004

Native Linux x64 glibc bundle for @brokkai/bifrost

原始使用文档
文档目录10 节
  1. Why Bifrost?
  2. Run Your First Query
  3. See Bifrost in Action
  4. Turn Source into a Query in VS Code
  5. Use the Same Analyzer from the CLI
  6. Language Coverage
  7. Documentation
  8. Repository Layout
  9. License and Commercial Use
  10. Contributing

Bifrost

Bifrost — code intelligence for AI, with structural queries and multi-language analysis designed for repository-scale use

Latest release crates.io PyPI npm Apache-2.0

Quickstart · Documentation · Ten-minute evaluation · Discord

Why Bifrost?

bifrost is Brokk's Rust-based static analysis toolbox for AI coding harnesses, editors, and large repositories.

Bifrost gives every supported language a shared intermediate representation, so the same structural query and navigation workflows work across a mixed-language repository instead of stopping at language boundaries.

  • One multi-language IR. Parse unbuilt or partially broken workspaces and normalize their source structure for cross-language analysis.
  • A real query language. Use JSON CodeQuery or the Rune Query Language (RQL) to find language-neutral code shapes and traverse indexed declarations, references, calls, imports, and type relationships.
  • Built for agents and editors. Expose structured MCP tools to coding agents, LSP features to editors, and the same analyzer through the CLI, Python, and Rust.
  • Designed for active repositories. Snapshot isolation, incremental updates, content-based caching, and git/worktree awareness keep analysis responsive as a repository changes.

See Choose Bifrost for the right interface for your workflow, and the Language and Analysis Capabilities matrix for language-by-language support, precision tiers, and current analysis boundaries.

Run Your First Query

Install the released CLI, clone the small verified evaluation fixture, and run its saved RQL query:

curl -fsSL https://raw.githubusercontent.com/BrokkAi/bifrost/refs/heads/master/install.sh | bash
git clone --depth 1 https://github.com/BrokkAi/bifrost.git
cd bifrost/docs/fixtures/ten-minute-evaluation
bifrost --root . --query-file queries/find-audit.rql

Users with uv or pipx can instead run uv tool install brokk-bifrost or pipx install brokk-bifrost; both install the same native bifrost command from a platform wheel in an isolated environment. uvx brokk-bifrost --version runs it without a persistent install.

Node users can run npm install -g @brokkai/bifrost or use npx -y @brokkai/bifrost --version. The npm package installs the same released native command for the current platform.

The installer downloads the checksum-verified release binary into ~/.local/bin on macOS (Apple Silicon and Intel), glibc 2.28+ Linux (x86-64 and ARM64), WSL, and Android under Termux. Homebrew users on macOS and glibc Linux can run brew install brokkai/tap/bifrost instead. On Windows, use the published archive or build from source. Musl distributions such as Alpine have no supported prebuilt release; users can attempt a source build with cargo install brokk-bifrost --locked. See Install Bifrost for the full platform table.

The result identifies the normalized Python call and its exact source location:

{
  "isError": false,
  "structuredContent": {
    "results": [
      {
        "enclosing_symbol": "src.app.handle",
        "end_line": 5,
        "kind": "call",
        "language": "python",
        "path": "src/app.py",
        "result_type": "structural_match",
        "start_line": 5,
        "text": "audit(value)"
      }
    ],
    "truncated": false
  }
}

Continue with the ten-minute evaluation to run the same query through the CLI, an MCP-connected coding agent, and VS Code.

See Bifrost in Action

Turn Source into a Query in VS Code

Selecting Python source in VS Code, inspecting its normalized Rune IR, using the generated starter RQL, and browsing the exact query result

Select a source construct and run Bifrost: Show Rune IR to inspect its language-neutral .rune form and get a conservative starter RQL query. Run that query from the editor, browse typed results grouped by file, and jump to the exact source range. The extension also provides definitions, references, hover, rename, symbols, hierarchy, diagnostics, completion, and other LSP features.

Use the Same Analyzer from the CLI

Running a saved RQL query with the Bifrost CLI and receiving an exact structured match

Run saved RQL or JSON queries directly, or call the same named tools exposed over MCP for shell scripts and reproducible analysis workflows.

Language Coverage

Bifrost includes analyzers for C, C++, C#, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust, Scala, and TypeScript. See the capability matrix for the supported analysis and precision boundaries in each language.

Documentation

The public documentation site lives in docs/ and is published at bifrost.brokk.ai.

Useful starting points:

Run the docs site locally with:

cd docs
npm install
npm run dev

GitHub Pages publication is handled by .github/workflows/docs.yml. Release tag builds publish both the latest docs site and a versioned snapshot under versions/<tag>/.

Repository Layout

The repository is organized around the public product surfaces:

  • Core analysis: crates/ contains the Rust workspace crates; src/ provides the top-level facade and CLI; schemas/ holds shared data contracts.
  • Integrations and distribution: the VS Code extension and the Zed extension scaffold are maintained in BrokkAi/bifrost-lsp. plugins/ contains coding-agent plugins; npm/, packaging/, and bifrost_searchtools/ expose or package the analyzer.
  • Documentation and examples: docs/ is the documentation site; examples/ contains runnable examples.
  • Open analysis content: BrokkAi/bifrost-packs is the home for open semantic packs and policy rules, including contributions, generation, and independently versioned releases. The v0.13 engine ships without product rules; LSP/MCP and other hosts acquire compatible releases through the verified cache flow. Parser assets and separate semantic-model packs remain engine inputs. The engine retains pack tooling and regression fixtures; .bifrost/ contains project-level analysis defaults.
  • Development support: benchmark/ covers reproducible measurements; scripts/ and tools/ hold maintenance and release helpers. Root manifests plus .github/, .cargo/, and .config/ define builds, checks, and automation.

License and Commercial Use

Bifrost's public open core is licensed under Apache-2.0 and may be used in research, internal systems, hosted services, and commercial products. Read the License page for the project terms and Third-Party Notices for the additional terms that apply to official binaries and semantic packs.

Contributing

Project contributors   @jbellis @DavidBakerEffendi @foundev @sontek @alexswearingen @joshuadavidthomas

The public repository is projected from Bifrost's open-core source, so its GitHub contributor graph does not reflect everyone who helped build the project.

For local development, test commands, repository-local Python workflow, and release tagging, see CONTRIBUTING.md.

Contribute open semantic models and policies to Bifrost-packs. Engine, parser, catalog, and policy-evaluation improvements belong here.

版本与发布记录

@brokkai/bifrost-linux-x64-gnu 共发布 30 个版本,首次发布于 2026/08/05;过去 12 个月发布了 30 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.15.1latest2026/11/053 天前
0.15.02026/11/026 天前
0.14.42026/11/017 天前
0.14.22026/10/2712 天前
0.14.12026/10/2415 天前
0.14.02026/10/2217 天前

关于 @brokkai/bifrost-linux-x64-gnu 的常见问题

@brokkai/bifrost-linux-x64-gnu 是什么?

Native Linux x64 glibc bundle for @brokkai/bifrost

如何安装 @brokkai/bifrost-linux-x64-gnu?

在项目目录运行 npm install @brokkai/bifrost-linux-x64-gnu,或使用 pnpm add / yarn add / bun add。

@brokkai/bifrost-linux-x64-gnu 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/brokkai__bifrost-linux-x64-gnu 是否存在。

@brokkai/bifrost-linux-x64-gnu 可以商用吗?

@brokkai/bifrost-linux-x64-gnu 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@brokkai/bifrost-linux-x64-gnu 的下载量有多少?

根据 npm 官方下载统计,@brokkai/bifrost-linux-x64-gnu 在 2026/10/09 – 2026/11/07 这 30 天内被下载 4,004 次,日均约 133 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@brokkai/bifrost-linux-x64-gnu 还在维护吗?

最新版本 0.15.1 发布于 2026/11/05(3 天前);至今共发布 30 个版本,其中过去 12 个月发布了 30 个;首次发布于 2026/08/05。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。