fak 标志

fak

社区
anthony-chaudhary

Agentic Runtime

发布者anthony-chaudhary
代码仓库fak
语言Go
复刻数
15
星标数
39
可用工具
0
传输类型stdio
分类
许可协议Apache-2.0
链接
  • 将工具接入 AI 工作流

    fak 提供 MCP 功能,可供兼容的 AI 客户端和智能体使用。

  • 0 个可用工具

    浏览下方可调用的操作;如果服务器提供了名称和描述,也会一并显示。

  • 可直接复制的配置

    使用安装配置片段,在您首选的 MCP 客户端中配置此服务器。

  • 开源社区热度

    关联的代码仓库有 39 个 Star 和 15 个 Fork。

fak — useful local agents, accelerated automatically

Fak is building the open runtime that makes useful local agents practical on your own machine.

Start locally, give an agent real work, and keep useful context across turns. Our first breakthrough milestone combines native inference, speculative decoding, and agentic caching into an experience whose qualified acceleration is automatic. The capability floor bounds what tools the agent may execute.

Status: this is the product milestone we are working toward. Today, automatic setup and cache reuse have specific model/backend limits; speculative decoding and physical GPU Direct paths are not universally enabled or qualified. See the local-agent milestone for the current wiring, the meaning of automatic, and the evidence required to earn the claim.

Try fak

Install with curl -fsSL https://raw.githubusercontent.com/anthony-chaudhary/fak/main/install.sh | sh (or go install github.com/anthony-chaudhary/fak/cmd/fak@latest).

Try the local workflow on a supported Apple Silicon configuration:

  1. Start local inference (fak up): Probes unified memory with macfit to choose a model/context budget with headroom. Starts the local OpenAI-compatible endpoint on :8080 and opens an interactive chat REPL. Use fak up --mock to inspect the workflow without a model or GPU; mock output is not inference performance evidence.

    bash
    fak up
    # -> [READY] fak up running on http://127.0.0.1:8080

    Inspect the selected model/backend and memory budget before interpreting results. Apple Metal selection is automatic when the device and build support it.

  2. Run agent work (fak opencode): In another terminal (or backgrounding fak up --headless), launch OpenCode:

    bash
    fak opencode

    Give OpenCode a parallel multi-agent prompt:

    "Using parallel subagents, audit the packages under internal/ and report their status"

    Compatible agents can reuse shared instructions and repository context. Inspect actual cache reuse and task outcomes; a fresh prefix still requires prefill, and reuse depends on model state, backend support, and cache identity.

  3. Inspect the subagent benchmark:

    bash
    fak bench subagent --concurrency=4

    This does not replace a real coding-task acceptance witness. Check the benchmark's engine, execution regime, and receipt before treating its output as hardware evidence; simulated output does not qualify a physical device.

[!TIP] New to subagents? Follow the Subagents Guide to launch fak up and run parallel cohorts with shared-prefix cache reuse.

Governance for external agents (fak guard)

Already running Claude Code or Codex? Wrap the agent you already run with one command to add a default-deny capability floor. fak forwards Codex subscription credentials with no API key required and blocks tools outside the allowed policy without breaking the task:

bash
fak guard -- codex

In-kernel policy adjudication checks every tool call in under a microsecond before execution. See the interactive showcase for a guided tour, or run fak agent --offline (# -> task completed) to inspect policy decisions with zero setup.

Latest hardware results — 2026-09-08

The front page shows one row per supported hardware family. Latest means the newest committed performance receipt for that platform, not the newest code change. A row can be historical or held when no newer quality-complete measurement exists. The table reports measured throughput with claim boundaries beside each result and links to its receipt.

PlatformLatest witnessed resultStatus & Details
MacQwen3.8-27B Q4_K_M on Apple M3 Pro: forward-owned Metal sequence prefill was 43.8% faster, 10,284.5 vs 18,304.9 ms, and used 1 command buffer instead of 192; observed 2026-09-03.Accepted component-path result with exact greedy continuation and zero fallbacks; it is not a full-run throughput comparison. Qwen result index
AMDQwen3.6-27B on RX 7600: the pure-fak TG1 microbench measured 1.24 decode tok/s versus 0.99 for the local llama.cpp Vulkan baseline; observed 2026-06-19.Narrow, older-model microbench. No accepted current Qwen3.8 AMD result exists. AMD receipt
NVIDIAQwen2.5-3B Q8_0 on a physical Hopper H100: fak reached 111.9 decode tok/s, 17.4% above its f32 path; observed 2026-09-05.Native CUDA result; llama.cpp Q8_0 was 3.24× as fast at 362.7 tok/s in the same run. H100 receipt

Read the status column before comparing rates: results compare matched envelopes against explicit baseline runtimes on identical hardware.

Use the benchmark index for hardware history and model-specific results. Use BENCHMARK-AUTHORITY.md for claim boundaries and canonical receipts. For Mac local model setup and head-to-head Apple Silicon Metal measurements, see the Mac local models guide and the three-way Mac benchmark. For agent UI workflows, see the Mac agent UI guide.

Why run coding agents on fak

  • Reuse the work behind each turn: Compatible prefix/KV caching avoids rebuilding shared instructions and context. The product target is automatic reuse across turns and compatible agents, with correct invalidation and isolation.
  • Accelerate generation automatically: Native kernels, memory sizing, quantization, and speculative decoding are parts of one local workflow. The milestone requires qualified defaults; current MTP decoding requires explicit selection. See the implementation snapshot.
  • Real-time multi-agent visibility: Inspect live cross-agent reuse rates, per-subagent token breakdowns, and savings sparklines directly in your terminal overlay (fak info / fak guard) to see and verify the speedup as subagents execute concurrently.
  • Keep reusable state close to compute: Device-resident caching and direct GPU storage paths aim to reduce paging and copy overhead on supported hardware. GPU residency and physical NVMe-to-GPU DMA are different claims. The current claim ledger and milestone explain the wiring and qualification limits; a default-valued flag alone proves neither.
  • Run on your own hardware: Native backends target Apple Silicon, AMD, and NVIDIA with different support envelopes — and different delivery channels: The installer defaults to Apple Silicon Metal on darwin/arm64 and bundled Vulkan on linux/amd64, including AMD Strix Halo. NVIDIA users are directed to ghcr.io/anthony-chaudhary/fak:cuda-latest with --gpus all. CPU archives are secondary references selected with --variant cpu. The Metal archive is available on v0.54.0, backfilled from that exact tag. Vulkan publication remains pending its release and hardware gate. Missing GPU assets fail with an actionable message. Apple acceleration is fak-native Metal; MLX is a comparison runtime. New native-performance work prefers Qwen3.8. Choose a supported model/backend and measure the actual local workflow.
  • Default-deny capability floor: Protect your workspace from unintended commands, path escapes, or tool poisoning. Every tool call is verified against a capability floor before execution. Drop-in wrappers protect existing agents like Claude Code, Codex, OpenCode, and Cursor with zero rewrites.

Native inference provides direct execution on local silicon, with external engines supported as an explicit reference; see the native inference goal for details.

Default priorities & operating modes

fak is organized around a focused four-tier default priority hierarchy:

  1. fak all in one (serving and harness + memory — the "one touch" thing): The primary focus is the automatic local-agent milestone: model serving, agent execution, capability-floor governance, and reusable context through one approachable runtime. Qualification requires a real task and independent acceptance evidence on a supported machine.
  2. fak serving only: High-performance model inference runtime (fak serve), disaggregated gateway, KV-cache context acceleration, and native model execution.
  3. fak harness only: Standalone agent governance (fak guard) with a default-deny capability floor and tool adjudication over external models.
  4. other things: Standalone utilities, peripheral tools, benchmarks, and off-spine extensions.

Install and configure

bash
# macOS / Linux
curl -fsSL https://raw.githubusercontent.com/anthony-chaudhary/fak/main/install.sh | sh

# Any host with Go 1.26+
go install github.com/anthony-chaudhary/fak/cmd/fak@latest

# Inspect the shipped profiles
fak agent profiles

Tune agent execution with built-in work and output profiles that cut token waste and resist unnecessary dependencies:

bash
fak guard --output-profile caveman:medium --work-profile ponytail:high -- codex \
  "Remove the duplicate cache without adding a dependency."

Balanced defaults are ponytail:medium for work discipline and caveman:medium for concise responses. See work profiles, response profiles, or the harness guide to build a named agent on the runtime.

Going deeper

If you want to…Start here
Check what is shipped, limited, or plannedStatus · claims · feature matrix
Browse performance evidenceMac · AMD · NVIDIA · all benchmarks
Is the cache paying off? (trend)Cache-value roll-up — kernel reuse and provider-dollar savings kept in separate, unblended tracks
Connect another agent or modelCodex · Claude Code · subagents · Mac local models · all integrations
Understand the runtimeArchitecture · capability map · CLI reference
Learn in prerequisite orderStart here · learning path · documentation index
Build on fakGo API · harness contract · contributing

Commercial serving

We run one of your repetitive repo workloads — test-candidate generation, codebase Q&A, or doc maintenance — on a managed, metered inference route, and we prove it against your current baseline on your acceptance criteria before you pay for ongoing operation. Qualification is a two-week pilot on one workload with a continue/stop recommendation. Claims are confidence-tiered: the inference quality is measured at raw-compute parity and decode advantage [SW-VERIFIED]; production readiness is not yet claimed. The pilot is a fixed fee; ongoing operation is metered. To start, open an issue in this repository describing your workload — every inquiry routes into our pipeline ledger (channel=oss).

Provenance: gtm-t08 commercial-serving touchpoint.

Apache-2.0 licensed.

安装

TypingMind
{
  "mcpServers": {
    "fak": {
      "command": "fak",
      "args": [
        "agent",
        "--offline"
      ]
    }
  }
}

将 fak MCP 与多个 AI 模型配合使用

TypingMind 在工作区级别连接 MCP 工具,因此连接 fak 后,您就可以在 TypingMind 中搭配不同的 AI 模型使用,无需为每个模型单独设置。 此 MCP 通过您设备上的 TypingMind MCP 连接器在本地运行。

本地连接器设置指南

如果 MCP 服务器需要访问您电脑上的本地文件、应用或私有资源,请选择此方式。

1

打开 MCP 设置

在 TypingMind 中,依次前往“设置”、“高级设置”和“模型上下文协议”,然后选择“设置连接器”。

  1. 在您的浏览器中打开 TypingMind。
  2. 点击“设置”图标。
  3. 进入“高级设置”。
  4. 打开“模型上下文协议”部分。
  5. 点击“设置连接器”,然后选择“此设备”。
TypingMind MCP 连接器设置界面,已选择“此设备”
2

运行连接器命令

选择“此设备”,从 TypingMind 复制命令并在终端中运行。使用 MCP 时,请保持该进程运行。

  1. 复制 TypingMind 显示的设置命令。
  2. 在 macOS 上打开“终端”,或在 Windows 上打开 Windows Terminal。
  3. 粘贴并运行命令。
  4. 如果终端询问您是否继续,请确认安装软件包。
  5. 使用 MCP 工具时,请保持终端窗口及其中的进程运行。
3

将 fak 添加为服务器

当连接器状态为“就绪”时,点击“编辑服务器”,然后粘贴 MCP 服务器配置。

  1. 等待连接器状态显示为“就绪”。
  2. 点击“编辑服务器”。
  3. 粘贴 fak MCP 服务器配置。
  4. 保存服务器列表。
  5. 如需确认连接器是否仍处于就绪状态,请刷新。
TypingMind MCP 设置界面,显示正在运行的服务器和“编辑服务器”按钮
{
  "mcpServers": {
    "fak": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

在不同模型中使用同一连接

保存服务器列表,打开“插件”,启用 fak MCP 工具,然后在 TypingMind 中选择任意受支持的 AI 模型,即可在聊天中使用这些工具,或将其分配给智能体。

  1. 在 TypingMind 中打开“插件”页面。
  2. 启用 fak MCP 工具。
  3. 开始聊天并选择您想使用的 AI 模型。
  4. 在聊天中使用 MCP 工具,或将其分配给 AI 智能体。
  5. 根据需要随时切换到其他 AI 模型,无需重新连接 MCP。
在 TypingMind 聊天中使用已启用的 MCP 工具和选定的 AI 模型
您能使用 fak 帮我完成这项任务吗?
fak
当然。我已阅读。
以下是我使用 fak 得到的结果。

常见问题

fak MCP 服务器有什么用途?

fak 是一个 MCP 服务器,可让兼容的 AI 客户端连接外部工具并获取上下文。在 TypingMind 中,只需添加一次此 MCP 服务器,即可在您的 AI 工作区中使用其工具。

可以在 TypingMind 中让多个 AI 模型使用 fak MCP 吗?

可以。TypingMind 在工作区层面连接 MCP 工具,因此您可以让 Claude、ChatGPT、Gemini 等不同 AI 模型,或您在 TypingMind 中配置的其他模型使用 fak,而无需为每个模型单独配置 MCP 服务器。

为什么在 TypingMind 中使用 fak MCP?

TypingMind 将多个 AI 模型、提示词、插件、AI 智能体、API 密钥和 MCP 工具整合到同一个工作区中,是优秀的大语言模型聊天前端之一。连接 fak 后,您可以在偏好的不同模型中使用其 MCP 工具,同时在 TypingMind 中井然有序地管理聊天工作流程。

如何将 fak MCP 连接到 TypingMind?

fak 通过 TypingMind 本地 MCP 连接器运行。当 MCP 服务器需要访问您计算机上的本地文件、桌面应用、命令行工具或私有资源时,这种方式最合适。

fak MCP 在 TypingMind 中提供哪些工具?

fak 提供 MCP 功能,您可以在 TypingMind 的插件页面启用这些功能,然后在聊天中使用,或将其分配给 AI 智能体。

使用 fak MCP 需要向 TypingMind 提供我的 API 密钥吗?

不需要。TypingMind 采用本地优先的设计,让您自行掌控模型提供商、API 密钥、提示词和 MCP 配置。如果 fak 需要身份验证,请在创建连接时,为该 MCP 服务器添加所需的请求头、OAuth 设置或本地配置。

相关 MCP 服务器

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇