abi

ABI Framework — New Engineer Onboarding

Welcome to ABI, a Zig 0.17.x/dev framework for AI services, semantic vector storage, GPU acceleration, and distributed runtime.

For comprehensive build commands, architecture details, and conventions, see CLAUDE.md (the canonical reference). This guide covers first-day setup and orientation only.


1. Environment Setup

Prerequisites

First-Time Setup

git clone <repo-url> && cd abi
tools/zigly --bootstrap    # Install pinned zig, install or reuse zls, symlink to ~/.local/bin, verify

Ensure ~/.local/bin is on your PATH:

export PATH="$HOME/.local/bin:$PATH"  # Add to your shell profile

Verify Your Setup

# macOS 26.4+ (Darwin 25.x) — you MUST use ./build.sh, not zig build directly
./build.sh test -Dfeat-gpu=false --summary all

# Linux or older macOS
zig build test --summary all

Why build.sh? On macOS 26.4+, Zig’s internal LLD linker can’t resolve system symbols from Apple’s .tbd files. build.sh relinks the build runner with Apple’s /usr/bin/ld. This is not optional — zig build will fail.

Editor Setup

tools/zigly --link installs ZLS (Zig Language Server) alongside Zig. Configure your editor to use ~/.local/bin/zls. VS Code + the Zig extension works well.


2. Orientation

What You’re Working With

Everything is exposed through src/root.zig as @import("abi"). The public surface is abi.<domain> (e.g., abi.gpu, abi.ai, abi.database), while grouped wiring lives under src/public/ so internals can refactor without breaking consumers. See CLAUDE.md § Architecture for the full module map.

The One Pattern You Must Know

Every feature uses mod/stub comptime gating. When you change a feature’s public API, update both mod.zig and stub.zig, then run zig build check-parity. See CLAUDE.md § The Mod/Stub Pattern for details.

Try the CLI

./build.sh cli                          # Build CLI binary
zig-out/bin/abi                         # Smart status
zig-out/bin/abi features                # List all 60 features with [+]/[-] status
zig-out/bin/abi doctor                  # Build config report

3. Key References

Resource Path Why Read It
CLAUDE.md repo root Canonical build commands, architecture, conventions, gotchas
AGENTS.md repo root AI agent guidance, code style, safety rules
docs/spec/ABBEY-SPEC.md docs/spec/ Full architecture vision (Abbey-Aviva-Abi pipeline)
tasks/lessons.md tasks/ Pitfalls others have already hit — saves you time
src/features/core/feature_catalog.zig src/features/core/ Source of truth for all 60 features

4. Your First Day Checklist