fak

module
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: Apache-2.0

README

fak — the Fused Agent Kernel

ci cross-platform bench release cadence release artifacts

fak in one line: fak is a fused agent kernel: one Go binary that sits in front of an agent's tool calls, checks each call, and reuses the stable work in long sessions so the same agent loop is safer, cheaper, and faster.

Put one binary in front of the agent you already run — Claude Code, Codex, Cursor, or any OpenAI / Anthropic / MCP client — and the same long session gets cheaper and faster, with nothing else changed.

fak guard -- claude wraps your normal agent in one command. It keeps your model, your IDE, and your keys exactly as they are. You get back the parts of the agent loop that got expensive. fak points one base URL at itself for you; nothing else in your setup changes.

What you get, in numbers. Every figure traces to BENCHMARK-AUTHORITY.md, and the honesty ledger is CLAIMS.md:

  • ~4.1× less work than a tuned warm-cache stack on a 50-turn × 5-agent run. fak reuses the shared prompt prefix across agents (the system prompt + tools, the KV cache of the work so far) instead of re-paying for it. That reuse factor climbs to 6.95× across the model ladder. (Against the naive re-send loop it is ~60×; the tuned number is the honest one to beat.)
  • ~120 tok/s in-kernel GPU decode on an RTX 4070 (SmolLM2-135M, f32 weights, gated FAK_CUDA_GRAPH=1), landing inside llama.cpp's Q8_0 range of 120 ± 15 tok/s — so a full-precision kernel reaches parity with a quantized llama.cpp.
  • The provider cache discount survives a long session. fak sheds old turns while keeping the prompt-cache prefix byte-identical, so the rebate holds instead of breaking the moment the conversation sprawls.
  • The guard tax is ~362 ns per call. The kernel's allow/deny decision runs in-process (measured, Apple M3 Pro), not as a network hop.

fak in one line: put fak in front of the agent you already run. It makes long sessions cheaper, routes each call to the right model, and on the same boundary enforces a safety floor and records every decision. One binary, no rewrite, no key to start.

Who is this for? Pick your path: run your agent through it now · run the modular Colab quickstart · run a model in the kernel · the performance story · a hard security floor.

Get started with fak guard

The lowest-friction path: wrap the agent you already run in one command. No rewrite, no config edit, no second terminal.

fak guard -- claude                                   # your Claude Code, on your Pro/Max subscription — no API key needed
fak guard --api-key-env ANTHROPIC_API_KEY -- claude   # use Anthropic API billing instead
fak guard --provider openai --api-key-env OPENAI_API_KEY -- opencode   # an OpenAI-compatible agent

fak guard starts a gateway in-process on a loopback port and injects the base URL into the child process only, so your shell and other terminals are untouched. It forwards your real upstream credential (and the cache_control prompt-cache breakpoints) byte-for-byte, so there is no cost regression. On the same boundary it checks every tool call the agent proposes against a built-in secure capability floor (a default-deny allow-list). When the agent exits it prints what the kernel decided:

fak guard: 131 kernel decision(s) — 121 allowed, 5 denied, 2 repaired, 0 quarantined, 3 deferred
flowchart LR
  you["<b>fak guard -- claude</b><br/>one command"]
  subgraph one["one binary, on loopback"]
    direction TB
    agent["your agent<br/>Claude Code · Codex · opencode"]
    kernel{{"fak kernel<br/>allow · deny · repair · quarantine<br/>shed old turns · keep cache prefix"}}
    agent -- "proposed tool call" --> kernel
    kernel -- "verdict" --> agent
  end
  you --> agent
  kernel -- "real credential + cache_control passed through" --> up["Anthropic / OpenAI API<br/>or a local --gguf model"]
  up -- "tokens" --> kernel

For Claude Code, fak guard uses your logged-in subscription by default, so no API key is required. The full walkthrough includes an end-to-end proof that a real /v1/messages turn crossed the gateway over your subscription: docs/integrations/claude.md.

See a real number — no key, no model, no GPU

Installed the binary (see Install)? These run from the bare binary anywhere, with no clone, no key, no model, and no GPU:

fak routebench                  # -> COST / LATENCY / QUALITY delta: per-aspect routing vs a one-model baseline
fak benchmarks list --offline   # -> the zero-asset benchmark set you can run right now

fak routebench replays a built-in 8-case corpus through a routing policy versus a single-model baseline. On the demo corpus it prints routed is ~20% cheaper, ~10% less total compute, quality tied. That is a deterministic offline lens, not a bill, and the fastest way to see the kernel do something real before you wire it to anything.

Prefer a hosted run with expected-state checks? Open the modular Colab quickstart: policy proof, HTTP tool-call checking, offline value measurement, and an optional T4-backed Ollama gateway case.

Run the model in the kernel

fak guard is happiest in front of a frontier API, but the kernel can be the model host too. fak guard --gguf loads a local GGUF model in-process, with no API key, no network, and no second server:

fak guard --gguf qwen2.5:7b -- claude                       # local model in-kernel, your data never leaves the box
FAK_GGUF_LOAD_WORKERS=8 fak guard --gguf qwen2.5:7b --backend cuda -- claude   # decode on GPU

The kernel owns the KV cache (the per-token scratchpad), so the same reuse and quarantine machinery applies to a local model as to a proxied one. On the gated reusable-CUDA-graph path, fak's f32 in-kernel decode lands inside llama.cpp's Q8_0 band, reaching parity with a quantized baseline at full precision:

xychart-beta
  title "GPU decode tok/s, batch-1, higher is better (RTX 4070, SmolLM2-135M)"
  x-axis ["llama.cpp Q8_0 (120 +/- 15)", "fak in-kernel f32 (FAK_CUDA_GRAPH=1)"]
  y-axis "tok/s" 0 --> 140
  bar [120, 120]

Both land at ~120 tok/s: fak's f32 figure (119–120) sits inside llama.cpp's Q8_0 band of 120 ± 15. The number and its f32-vs-Q8_0 framing trace to docs/benchmarks/LLAMACPP-HEADTOHEAD-RESULTS.md.

The honest fence: small local models are a quality ramp. A 7B model answers simple, well-formed tasks but is not a frontier coder. Reach for --gguf for offline, air-gapped, or privacy-bound work, and use the proxy path (fak guard -- claude) when you want the best reasoning. Local-model build tags and GPU flags: docs/integrations/claude.md.

The performance value proposition

A long agent session burns money re-solving the same setup. A 100k-token Claude Code conversation re-sends its whole transcript every single turn, and a 5-agent fleet pays for the same shared system prompt five times over. fak does the shared work once.

Reuse the shared prefix across agents. The system prompt, the tool table, and the instructions are identical for every agent in a fleet. fak computes that prefix once and reuses it (copy-on-write) for all of them, so a 50-turn × 5-agent run does ~4.1× less work than a tuned warm-cache stack (the prefix-reuse factor itself climbs to 6.95× across the model ladder).

flowchart TD
  p["Shared prompt prefix<br/>system + tools + instructions<br/><b>computed once</b>"]
  p -. "reused (copy-on-write)" .-> a1(["agent 1"])
  p -. reused .-> a2(["agent 2"])
  p -. reused .-> a3(["agent 3"])
  a1 --> w["<b>~4.1x less work</b> than a tuned<br/>warm-cache stack (50 turns x 5 agents)"]
  a2 --> w
  a3 --> w

Shed history without losing the cache hit. This is where most of the cost goes. Once a conversation sprawls past ~48k resident tokens, fak guard (on by default) drops the old middle turns. It copies the provider's cache prefix through byte-for-byte, so the prompt-cache discount holds instead of breaking. The obvious alternative, summarizing the old turns, rewrites the prompt and busts the cache, so it costs more. On any doubt fak forwards the original prompt unchanged, and relays the provider's own cache_read number rather than claiming the hit.

flowchart LR
  subgraph s1["a sprawling 100k-token session"]
    direction LR
    h["prefix (cached)"] --> m["old middle turns"] --> t["recent turns"]
  end
  subgraph s2["what fak sends upstream"]
    direction LR
    h2["prefix<br/><b>byte-identical</b><br/>cache hit preserved"] --> t2["recent turns"]
  end
  s1 -->|"fak guard (on by default)"| s2

Tighten it with one flag, or pass 0 to disable:

fak guard --compact-history-budget 8000 -- claude   # tighter than the ~48k default

How and why, with the metrics: docs/explainers/long-sessions-keep-the-cache-hit.md. The kernel also reports live prefill vs decode tok/s on /metrics, so a slow first request gets an answer instead of a shrug. Want the trend - is the cache method actually paying off over time? docs/cache-value-rollup.md explains the dogfooded ledger roll-up and the shipped Track-1 witness (fak nightrun score --json). Want the operating board that keeps the multi-agent reuse, O(1) context/query, provider-cache, and KV-deletion work on the product path? See docs/CACHE-FRONTIER-OPERATING-PLAN.md.

More ways to run it

fak guard is per-session and the right default. When you want something else:

  • Always-on gateway — fak node. Install fak serve as a real system service (macOS launchd, Linux systemd --user, Windows Scheduled Task), connect a client to it from a phone or a second machine, and tear it down. Same five commands whether the node is local or fleet-wide. The upstream credential lives on the host; clients present only the gateway's bearer key. See docs/fak/node-setup.md.

  • Codex, Cursor, MCP hosts. Keep your normal model wire but let the agent ask the kernel for verdicts over MCP: fak serve --stdio --policy examples/dev-agent-policy.json exposes five kernel tools (fak_adjudicate, fak_syscall, fak_admit, fak_context_change, session reset). See docs/integrations/openai-codex.md, docs/integrations/cursor.md, and examples/mcp.

  • Any OpenAI- or Anthropic-compatible client. Put fak serve in front of a model endpoint and point the client at it:

    fak serve --addr 127.0.0.1:8080 \
      --base-url http://localhost:11434/v1 --model qwen2.5:1.5b \
      --policy examples/dev-agent-policy.json
    

    OpenAI traffic goes to http://127.0.0.1:8080/v1, Anthropic Messages to the bare host. Harden with --require-key-env FAK_TOKEN and scrape /metrics. See GETTING-STARTED.md and docs/fak/api-reference.md.

Benchmarks, in one page

The rule is simple: every number traces to BENCHMARK-AUTHORITY.md. The ones worth remembering:

  • 50-turn × 5-agent Qwen2.5-1.5B authority row: 4.1× vs a tuned warm-cache stack (prefix reuse climbs to 6.95× across the model ladder). Larger figures are fenced as vs-naive.
  • GPU decode on the gated reusable-CUDA-graph path (FAK_CUDA_GRAPH=1): ~120 tok/s on an RTX 4070 (SmolLM2-135M, f32), inside llama.cpp's Q8_0 band of 120 ± 15 tok/s.
  • Native in-kernel continuous batching: 1.54× req/s at 8-way batch (synthetic CPU witness) vs the legacy per-request lifecycle.
  • WebVoyager geometry model: 8-worker fleet prefill is 1.10× less work than tuned per-agent KV (9.7× less than the naive re-prefill floor). Modeled prefill-token work, not wall-clock.
  • Pure-kernel decide latency: 362 ns per allow decision; the read-path floor is ~0.55 ns/op, flat from 1 to 1000 registered drivers.

Use vLLM or SGLang for raw token serving. Put fak on the agent boundary for reuse, routing, audit, and the capability floor.

What the kernel does

Surface What it gives you Status
fak guard Drop-in guard around an existing CLI agent shipped
fak node Install/connect an always-on fak serve gateway as a system service shipped
fak console Native operator/client panes for issues, live sessions, guard artifacts shipped
fak serve OpenAI, Anthropic, fak-native HTTP, plus MCP over HTTP/stdio shipped
Capability floor JSON allow/deny manifest with closed refusal reasons shipped
Result quarantine Secret, poison, oversize, and pollution results held out of context shipped
Audit/metrics JSON logs, optional hash-chained journal, Prometheus, /debug/vars shipped
Session control Budgets, reset directives, cooperative MCP reset, live session state shipped
Model routing Per-aspect routing, ensembles, routebench, gateway seam shipped spine
In-kernel model Pure-Go reference model, kernel-owned KV cache, GPU/backend witnesses correctness/reference path
Cross-platform spine One kernel across the deployment substrate (IoT → edge → laptop → hyperscaler) shipped

Every claim in CLAIMS.md carries exactly one tag: [SHIPPED], [SIMULATED], or [STUB]. The lint gate enforces that honesty ledger.

For security teams

If a hard capability floor is why you're here, not just a nice-to-have, this is your section. The same boundary that sheds tokens above is, for your purposes, the lock around tool execution. (This is the "policy" layer; it is deliberately not the front-page lead, because most adopters meet it through fak guard's built-in floor without ever editing it.)

Most agent security tries to recognize bad text. Recognizers help; they are not the floor. Prompt injection is a text game, and attackers get turns too. fak moves the load-bearing decision to the capability floor: a dangerous tool outside the allow-list cannot be called, no matter what the model was told. Two independent gates carry it:

  • Call-side gate. Tool names and selected arguments are checked before dispatch; a denied call never reaches the tool runner.
  • Result-side gate. Tool output is screened before it enters context; a poisoned or secret-bearing result is paged out or quarantined instead of being handed back as trusted text.

The capability floor is a deployable JSON manifest: a reviewable allow-list you copy, trim, and watch bite with fak preflight, no model in the loop:

fak preflight --tool refund_payment --args "{}"     # -> DENY (DEFAULT_DENY): not on the allow-list, fail-closed
fak preflight --tool shell_rm_rf    --args "{}"     # -> DENY (POLICY_BLOCK): refused by structure
fak agent --offline                                 # the injection / destructive-op A/B, fully offline

Point your agent at a starter floor with fak guard --policy examples/<file>:

Domain Starter floor The dangerous action it denies
Coding agent presets/coding-agent-safe.json force-push, git add -A, out-of-tree writes, destructive shell
Customer support customer-support-readonly-policy.json refund_payment, direct account or email action
Infra / DevOps review devops-dryrun-policy.json terraform_apply, exec, delete, production deploy

The full catalogue (flight booking, trading, clinical/PHI, SQL analyst, and more, each with a witness command) is in examples/README.md and the per-domain use-case page. Every refusal cites a closed reason code you can assert on (POLICY_BLOCK, OVERSIZE, SECRET_EXFIL, …). Read POLICY.md, docs/fak/security.md, and docs/integrations/agent-memory.md.

Install

From source:

go install github.com/anthony-chaudhary/fak/cmd/fak@latest

From a clone:

git clone https://github.com/anthony-chaudhary/fak
cd fak
go build -o fak ./cmd/fak

Go 1.26+ is required. With GOTOOLCHAIN=auto, Go can fetch the toolchain on first build. There are no external Go dependencies and no go.sum. Prebuilt archives and container guidance are in INSTALL.md and GETTING-STARTED.md.

Build and test

Run from the repository root:

go build ./cmd/fak
make test-fast
make ci

On native Windows, go build and go vet work normally, but native go test can be blocked by OS Application Control on freshly compiled test binaries. Use ./test.ps1 under WSL for the full suite on that host.

Boundaries

  • Token serving: use vLLM or SGLang for raw throughput. fak is the agent kernel around them.
  • Prompt injection: classifiers are useful, but the capability floor carries the load.
  • Provider prompt caches: provider hits are rebates. Treat cache state as telemetry until you control the memory.
  • In-kernel model: the shipped path is a correctness/reference witness with real tests. Use a tuned serving stack for production throughput.
  • Dangerous tools: keep irreversible and exfil-shaped tools off the allow-list.

Going deeper

Narrower-audience and deep-dive material that used to sit on this page now lives on the front-page overflow page: why the agent stack needs this now, the full per-domain use-case catalogue, the vCache provider-cache budget signal, model routing and router fusion, and the three-axes view of the kernel (scale → depth → deployment substrate).

Docs map

If you want... Read
First real run GETTING-STARTED.md
Claude Code / guard path docs/integrations/claude.md
Always-on gateway (fak node) docs/fak/node-setup.md
Codex docs/integrations/openai-codex.md
MCP examples examples/mcp
Long sessions / cache docs/explainers/long-sessions-keep-the-cache-hit.md
Is the cache paying off? (trend) docs/cache-value-rollup.md
Capability floor (policy) POLICY.md · examples/README.md
CLI verbs docs/cli-reference.md
Security model docs/fak/security.md
API reference docs/fak/api-reference.md
Model routing docs/model-routing.md
Benchmark authority BENCHMARK-AUTHORITY.md
Honesty ledger CLAIMS.md
Front-page overflow (legacy) docs/README-legacy.md
Machine-readable map llms.txt
Old README snapshot docs/archive/README-2026-06-25-before-fresh-start.md

License: Apache-2.0.

Directories

Path Synopsis
cmd
a2ademo command
Command a2ademo is a no-key, no-model proof of fak's in-kernel agent-to-agent message channel (internal/a2achan): one capability-floored, Ref-backed mailbox delivering an addressed value from one agent to another — adjudicated by the SAME default-deny floor that gates a tool call.
Command a2ademo is a no-key, no-model proof of fak's in-kernel agent-to-agent message channel (internal/a2achan): one capability-floored, Ref-backed mailbox delivering an addressed value from one agent to another — adjudicated by the SAME default-deny floor that gates a tool call.
agentbenchdemo command
Command agentbenchdemo is the performance micro-benchmark of fak's agentic spine: how much does the kernel's per-tool-call adjudication actually COST? It folds a fixed plan of tool calls through the REAL kernel (the same internal/agentdemo path cmd/timewolfdemo and `fak preflight` use — adjudicator.Default.SetPolicy + a live kernel.Fold per call), times the loop, and reports the per-call adjudication cost — the "self-tax" the safety floor adds to an agent's critical path.
Command agentbenchdemo is the performance micro-benchmark of fak's agentic spine: how much does the kernel's per-tool-call adjudication actually COST? It folds a fixed plan of tool calls through the REAL kernel (the same internal/agentdemo path cmd/timewolfdemo and `fak preflight` use — adjudicator.Default.SetPolicy + a live kernel.Fold per call), times the loop, and reports the per-call adjudication cost — the "self-tax" the safety floor adds to an agent's critical path.
agentdojoredteam command
Command agentdojoredteam runs the dynamic AgentDojo-style red-team battery (internal/agentdojo) against the stacked defense and prints the PER-ATTACK verdict stream, then folds every outcome into a frozen harvest LabelRow corpus.
Command agentdojoredteam runs the dynamic AgentDojo-style red-team battery (internal/agentdojo) against the stacked defense and prints the PER-ATTACK verdict stream, then folds every outcome into a frozen harvest LabelRow corpus.
agenticbench command
Command agenticbench emits the #868 parent rollup over committed agentic benchmark artifacts.
Command agenticbench emits the #868 parent rollup over committed agentic benchmark artifacts.
attnsnrsi command
Command attnsnrsi closes the attention-S/N RSI loop in SHADOW (#867).
Command attnsnrsi closes the attention-S/N RSI loop in SHADOW (#867).
batchbench command
Command batchbench measures the AGGREGATE decode throughput of the multi-user batched decode (internal/model.BatchSession) as a function of batch size B — the "continuous batching" / multi-user serving regime MODEL-BASELINE-RESULTS.md scoped out as "vLLM's claim, not fak's".
Command batchbench measures the AGGREGATE decode throughput of the multi-user batched decode (internal/model.BatchSession) as a function of batch size B — the "continuous batching" / multi-user serving regime MODEL-BASELINE-RESULTS.md scoped out as "vLLM's claim, not fak's".
benchscore command
browseractionbench command
Command browseractionbench runs a browser/computer-use action-mediation smoke through fak adjudication.
Command browseractionbench runs a browser/computer-use action-mediation smoke through fak adjudication.
causalbench command
Command causalbench is the end-to-end demonstrator for fak's CAUSAL invalidation-on-external-write: a tool RESULT cached under an external world-state witness (a git commit / blob hash / etag) is evicted byte-exact — and only it — the moment a later external write REFUTES that witness, while every sibling cached under an unrefuted witness stays warm.
Command causalbench is the end-to-end demonstrator for fak's CAUSAL invalidation-on-external-write: a tool RESULT cached under an external world-state witness (a git commit / blob hash / etag) is evicted byte-exact — and only it — the moment a later external write REFUTES that witness, while every sibling cached under an unrefuted witness stays warm.
cfgprobe command
Command cfgprobe prints the MoE/dense FFN config axes a GGUF resolves to, so a dimension bug (e.g.
Command cfgprobe prints the MoE/dense FFN config axes a GGUF resolves to, so a dimension bug (e.g.
ctxbench command
Command ctxbench runs the fak security gates over a corpus of tool calls and tool results.
Command ctxbench runs the fak security gates over a corpus of tool calls and tool results.
ctxdemo command
Command ctxdemo is the live, on-box demo of fak's value in the MULTI-AGENT, MULTI-TURN, LONG-CONTEXT regime — the one where the context CHANGES every turn as tool calls land heterogeneous, variable-sized results.
Command ctxdemo is the live, on-box demo of fak's value in the MULTI-AGENT, MULTI-TURN, LONG-CONTEXT regime — the one where the context CHANGES every turn as tool calls land heterogeneous, variable-sized results.
ctxplanbench command
Command ctxplanbench measures the ctxplan planned VIEW over REAL Claude Code session transcripts — the empirical counterpart to internal/ctxplan/scaling.go's synthetic Params model (issue #559).
Command ctxplanbench measures the ctxplan planned VIEW over REAL Claude Code session transcripts — the empirical counterpart to internal/ctxplan/scaling.go's synthetic Params model (issue #559).
ctxplandemo command
Command ctxplandemo is the runnable demonstrator for the context PLANNER: it treats the current turn as an O(1) materialized VIEW over a lossless history store, and shows the three things that make that more than a slogan —
Command ctxplandemo is the runnable demonstrator for the context PLANNER: it treats the current turn as an O(1) materialized VIEW over a lossless history store, and shows the three things that make that more than a slogan —
cxlpooldemo command
Command cxlpooldemo is a no-model, no-GPU proof of the value a SWITCH-POOLED, multi-host shared memory tier (a CXL.mem / CXL-switch pool) adds to fak's hardware-aware cache once a KV cache is shared across a FLEET of tenants — the multi-tenant counterpart of cmd/hwcachedemo's single-stream demote-not-evict proof.
Command cxlpooldemo is a no-model, no-GPU proof of the value a SWITCH-POOLED, multi-host shared memory tier (a CXL.mem / CXL-switch pool) adds to fak's hardware-aware cache once a KV cache is shared across a FLEET of tenants — the multi-tenant counterpart of cmd/hwcachedemo's single-stream demote-not-evict proof.
deletioncert command
Command deletioncert is the end-to-end demonstrator for fak's provable-deletion receipt.
Command deletioncert is the end-to-end demonstrator for fak's provable-deletion receipt.
demorace command
Command demorace is the live, on-box demo of fak's value point: REUSE.
Command demorace is the live, on-box demo of fak's value point: REUSE.
diagtok command
Command diagtok is a throwaway diagnostic: it loads a GGUF via the same path simpledemo uses, then (1) round-trips a known string through the embedded tokenizer and (2) greedily decodes a ChatML prompt while printing each raw token id next to its decode.
Command diagtok is a throwaway diagnostic: it loads a GGUF via the same path simpledemo uses, then (1) round-trips a known string through the embedded tokenizer and (2) greedily decodes a ChatML prompt while printing each raw token id next to its decode.
dispatchworker command
guard.go — front each dispatch worker with the kernel (`fak guard`), a Go port of the dogfood-guard family in tools/dispatch_worker.py.
guard.go — front each dispatch worker with the kernel (`fak guard`), a Go port of the dogfood-guard family in tools/dispatch_worker.py.
dropindemo command
Command dropindemo is the splashy, on-box demo of fak's DISTRIBUTION story — the "drop-in" entry point.
Command dropindemo is the splashy, on-box demo of fak's DISTRIBUTION story — the "drop-in" entry point.
fak command
cron.go projects the in-kernel loop schedule DOWN to a real OS scheduler unit (#765, part of the `fak cron` sub-epic #749).
cron.go projects the in-kernel loop schedule DOWN to a real OS scheduler unit (#765, part of the `fak cron` sub-epic #749).
fakc command
Command fakc is the one-word Codex launcher for fak.
Command fakc is the one-word Codex launcher for fak.
fakchat command
Command fakchat runs an end-to-end chat completion with fak's OWN in-kernel engine — no llama-server, no external proxy.
Command fakchat runs an end-to-end chat completion with fak's OWN in-kernel engine — no llama-server, no external proxy.
fanbench command
Command fanbench runs the ONE-MASTER-GOAL → N-SUBAGENT fan-out sweep — the orchestrator-worker topology (one lead decomposes a goal, spawns N sub-agents, folds their results) swept from N=1 to N=1000+, the regime no public benchmark maps (see experiments/fanout/RESEARCH-BRIEF-fanout-2026-06-17.md).
Command fanbench runs the ONE-MASTER-GOAL → N-SUBAGENT fan-out sweep — the orchestrator-worker topology (one lead decomposes a goal, spawns N sub-agents, folds their results) swept from N=1 to N=1000+, the regime no public benchmark maps (see experiments/fanout/RESEARCH-BRIEF-fanout-2026-06-17.md).
fanrun command
Command fanrun runs the MEASURED one-master-goal → N-subagent fan-out — N actual agent.RunArm sessions, each a real loop through a real kernel with the vDSO fast path on and real tool dispatch, all decomposing ONE shared research goal, WALL-CLOCKED — swept from N=1 to N=1024.
Command fanrun runs the MEASURED one-master-goal → N-subagent fan-out — N actual agent.RunArm sessions, each a real loop through a real kernel with the vDSO fast path on and real tool dispatch, all decomposing ONE shared research goal, WALL-CLOCKED — swept from N=1 to N=1024.
fleetbench command
Command fleetbench runs the 2-D turn-tax sweep — turns-per-agent (T) × fleet size (A) — over the REAL kernel and writes the surface as JSON + CSV for curve fitting.
Command fleetbench runs the 2-D turn-tax sweep — turns-per-agent (T) × fleet size (A) — over the REAL kernel and writes the surface as JSON + CSV for curve fitting.
fleetctl command
Command fleetctl is the public, transport-agnostic control surface for a fleet of boxes — GPU servers, worker nodes — an operator drives over the private Slack control-bridge.
Command fleetctl is the public, transport-agnostic control surface for a fleet of boxes — GPU servers, worker nodes — an operator drives over the private Slack control-bridge.
fleetserve command
Command fleetserve measures the CROSS-AGENT SHARED-PREFIX fleet workload — the regime where fak's kernel-owned KV cache structurally beats a per-slot serving engine (llama.cpp) by more than 2×, not by a faster kernel but by NOT REDOING WORK.
Command fleetserve measures the CROSS-AGENT SHARED-PREFIX fleet workload — the regime where fak's kernel-owned KV cache structurally beats a per-slot serving engine (llama.cpp) by more than 2×, not by a faster kernel but by NOT REDOING WORK.
gemma4diag command
Command gemma4diag loads a gemma4 GGUF ONCE and sweeps the uncertain forward axes (softmax scale 1.0 vs 1/sqrt(d), rope_freqs on/off, decoder-norm plain vs (1+w)), printing the top-k next-token predictions for a fixed prompt under each.
Command gemma4diag loads a gemma4 GGUF ONCE and sweeps the uncertain forward axes (softmax scale 1.0 vs 1/sqrt(d), rope_freqs on/off, decoder-norm plain vs (1+w)), printing the top-k next-token predictions for a fixed prompt under each.
ggufprobe command
Command ggufprobe dumps a GGUF file's architecture using fak's own internal/ggufload parser — no llama.cpp.
Command ggufprobe dumps a GGUF file's architecture using fak's own internal/ggufload parser — no llama.cpp.
glmcfgdiag command
Command glmcfgdiag is a cheap, no-reload GLM-5.2 config witness: it opens a GGUF shard's metadata, runs ggufload's real Config() derivation, and prints the MLA per-head dims (QKNopeHeadDim / VHeadDim) plus the latent ranks.
Command glmcfgdiag is a cheap, no-reload GLM-5.2 config witness: it opens a GGUF shard's metadata, runs ggufload's real Config() derivation, and prints the MLA per-head dims (QKNopeHeadDim / VHeadDim) plus the latent ranks.
glmdsatput command
Command glmdsatput measures fak's NATIVE GLM-5.2 (glm_moe_dsa) decode throughput on a real compute backend (e.g.
Command glmdsatput measures fak's NATIVE GLM-5.2 (glm_moe_dsa) decode throughput on a real compute backend (e.g.
gpucheck command
Command gpucheck is the real-model correctness witness for the GPU backend: it loads a HuggingFace safetensors checkpoint (e.g.
Command gpucheck is the real-model correctness witness for the GPU backend: it loads a HuggingFace safetensors checkpoint (e.g.
guarddemo command
Command guarddemo is the live, on-box demo of fak's SAFETY FLOOR — the moat — shown as a TRUE side-by-side: the SAME adversarial tool-call trace replayed down two columns at once, WITHOUT fak (left) and WITH fak (right), so the divergence lands in one glance.
Command guarddemo is the live, on-box demo of fak's SAFETY FLOOR — the moat — shown as a TRUE side-by-side: the SAME adversarial tool-call trace replayed down two columns at once, WITHOUT fak (left) and WITH fak (right), so the divergence lands in one glance.
hwcachedemo command
Command hwcachedemo is a no-model, no-GPU proof that fak's cache is hardware-aware: it shows the residency-tier ladder with each tier's physical character, which tiers can be shared ZERO-COPY, and — the headline — how the placement policy DEMOTES a hot KV prefix to CXL far memory under pressure instead of EVICTING it and paying a full re-prefill later.
Command hwcachedemo is a no-model, no-GPU proof that fak's cache is hardware-aware: it shows the residency-tier ladder with each tier's physical character, which tiers can be shared ZERO-COPY, and — the headline — how the placement policy DEMOTES a hot KV prefix to CXL far memory under pressure instead of EVICTING it and paying a full re-prefill later.
kpiprobe command
Command kpiprobe prints the RSI loop's demo KPI — the deterministic LRU hit-rate (internal/rsiloop.HitRate) over a fixed reference trace — as a single `KPI=<float>` line the loop's worktree Measurer parses.
Command kpiprobe prints the RSI loop's demo KPI — the deterministic LRU hit-rate (internal/rsiloop.HitRate) over a fixed reference trace — as a single `KPI=<float>` line the loop's worktree Measurer parses.
lensviz command
Command lensviz is a visual next-token debugger for fak's own in-kernel engine.
Command lensviz is a visual next-token debugger for fak's own in-kernel engine.
loadgen command
loadgen drives an OpenAI-compatible /v1/chat/completions endpoint at a sweep of concurrency levels and reports throughput.
loadgen drives an OpenAI-compatible /v1/chat/completions endpoint at a sweep of concurrency levels and reports throughput.
longctxbench command
Command longctxbench renders the EXACT, contention-free work floor for the ULTRA-LONG-CONTEXT regime (per-agent context > 100k tokens) — the proof that the fused agent kernel's reread-elimination win holds (and grows) where it matters most, computed as closed-form arithmetic from the session shape and the model geometry.
Command longctxbench renders the EXACT, contention-free work floor for the ULTRA-LONG-CONTEXT regime (per-agent context > 100k tokens) — the proof that the fused agent kernel's reread-elimination win holds (and grows) where it matters most, computed as closed-form arithmetic from the session shape and the model geometry.
loophealth command
Command loophealth is the checking layer for fleet's RSI self-improve loop (#382).
Command loophealth is the checking layer for fleet's RSI self-improve loop (#382).
memqdemo command
Command memqdemo is a no-model, deterministic walkthrough of the memq memory- operation algebra: the substrate that lets an agent author its OWN memory strategy (render / clean / compact / dream / a novel one) instead of the kernel hardcoding a single compaction path.
Command memqdemo is a no-model, deterministic walkthrough of the memq memory- operation algebra: the substrate that lets an agent author its OWN memory strategy (render / clean / compact / dream / a novel one) instead of the kernel hardcoding a single compaction path.
modelbench command
Command modelbench measures the in-kernel pure-Go forward pass latency so the fusion lane has a HONEST throughput baseline to set against the next-best ways to run the same model (HF transformers; see bench_hf.py for the witness side).
Command modelbench measures the in-kernel pure-Go forward pass latency so the fusion lane has a HONEST throughput baseline to set against the next-best ways to run the same model (HF transformers; see bench_hf.py for the witness side).
modelprof command
Command modelprof is the in-kernel forward pass inspecting ITSELF: it runs the modular bottleneck profiler (internal/model/profile.go) over a real decode and a real prefill, plus an uninstrumented Session.Step decode measurement.
Command modelprof is the in-kernel forward pass inspecting ITSELF: it runs the modular bottleneck profiler (internal/model/profile.go) over a real decode and a real prefill, plus an uninstrumented Session.Step decode measurement.
paritybench command
Command paritybench assembles the CROSS-MODEL parity artifact: it ingests the live fak-agent A/B reports for a ladder of LOCAL models (produced by tools/run_local_model.sh via the OpenAI-compatible shim) plus the committed FRONTIER reference cards (hosted Claude Haiku/Sonnet, measured + graded on the same frozen task), scores every card on the three never-blended axes (capability / safety / cost), and emits the parity table.
Command paritybench assembles the CROSS-MODEL parity artifact: it ingests the live fak-agent A/B reports for a ladder of LOCAL models (produced by tools/run_local_model.sh via the OpenAI-compatible shim) plus the committed FRONTIER reference cards (hosted Claude Haiku/Sonnet, measured + graded on the same frozen task), scores every card on the three never-blended axes (capability / safety / cost), and emits the parity table.
pipelinegen command
Command pipelinegen runs fak's NATIVE engine generating tokens across pipeline-parallel stages — the runnable form of the cross-device transport contract (internal/model/pipeline.go).
Command pipelinegen runs fak's NATIVE engine generating tokens across pipeline-parallel stages — the runnable form of the cross-device transport contract (internal/model/pipeline.go).
poisonedmcpdemo command
Command poisonedmcpdemo is the runnable A/B for issue #573: it proves fak walls a tool-poisoning MCP server off the model by STRUCTURE, with no model/key/network.
Command poisonedmcpdemo is the runnable A/B for issue #573: it proves fak walls a tool-poisoning MCP server off the model by STRUCTURE, with no model/key/network.
polymodelbench command
bench.go is the measured-numbers half of polymodelbench — the runnable artifact for issue #535 ("bench(polymodel): measured numbers for the poly-model lane").
bench.go is the measured-numbers half of polymodelbench — the runnable artifact for issue #535 ("bench(polymodel): measured numbers for the poly-model lane").
prefixlint command
Command prefixlint is the §A3 prefix-stability devtool (GLM52-HOSTED-CACHE- COHERENCE): it reads a recorded conversation and reports the provider-cache consequence — how many prompt tokens are cacheable across the session, how many are re-billed, the specific turn where the prefix broke, and the recoverable uplift from fixing volatile-ahead-of-stable ordering.
Command prefixlint is the §A3 prefix-stability devtool (GLM52-HOSTED-CACHE- COHERENCE): it reads a recorded conversation and reports the provider-cache consequence — how many prompt tokens are cacheable across the session, how many are re-billed, the specific turn where the prefix broke, and the recoverable uplift from fixing volatile-ahead-of-stable ordering.
q4kdiag command
q8bench command
Command q8bench is an INDEPENDENT verifier for the int8-quantized in-kernel forward path (internal/model: Model.Quantize + Session.Quant).
Command q8bench is an INDEPENDENT verifier for the int8-quantized in-kernel forward path (internal/model: Model.Quantize + Session.Quant).
q8kernel command
Command q8kernel is a self-contained kernel microbenchmark that isolates ONE question from all model/WSL/load overhead: in pure Go on this box, which GEMV kernel is fastest for the memory-bound batch-1 decode regime —
Command q8kernel is a self-contained kernel microbenchmark that isolates ONE question from all model/WSL/load overhead: in pure Go on this box, which GEMV kernel is fastest for the memory-bound batch-1 decode regime —
qwen35check command
Command qwen35check loads a Qwen3.5 / Qwen3-Next hybrid HF snapshot with fak's own in-kernel forward pass and greedy-decodes a few tokens from a given prompt (token ids), printing the generated ids.
Command qwen35check loads a Qwen3.5 / Qwen3-Next hybrid HF snapshot with fak's own in-kernel forward pass and greedy-decodes a few tokens from a given prompt (token ids), printing the generated ids.
radixbench command
Command radixbench benchmarks fak's KV-cache prefix reuse against SGLang's RadixAttention (arXiv:2312.07104 / NeurIPS 2024) on the metric SGLang's own paper headlines: CACHE HIT RATE — the fraction of prompt tokens served from cache instead of recomputed.
Command radixbench benchmarks fak's KV-cache prefix reuse against SGLang's RadixAttention (arXiv:2312.07104 / NeurIPS 2024) on the metric SGLang's own paper headlines: CACHE HIT RATE — the fraction of prompt tokens served from cache instead of recomputed.
repoguard command
Command repoguard refuses a DESTRUCTIVE or out-of-tree write before it escapes the repo — the Go port of tools/repo_guard.py, run as a single compiled binary so the Claude Code PreToolUse hook fires WITHOUT spawning a Python interpreter on every tool call (DIRECTION.md: the request path stays interpreter-free).
Command repoguard refuses a DESTRUCTIVE or out-of-tree write before it escapes the repo — the Go port of tools/repo_guard.py, run as a single compiled binary so the Claude Code PreToolUse hook fires WITHOUT spawning a Python interpreter on every tool call (DIRECTION.md: the request path stays interpreter-free).
rsicycle command
Command rsicycle drives ONE recursive-self-improvement keep-or-revert decision through fak's own non-forgeable keep-bit (internal/shipgate.Evaluate).
Command rsicycle drives ONE recursive-self-improvement keep-or-revert decision through fak's own non-forgeable keep-bit (internal/shipgate.Evaluate).
rsiloop command
Command rsiloop is fak's TRUE recursive-self-improvement loop — the closed-loop companion to cmd/rsicycle's one-shot.
Command rsiloop is fak's TRUE recursive-self-improvement loop — the closed-loop companion to cmd/rsicycle's one-shot.
sessionbench command
Command sessionbench measures the NET VALUE-ADD of the fused agent kernel on a realistic long, multi-agent session — the regime the whole fusion exists for, and the one a per-call / per-turn naive setup pays for dearly.
Command sessionbench measures the NET VALUE-ADD of the fused agent kernel on a realistic long, multi-agent session — the regime the whole fusion exists for, and the one a per-call / per-turn naive setup pays for dearly.
simpledemo command
Command simpledemo is the friendliest way to chat with a local AI model.
Command simpledemo is the friendliest way to chat with a local AI model.
terminalbench command
Command terminalbench runs a Terminal-Bench-shaped command-boundary smoke through fak adjudication.
Command terminalbench runs a Terminal-Bench-shaped command-boundary smoke through fak adjudication.
timewolfdemo command
Command timewolfdemo is the fun, lowest-common-denominator AGENTIC demo: a one-tool agent asked "what time is it, Mr.
Command timewolfdemo is the fun, lowest-common-denominator AGENTIC demo: a one-tool agent asked "what time is it, Mr.
tokendemo command
Command tokendemo is the self-contained demo of two CLEAR WINS the kernel's tool-call understanding delivers — counted call by call, each grounded in a LIVE kernel verdict (the kernel decides; this demo only counts).
Command tokendemo is the self-contained demo of two CLEAR WINS the kernel's tool-call understanding delivers — counted call by call, each grounded in a LIVE kernel verdict (the kernel decides; this demo only counts).
toktdiag command
Command toktdiag reports whether fak can extract an embedded GGUF tokenizer.
Command toktdiag reports whether fak can extract an embedded GGUF tokenizer.
toolsandboxbench command
Command toolsandboxbench runs a tau3/ToolSandbox-shaped policy-state adapter smoke through fak adjudication.
Command toolsandboxbench runs a tau3/ToolSandbox-shaped policy-state adapter smoke through fak adjudication.
topobench command
Command topobench runs the FLEET-TOPOLOGY genome search (issue #541) — the orthogonal STRUCTURE-search axis to the policy-genome search (#503).
Command topobench runs the FLEET-TOPOLOGY genome search (issue #541) — the orthogonal STRUCTURE-search axis to the policy-genome search (#503).
tpcheck command
Command tpcheck runs fak's NATIVE-engine TENSOR-parallel decomposition end to end over SIMULATED ranks (single box, in-memory, no GPU/NCCL/checkpoint) — the runnable form of the intra-layer sharding contract (internal/model/tensor_parallel.go).
Command tpcheck runs fak's NATIVE-engine TENSOR-parallel decomposition end to end over SIMULATED ranks (single box, in-memory, no GPU/NCCL/checkpoint) — the runnable form of the intra-layer sharding contract (internal/model/tensor_parallel.go).
trychatdemo command
Command trychatdemo is the "try it" agentic chat: type a message and a tiny tool-using agent answers — but every tool call it makes is adjudicated by the REAL fak kernel first (the same internal/agentdemo path cmd/timewolfdemo and `fak preflight` use).
Command trychatdemo is the "try it" agentic chat: type a message and a tiny tool-using agent answers — but every tool call it makes is adjudicated by the REAL fak kernel first (the same internal/agentdemo path cmd/timewolfdemo and `fak preflight` use).
turntaxdemo command
Command turntaxdemo is the live, on-box demo of how fak SAVES MODEL TURNS.
Command turntaxdemo is the live, on-box demo of how fak SAVES MODEL TURNS.
unseedemo command
Command unseedemo is the live, on-box "Un-See It" demo (a.k.a.
Command unseedemo is the live, on-box "Un-See It" demo (a.k.a.
webbench-convert command
webbench-convert converts WebVoyager dataset to webbench format.
webbench-convert converts WebVoyager dataset to webbench format.
webbench-run command
webbench-run is a reproducible end-to-end webbench runner.
webbench-run is a reproducible end-to-end webbench runner.
webbench-token-measure command
webbench-token-measure measures actual token usage from model API runs.
webbench-token-measure measures actual token usage from model API runs.
wfmembench command
Command wfmembench is the workflow-memory benchmark for issue #434.
Command wfmembench is the workflow-memory benchmark for issue #434.
experiments
qwen36/gdn-divergence-sensitivity command
Command gdn-divergence-sensitivity is the host-runnable, device-independent arm of the Qwen3.6-27B *correctness* parity blocker — the "token-3 drift" — described in experiments/qwen36/token3-drift-investigation-2026-06-28.md (§4 third bullet, §5 step 2).
Command gdn-divergence-sensitivity is the host-runnable, device-independent arm of the Qwen3.6-27B *correctness* parity blocker — the "token-3 drift" — described in experiments/qwen36/token3-drift-investigation-2026-06-28.md (§4 third bullet, §5 step 2).
qwen36/gdn-recurrence-bench command
Command gdn-recurrence-bench is the host-runnable, device-independent arm of the "benchmark both" ask in issue #65 (Gated-DeltaNet recurrence — GPU kernel vs CPU-hybrid decision).
Command gdn-recurrence-bench is the host-runnable, device-independent arm of the "benchmark both" ask in issue #65 (Gated-DeltaNet recurrence — GPU kernel vs CPU-hybrid decision).
qwen36/token3-divergence-probe command
Command token3-divergence-probe is the host-independent comparison + first-divergence finder for the Qwen3.6-27B token-3 correctness drift (token3-drift-investigation-2026-06-28.md §3c/§3d, §5 step 1).
Command token3-divergence-probe is the host-independent comparison + first-divergence finder for the Qwen3.6-27B token-3 correctness drift (token3-drift-investigation-2026-06-28.md §3c/§3d, §5 step 1).
internal
a2achan
Package a2achan is the in-kernel agent-to-agent message channel: a generic, capability-floored, Ref-backed mailbox that lets one agent hand a value to ANOTHER agent.
Package a2achan is the in-kernel agent-to-agent message channel: a generic, capability-floored, Ref-backed mailbox that lets one agent hand a value to ANOTHER agent.
abi
events.go — the closed core EventKind vocabulary (additive).
events.go — the closed core EventKind vocabulary (additive).
ablate
Package ablate generalizes the two-arm `fak bench` (vdso_on/vdso_off) into an N-ARM feature sweep: replay ONE frozen tool-call trace through the kernel under a LIST of FeatureConfigs and emit one AblationReport binding every arm to the trace's single workload hash.
Package ablate generalizes the two-arm `fak bench` (vdso_on/vdso_off) into an N-ARM feature sweep: replay ONE frozen tool-call trace through the kernel under a LIST of FeatureConfigs and emit one AblationReport binding every arm to the trace's single workload hash.
accounts
Package accounts is the durable registry of Claude config HOMES — the CLAUDE_CONFIG_DIR "seats" a host switches between (~/.claude, ~/.claude-gem8-seat, …) — with one job no other surface does cleanly: resolve a seat name to the home that actually serves it, FOLLOWING a tombstone to its rehome target.
Package accounts is the durable registry of Claude config HOMES — the CLAUDE_CONFIG_DIR "seats" a host switches between (~/.claude, ~/.claude-gem8-seat, …) — with one job no other surface does cleanly: resolve a seat name to the home that actually serves it, FOLLOWING a tombstone to its rehome target.
adjudicator
Package adjudicator is the in-process DOS reference monitor — the v0.1 realization of the Adjudicator seam.
Package adjudicator is the in-process DOS reference monitor — the v0.1 realization of the Adjudicator seam.
advmodel
Package advmodel is the advisory adjudication model — the consumer of the harvest LabelRow corpus and the closing edge of the kernel's self-improvement loop (issue #580).
Package advmodel is the advisory adjudication model — the consumer of the harvest LabelRow corpus and the closing edge of the kernel's self-improvement loop (issue #580).
affectedtests
Package affectedtests is the pure core of the `fak affected` fast test gate: given the package import graph and the set of CHANGED packages, it computes the exact set of packages whose test outcome could change -- so a developer runs `go test` on only those, turning the full ~minutes `go test ./...` into a seconds-long pre-commit gate WITHOUT dropping coverage on what they changed.
Package affectedtests is the pure core of the `fak affected` fast test gate: given the package import graph and the set of CHANGED packages, it computes the exact set of packages whose test outcome could change -- so a developer runs `go test` on only those, turning the full ~minutes `go test ./...` into a seconds-long pre-commit gate WITHOUT dropping coverage on what they changed.
agent
Package agent is the HOST-SIDE agentic loop and the wire servers that expose it.
Package agent is the HOST-SIDE agentic loop and the wire servers that expose it.
agentdemo
Package agentdemo is the shared spine for fak's agentic "try-it" demos: a deterministic, no-key, tool-using agent loop that drives the REAL kernel one call at a time.
Package agentdemo is the shared spine for fak's agentic "try-it" demos: a deterministic, no-key, tool-using agent loop that drives the REAL kernel one call at a time.
agentdojo
Package agentdojo replaces the STATIC poison.json fixture with a DYNAMIC, adaptive attack battery scored by Attack Success Rate (ASR) — the AgentDojo (Debenedetti et al., 2024) evaluation discipline.
Package agentdojo replaces the STATIC poison.json fixture with a DYNAMIC, adaptive attack battery scored by Attack Success Rate (ASR) — the AgentDojo (Debenedetti et al., 2024) evaluation discipline.
agenticbench
Package agenticbench folds the #868 agentic benchmark artifacts into one parent gate.
Package agenticbench folds the #868 agentic benchmark artifacts into one parent gate.
agenttest
Package agenttest is the public test harness for fak agent workflows (#238, D-008): deterministic fixtures, a tool-call assertion library, mock tool responses, and reproduce-from-transcript replay.
Package agenttest is the public test harness for fak agent workflows (#238, D-008): deterministic fixtures, a tool-call assertion library, mock tool responses, and reproduce-from-transcript replay.
agenttopo
Package agenttopo declares agent communication topology over comm.Group.
Package agenttopo declares agent communication topology over comm.Group.
ailuminate
Package ailuminate encodes the scoping + go/no-go contract for entering MLCommons AILuminate (v1.1) as a model+guardrail "AI system" SUT.
Package ailuminate encodes the scoping + go/no-go contract for entering MLCommons AILuminate (v1.1) as a model+guardrail "AI system" SUT.
answershape
Package answershape is a deterministic, dependency-free guard over the SHAPE of a piece of text — how repetitive (degenerate) it is and how long (verbose) it is — checked against caller-chosen thresholds.
Package answershape is a deterministic, dependency-free guard over the SHAPE of a piece of text — how repetitive (degenerate) it is and how long (verbose) it is — checked against caller-chosen thresholds.
appversion
Package appversion resolves the fleet/FAK application version from the single repo-level VERSION marker, with build-time and environment fallbacks.
Package appversion resolves the fleet/FAK application version from the single repo-level VERSION marker, with build-time and environment fallbacks.
architest
Package architest is the kernel's machine-checked architecture contract.
Package architest is the kernel's machine-checked architecture contract.
auditpane
Package auditpane is the one rollup over the tree's many tools/*_audit.py auditors.
Package auditpane is the one rollup over the tree's many tools/*_audit.py auditors.
bench
Package bench is the A/B ablation runner behind `fak bench`.
Package bench is the A/B ablation runner behind `fak bench`.
benchcatalog
Package benchcatalog is the single, in-binary source of truth for "what benchmarks does fak have, what does each measure, and how do I run it." It exists because the answer used to be scattered across 18 separate cmd/*bench* mains plus five `fak` verbs (bench, turntax, routebench, webbench, swebench), each with its own bespoke flag vocabulary and no shared index.
Package benchcatalog is the single, in-binary source of truth for "what benchmarks does fak have, what does each measure, and how do I run it." It exists because the answer used to be scattered across 18 separate cmd/*bench* mains plus five `fak` verbs (bench, turntax, routebench, webbench, swebench), each with its own bespoke flag vocabulary and no shared index.
benchcli
Package benchcli holds the small, identical helpers the benchmark-CLI mains (cmd/*bench and the demo/cert commands beside them) had each copy-pasted into their own file.
Package benchcli holds the small, identical helpers the benchmark-CLI mains (cmd/*bench and the demo/cert commands beside them) had each copy-pasted into their own file.
benchids
Package benchids generates a deterministic stream of synthetic token IDs for the benchmark command mains.
Package benchids generates a deterministic stream of synthetic token IDs for the benchmark command mains.
benchlineagegate
Package benchlineagegate is the durable enforcement gate for issue #9: every benchmark emitter must stamp the four lineage axes (version / utc / git_commit / machine) onto the report artifact it writes, so a result is always traceable to the exact build that produced it.
Package benchlineagegate is the durable enforcement gate for issue #9: every benchmark emitter must stamp the four lineage axes (version / utc / git_commit / machine) onto the report artifact it writes, so a result is always traceable to the exact build that produced it.
benchpost
Package benchpost posts fak BENCH-CHANNEL rollups — latest benchmark runs, the "what to run next" plan, and tok/s regressions — to a Slack bench channel.
Package benchpost posts fak BENCH-CHANNEL rollups — latest benchmark runs, the "what to run next" plan, and tok/s regressions — to a Slack bench channel.
bgloop
Package bgloop is fak's IN-KERNEL BACKGROUND-LOOP RUNTIME — the supervisor that keeps recurring work progressing while the kernel (`fak serve`) is up, and makes each loop observable.
Package bgloop is fak's IN-KERNEL BACKGROUND-LOOP RUNTIME — the supervisor that keeps recurring work progressing while the kernel (`fak serve`) is up, and makes each loop observable.
binstamp
Package binstamp answers one question durably: "is the fak binary I am running built from the commit that is currently on the trunk, or is it stale?"
Package binstamp answers one question durably: "is the fak binary I am running built from the commit that is currently on the trunk, or is it stale?"
blob
Package blob is the v0.1 default backend behind every abi.Ref: a content-addressed (sha256) in-memory blob store.
Package blob is the v0.1 default backend behind every abi.Ref: a content-addressed (sha256) in-memory blob store.
blobfs
Package blobfs is a DURABLE, on-disk content-addressed store — the persistent sibling of internal/blob (the in-memory v0.1 default behind every abi.Ref).
Package blobfs is a DURABLE, on-disk content-addressed store — the persistent sibling of internal/blob (the in-memory v0.1 default behind every abi.Ref).
blobhttp
Package blobhttp is a content-addressed blob store backed by a REMOTE HTTP object endpoint — the "disaggregated / cloud" sibling of internal/blob (in-memory) and internal/blobfs (local disk).
Package blobhttp is a content-addressed blob store backed by a REMOTE HTTP object endpoint — the "disaggregated / cloud" sibling of internal/blob (in-memory) and internal/blobfs (local disk).
blockerpost
Package blockerpost posts BLOCKERS — the things that stop forward progress — to a single Slack "blockers" channel, so the fleet has one central place where an ongoing impediment is recorded and a human-needed one is surfaced.
Package blockerpost posts BLOCKERS — the things that stop forward progress — to a single Slack "blockers" channel, so the fleet has one central place where an ongoing impediment is recorded and a human-needed one is surfaced.
boundarylint
Package boundarylint is a small, extensible policy engine for "boundary tells": source patterns where the code makes a claim about the outside world (the OS, the network, the clock, a peer process) without the check that would make the claim true.
Package boundarylint is a small, extensible policy engine for "boundary tells": source patterns where the code makes a claim about the outside world (the OS, the network, the clock, a peer process) without the check that would make the claim true.
browseraction
Package browseraction normalizes browser/computer-use action traces into fak tool-call mediation reports.
Package browseraction normalizes browser/computer-use action traces into fak tool-call mediation reports.
cachemeta
Package cachemeta defines the metadata contract for first-class cache entries.
Package cachemeta defines the metadata contract for first-class cache entries.
cacheobs
Package cacheobs is the process-global observability tap for in-kernel KV-prefix reuse — the LIVE measurement of the "frozen-trajectory cache cliff" (docs/explainers/frozen-trajectory-cache-cliff.md).
Package cacheobs is the process-global observability tap for in-kernel KV-prefix reuse — the LIVE measurement of the "frozen-trajectory cache cliff" (docs/explainers/frozen-trajectory-cache-cliff.md).
cachevalueledger
Package cachevalueledger provides a durable, append-only ledger for cache-value observations from fak sessions (run/guard/serve).
Package cachevalueledger provides a durable, append-only ledger for cache-value observations from fak sessions (run/guard/serve).
cachevaluepost
Package cachevaluepost posts the cache-effectiveness P&L roll-up — fak's WITNESSED kernel cache-value trend — to a single Slack "cache-value" channel, so the fleet has one durable place where "is fak's cache method paying off, and is it trending up or down?" gets an honest, dogfooded answer on a cadence.
Package cachevaluepost posts the cache-effectiveness P&L roll-up — fak's WITNESSED kernel cache-value trend — to a single Slack "cache-value" channel, so the fleet has one durable place where "is fak's cache method paying off, and is it trending up or down?" gets an honest, dogfooded answer on a cadence.
cachevaluereport
Package cachevaluereport rolls up the durable kernel cache-value ledger (internal/cachevalueledger, docs/nightrun/cache-value.jsonl) into a TREND over time — the by-week / by-session_type view that cachevalueledger.ScoreLedger deliberately does not produce (it collapses every row into a single all-time aggregate gate number).
Package cachevaluereport rolls up the durable kernel cache-value ledger (internal/cachevalueledger, docs/nightrun/cache-value.jsonl) into a TREND over time — the by-week / by-session_type view that cachevalueledger.ScoreLedger deliberately does not produce (it collapses every row into a single all-time aggregate gate number).
cachewitness
Package cachewitness reads a live fak gateway's /metrics surface and folds the in-kernel KV-prefix cache family into ONE provenance-labeled evidence record: the cache VALUE a fak-served model (e.g.
Package cachewitness reads a live fak gateway's /metrics surface and folds the in-kernel KV-prefix cache family into ONE provenance-labeled evidence record: the cache VALUE a fak-served model (e.g.
cadencereport
Package cadencereport is the consolidated regular-cadence report -- one fold over the four cadence dimensions an operator tracks: scores, maturity, work-done, and releases.
Package cadencereport is the consolidated regular-cadence report -- one fold over the four cadence dimensions an operator tracks: scores, maturity, work-done, and releases.
callavoid
Package callavoid is the economics and effective-turn accounting for NOT making a local tool call — the principle that the cheapest, fastest, most reliable tool call is the one the kernel never has to dispatch.
Package callavoid is the economics and effective-turn accounting for NOT making a local tool call — the principle that the cheapest, fastest, most reliable tool call is the one the kernel never has to dispatch.
canon
Package canon is the de-obfuscating canonicalizer + lexical threat detector, factored out of internal/normgate so it is ONE primitive, tested ONCE, and reusable by every gate that needs to scan bytes for a hidden secret or injection on a normalized view — not just the write-time admitter.
Package canon is the de-obfuscating canonicalizer + lexical threat detector, factored out of internal/normgate so it is ONE primitive, tested ONCE, and reusable by every gate that needs to scan bytes for a hidden secret or injection on a normalized view — not just the write-time admitter.
capindexgw
Package capindexgw holds the gateway-backed capindex Resolvers (MCP tools, A2A methods).
Package capindexgw holds the gateway-backed capindex Resolvers (MCP tools, A2A methods).
cdb
Package cdb is the context debugger: it attaches to a FINISHED agent session as if to a core dump and answers questions by demand-paging only the working set the question touches — never by replaying the whole address space.
Package cdb is the context debugger: it attaches to a FINISHED agent session as if to a core dump and answers questions by demand-paging only the working set the question touches — never by replaying the whole address space.
chatrelay
Package chatrelay bridges ONE Slack channel to an OpenAI-compatible chat endpoint: it reads new human messages from the channel (conversations.history), forwards each to a served /v1/chat/completions model, and posts the reply back in-thread (chat.postMessage).
Package chatrelay bridges ONE Slack channel to an OpenAI-compatible chat endpoint: it reads new human messages from the channel (conversations.history), forwards each to a served /v1/chat/completions model, and posts the reply back in-thread (chat.postMessage).
claimcheck
Package claimcheck grades an efficiency/performance claim against the six questions of the net-true-value standard (docs/standards/net-true-value.md) and returns one of three verdicts: net-true / strawman / not-yet.
Package claimcheck grades an efficiency/performance claim against the six questions of the net-true-value standard (docs/standards/net-true-value.md) and returns one of three verdicts: net-true / strawman / not-yet.
cmdutil
Package cmdutil holds small, behavior-identical helpers that were copy-pasted across the cmd/* demo and bench mains (argmax over logits, the LCG token-id generator, duration medians, the HTTP JSON writer).
Package cmdutil holds small, behavior-identical helpers that were copy-pasted across the cmd/* demo and bench mains (argmax over logits, the LCG token-id generator, duration medians, the HTTP JSON writer).
codelint
Package codelint is language-server packs: lint agent-written code (Go/Python/CUDA/JSON) off the hot path.
Package codelint is language-server packs: lint agent-written code (Go/Python/CUDA/JSON) off the hot path.
codexmemory
Package codexmemory is a READ-ONLY diagnostic over an OpenAI Codex home (default ~/.codex).
Package codexmemory is a READ-ONLY diagnostic over an OpenAI Codex home (default ~/.codex).
cohort
Package cohort is a fail-closed cohort shrink and agreement leaf over comm.Group.
Package cohort is a fail-closed cohort shrink and agreement leaf over comm.Group.
comm
Package comm is the first-class agent communicator: a deterministic, adjudicated group descriptor (rank/size/split + spawn membership) over the dos-arbitrate lane partition.
Package comm is the first-class agent communicator: a deterministic, adjudicated group descriptor (rank/size/split + spawn membership) over the dos-arbitrate lane partition.
compactcohere
Package compactcohere is the coherence policy for the TWO context managers that stack, blind to each other, on the flagship `fak guard -- claude` boundary:
Package compactcohere is the coherence policy for the TWO context managers that stack, blind to each other, on the flagship `fak guard -- claude` boundary:
compute
Package compute is the hardware-abstraction seam (HAL) for the in-kernel forward pass.
Package compute is the hardware-abstraction seam (HAL) for the in-kernel forward pass.
conceptusage
Package conceptusage scores the OVERALL dogfooding of fak's own concepts while fak itself is being developed by an agent fleet — the question "when we build fak, how much does that development route through fak's own primitives, versus generic agentic dev (raw git, unverified self-reports, no lane arbitration)?"
Package conceptusage scores the OVERALL dogfooding of fak's own concepts while fak itself is being developed by an agent fleet — the question "when we build fak, how much does that development route through fak's own primitives, versus generic agentic dev (raw git, unverified self-reports, no lane arbitration)?"
conflationscore
Package conflationscore is the Go port of tools/conflation_scorecard.py -- the anti-conflation / provenance-honesty stick.
Package conflationscore is the Go port of tools/conflation_scorecard.py -- the anti-conflation / provenance-honesty stick.
contextq
Package contextq is the on-demand context materializer over CDB images.
Package contextq is the on-demand context materializer over CDB images.
covmatrix
Package covmatrix is the C1 keystone of the combinatorial-growth epic (#1079/#1080): it derives fak's model × backend support grid from the kernel's own structural facts and folds the result into the shared scorecard control-pane as a growth_debt integer.
Package covmatrix is the C1 keystone of the combinatorial-growth epic (#1079/#1080): it derives fak's model × backend support grid from the kernel's own structural facts and folds the result into the shared scorecard control-pane as a growth_debt integer.
ctxmmu
Package ctxmmu is the context-MMU: a write-time (post-tool) gate on tool RESULTS, the dual of the call-side adjudicator.
Package ctxmmu is the context-MMU: a write-time (post-tool) gate on tool RESULTS, the dual of the call-side adjudicator.
ctxplan
Package ctxplan is the context PLANNER: it treats the current turn's context as an O(1) materialized VIEW over the full, lossless history store, and re-plans that view each turn instead of letting the linear transcript grow without bound (or compacting it lossily).
Package ctxplan is the context PLANNER: it treats the current turn's context as an O(1) materialized VIEW over the full, lossless history store, and re-plans that view each turn instead of letting the linear transcript grow without bound (or compacting it lossily).
ctxresidency
Package ctxresidency is the context-residency query (issue #521): a first-class, witnessable READ over the span ledger that composes the three layers that already maintain the context's coherence state — kvmmu (the KV-level span ledger Admit/Evict maintains), ctxmmu (the byte-level quarantine/clearance ledger), and cachemeta (the residency tiers + the dependent-entry graph the eviction blast radius is read from).
Package ctxresidency is the context-residency query (issue #521): a first-class, witnessable READ over the span ledger that composes the three layers that already maintain the context's coherence state — kvmmu (the KV-level span ledger Admit/Evict maintains), ctxmmu (the byte-level quarantine/clearance ledger), and cachemeta (the residency tiers + the dependent-entry graph the eviction blast radius is read from).
defaultvaluescore
Package defaultvaluescore is the default-value scorecard -- the RECURRING GUARD for epic #1089's finding: fak value features that ship NOT-fully-enabled (compaction was illegible, amplification dead-on-proxy, vcache modeled, kvmmu unwired).
Package defaultvaluescore is the default-value scorecard -- the RECURRING GUARD for epic #1089's finding: fak value features that ship NOT-fully-enabled (compaction was illegible, amplification dead-on-proxy, vcache modeled, kvmmu unwired).
deletioncert
Package deletioncert mints and verifies a DeletionCertificate: a single, portable, re-checkable artifact that binds a bit-exact KV eviction to the tamper-evident audit journal that recorded it.
Package deletioncert mints and verifies a DeletionCertificate: a single, portable, re-checkable artifact that binds a bit-exact KV eviction to the tamper-evident audit journal that recorded it.
demoui
Package demoui holds the small, cross-cutting helpers the on-box demos (cmd/demorace, cmd/ctxdemo, cmd/simpledemo, ...) share, so they all report the SAME thing about the machine and never freeze on a long blocking phase.
Package demoui holds the small, cross-cutting helpers the on-box demos (cmd/demorace, cmd/ctxdemo, cmd/simpledemo, ...) share, so they all report the SAME thing about the machine and never freeze on a long blocking phase.
demoutil
Package demoutil holds the small server-sent-events scaffolding shared by the browser-facing demo binaries (cmd/ctxdemo, cmd/demorace): both stream the same JSON-object events to their viewer over an identical text/event-stream writer.
Package demoutil holds the small server-sent-events scaffolding shared by the browser-facing demo binaries (cmd/ctxdemo, cmd/demorace): both stream the same JSON-object events to their viewer over an identical text/event-stream writer.
devindex
Package devindex is queryable self-index over fak's own dev facts (lanes/leaves + doc map): query, don't survey.
Package devindex is queryable self-index over fak's own dev facts (lanes/leaves + doc map): query, don't survey.
dispatchaudit
Package dispatchaudit classifies dispatch-fleet worker outcomes and rolls up the wasted-spawn / wasted-wall-clock that `fak dispatch status` (backend health) does not surface.
Package dispatchaudit classifies dispatch-fleet worker outcomes and rolls up the wasted-spawn / wasted-wall-clock that `fak dispatch status` (backend health) does not surface.
dispatchorder
Package dispatchorder is the deterministic decision the fak issue-dispatch loop is missing: given a set of candidate work units, which one should a worker pick FIRST, and which ones are stale duplicates that should not run at all? It is the computable answer to the operator question "25 tasks were spawned for the same thing — only the freshest should run, and the rest should be superseded, not re-attempted."
Package dispatchorder is the deterministic decision the fak issue-dispatch loop is missing: given a set of candidate work units, which one should a worker pick FIRST, and which ones are stale duplicates that should not run at all? It is the computable answer to the operator question "25 tasks were spawned for the same thing — only the freshest should run, and the rest should be superseded, not re-attempted."
dispatchpost
Package dispatchpost posts the RESULT of a background code-dispatch run — the thing `fak loop run -- <cmd>` produces — to a Slack "dispatch" channel.
Package dispatchpost posts the RESULT of a background code-dispatch run — the thing `fak loop run -- <cmd>` produces — to a Slack "dispatch" channel.
dispatchsweep
Package dispatchsweep is the queue-drain loop core: find next issue -> spawn one worker -> repeat, until a tick refuses or the best-effort agent ceiling is hit.
Package dispatchsweep is the queue-drain loop core: find next issue -> spawn one worker -> repeat, until a tick refuses or the best-effort agent ceiling is hit.
dispatchtick
Package dispatchtick holds the pure contract for one issue-resolution dispatch tick.
Package dispatchtick holds the pure contract for one issue-resolution dispatch tick.
docfreshrsi
Package docfreshrsi is the RSI rung of the durable docs-freshness loop (epic #1278, issue #1284): it auto-applies the MECHANICAL doc-defect fixes — a missing orientation signpost, a missing `Read next` outbound link, a stale version pin — and keeps a candidate ONLY through internal/shipgate's non-forgeable keep-bit, on a witness the loop DERIVES itself.
Package docfreshrsi is the RSI rung of the durable docs-freshness loop (epic #1278, issue #1284): it auto-applies the MECHANICAL doc-defect fixes — a missing orientation signpost, a missing `Read next` outbound link, a stale version pin — and keeps a candidate ONLY through internal/shipgate's non-forgeable keep-bit, on a witness the loop DERIVES itself.
dogfoodissues
Package dogfoodissues is the backlog bridge from the recent-feature dogfood scorecard to a stable, deduplicated GitHub issue per ACTION item.
Package dogfoodissues is the backlog bridge from the recent-feature dogfood scorecard to a stable, deduplicated GitHub issue per ACTION item.
dogfoodscore
Package dogfoodscore scores the launched-session dogfooding loop — the loop a human starts when they run a Claude-Code-style agent inside this repo under fak's own guard + Stop-hook stack and watch it work.
Package dogfoodscore scores the launched-session dogfooding loop — the loop a human starts when they run a Claude-Code-style agent inside this repo under fak's own guard + Stop-hook stack and watch it work.
dojo
Package dojo is fak's prediction-vs-reality gym: the closed loop that turns a token-saving THEORY ("this lever saves X") into a scored, trended verdict against billed reality.
Package dojo is fak's prediction-vs-reality gym: the closed loop that turns a token-saving THEORY ("this lever saves X") into a scored, trended verdict against billed reality.
dojocal
Package dojocal is the dojo-RSI loop's PURE proposer + self-scoring rung — the genuinely-safe autonomous slice that MUTATES NOTHING (Phase 1 of docs/fak/dojo-rsi-loop.md, issue #1023).
Package dojocal is the dojo-RSI loop's PURE proposer + self-scoring rung — the genuinely-safe autonomous slice that MUTATES NOTHING (Phase 1 of docs/fak/dojo-rsi-loop.md, issue #1023).
dojopost
Package dojopost posts fak DOJO calibration rollups — the latest prediction-vs-reality run and the across-tick calibration trend — to a Slack dojo channel.
Package dojopost posts fak DOJO calibration rollups — the latest prediction-vs-reality run and the across-tick calibration trend — to a Slack dojo channel.
dormancy
Package dormancy is the dormancy clock + horizon bucketer: the one place that turns "how long was this agent/session/lease off?" into a first-class, measured quantity.
Package dormancy is the dormancy clock + horizon bucketer: the one place that turns "how long was this agent/session/lease off?" into a first-class, measured quantity.
dropin
Package dropin is the canonical drop-in wire resolution + known-agent registry shared by fak guard and the entry-point demo.
Package dropin is the canonical drop-in wire resolution + known-agent registry shared by fak guard and the entry-point demo.
egressfloor
Package egressfloor is the structural network-egress floor: a pure classifier that names a tool call reaching a blocked NETWORK DESTINATION — above all the cloud-instance METADATA endpoint (169.254.169.254 and its peers), whose only purpose from inside a VM is to hand out the box's cloud IAM credentials.
Package egressfloor is the structural network-egress floor: a pure classifier that names a tool call reaching a blocked NETWORK DESTINATION — above all the cloud-instance METADATA endpoint (169.254.169.254 and its peers), whose only purpose from inside a VM is to hand out the box's cloud IAM credentials.
engine
Package engine is the inference-engine seam (the EngineDriver).
Package engine is the inference-engine seam (the EngineDriver).
enginecache
Package enginecache binds cachemeta's remote invalidation directives to documented serving-engine control endpoints.
Package enginecache binds cachemeta's remote invalidation directives to documented serving-engine control endpoints.
epicprogress
Package epicprogress resolves how complete a GitHub epic is from its children, via a provenance-honest priority chain.
Package epicprogress resolves how complete a GitHub epic is from its children, via a provenance-honest priority chain.
epochbridge
Package epochbridge is the explicit converter between the two epoch/generation lineages of the ONE agent lineage family (epic #912, child #914): the served session's continuation lineage (internal/session — continuationID + State.Generation, a parent that on budget exhaustion re-continues into a fresh-budget child) and the kernel's speculation lineage (internal/abi — SpeculationContext{Epoch,ParentEpoch} + Outcome, a parent that spawns provisional children that commit or get discarded).
Package epochbridge is the explicit converter between the two epoch/generation lineages of the ONE agent lineage family (epic #912, child #914): the served session's continuation lineage (internal/session — continuationID + State.Generation, a parent that on budget exhaustion re-continues into a fresh-budget child) and the kernel's speculation lineage (internal/abi — SpeculationContext{Epoch,ParentEpoch} + Outcome, a parent that spawns provisional children that commit or get discarded).
execrollup
Package execrollup is the executive activity roll-up: one read-only fold that turns the firehose of agentic-fleet signals into a single signal-dense page a human can read in a glance — the answer to "how does one person keep up with a city of agents".
Package execrollup is the executive activity roll-up: one read-only fold that turns the firehose of agentic-fleet signals into a single signal-dense page a human can read in a glance — the answer to "how does one person keep up with a city of agents".
fakrpc
Package fakrpc is the pure, transport-neutral core of disaggregated agent-RPC over a text-only control bridge (#930): the request envelope a caller spools to a resident worker, and the FAKRES nonce/sha frame the worker wraps its result in.
Package fakrpc is the pure, transport-neutral core of disaggregated agent-RPC over a text-only control bridge (#930): the request envelope a caller spools to a resident worker, and the FAKRES nonce/sha frame the worker wraps its result in.
fleet
Package fleet is the public, transport-agnostic core for operating a fleet of boxes — GPU servers, worker nodes — an operator drives over the private Slack control-bridge.
Package fleet is the public, transport-agnostic core for operating a fleet of boxes — GPU servers, worker nodes — an operator drives over the private Slack control-bridge.
fleetaccounts
Package fleetaccounts is the Go port of the READ-ONLY roster/resolve/probe fold from tools/fleet_accounts.py — the single source of truth for "what is an account, and is it offered?" across both product families (Claude Code and opencode).
Package fleetaccounts is the Go port of the READ-ONLY roster/resolve/probe fold from tools/fleet_accounts.py — the single source of truth for "what is an account, and is it offered?" across both product families (Claude Code and opencode).
flock
Package flock is a cross-platform, non-blocking advisory file lock on an open *os.File.
Package flock is a cross-platform, non-blocking advisory file lock on an open *os.File.
gardenbundle
Package gardenbundle is the garden bundle -- one default-on fold over the repo's read-only gardening passes.
Package gardenbundle is the garden bundle -- one default-on fold over the repo's read-only gardening passes.
gateway
Package gateway is the kernel-adjudicated wire: it fronts the fak kernel over MCP (newline-delimited JSON-RPC) and an OpenAI-compatible HTTP surface so an agent written in ANY language can route its tool calls through the in-process syscall boundary WITHOUT writing Go.
Package gateway is the kernel-adjudicated wire: it fronts the fak kernel over MCP (newline-delimited JSON-RPC) and an OpenAI-compatible HTTP surface so an agent written in ANY language can route its tool calls through the in-process syscall boundary WITHOUT writing Go.
ggufload
Package ggufload parses GGUF metadata and tensor directories for off-path model loading.
Package ggufload parses GGUF metadata and tensor directories for off-path model loading.
gitgate
Package gitgate is a git-aware kernel PREFILTER: a registered Adjudicator rung that inspects a shell tool call (Bash / exec / run_shell / ...) carrying a `command` string, recognizes the `git` invocation inside it, and PROVABLY REFUSES the structurally-decidable git hazards BEFORE the command runs.
Package gitgate is a git-aware kernel PREFILTER: a registered Adjudicator rung that inspects a shell tool call (Bash / exec / run_shell / ...) carrying a `command` string, recognizes the `git` invocation inside it, and PROVABLY REFUSES the structurally-decidable git hazards BEFORE the command runs.
gpulease
Package gpulease is a machine-wide advisory lease so that only one GPU-heavy process loads a model at a time.
Package gpulease is a machine-wide advisory lease so that only one GPU-heavy process loads a model at a time.
grafanapost
Package grafanapost posts fak #grafana-channel cards — exported Grafana snapshots and long-lived dashboard / debug links — to a Slack channel.
Package grafanapost posts fak #grafana-channel cards — exported Grafana snapshots and long-lived dashboard / debug links — to a Slack channel.
grammar
Durability is the memory-write half of the grammar rung: the domain-free "context is not memory" contract.
Durability is the memory-write half of the grammar rung: the domain-free "context is not memory" contract.
guard
Package guard holds the agent-spawn containment seam for `fak guard`.
Package guard holds the agent-spawn containment seam for `fak guard`.
guardcomplaint
Package guardcomplaint is the agent's APPEAL channel against the kernel — the subjective complement to the objective guard RSI loop (internal/guardrsi + internal/guardroute).
Package guardcomplaint is the agent's APPEAL channel against the kernel — the subjective complement to the objective guard RSI loop (internal/guardrsi + internal/guardroute).
guardroute
Package guardroute is the bridge that closes the guard RSI loop: it turns a guarded session's worst journal bucket (found by internal/guardrsi) into a routed, idempotent, escalating finding -- a pickable findings-queue row, and, for a real honesty-hole, a deduped GitHub issue.
Package guardroute is the bridge that closes the guard RSI loop: it turns a guarded session's worst journal bucket (found by internal/guardrsi) into a routed, idempotent, escalating finding -- a pickable findings-queue row, and, for a real honesty-hole, a deduped GitHub issue.
guardtrace
Package guardtrace is the end-to-end test/replay harness for `fak guard`.
Package guardtrace is the end-to-end test/replay harness for `fak guard`.
harvest
Package harvest is the LabelRow harvester — the data-collection rung of the compiled defender-side loop.
Package harvest is the LabelRow harvester — the data-collection rung of the compiled defender-side loop.
headroom
Package headroom is the context-compression seam: a pluggable Compressor area (headroom/native/noop plugins) folded into the result path as a ResultAdmitter.
Package headroom is the context-compression seam: a pluggable Compressor area (headroom/native/noop plugins) folded into the result path as a ResultAdmitter.
heavinessscore
Package heavinessscore is the operator-heaviness / steering-effort stick.
Package heavinessscore is the operator-heaviness / steering-effort stick.
hfhub
Package hfhub resolves and downloads model files from the Hugging Face Hub via `hf://` URIs, with a local content cache, optional HF_TOKEN auth, and best-effort SHA256 verification against the Hub's LFS oid (the X-Linked-Etag the Hub stamps on every LFS object).
Package hfhub resolves and downloads model files from the Hugging Face Hub via `hf://` URIs, with a local content cache, optional HF_TOKEN auth, and best-effort SHA256 verification against the Hub's LFS oid (the X-Linked-Etag the Hub stamps on every LFS object).
hooks
Package hooks runs the repo's commit-boundary gates IN ONE PROCESS.
Package hooks runs the repo's commit-boundary gates IN ONE PROCESS.
horizonrecovery
Package horizonrecovery grounds the budget-recovery term r of the horizon multiplier in docs/explainers/compounding-benefits-of-a-saved-call.md, from a REAL ctxplanbench replay over real Claude Code transcripts.
Package horizonrecovery grounds the budget-recovery term r of the horizon multiplier in docs/explainers/compounding-benefits-of-a-saved-call.md, from a REAL ctxplanbench replay over real Claude Code transcripts.
ifc
Package ifc is the information-flow control layer — the CaMeL / FIDES complement to the lexical detectors (canon, normgate, ctxmmu).
Package ifc is the information-flow control layer — the CaMeL / FIDES complement to the lexical detectors (canon, normgate, ctxmmu).
intlist
Package intlist parses a string into a list of non-negative integers.
Package intlist parses a string into a list of non-negative integers.
issuecontract
Package issuecontract reviews machine-created GitHub issue candidates before they enter the dispatch loop.
Package issuecontract reviews machine-created GitHub issue candidates before they enter the dispatch loop.
journal
Package journal is the durable, append-only, tamper-evident DECISION JOURNAL — the regulated-audit (AUD) surface of the trust floor.
Package journal is the durable, append-only, tamper-evident DECISION JOURNAL — the regulated-audit (AUD) surface of the trust floor.
kernel
explain.go — the OFF-HOT-PATH dual of Fold: it folds the SAME adjudicator chain to the SAME winning verdict, but additionally records a per-rung Decision trace — the answer to the single most common debugging question in the whole kernel: "why did fak give THIS verdict for THIS tool call?"
explain.go — the OFF-HOT-PATH dual of Fold: it folds the SAME adjudicator chain to the SAME winning verdict, but additionally records a per-rung Decision trace — the answer to the single most common debugging question in the whole kernel: "why did fak give THIS verdict for THIS tool call?"
kvmmu
Package kvmmu is the bridge the in-kernel model makes possible: it turns ctxmmu's LOGICAL quarantine verdict — "these bytes may not enter the context window" — into a MECHANICAL one — eviction of that result's K/V span from the kernel-owned attention cache, so the model physically cannot attend to it.
Package kvmmu is the bridge the in-kernel model makes possible: it turns ctxmmu's LOGICAL quarantine verdict — "these bytes may not enter the context window" — into a MECHANICAL one — eviction of that result's K/V span from the kernel-owned attention cache, so the model physically cannot attend to it.
l3region
Package l3region ships Stage 1 of child B of the L3 disaggregated-cache epic (#77 / epic #504; study docs/notes/L3-DISAGGREGATED-CACHE-REIMAGINED.md §4 Option B): an L3RegionBackend behind fak's already-frozen Resolver seam (internal/abi.RegionBackend, registered via abi.RegisterRegionBackend).
Package l3region ships Stage 1 of child B of the L3 disaggregated-cache epic (#77 / epic #504; study docs/notes/L3-DISAGGREGATED-CACHE-REIMAGINED.md §4 Option B): an L3RegionBackend behind fak's already-frozen Resolver seam (internal/abi.RegionBackend, registered via abi.RegisterRegionBackend).
leakcheck
Package leakcheck provides the three reusable PROOF primitives a memory/goroutine-leak sweep needs, so a regression guard is a few lines instead of a hand-rolled harness each time.
Package leakcheck provides the three reusable PROOF primitives a memory/goroutine-leak sweep needs, so a regression guard is a few lines instead of a hand-rolled harness each time.
learningdebt
Package learningdebt is the staleness->backlog bridge from the learning-docs scorecard to a cap-bounded, deduplicated GitHub triage issue per HARD teaching defect.
Package learningdebt is the staleness->backlog bridge from the learning-docs scorecard to a cap-bounded, deduplicated GitHub triage issue per HARD teaching defect.
leaseref
Package leaseref is the CROSS-MACHINE VISIBILITY substrate for fak's leases: it persists a lease record under a dedicated refs/fak/locks/<id> ref namespace, so lease state rides ordinary `git fetch` / `git push` between clones — the same mechanism grite uses with refs/grite/locks.
Package leaseref is the CROSS-MACHINE VISIBILITY substrate for fak's leases: it persists a lease record under a dedicated refs/fak/locks/<id> ref namespace, so lease state rides ordinary `git fetch` / `git push` between clones — the same mechanism grite uses with refs/grite/locks.
lifebridge
Package lifebridge is the explicit converter between the two altitudes of the ONE agent lifecycle machine (epic #912): the served-session drive state (internal/session.RunState) and the loop supervisor state (internal/loopmgr.LoopState).
Package lifebridge is the explicit converter between the two altitudes of the ONE agent lifecycle machine (epic #912): the served-session drive state (internal/session.RunState) and the loop supervisor state (internal/loopmgr.LoopState).
lifecycle
Package lifecycle is the ONE canonical vocabulary for an agent's run-state — the shared skeleton that both the served session (internal/session.RunState) and the loop supervisor (internal/loopmgr.LoopState) spell.
Package lifecycle is the ONE canonical vocabulary for an agent's run-state — the shared skeleton that both the served session (internal/session.RunState) and the loop supervisor (internal/loopmgr.LoopState) spell.
loopdrive
Package loopdrive parses the GOAL.md goal spec used by fak loop drive.
Package loopdrive parses the GOAL.md goal spec used by fak loop drive.
loopfleet
Package loopfleet is the cross-ledger loop-health fold (#1196, part of #1173 — the verified loop): one read-only pane that answers "show me EVERY loop's health — last tick, run count, keep/witness rate, and whether it has gone DARK" across the repo's fragmented loop ledgers.
Package loopfleet is the cross-ledger loop-health fold (#1196, part of #1173 — the verified loop): one read-only pane that answers "show me EVERY loop's health — last tick, run count, keep/witness rate, and whether it has gone DARK" across the repo's fragmented loop ledgers.
loopgate
loopbench measures what the witnessed exit-gate earns over a naive Ralph loop that terminates on the agent's own self-reported "done".
loopbench measures what the witnessed exit-gate earns over a naive Ralph loop that terminates on the agent's own self-reported "done".
loopindex
Package loopindex scores the agentic-coding LOOP — the round an agent (and a fleet of agents) runs to go from a task to shipped, verified code — into one witnessed number: the loop-index.
Package loopindex scores the agentic-coding LOOP — the round an agent (and a fleet of agents) runs to go from a task to shipped, verified code — into one witnessed number: the loop-index.
loopmap
Package loopmap is the loop-stage -> tool map: the in-loop affordance that answers "what tool do I reach for RIGHT NOW?" at each stage of the agentic-coding loop (orient -> plan -> act -> verify -> ship -> learn, the six stages owned by internal/loopindex).
Package loopmap is the loop-stage -> tool map: the in-loop affordance that answers "what tool do I reach for RIGHT NOW?" at each stage of the agentic-coding loop (orient -> plan -> act -> verify -> ship -> learn, the six stages owned by internal/loopindex).
loopmgr
Package loopmgr records and summarizes long-running agent loop events.
Package loopmgr records and summarizes long-running agent loop events.
looprecover
Package looprecover is the deterministic recovery decision the fak dispatch fleet is missing: given the durable loop ledger's record of every dispatched run, which runs STARTED but never finished or were never witnessed — the work that should be re-dispatched or re-verified rather than left silently abandoned?
Package looprecover is the deterministic recovery decision the fak dispatch fleet is missing: given the durable loop ledger's record of every dispatched run, which runs STARTED but never finished or were never witnessed — the work that should be re-dispatched or re-verified rather than left silently abandoned?
loopscore
Package loopscore scores the AGENTIC BACKGROUND LOOPS themselves — the always-on processes (issue dispatch, resolve-progress, freshness cadences, smoke loops) that keep the fleet moving while no human is watching.
Package loopscore scores the AGENTIC BACKGROUND LOOPS themselves — the always-on processes (issue dispatch, resolve-progress, freshness cadences, smoke loops) that keep the fleet moving while no human is watching.
maputil
Package maputil holds small, generic map helpers that were previously copy-pasted across packages.
Package maputil holds small, generic map helpers that were previously copy-pasted across packages.
marketing
Package marketing turns a WITNESSED completion event — a ship-stamped commit, a closed epic, a release — into a fresh marketing artifact, with one rung the other outbound posters (internal/scoreboard, benchpost, dispatchpost, dojopost) don't have: every claim is keyed to a git-witnessed commit sha.
Package marketing turns a WITNESSED completion event — a ship-stamped commit, a closed epic, a release — into a fresh marketing artifact, with one rung the other outbound posters (internal/scoreboard, benchpost, dispatchpost, dojopost) don't have: every claim is keyed to a git-witnessed commit sha.
mathx
Package mathx holds small numeric helpers shared across packages — the kind of one-liner that was copy-pasted into every report builder before it had a home.
Package mathx holds small numeric helpers shared across packages — the kind of one-liner that was copy-pasted into every report builder before it had a home.
maturity
Package maturity scores where each fak capability sits on its LIFECYCLE maturity ladder — and, crucially, what the next step to advance it is.
Package maturity scores where each fak capability sits on its LIFECYCLE maturity ladder — and, crucially, what the next step to advance it is.
memq
Package memq is the agent-facing MEMORY-OPERATION ALGEBRA — the substrate that lets an agent (or a plugin, a driver, or an operator) author its OWN memory strategy instead of the kernel hard-coding one.
Package memq is the agent-facing MEMORY-OPERATION ALGEBRA — the substrate that lets an agent (or a plugin, a driver, or an operator) author its OWN memory strategy instead of the kernel hard-coding one.
memview
Package memview is the typed virtual-view contract over canonical raw memory cells (issue #904): a memory/context cell is CANONICAL (the raw bytes), and every summary / QA / graph / prompt-prefix / KV-prefix projection of it is a DERIVED view that carries provenance and an admission gate.
Package memview is the typed virtual-view contract over canonical raw memory cells (issue #904): a memory/context cell is CANONICAL (the raw bytes), and every summary / QA / graph / prompt-prefix / KV-prefix projection of it is a DERIVED view that carries provenance and an admission gate.
metalgemm
Package metalgemm stub — the non-Apple-Silicon or cgo-disabled build.
Package metalgemm stub — the non-Apple-Silicon or cgo-disabled build.
metrics
Package metrics is the KPI layer + the A/B report shape.
Package metrics is the KPI layer + the A/B report shape.
milestonedoc
Package milestonedoc renders the project's milestone CLIMB snapshot into a freshness-checked, committed markdown block, the milestone-shaped sibling of internal/supportmaturityscore's MatrixBlock (#1441, child of epic #1436).
Package milestonedoc renders the project's milestone CLIMB snapshot into a freshness-checked, committed markdown block, the milestone-shaped sibling of internal/supportmaturityscore's MatrixBlock (#1441, child of epic #1436).
milestonepost
Package milestonepost posts the milestone tracking report — fak's WITNESSED maturity CLIMB plus the epic ROADMAP — to a single Slack "milestones" channel, so the fleet has one durable place where "how far has the project climbed, and is it moving?" gets an honest answer on a cadence.
Package milestonepost posts the milestone tracking report — fak's WITNESSED maturity CLIMB plus the epic ROADMAP — to a single Slack "milestones" channel, so the fleet has one durable place where "how far has the project climbed, and is it moving?" gets an honest answer on a cadence.
milestonereport
Package milestonereport folds the project's two milestone signals — the maturity CLIMB and the epic ROADMAP — into one read-only report envelope with a durable JSONL trend ledger, the milestone-shaped sibling of internal/cadencereport.
Package milestonereport folds the project's two milestone signals — the maturity CLIMB and the epic ROADMAP — into one read-only report envelope with a durable JSONL trend ledger, the milestone-shaped sibling of internal/cadencereport.
model
Package model is the in-kernel inference core: a pure-Go forward pass over a single small open-source model (SmolLM2-135M / Qwen2.5-0.5B), with the KV cache as a first-class Go data structure the kernel OWNS.
Package model is the in-kernel inference core: a pure-Go forward pass over a single small open-source model (SmolLM2-135M / Qwen2.5-0.5B), with the KV cache as a first-class Go data structure the kernel OWNS.
modelengine
Package modelengine wires the in-kernel model (internal/model) into the kernel as a registered abi.EngineDriver under the id "inkernel".
Package modelengine wires the in-kernel model (internal/model) into the kernel as a registered abi.EngineDriver under the id "inkernel".
modelladder
Package modelladder is the shared model-ladder/registry infrastructure used by the live demos (cmd/ctxdemo, cmd/demorace).
Package modelladder is the shared model-ladder/registry infrastructure used by the live demos (cmd/ctxdemo, cmd/demorace).
modelreg
Package modelreg is the friendly-name → model-ref registry that lets a user say `fak run qwen2.5:7b` or `fak serve --gguf smollm2` instead of typing a full hf:// URI or hunting for a local .gguf path.
Package modelreg is the friendly-name → model-ref registry that lets a user say `fak run qwen2.5:7b` or `fak serve --gguf smollm2` instead of typing a full hf:// URI or hunting for a local .gguf path.
modelroute
Package modelroute is fak's model-routing spine: choose WHICH model — or which ENSEMBLE of models — serves any ASPECT of a request, under one declarative, deterministic, verifiable policy.
Package modelroute is fak's model-routing spine: choose WHICH model — or which ENSEMBLE of models — serves any ASPECT of a request, under one declarative, deterministic, verifiable policy.
newmodel
Package newmodel is new-model scaffolding command.
Package newmodel is new-model scaffolding command.
nightrun
Package nightrun is the "run it all night" center of excellence: the one place that answers, for an operator OR an agent, the single recurring question of unattended data collection —
Package nightrun is the "run it all night" center of excellence: the one place that answers, for an operator OR an agent, the single recurring question of unattended data collection —
nodeusagepost
Package nodeusagepost posts COMPUTE-NODE-USAGE status — the latest fleet/node readiness, the active worker count, and inbound load — to a Slack "node-usage" channel.
Package nodeusagepost posts COMPUTE-NODE-USAGE status — the latest fleet/node readiness, the active worker count, and inbound load — to a Slack "node-usage" channel.
normgate
Package normgate is a write-time ResultAdmitter that closes the context-MMU's measured DETECTION gap: the v0.1 ctxmmu matches injection markers and secret shapes as raw ASCII regex/substring, so any obfuscation (char-spacing, base64, homoglyph, zero-width, fullwidth, bidi, format-variant secrets) walks straight through (~100% evasion, measured on a private transcript-derived corpus).
Package normgate is a write-time ResultAdmitter that closes the context-MMU's measured DETECTION gap: the v0.1 ctxmmu matches injection markers and secret shapes as raw ASCII regex/substring, so any obfuscation (char-spacing, base64, homoglyph, zero-width, fullwidth, bidi, format-variant secrets) walks straight through (~100% evasion, measured on a private transcript-derived corpus).
numfmt
Package numfmt holds the small allocation-light numeric and environment formatting helpers that were copy-pasted across the kernel.
Package numfmt holds the small allocation-light numeric and environment formatting helpers that were copy-pasted across the kernel.
opttarget
Package opttarget is the declarative target layer of the RSI optimization fuser (epic #1279).
Package opttarget is the declarative target layer of the RSI optimization fuser (epic #1279).
pathlint
Package pathlint is a static witness for one external-boundary claim: that every user-supplied filesystem-path flag is normalized before it reaches the OS.
Package pathlint is a static witness for one external-boundary claim: that every user-supplied filesystem-path flag is normalized before it reaches the OS.
pathutil
Package pathutil holds small, dependency-free path helpers shared across the fak commands — chiefly normalizing user-supplied path flags before they reach the filesystem.
Package pathutil holds small, dependency-free path helpers shared across the fak commands — chiefly normalizing user-supplied path flags before they reach the filesystem.
plancfi
Package plancfi is control-flow integrity for an agent's PLAN — the stateful adjudicator that refuses a tool call which deviates from the approved plan.
Package plancfi is control-flow integrity for an agent's PLAN — the stateful adjudicator that refuses a tool call which deviates from the approved plan.
policy
Package policy loads the adjudicator's capability floor from a declarative, version-tagged JSON manifest instead of a compiled-in Go literal — so an adopter configures WHICH tools the agent may call by editing a file the operator can read and a reviewer can diff, never by forking the kernel and recompiling.
Package policy loads the adjudicator's capability floor from a declarative, version-tagged JSON manifest instead of a compiled-in Go literal — so an adopter configures WHICH tools the agent may call by editing a file the operator can read and a reviewer can diff, never by forking the kernel and recompiling.
polymodel
Package polymodel is the deterministic core for hosting many models on one kernel and serializing decode to one lane — the "host 10s of models, share the prefill, decode one" design, expressed as proven arithmetic with no GPU, model, or network dependency.
Package polymodel is the deterministic core for hosting many models on one kernel and serializing decode to one lane — the "host 10s of models, share the prefill, decode one" design, expressed as proven arithmetic with no GPU, model, or network dependency.
preflight
Package preflight is the pre-flight rung ladder: cheapest-first well-formedness checks that catch a malformed/unsafe call BEFORE it fires, so a dead branch never spawns a process or burns a model turn.
Package preflight is the pre-flight rung ladder: cheapest-first well-formedness checks that catch a malformed/unsafe call BEFORE it fires, so a dead branch never spawns a process or burns a model turn.
procguard
Package procguard is the native Go port of the standalone operator/control-pane modes of tools/proc_resource_guard.py — catch a runaway process before it pins the host.
Package procguard is the native Go port of the standalone operator/control-pane modes of tools/proc_resource_guard.py — catch a runaway process before it pins the host.
programreport
Package programreport folds the project's ONGOING optimization PROGRAMS — the work classes internal/worktype marks as never-"done" frontiers (kernel-optimization and cache-optimization) — into one read-only report envelope with a durable JSONL trend ledger.
Package programreport folds the project's ONGOING optimization PROGRAMS — the work classes internal/worktype marks as never-"done" frontiers (kernel-optimization and cache-optimization) — into one read-only report envelope with a durable JSONL trend ledger.
promptmmu
Package promptmmu is the cache-prefix-preserving inbound prompt MMU: the INGRESS dual of the result-side ctxmmu.
Package promptmmu is the cache-prefix-preserving inbound prompt MMU: the INGRESS dual of the result-side ctxmmu.
propagationscore
Package propagationscore measures CONVENTION PROPAGATION across fak's scorecard family -- the degree to which a "scoring concept" improved in ONE card has fanned out to its siblings -- and turns each un-propagated gap into a deduped, dispatchable GitHub issue (internal/propagationscore/dispatch.go) so the operator never has to REMEMBER to extend an improvement by hand.
Package propagationscore measures CONVENTION PROPAGATION across fak's scorecard family -- the degree to which a "scoring concept" improved in ONE card has fanned out to its siblings -- and turns each un-propagated gap into a deduped, dispatchable GitHub issue (internal/propagationscore/dispatch.go) so the operator never has to REMEMBER to extend an improvement by hand.
provenance
Package provenance is the single, kernel-authored answer to one question: "where did this byte come from, and may the kernel trust it?" — and it is the ONE place that answer is decided.
Package provenance is the single, kernel-authored answer to one question: "where did this byte come from, and may the kernel trust it?" — and it is the ONE place that answer is decided.
pythongate
Package pythongate is the NEW-PYTHON-TOOL ratchet: the durable gate that makes the project's de-Python push gradual and self-sustaining.
Package pythongate is the NEW-PYTHON-TOOL ratchet: the durable gate that makes the project's de-Python push gradual and self-sustaining.
radixkv
Package radixkv is SGLang's RadixAttention prefix cache, rebuilt over fak's kernel-owned KV cache — the apples-to-apples answer to "how does fak compare to SGLang's KV-cache radix attention?".
Package radixkv is SGLang's RadixAttention prefix cache, rebuilt over fak's kernel-owned KV cache — the apples-to-apples answer to "how does fak compare to SGLang's KV-cache radix attention?".
ratelimit
Package ratelimit is the throughput/cost governor: the adjudicator that turns the already-plumbed RATE_LIMITED reason into an actual enforcer.
Package ratelimit is the throughput/cost governor: the adjudicator that turns the already-plumbed RATE_LIMITED reason into an actual enforcer.
recall
Package recall makes a COMPLETED agent session queryable without replaying it — the "treat a finished session as a core dump" leaf (../../session-recall-design.md).
Package recall makes a COMPLETED agent session queryable without replaying it — the "treat a finished session as a core dump" leaf (../../session-recall-design.md).
region
Package region provides a typed, in-process one-sided shared window over abi.Ref values.
Package region provides a typed, in-process one-sided shared window over abi.Ref values.
registrations
Package registrations is the "built-in driver list" (the Linux defconfig).
Package registrations is the "built-in driver list" (the Linux defconfig).
rehydrate
Package rehydrate is the horizon-gated re-entry orchestrator: the staged gate a resumed agent passes through BEFORE its first post-wake action, running strictly more revalidation the longer it slept.
Package rehydrate is the horizon-gated re-entry orchestrator: the staged gate a resumed agent passes through BEFORE its first post-wake action, running strictly more revalidation the longer it slept.
release
Package release holds the single, process-safe release lock that every code path which mutates the two single-writer release resources — the bare VERSION marker and the monotone vX.Y.Z tag sequence — must take before its critical section.
Package release holds the single, process-safe release lock that every code path which mutates the two single-writer release resources — the bare VERSION marker and the monotone vX.Y.Z tag sequence — must take before its critical section.
releasestale
Package releasestale answers one question durably: "is the version that `go install github.com/.../cmd/fak@latest` would install actually current, or has the trunk moved far past it?"
Package releasestale answers one question durably: "is the version that `go install github.com/.../cmd/fak@latest` would install actually current, or has the trunk moved far past it?"
releasestatus
Package releasestatus folds the full read-only release posture that tools/release_status.py emits into one typed Go record — the broader sibling of internal/releasestale, which only covers the publish-staleness slice.
Package releasestatus folds the full read-only release posture that tools/release_status.py emits into one typed Go record — the broader sibling of internal/releasestale, which only covers the publish-staleness slice.
repoguard
guard.go — the pure, interpreter-free core of the repo-guard PreToolUse hook.
guard.go — the pure, interpreter-free core of the repo-guard PreToolUse hook.
residency
Package residency is the multi-model weight-residency leaf: it hosts many prefill-warm *model.Model under one resident weight-byte budget with LRU page-out, reusing internal/polymodel.Pool as the budget + eviction POLICY and binding each admitted residency descriptor to the real in-kernel weights it governs.
Package residency is the multi-model weight-residency leaf: it hosts many prefill-warm *model.Model under one resident weight-byte budget with LRU page-out, reusing internal/polymodel.Pool as the budget + eviction POLICY and binding each admitted residency descriptor to the real in-kernel weights it governs.
resume
Package resume is the deterministic, observable RESUME decision: given the facts about a dormant agent session about to be brought back, it computes — with no clock, no network, and no model — exactly what happens to the provider prompt cache on the first turn after resume, what each re-entry STRATEGY costs, and which one the kernel recommends.
Package resume is the deterministic, observable RESUME decision: given the facts about a dormant agent session about to be brought back, it computes — with no clock, no network, and no model — exactly what happens to the provider prompt cache on the first turn after resume, what each re-entry STRATEGY costs, and which one the kernel recommends.
rsiloop
Package rsiloop closes fak's recursive-self-improvement loop.
Package rsiloop closes fak's recursive-self-improvement loop.
rulesynth
Package rulesynth closes AUTOHARNESS's loop on OUR hand-authored harness: it mines the kernel's refusal/near-miss log to PROPOSE the next STRUCTURAL adjudicator rule, then PROVES it model-free before it can ship — never self-certifying (#537).
Package rulesynth closes AUTOHARNESS's loop on OUR hand-authored harness: it mines the kernel's refusal/near-miss log to PROPOSE the next STRUCTURAL adjudicator rule, then PROVES it model-free before it can ship — never self-certifying (#537).
rungobs
Package rungobs is the passive rung-decision distribution counter — the aggregate observability dual of `fak preflight --explain`.
Package rungobs is the passive rung-decision distribution counter — the aggregate observability dual of `fak preflight --explain`.
safecommit
Package safecommit is the EXECUTOR half of the shared-trunk commit discipline that internal/gitgate only declares defensively.
Package safecommit is the EXECUTOR half of the shared-trunk commit discipline that internal/gitgate only declares defensively.
safesync
Package safesync is safe fast-forward sync for dirty shared worktrees.
Package safesync is safe fast-forward sync for dirty shared worktrees.
savingsvector
Package savingsvector re-projects a turnbench Report's FLAT saving into the FOUR orthogonal accounts named by docs/explainers/compounding-benefits-of-a-saved-call.md.
Package savingsvector re-projects a turnbench Report's FLAT saving into the FOUR orthogonal accounts named by docs/explainers/compounding-benefits-of-a-saved-call.md.
scoreboard
Package scoreboard posts fak status — scorecard results, scores, run events — to a Slack "scoreboard" channel.
Package scoreboard posts fak status — scorecard results, scores, run events — to a Slack "scoreboard" channel.
scorecardpane
Package scorecardpane is the native Go port of the two highest-frequency scorecard folds the family still ran in Python: the portfolio control-pane fold (tools/scorecard_control_pane.py) and the repo-hygiene scorecard fold (tools/repo_hygiene_scorecard.py).
Package scorecardpane is the native Go port of the two highest-frequency scorecard folds the family still ran in Python: the portfolio control-pane fold (tools/scorecard_control_pane.py) and the repo-hygiene scorecard fold (tools/repo_hygiene_scorecard.py).
secretgate
Package secretgate is the execution-time, on-discovery SECRET rung (epic #880, pillar [B], issue #884).
Package secretgate is the execution-time, on-discovery SECRET rung (epic #880, pillar [B], issue #884).
secretload
Package secretload is fak's first-class secret/config loader — the structural seam for pillars [C] (.env / config loading) and [D] (the vault backend) of the secret-handling epic (#880, foundation issue #887).
Package secretload is fak's first-class secret/config loader — the structural seam for pillars [C] (.env / config loading) and [D] (the vault backend) of the secret-handling epic (#880, foundation issue #887).
selfinstall
Package selfinstall rebuilds the fak binary from the current checkout and atomically swaps it into a target path — but ONLY after the freshly-built binary passes a gate, so a tree that does not compile, fails vet, or produces a binary that cannot even print its version is NEVER installed over a running fleet.
Package selfinstall rebuilds the fak binary from the current checkout and atomically swaps it into a target path — but ONLY after the freshly-built binary passes a gate, so a tree that does not compile, fails vet, or produces a binary that cannot even print its version is NEVER installed over a running fleet.
session
Package session is the per-session DRIVE state — the first-class, queryable, live-mutable control state of a served agent session: its run-state, planner budget, scheduling priority, and per-turn pace.
Package session is the per-session DRIVE state — the first-class, queryable, live-mutable control state of a served agent session: its run-state, planner budget, scheduling priority, and per-turn pace.
sessionimage
Package sessionimage makes an agent SESSION a first-class, portable, model-agnostic VALUE — one self-describing image you can dump, archive, offload, and restore across hosts, users, instances, VMs, and a model change, then RESUME where it left off.
Package sessionimage makes an agent SESSION a first-class, portable, model-agnostic VALUE — one self-describing image you can dump, archive, offload, and restore across hosts, users, instances, VMs, and a model change, then RESUME where it left off.
sessionobs
Package sessionobs scores the OBSERVABILITY of our own coding-session data for RSI loops.
Package sessionobs scores the OBSERVABILITY of our own coding-session data for RSI loops.
sessionreset
Package sessionreset builds the "human-like" carryover a fresh session is seeded with when a long-running session crosses its token budget.
Package sessionreset builds the "human-like" carryover a fresh session is seeded with when a long-running session crosses its token budget.
sharedtask
Package sharedtask is the in-memory reference fold for collaborative task records.
Package sharedtask is the in-memory reference fold for collaborative task records.
shipgate
adjudicate.go puts the ship gate ON the kernel's decision path: a registered Adjudicator that holds a ship-shaped tool call behind the require-witness rung.
adjudicate.go puts the ship gate ON the kernel's decision path: a registered Adjudicator that holds a ship-shaped tool call behind the require-witness rung.
simhash
Package simhash is fak's REFERENCE vector-similarity primitive — the dependency-free embedding + cosine + top-k substrate the observability layer hands to anyone who wants to find near-duplicate queries, cluster trajectories, or flag outlier ("bad") queries WITHOUT fak choosing a semantic model for them.
Package simhash is fak's REFERENCE vector-similarity primitive — the dependency-free embedding + cosine + top-k substrate the observability layer hands to anyone who wants to find near-duplicate queries, cluster trajectories, or flag outlier ("bad") queries WITHOUT fak choosing a semantic model for them.
slackenv
Package slackenv is the ONE resolver for fak's Slack-surface configuration: it reads a key from the process environment or a gitignored .env.slack.local file (walking up from the working directory), so the "one gitignored file configures every workspace" idiom lives in a single tested place instead of eight verbatim copies.
Package slackenv is the ONE resolver for fak's Slack-surface configuration: it reads a key from the process environment or a gitignored .env.slack.local file (walking up from the working directory), so the "one gitignored file configures every workspace" idiom lives in a single tested place instead of eight verbatim copies.
slackmeta
Package slackmeta renders the common metadata line every fak Slack report carries.
Package slackmeta renders the common metadata line every fak Slack report carries.
snapshot
Package snapshot is the uniform DUMP/RESTORE seam over fak's primitives.
Package snapshot is the uniform DUMP/RESTORE seam over fak's primitives.
spec
Package spec is the speculative-execution leaf: the first implementation of the frozen abi.ProvisionalSink seam, and the registrant of the reserved OpsSpec ops (OpSpecCommit / OpSpecSquash).
Package spec is the speculative-execution leaf: the first implementation of the frozen abi.ProvisionalSink seam, and the registrant of the reserved OpsSpec ops (OpSpecCommit / OpSpecSquash).
steward
Package steward is the steward population: a set of cheap, single-invariant validators that garden the kernel's journal.
Package steward is the steward population: a set of cheap, single-invariant validators that garden the kernel's journal.
stopfailure
Package stopfailure reads and settles DOS StopFailure breaker markers.
Package stopfailure reads and settles DOS StopFailure breaker markers.
storedrv
Package storedrv is fak's pluggable STORAGE-DRIVER framework — the seam that lets every kind of data live in the place that fits it (hot RAM, durable disk, a remote object store, later a columnar or KV backend) instead of the one in-memory map the v0.1 blob store gives everything.
Package storedrv is fak's pluggable STORAGE-DRIVER framework — the seam that lets every kind of data live in the place that fits it (hot RAM, durable disk, a remote object store, later a columnar or KV backend) instead of the one in-memory map the v0.1 blob store gives everything.
supportmaturity
featureroster.go — C6 of the support-maturity epic (#1249/#1243): score non-model FEATURES on the SAME M0–M7 ladder the model×backend grid reads off, so "feature support" and "architecture support" come off one instrument instead of two prose tables.
featureroster.go — C6 of the support-maturity epic (#1249/#1243): score non-model FEATURES on the SAME M0–M7 ladder the model×backend grid reads off, so "feature support" and "architecture support" come off one instrument instead of two prose tables.
supportmaturityscore
Package supportmaturityscore grades the covmatrix support rungs as a scorecard.
Package supportmaturityscore grades the covmatrix support rungs as a scorecard.
swebench
Package swebench turns SWE-bench Verified into a fak-native benchmark whose results are directly comparable to the external "N-Server Cache Benchmarking Tool" (the Benchmark repo, "bench") that runs the same task set against an SGLang endpoint.
Package swebench turns SWE-bench Verified into a fak-native benchmark whose results are directly comparable to the external "N-Server Cache Benchmarking Tool" (the Benchmark repo, "bench") that runs the same task set against an SGLang endpoint.
swebenchsota
Package swebenchsota emits a dated SWE-bench SOTA reference snapshot extracted from the official leaderboard at https://www.swebench.com/.
Package swebenchsota emits a dated SWE-bench SOTA reference snapshot extracted from the official leaderboard at https://www.swebench.com/.
syspromptmmu
Package syspromptmmu emits fak's ordered base-context plan — the fak-first head of the context window (Rung 1 of the system-prompt MMU, epic #1258, issue #1259).
Package syspromptmmu emits fak's ordered base-context plan — the fak-first head of the context window (Rung 1 of the system-prompt MMU, epic #1258, issue #1259).
taskmgr
Package taskmgr is fak's process-local task manager concept.
Package taskmgr is fak's process-local task manager concept.
terminalbench
Package terminalbench adapts Terminal-Bench-shaped command traces into fak command-boundary mediation reports.
Package terminalbench adapts Terminal-Bench-shaped command traces into fak command-boundary mediation reports.
tokenizer
Package tokenizer is a tokenizer leaf for offline text/id conversion outside the model proof path.
Package tokenizer is a tokenizer leaf for offline text/id conversion outside the model proof path.
toollint
Package toollint is the kernel's STATIC tool linter: it checks the registered tool SURFACE for inconsistencies the runtime would otherwise silently paper over on every single call.
Package toollint is the kernel's STATIC tool linter: it checks the registered tool SURFACE for inconsistencies the runtime would otherwise silently paper over on every single call.
toolsandbox
Package toolsandbox adapts tau3/ToolSandbox-shaped policy-state traces into fak adjudication reports.
Package toolsandbox adapts tau3/ToolSandbox-shaped policy-state traces into fak adjudication reports.
tracesink
Package tracesink is a payload-bearing, IFC-labeled TRAJECTORY SINK.
Package tracesink is a payload-bearing, IFC-labeled TRAJECTORY SINK.
trajectory
Package trajectory is fak's TRAJECTORY DATA PLANE — the typed, exportable record of what an agent actually did, turn by turn, that application-layer optimizers build trajectory/memory/cache/planner analyses ON TOP of.
Package trajectory is fak's TRAJECTORY DATA PLANE — the typed, exportable record of what an agent actually did, turn by turn, that application-layer optimizers build trajectory/memory/cache/planner analyses ON TOP of.
trajhook
Package trajhook is the PLUGGABLE TRAJECTORY-SCORER SEAM — the rung that lets a trivial application-layer skill garden trajectories (flag bad queries, find near-duplicate work, prune dead memory) WITHOUT a core edit to fak.
Package trajhook is the PLUGGABLE TRAJECTORY-SCORER SEAM — the rung that lets a trivial application-layer skill garden trajectories (flag bad queries, find near-duplicate work, prune dead memory) WITHOUT a core edit to fak.
treedoctor
Package treedoctor diagnoses and (optionally) sweeps a fak working tree that has gone un-tidy under a permanently-on agent fleet, where the trunk is never quiescent.
Package treedoctor diagnoses and (optionally) sweeps a fak working tree that has gone un-tidy under a permanently-on agent fleet, where the trunk is never quiescent.
trendreport
Package trendreport is the generic, consumer-agnostic substrate the fak trend-reports share: the durable-JSONL ledger plumbing (parse / latest-prior / append-line), the per-tick direction word, the embeddable control-pane Envelope, and the advisory gate whose only failing finding is the caller's *_unmeasured token.
Package trendreport is the generic, consumer-agnostic substrate the fak trend-reports share: the durable-JSONL ledger plumbing (parse / latest-prior / append-line), the per-tick direction word, the embeddable control-pane Envelope, and the advisory gate whose only failing finding is the caller's *_unmeasured token.
turnbench
changepoint.go — CHANGE-POINT DETECTION on the overhead/benchmark series (issue #1163, T7 of the self-tax assurance epic #1147).
changepoint.go — CHANGE-POINT DETECTION on the overhead/benchmark series (issue #1163, T7 of the self-tax assurance epic #1147).
turntaxmeter
overheadbudget.go — the DECLARED per-rung/per-method overhead envelope for the self-tax plane (epic #1147, ticket T2 / issue #1150).
overheadbudget.go — the DECLARED per-rung/per-method overhead envelope for the self-tax plane (epic #1147, ticket T2 / issue #1150).
uiquality
Package uiquality is the deterministic measuring stick for fak's terminal UI/UX quality — the surface the sibling scorecards never watch.
Package uiquality is the deterministic measuring stick for fak's terminal UI/UX quality — the surface the sibling scorecards never watch.
urllint
Package urllint is a static witness for the network external-boundary claim's twin of pathlint: that no Go source hardcodes a model/tokenizer DOWNLOAD url outside the one audited chokepoint that derives and (via a network-gated test) verifies them.
Package urllint is a static witness for the network external-boundary claim's twin of pathlint: that no Go source hardcodes a model/tokenizer DOWNLOAD url outside the one audited chokepoint that derives and (via a network-gated test) verifies them.
vcachecal
Package vcachecal is the vCache observe & calibrate engine — milestone M1 of the vCache epic (issue #716).
Package vcachecal is the vCache observe & calibrate engine — milestone M1 of the vCache epic (issue #716).
vcachechain
Package vcachechain is the vCache chains & recall engine — milestone M4 of the vCache epic (issue #719).
Package vcachechain is the vCache chains & recall engine — milestone M4 of the vCache epic (issue #719).
vcachegov
Package vcachegov is the vCache Governor — the steady-state policy layer that decides, per cacheable prefix, whether to heartbeat-pin it, let it lazy-rebuild, ride natural traffic, or evict it; how many prefixes to warm inside rate-limit headroom; and how to route chained requests onto a consistent warm shard.
Package vcachegov is the vCache Governor — the steady-state policy layer that decides, per cacheable prefix, whether to heartbeat-pin it, let it lazy-rebuild, ride natural traffic, or evict it; how many prefixes to warm inside rate-limit headroom; and how to route chained requests onto a consistent warm shard.
vcacheobserve
Package vcacheobserve is the vCache per-sub-concept OBSERVABILITY lens over real provider-cache telemetry — the "10x observability into all the sub-concepts" surface behind `fak vcache observe`.
Package vcacheobserve is the vCache per-sub-concept OBSERVABILITY lens over real provider-cache telemetry — the "10x observability into all the sub-concepts" surface behind `fak vcache observe`.
vcachescore
Package vcachescore composes the vCache proof leaves into an agent-facing benchmark scorecard.
Package vcachescore composes the vCache proof leaves into an agent-facing benchmark scorecard.
vcachesnapshot
Package vcachesnapshot persists the gateway's observed per-turn provider-cache window to a small JSONL file at a well-known per-user path, so a SEPARATE `fak vcache score` process can read the REALIZED cache window a finished `fak guard`/`fak serve` session observed — instead of falling back to the synthetic-Zipf planned forecast.
Package vcachesnapshot persists the gateway's observed per-turn provider-cache window to a small JSONL file at a well-known per-user path, so a SEPARATE `fak vcache score` process can read the REALIZED cache window a finished `fak guard`/`fak serve` session observed — instead of falling back to the synthetic-Zipf planned forecast.
vcachestar
Package vcachestar is the vCache M2 star-anchor decision layer.
Package vcachestar is the vCache M2 star-anchor decision layer.
vcachewarm
Package vcachewarm is the vCache M3 dedicated-warming decision layer.
Package vcachewarm is the vCache M3 dedicated-warming decision layer.
vdso
Package vdso is the tool vDSO: a 3-tier local fast path that answers a tool call with NO engine and NO remote round-trip — the agentic analogue of the kernel vDSO that serves gettimeofday() from userspace without a syscall.
Package vdso is the tool vDSO: a 3-tier local fast path that answers a tool call with NO engine and NO remote round-trip — the agentic analogue of the kernel vDSO that serves gettimeofday() from userspace without a syscall.
webbench
Package webbench turns frontier web/browser agent benchmarks into fak-native benchmarks whose results directly measure the value of fak's session value stack on multi-turn web automation tasks.
Package webbench turns frontier web/browser agent benchmarks into fak-native benchmarks whose results directly measure the value of fak's session value stack on multi-turn web automation tasks.
webbench/browser
browser - web automation layer for webbench Uses Playwright CLI for browser control (cross-platform)
browser - web automation layer for webbench Uses Playwright CLI for browser control (cross-platform)
windowgate
Package windowgate is the NO-DESKTOP-POPUP ratchet: the durable gate that keeps always-on fleet automation from flashing console windows on the interactive desktop — the "random terminal popups".
Package windowgate is the NO-DESKTOP-POPUP ratchet: the durable gate that keeps always-on fleet automation from flashing console windows on the interactive desktop — the "random terminal popups".
wirescreen
Package wirescreen — ROADMAP for the "local model on the wire" proposer spine.
Package wirescreen — ROADMAP for the "local model on the wire" proposer spine.
witness
decision.go — the append-only decision recorder: every adjudication / refusal the kernel makes, written as a git note on a DEDICATED side ref so the record is durable, peer-readable, and NEVER touches the trunk's commit objects.
decision.go — the append-only decision recorder: every adjudication / refusal the kernel makes, written as a git note on a DEDICATED side ref so the record is durable, peer-readable, and NEVER touches the trunk's commit objects.
workflow
Package workflow is a built-in workflow orchestration layer (D-005, issue #245): a small, deterministic DAG engine plus the three patterns agent frameworks reach for most — map-reduce, fan-out, and an explicit dependency DAG — expressible as a JSON/YAML document and executed CPU-correctly with no model in the loop.
Package workflow is a built-in workflow orchestration layer (D-005, issue #245): a small, deterministic DAG engine plus the three patterns agent frameworks reach for most — map-reduce, fan-out, and an explicit dependency DAG — expressible as a JSON/YAML document and executed CPU-correctly with no model in the loop.
worktype
Package worktype names the closed set of WORK CLASSES the project-management surfaces sort work into — the single source of truth that lets the milestone roadmap and the `fak program` report draw the same line between an ONGOING OPTIMIZATION PROGRAM and a DISCRETE DELIVERABLE EPIC.
Package worktype names the closed set of WORK CLASSES the project-management surfaces sort work into — the single source of truth that lets the milestone roadmap and the `fak program` report draw the same line between an ONGOING OPTIMIZATION PROGRAM and a DISCRETE DELIVERABLE EPIC.
xenginekv
Package xenginekv ships the cross-engine zero-copy KV co-residence seam (#448): a RegionBackend whose Resolver hands out RefRegion handles into ONE addressable arena where an EXTERNAL engine's KV cache and fak's tool args/results CO-RESIDE.
Package xenginekv ships the cross-engine zero-copy KV co-residence seam (#448): a RegionBackend whose Resolver hands out RefRegion handles into ONE addressable arena where an EXTERNAL engine's KV cache and fak's tool args/results CO-RESIDE.
pkg
abi
Package abi is the IMPORTABLE vendor surface of fak's frozen ABI.
Package abi is the IMPORTABLE vendor surface of fak's frozen ABI.
fakclient
Package fakclient is the importable Go client SDK for the fak gateway's fak-native verdict surface (F-007, issue #205).
Package fakclient is the importable Go client SDK for the fak gateway's fak-native verdict surface (F-007, issue #205).
scorecard
Package scorecard is the IMPORTABLE shared kernel behind fak's scorecard family.
Package scorecard is the IMPORTABLE shared kernel behind fak's scorecard family.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL