Show HN:Arbor - 一款基於 AST 的 Rust 引擎,用於確定性 AI 程式碼庫上下文

Show HN:Arbor - 一款基於 AST 的 Rust 引擎,用於確定性 AI 程式碼庫上下文

Hacker News·

Arbor 是一款在 Hacker News 上發布的新型 Rust 引擎,它利用抽象語法樹 (AST) 為程式碼庫中的 AI 提供確定性的上下文。該引擎旨在透過提供更結構化和可導航的程式碼智能方法,超越傳統的 RAG (檢索增強生成) 技術。

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

To see all available qualifiers, see our documentation.

The Graph-Native Intelligence Layer for Code.

License

Uh oh!

There was an error while loading. Please reload this page.

Anandb71/arbor

Folders and files

Latest commit

History

Repository files navigation

Image

Arbor

The Graph-Native Intelligence Layer for Code
Stop RAG-ing. Start navigating.

Quick Start •
Why Arbor? •
Features •
Architecture •
Protocol •
Contributing

Image

Image

Image

Image

Image

Image

Image

Why Arbor?

The Vector RAG Problem: Most AI coding assistants treat your codebase like a bag of text. They embed chunks into vectors and hope similarity search finds the right context. The result? Hallucinated connections, missing dependencies, and refactors that break everything downstream.

Arbor thinks differently.

We parse your code into an Abstract Syntax Tree using Tree-sitter, then build a living graph where every function, class, and variable is a node, and every import, call, and implementation is an edge. When an AI asks "where is authentication handled?", Arbor doesn't grep for "auth" — it traces the call graph to find the actual service that initiates the flow.

Quick Start

Option 1: Download Pre-built Binary (Recommended)

Download arbor-windows-v0.1.0.zip from the Releases page.

Option 2: Build from Source

That's it. Your IDE or AI agent can now connect to ws://localhost:7433 and query the graph.

Features

AST-Graph Intelligence

Every code entity becomes a queryable node. Arbor understands scope, shadowing, and namespace isolation — so when you ask for context, you get the exact logical block, not keyword-matched noise.

Sub-100ms Incremental Sync

Arbor watches your files and re-parses only the changed AST nodes. In a 100k-line monorepo, saving a file triggers a ~15ms update. You'll never notice it running.

Blast Radius Analysis

Refactoring a function? Arbor traces every caller, every consumer, every downstream dependency. See the full impact before you break production.

Semantic Ranking

Not all code is equal. Arbor ranks nodes by "centrality" — a function called by 50 others is more architecturally significant than a one-off utility. Context windows get the important stuff first.

Logic Forest Visualizer

The optional desktop app renders your codebase as an interactive force-directed graph. Custom shaders create bloom and glow effects as you navigate. Features include:

The Logic Forest Visualizer rendering 27,676 nodes with bloom effects

Image

Health Check

Verify your environment with a single command:

Image

Architecture

The Protocol

The Arbor Protocol is a simple JSON-RPC interface over WebSocket. Here's what your AI agent can ask:

See docs/PROTOCOL.md for the full specification.

Supported Languages

Adding a new language? See our language contribution guide.

Project Structure

Performance

We obsess over speed because slow tools don't get used.

Benchmarks run on M1 MacBook Pro. Your mileage may vary, but not by much.

Contributing

We love contributors. Whether you're fixing a typo, adding a language parser, or building something entirely new — you're welcome here.

Roadmap

Security

Arbor is designed with security in mind:

The Unified Nervous System

Arbor v0.1.0 is feature-complete. The entire stack is now synchronized:

Experience: Ask Claude, "How does auth work?" → Watch your IDE highlight the file → Watch the Visualizer fly to the node.

CLI Commands

License

MIT — use it however you want. See LICENSE for details.

Built for developers who think code is more than text.

"The forest is mapped. The AI is walking the path."

⭐ Star us on GitHub

About

The Graph-Native Intelligence Layer for Code.

Resources

License

Code of conduct

Contributing

Uh oh!

There was an error while loading. Please reload this page.

Stars

Watchers

Forks

Releases

  1

Packages

  0

Languages

Footer

Footer navigation

Hacker News

相關文章

  1. Show HN:LaReview,先規劃後審核的AI程式碼審查工具,可本地運行,自帶代理

    3 個月前

  2. Show HN:Atom – 開源 AI 工作團隊與多代理協調器

    4 個月前

  3. 彙整社群經驗的在地化AI程式設計指南

    4 個月前

  4. Show HN:Mantic.sh – 專為 AI 代理設計的結構化程式碼搜尋引擎

    4 個月前

  5. Show HN:為使用AI程式碼助手的開發者提供的兩本Rust書籍

    4 個月前

其他收藏 · 0