Show HN:Ante,一个可在单文件内离线运行的编程智能体
Show HN: Ante, a coding agent in a single binary that runs offline

原始链接: https://github.com/AntigmaLabs/ante

Ante 是一款专为 macOS 和 Linux 设计的独立、高性能编程智能体。它使用 Rust 构建,以单个约 15MB 的二进制文件发布,无运行时依赖,相比 Claude Code 等竞品,其内存和 CPU 占用显著更低。 **主要特性包括:** * **多功能性:** 支持交互式 TUI、无头(headless)单次任务,以及用于自定义集成的服务器模式。 * **厂商中立:** 支持 12 家以上服务商(OpenAI、Anthropic、Gemini 等),并可通过内置推理引擎使用本地 GGUF 模型实现完全离线运行。 * **透明度:** 每个版本都经过持续基准测试(Terminal-Bench 2.1),测试结果公开可查。 * **可扩展性:** 作为“细胞级”智能体设计,Ante 针对大规模、自组织的智能体架构进行了优化。 Ante 目前处于 Alpha 测试阶段,提供灵活的“自带模型”方案,无需账户,无厂商绑定。其协议和 SDK 开源(Apache 2.0 协议),核心二进制文件在预览期间可免费使用。安装简便:`curl -fsSL https://ante.run/install.sh | bash`。

这次讨论的核心是 **Ante**,这是一款全新的编程智能体。它以一个 15MB 的单一二进制文件形式发布,具备离线运行能力,内置终端用户界面 (TUI),并通过内嵌的 `llama.cpp` 引擎支持本地 GGUF 模型。 该项目在 Hacker News 社区引发了广泛质疑,主要集中在它未公开源代码这一点上。用户认为,这种具有高权限的“二进制黑盒”存在重大安全风险,且用户无法对其进行验证、审计或修改。开发者 @ubermon 承认了这些担忧,并承诺将转向开源模式。 此外,该智能体的遥测策略(默认开启,需手动关闭)也引发了争议。批评者指出,一款标榜“离线”的工具却在收集用户数据,这十分讽刺。对此,开发者承诺在未来的更新中将遥测策略改为“默认关闭,需手动开启”。 参与讨论的其他用户还探讨了 AI 编程智能体的更广泛前景,将 Ante 与 `smol` 和 `hax` 等轻量级开源替代品进行了对比。辩论还涉及本地大语言模型在游戏开发中的可行性,以及一个哲学命题:使用 AI 智能体生成代码,究竟算是在“构建”软件,还是仅仅在转包工作。
相关文章

原文

Ante — substrate for self-organizing intelligence

Alpha preview: expect breaking changes and incomplete functionality. macOS and Linux only; on Windows we suggest WSL.

A ghost in your shell. Ante is a self-contained coding agent that lives in your terminal and self-organizes. One ~15MB Rust binary from Antigma Labs, zero runtime dependencies, built to get the most out of any model.

It works like Claude Code or Codex, with none of their dependencies or model constraints. It can also be the optimized core for building your own harness and high-performing assistants.

curl -fsSL https://ante.run/install.sh | bash
ante

Every agent claims to be good. Here are numbers you can check:

🥇 Continuously evaled and evolved, in public

Ante runs Terminal-Bench 2.1 continuously under official leaderboard constraints: 89 tasks, 5 trials each. Each result pins the exact build you can download and links the raw Harbor run for independent audit. Latest full run: 82.7% with open-weight DeepSeek V4 Flash 0731 (368/445 trials, Ante 0.preview.71, about $68 of inference). DeepSeek reports the same 82.7 for this model, measured with its unreleased DeepSeek Harness in minimal mode.

Live results → · Methodology →

🪶 A fraction of the footprint

Ante is hand-written Rust with the heavy parts (Grep, git, local inference) embedded in one binary, one process. Across the same 20 parallel tasks in Docker, Ante uses ~7× less peak memory, ~9× less average CPU, and ~5× less disk I/O than Claude Code.

Resource Usage Comparison

Raw numbers → · Benchmark details →

Ante ships its own inference engine. Point it at a GGUF file and the whole loop runs on your machine: no API key, no account, no internet.

ante --offline-model ~/.ante/models/Qwen3.5-9B-Q4_K_M.gguf \
  -p "add error handling to src/main.rs"

Offline mode →


The three are one design decision. An agent you can verify, afford, and run anywhere is light enough to run by the thousands: the substrate for self-organizing intelligence.

See all cookbook guides

Ante is a single, self-contained binary with no external dependencies: download and run.

curl -fsSL https://ante.run/install.sh | bash

# Install a specific release channel
curl -fsSL https://ante.run/install.sh | bash -s -- nightly

# Install into a directory already on PATH
curl -fsSL https://ante.run/install.sh | ANTE_INSTALL_DIR=/usr/local/bin bash
Mode Command Use it for
Interactive TUI ante day-to-day work in the terminal
Headless ante -p "..." one-shot tasks, scripts, CI
Server ante serve editor plugins and integrations, over a JSONL protocol
Gateway ante gateway running Ante as a Slack or Discord bot
# Fix a bug
ante -p "find and fix the failing test in src/auth"

# Review a diff
git diff | ante -p "review this for security issues"

# Use a different provider
ante --provider openai --model gpt-5.5 -p "refactor the database module"

# Resume a saved session
ante --resume ses_01ARZ3NDEKTSV4RRFFQ69G5FAV -p "now add tests"

# Run fully offline with a local GGUF model
ante --offline-model ~/.ante/models/Qwen3.5-9B-Q4_K_M.gguf \
  -p "add error handling to src/main.rs"
ante update

# One-off update from a different channel
ante update --channel nightly

# Roll back or pin to an exact release
ante update --version v0.preview.71

Beyond the headline numbers

  • Zero vendor lock-in: bring your own API key, subscription, or local model. Switch between 12+ providers freely. No account required, not even with us.
  • Multi-agent orchestration: spawn sub-agents and coordinate complex tasks across independent, decentralized, and centralized architectures. See the patterns →
  • Channel integrations: run Ante as a Slack or Discord bot with ante gateway.
  • Extensible: custom skills, sub-agents, MCP, and persistent memory across sessions.

Ante works with 12+ providers out of the box:

Provider Example Models
Anthropic Claude Sonnet 4.5, Opus 4.6
OpenAI GPT-5 family
Google Gemini Gemini 3 family
Grok (xAI) Grok 4
Open Router Multiple providers
Local (GGUF) Any GGUF model via built-in llama.cpp
...and more Vertex AI, Zai, Antix, OpenAI-compatible

Configure providers via environment variables (ANTHROPIC_API_KEY, OPENAI_API_KEY, etc.) or OAuth. Add custom providers in ~/.ante/catalog.json.

We open sourced what really matters in the age of agentic coding, all under Apache 2.0:

  1. Detailed documentation, the descriptive truth. docs-site/ is the source for docs.antigma.ai: a precise description of what the harness does and how to drive it.
  2. The protocol, the algorithm of the core. crates/protocol-shape defines the schema and wire messages spoken by ante serve; crates/agent-sdk is the Rust SDK and client for building against agent runtimes.
  3. The eval pipeline, constraint and continuous improvement. ante-harbor/ is the Harbor agent adapter behind our Terminal-Bench results: use it to reproduce any run at antigma.ai/eval. CHANGELOG.md records the improvement, release by release.

The core harness itself is developed in a private repository during the alpha and ships as a prebuilt binary via releases. Core libraries from it are included here progressively as they stabilize; crates/exec, standalone process execution, is the first.

The protocol surface maps to Ante's client-daemon architecture:

┌─────────────────────────────────────────────────────────────┐
│                         Clients                             │
│                                                             │
│   ┌───────────┐    ┌───────────┐    ┌────────────────────┐  │
│   │    TUI    │    │ Headless  │    │    ante serve      │  │
│   │  (ante)   │    │ (ante -p) │    │  (stdio / ws)      │  │
│   └─────┬─────┘    └─────┬─────┘    └─────────┬──────────┘  │
└─────────┼────────────────┼─────────────────────┼────────────┘
          │                │                     │
          ▼                ▼                     ▼
┌─────────────────────────────────────────────────────────────┐
│                         Daemon                              │
│                                                             │
│   Session ──▶ Turn ──▶ Step                                │
│                                                             │
│   ┌──────────┐  ┌──────────────┐  ┌───────────────────┐     │
│   │  Tools   │  │  Permission  │  │  Skills / Agents  │     │
│   └──────────┘  └──────────────┘  └───────────────────┘     │
└────────────────────────┬────────────────────────────────────┘
                         │
                         ▼
┌─────────────────────────────────────────────────────────────┐
│                     LLM Providers                           │
│                                                             │
│   Anthropic · OpenAI · Gemini · Grok · Open Router · Local  │
└─────────────────────────────────────────────────────────────┘

We care about the harness, not the model or the prompts.

Documentation is the new source code.

Ante is designed for cellular-native agents: like cells in an organism, tiny, expendable, massively replicated. That thesis is why the three headline claims exist. A cell-scale agent must be verified (reliability compounds at scale), tiny (every byte is multiplied by thousands), and self-contained (no runtime to install, no service to phone home to). Read more in our philosophy and agent organization patterns.

Why another terminal agent?

The name is the answer: Another Terminal agent, and ante, the stake you put on the table to play. Ante is fast, lightweight, and the only terminal agent with native local inference built in. We believe a self-contained agent core that self-organizes is the foundation of the coming agent economy.

How is Ante different from other agents?

Ante has most of the features you expect from agents like Claude Code or Codex: multi-agents, skills, MCP, persistent memory. The difference is the build philosophy.

  • Built from scratch in Rust. Core components like Grep (fully rebuilt and customized) and git are embedded in the same ~15MB binary and run in the same process at runtime, so nothing is shelled out and no resources leak. Most similar projects ship on Node.js or CPython and carry an order-of-magnitude larger footprint.
  • We built our own inference engine from the ground up (see nanochat-rs for a toy version of that work), so a local GGUF model is all Ante needs to run without any provider.
  • No vendor lock-in, not even to ourselves: no account needed, reuse your existing API credentials. An opt-in, fully integrated server-side experience lives at antix.antigma.ai.
  • Every claim is backed by public, reproducible benchmarks of the exact builds we ship: antigma.ai/eval.

Beyond the footprint it comes down to agent architecture, and ultimately to who is building it and with what philosophy. Anyone can fork a binary; taste and engineering rigor don't copy. Those differences leak into every detail of the product.

Why care about runtime optimization like memory and I/O if model inference is usually the biggest bottleneck?

For one-on-one agent interactions, runtime overhead like memory usage and I/O is often less important than model inference.

But our vision is much bigger: millions of agents self-organizing and communicating at massive scale. At that point, even small inefficiencies get multiplied millions or billions of times, so runtime optimization becomes economically significant.

Can I run Ante completely offline?

Yes. Ante has a built-in llama.cpp engine that runs GGUF models locally. It handles engine installation, model discovery, and memory management automatically. No API keys or internet connection required.

Can I use my own custom models or providers?

Yes. Create a ~/.ante/catalog.json file to add or override providers and models with custom endpoints, API keys, and configurations. Any OpenAI-compatible API works.

What is the ante serve mode for?

Server mode runs Ante as a long-lived daemon that communicates over a structured JSONL protocol. It's ideal for building editor plugins, web UIs, and custom integrations on top of Ante.

Full documentation is available at docs.antigma.ai.

Source code in this repository (including the SDK and protocol crates) is licensed under the Apache License 2.0.

The prebuilt ante binary is free to use — including commercially — during the alpha preview under the Binary Preview Terms. The core harness is currently developed in a private repository and shipped as a binary; the SDK and protocol surface you build against here will remain permissively licensed.

联系我们 contact @ memedata.com