Логотип fak

fak

Спільнота
anthony-chaudhary

Agentic Runtime

Видавецьanthony-chaudhary
Репозиторійfak
МоваGo
Форки
15
Зірки
39
Доступні інструменти
0
Тип транспортуstdio
Категорії
ЛіцензіяApache-2.0
Посилання
  • Підключайте інструменти до робочих процесів із ШІ

    fak надає можливості MCP, які можуть використовувати сумісні клієнтські ШІ-застосунки та агенти.

  • Доступні інструменти: 0

    Перегляньте нижче дії, які можна викликати, з назвами й описами, якщо сервер їх надає.

  • Готова конфігурація для копіювання

    Скористайтеся прикладами конфігурації, щоб налаштувати цей сервер у вибраному клієнті MCP.

  • Показники інтересу до відкритого коду

    Зірки: 39, форки: 15 — у пов’язаному репозиторії.

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"
      ]
    }
  }
}

Використовуйте MCP fak з різними моделями ШІ

TypingMind підключає інструменти MCP на рівні робочого простору, тож після підключення fak ви можете використовувати їх із різними моделями ШІ в TypingMind, а не налаштовувати окремо для кожної моделі. Ця інтеграція MCP працює локально через конектор MCP TypingMind на вашому пристрої.

Інструкція з налаштування локального конектора

Виберіть цей варіант, якщо серверу MCP потрібен доступ до локальних файлів, програм або приватних ресурсів на вашому комп’ютері.

1

Відкрийте налаштування MCP

У TypingMind перейдіть до розділу «Налаштування», відкрийте «Розширені налаштування», потім «Протокол контексту моделі» й виберіть «Параметри конектора».

  1. Відкрийте TypingMind у браузері.
  2. Натисніть значок налаштувань.
  3. Перейдіть до розділу «Розширені налаштування».
  4. Відкрийте розділ «Протокол контексту моделі».
  5. Натисніть «Параметри конектора» й виберіть «Цей пристрій».
Екран налаштування конектора MCP у TypingMind з вибраним варіантом «Цей пристрій»
2

Виконайте команду конектора

Виберіть «Цей пристрій», скопіюйте команду з TypingMind і виконайте її в терміналі. Не зупиняйте процес, поки користуєтеся MCP.

  1. Скопіюйте команду налаштування, показану в TypingMind.
  2. Відкрийте «Термінал» у macOS або Windows Terminal у Windows.
  3. Вставте й виконайте команду.
  4. Підтвердьте встановлення пакета, якщо термінал запитає дозволу продовжити.
  5. Не закривайте вікно термінала й не зупиняйте процес, поки користуєтеся інструментами MCP.
3

Додайте fak як сервер

Коли статус конектора зміниться на «Готово», натисніть «Змінити сервери» та вставте конфігурацію сервера MCP.

  1. Зачекайте, доки статус конектора зміниться на «Готово».
  2. Натисніть «Змінити сервери».
  3. Вставте конфігурацію сервера MCP fak.
  4. Збережіть список серверів.
  5. Оновіть дані, щоб переконатися, що конектор досі готовий до роботи.
Налаштування MCP у TypingMind з активним сервером і кнопкою «Змінити сервери»
{
  "mcpServers": {
    "fak": {
      "command": "npx",
      "args": [
        "-y",
        "<mcp-server-package>"
      ]
    }
  }
}
4

Використовуйте підключення з різними моделями

Збережіть список серверів, відкрийте «Плагіни», увімкніть інструменти MCP для fak, а потім виберіть будь-яку підтримувану модель ШІ в TypingMind і використовуйте інструменти в чаті або призначте їх агенту ШІ.

  1. Відкрийте сторінку «Плагіни» в TypingMind.
  2. Увімкніть інструменти MCP для fak.
  3. Почніть чат і виберіть модель ШІ, яку хочете використовувати.
  4. Використовуйте інструменти MCP у чаті або призначте їх агенту ШІ.
  5. За потреби перемикайтеся на іншу модель ШІ без повторного підключення MCP.
Чат TypingMind із використанням увімкнених інструментів MCP і вибраної моделі ШІ
Допоможете з цим завданням через fak?
fak
Звісно. Я це прочитав.
Ось що я знайшов за допомогою fak.

Поширені запитання

Для чого використовується сервер MCP fak?

fak — це сервер MCP, який дає змогу сумісним клієнтам ШІ підключатися до зовнішніх інструментів і контексту. У TypingMind ви можете додати цей сервер MCP один раз і зробити його інструменти доступними у своєму робочому просторі ШІ.

Чи можу я використовувати MCP fak з кількома моделями ШІ в TypingMind?

Так. TypingMind підключає інструменти MCP на рівні робочого простору, тому ви можете використовувати fak з різними моделями ШІ, як-от Claude, ChatGPT, Gemini або іншими моделями, які ви налаштували в TypingMind, без окремого налаштування сервера MCP для кожної моделі.

Навіщо використовувати MCP fak із TypingMind?

TypingMind — один із найкращих інтерфейсів для чату з великими мовними моделями, адже він об’єднує різні моделі ШІ, промпти, плагіни, агентів ШІ, ключі API та інструменти MCP в одному робочому просторі. Підключивши fak, ви зможете використовувати його інструменти MCP з вибраними моделями та впорядковано працювати з чатами в TypingMind.

Як підключити MCP fak до TypingMind?

fak працює через локальний конектор MCP TypingMind. Це найкращий варіант, коли серверу MCP потрібен доступ до локальних файлів, настільних застосунків, інструментів командного рядка або приватних ресурсів на вашому комп’ютері.

Які інструменти надає MCP fak у TypingMind?

fak надає можливості MCP, які можна ввімкнути на сторінці «Плагіни» в TypingMind і використовувати в чаті або призначати агентам ШІ.

Чи потрібно передавати свої ключі API в TypingMind, щоб використовувати MCP fak?

Ні. TypingMind орієнтований насамперед на локальну роботу й дає змогу зберігати контроль над постачальниками моделей, ключами API, промптами та конфігурацією MCP. Якщо fak потребує автентифікації, під час створення підключення додайте потрібні заголовки, налаштування OAuth або локальну конфігурацію для цього сервера MCP.

Схожі сервери MCP

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇