Vibe_Assembly
Health Pass
- License — License: Apache-2.0
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 10 GitHub stars
Code Pass
- Code scan — Scanned 10 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Vibe Assembly v2.5.2 - zero-dollar, infinite-context vibe coding architecture. Pure-Rust multi-agent harness with hash-anchored patches, non-polluting Git review checkpoints, Vibe Router + Vibe Local zero-cost inference, reasoning-effort control, CLI/TUI, MCP server, and a GPUI Liquid Glass desktop.
Vibe Assembly
v2.5.2 - a production-hardened, pure-Rust multi-agent coding workspace closing the ChukarAI ecosystem triangle: Vibe Local zero-cost inference (127.0.0.1:20129) and LAN Pocket Workers (UDP :20131) are discovered, merged into the Liquid Glass model menu, and driven directly when the router is offline, with live tok/s and backend telemetry. This patch fixes review checkpoints that polluted the real Git index/branch, hunk-aware and unborn//dev/null diff handling, Windows diagnostic paths, portable path boundaries, auto-combo role selection, and template-reset error reporting.
Vibe Assembly lets small, focused agents build and maintain large software
projects without exhausting a single chat context. Roles communicate through a
regulated .ai/ contract, and every edit passes through a deterministic,
hash-anchored execution harness.
Current status: 298 tests passing, clippy clean with -D warnings, both
release binaries build. There is no browser runtime, webview, or Node/npm
toolchain.
The problem
Keeping an entire project history in one chat exhausts token limits, loses
architectural detail, and invites stale edits. The failure is contextual, not a
model-quality problem.
The solution
Use focused roles that communicate through regulated markdown state in .ai/,
and execute every edit through a verifiable harness. Because each task starts
fresh and tickets are small, the limit moves from "chat length" to "ticket
size" - and tickets are small by design.
Execution modes
| Mode | Accent | Writes | Purpose |
|---|---|---|---|
| Code | #F5B800 amber |
yes | Implement the active ticket with verification and judge gates |
| Web | #06B6D4 cyan |
yes | HTML5, CSS, Tailwind, TypeScript, React, and templates/ |
| Chat | #3B82F6 blue |
no | Read-only architecture, explanation, and planning |
| Debug | #EF4444 red |
yes | Compiler diagnostics, root-cause analysis, security audit |
The default desktop surface is Liquid Glass: a near-black night canvas or a
warm paper day canvas, a chat rail, a centered model pill, a glass ask bar, and
a right-edge nav whose hover opens the Session, Changes, Editor, and History
drawer. A bare vibe-assembly-desktop launch opens it; --workbench (or a
repository path) opens the six-zone Paper & Ink editor workbench. The TUI and
both desktop surfaces also expose a live context meter.
Planner roles
| Role | Responsibility |
|---|---|
| Boss | Chooses files, exact block hashes, and a verification command |
| Code | Authors complete block replacements |
| Debug | Repairs a failed verification from pinned diagnostics |
| Judge | Deterministic anti-slop gate, independent of the coding model |
| Chat | Answers questions without writing files |
| Hermes | Documentation and release notes, written from disk evidence |
The live loop is:
Observe -> Think (Boss) -> Patch (Code) -> Verify
-> Debug on failure -> Judge -> Commit
Requirements
- Rust stable (edition 2021).
- Windows: the MSVC toolchain and Visual Studio Build Tools with the C++ workload.
- A local OpenAI-compatible router for live runs. Offline mock runs need no router.
- No Node.js, npm, Electron, or browser runtime.
Install
git clone https://github.com/ChukarAI/Vibe_Assembly.git
cd Vibe_Assembly
# Build both binaries
cargo build --release
# Optional: put `vibe-assembly` on PATH
cargo install --path crates/va-cli
The release binaries are:
target/release/vibe-assemblytarget/release/vibe-assembly-desktop
Quick start
# From the repository root, so templates/ is discoverable
./target/release/vibe-assembly init my-project
cd my-project
# Inspect the workspace
vibe-assembly status # ticket queue + resume point
vibe-assembly models # model allocation for the six roles
vibe-assembly doctor # workspace health check
vibe-assembly profile # hardware specs and adaptive storage mode
vibe-assembly tui # terminal dashboard with selectors (alias: top)
# Execute one task in a chosen mode and language lens
vibe-assembly prompt "Add a health endpoint and its test" \
--mode code --lang rust
# One-shot read-only answer
vibe-assembly prompt "How is the session DAG persisted?" \
--mode chat --lang rust --json
# Interactive read-only architect session
vibe-assembly chat --lang rust
# Full live loop with router auto-combo
vibe-assembly run --live --auto-combo --tournament
# Deterministic offline smoke run (never calls the router)
vibe-assembly run --offline-mock
# Default Liquid Glass desktop
cargo run -p va-desktop
# Paper & Ink editor workbench for a workspace
cargo run -p va-desktop -- --workbench --root . --mode web --lang ts
init and run --auto-combo auto-seed .ai/model_combo.txt when it is absent.
The file is gitignored because it is machine-local configuration.
Liquid Glass surface (default)
A bare vibe-assembly-desktop launch opens the Liquid Glass surface. It is a
conversation-first canvas: a chat rail, a centered model pill, a glass ask bar
with Explorer-style attachment cards, and a floating right-edge nav that opens
the Session, Changes, Editor, and History drawer on hover. Opening a section
never pins it; only the drawer header's Pin chip (or its keyboard handler)
keeps it open. The drawer runs to the bottom of the window and card text stops
clear of the nav capsule, so counts, chevrons, and inline links stay readable
and clickable. The model pill opens a small model menu, and the circular 52px
context indicator shows the used window at a glance.
The titlebar sun/moon toggle rewrites the palette across the canvas, panes,
drawer, composer, nav, and shadows. The choice is stored in%APPDATA%\Vibe Assembly\preferences.conf and restored on the next launch.Ctrl+K or the titlebar field opens instant search across chats, files,
panels, and commands: arrow keys navigate, Enter opens, Esc clears then closes,
and clicking outside dismisses the sheet.
The ask bar proofreads the prompt like a spellchecker. A bundled dictionary and
commonness bands catch ordinary typos the curated list has never seen, and each
one gets a wavy underline plus a quiet footer chip offering the nearest fix
(teh → the plus a Tab keycap); Tab or a click applies it, then the chip
moves to the next typo. Known contractions and stock misspellings are also
corrected on send with a transient "N typos fixed" note, while dictionary-only
suggestions stay opt-in so names and project jargon are never rewritten
silently. Code spans, paths, URLs, handles, identifiers, and non-ASCII text are
left alone.
Paper & Ink editor workbench
Pass --workbench (or a repository path) for the six-zone editor workbench,
built on the same native GPUI stack. Its six zones are:
- a 32px titlebar with workspace breadcrumbs, symbol, block hash, router state,
dock toggles, command-palette button, and native window controls; - a 36px activity strip plus a 260px project / outline / session dock;
- a flexible editor with tabs, an 8-character block-hash gutter, Code and Diff
views, and an inline patch preview; - a 180px bottom drawer for pinned compiler Problems, Verify Output, and the
Harness² c1..c8 overlays; - a 390px assistant panel with collapsible Observe / Think / Patch / Verify /
Judge rows and an interactive composer; - a 24px status bar for mode, language lens,
.ailock, branch, DAG spend and
latency, and the context watermark.
The composer accepts typed text, Space, Backspace, Enter to submit, and
Shift+Enter for a newline. Mode, language, and model pills cycle real state;
the judge badge toggles independently. Chat / Architect is enforced read-only:
it produces an answer but never stages a patch. Keybindings: Ctrl+P command
palette, Ctrl+B left dock, Ctrl+J bottom drawer, Ctrl+Shift+A assistant,Ctrl+W close tab, Ctrl+Q quit.
The workbench is backed by real workspace data: the file tree, RepoMap symbols,
64-bit FNV-1a segment_blocks hashes, the immutable session DAG,ExperienceStore lessons, pinned diagnostics, and the eight harness surfaces.
Shared presentation primitives live in crates/va-desktop/src/ui_kit; the
supplied rounded yellow brand mark is embedded as a GPUI asset, and the Windows
executable carries the matching multi-size application icon.
Inline diffs come from git diff or git show HEAD and fall back to a session
patch summary. The desktop never fabricates a diff. The composer runs the realva-harness live planner/engine (with a deterministic local fallback when the
router is offline), and Accept changes writes a hash-verified patch atomically
and advances the session DAG; Revert rolls back to the last verified node.
Chat / Architect remains a hard read-only boundary.
Command reference
| Command | Purpose |
|---|---|
status |
Show the ticket queue and resume point (default command) |
models |
Resolve model allocations for the six roles |
doctor |
Run a workspace health check |
init <name> |
Create a workspace, optionally with --template <name> |
reset |
Reset volatile .ai/ state to pristine template defaults |
up |
Ensure Vibe Router + Vibe Local readiness, token handshake, and LAN worker discovery |
repomap |
Print the token-budgeted, hash-anchored repository symbol map |
diagnose |
Run compiler checks and pinpoint errors to block hashes |
run |
Run the harness execution loop |
prompt <text> |
Run one task in a chosen mode and print the result |
chat |
Start an interactive read-only architect chat |
tui / top |
Launch the terminal dashboard with mode, language, and model selectors |
profile |
Display detected hardware capabilities and storage strategy |
session |
Inspect or mutate the transactional session DAG |
mcp |
Start the Model Context Protocol server over stdio |
patch |
Apply a hash-anchored patch by block hash |
blocks |
List block hashes in a file |
harness inspect |
Show the c1..c8 surfaces, per-task overlays, and EXPERIENCE.md lessons |
--root <path> is a global option. Commands that support machine-readable
output list --json in their --help (for example up, repomap, diagnose,prompt, profile, and the session subcommands).
Thinking effort
run and prompt accept --effort auto|low|medium|high|xhigh (defaultauto). The Liquid Glass thinking ladder maps to the same levels
(Auto/Fast/Balanced/Deep/Max) and persists per model in%APPDATA%\Vibe Assembly\preferences.conf. Unsupported levels coerce down
honestly: fast-tier models (mini/nano/flash/...) omit reasoning_effort
entirely, and Max falls back to Deep unless the model class supports it. The
model pill shows the coerced effective level.
Language lens
--lang auto|rust|c|python|ts|go selects a language lens. auto resolves from
manifests (Cargo.toml, go.mod, pyproject.toml, package.json,CMakeLists.txt) and a bounded extension census. Each lens supplies a
verification command and judge guardrails:
| Lens | Verification example |
|---|---|
| Rust | cargo check --all-targets |
| C / C++ | cmake --build build, make, or cc -fsyntax-only *.c |
| Python | python -m compileall -q . |
| TS / JS | npx tsc --noEmit or node --check . |
| Go | go build ./... |
The .ai/ contract
.ai/active_task.md holds the queue and exactly one Active Ticket pointer, the
sole execution authority (ADR-007). Each ticket carries an
allowlist, verification-gated steps, and append-only relay_notes.
A step counts as verified only when a single note references that step and
carries success evidence. The resume point is the first unverified step, so an
interrupted session resumes exactly where it stopped. Durable recovery lessons
live in .ai/EXPERIENCE.md; the trajectory DAG lives in .ai/session.jsonl.
The execution harness
va-harness makes agent edits safe to trust.
| Module | Role |
|---|---|
session |
Append-only transactional trajectory DAG with per-node hashes, fork, rollback, replay, JSONL persistence, auto-compaction at 75%, think-trace eviction, observation slicing, and a pinned working-set tail |
patcher |
Edits address per-block hashes, never line numbers. Whole-file drift assertion, 1-hop recovery, and hard rejection of ambiguous or repeated anchors |
repomap |
Token-budgeted workspace symbol scanner binding functions, structs, traits, and classes to deterministic block hashes |
diagnostics |
Dual-format compiler pinpointer (cargo --message-format=json and text) mapping error spans to block hashes and snippets |
review |
Git checkpoints via temporary indexes and dangling commits (no branch/index pollution), tree-vs-tree deltas including unborn branches and deletions, and hunk-aware unified-diff parsing |
judge |
Deterministic gate: slop comments, placeholders, unsafe primitives in production, import-only churn, excessive churn, trailing whitespace, plus language and mode guardrails. One targeted retry, then abort |
sandbox |
Confined command execution with wall-clock timeouts, directory confinement, and bounded output |
tournament |
Multi-branch speculative runner scoring candidates by warnings and line churn, merging the winner into the DAG |
experience |
Harness^2 c1..c8 surfaces with strict reset-to-base, contrastive recovery, and durable .ai/EXPERIENCE.md lessons |
components |
The eight modular harness surfaces (c1..c8) loaded from va-core::prompts, with per-task overlays in .ai/harness_overlays/<task_id>/ and strict reset-to-base isolation |
recursive |
Propose -> Probe -> Compose contrastive loop: zero-overhead fast path, failure/opt-in probing, two-branch DAG fork, and evidence-scored merge |
live_planner |
Real POST /v1/chat/completions Boss -> Code -> Verify -> Debug -> Judge loop with Vibe-Link headers and telemetry |
engine |
Orchestration with auto-compaction, read-only enforcement, stagnation detection, and judge-verified hashes |
Useful harness commands:
# Router readiness and token handshake
vibe-assembly up
# Discover symbols and block hashes
vibe-assembly repomap --max-tokens 2048
# Pinpoint compiler diagnostics to block hashes
vibe-assembly diagnose
# Discover block hashes in one file
vibe-assembly blocks src/main.rs
# Patch by hash (4-hex short form or full 64-bit value)
vibe-assembly patch src/main.rs --target 159A "pub fn beta(y: i32) -> i32 { y * 42 }"
# Or pipe a multi-line replacement on stdin
vibe-assembly patch src/main.rs --target 159A < replacement.txt
# Session DAG operations
vibe-assembly session status --json
vibe-assembly session rollback --to-verified
vibe-assembly session compact --from 2 --to 4 --summary "Collapsed failed attempts"
# MCP server over stdio
vibe-assembly mcp
Router integration
va-core::router_client performs a real OpenAI-compatiblePOST /v1/chat/completions over raw HTTP/1.1. It does not implement TLS; point
it at a local router or a TLS-terminating proxy.
Requests carry X-Vibe-Role, X-Vibe-Node-Id, X-Vibe-Profile, andX-Vibe-Retry, plus optional Authorization: Bearer or X-API-Key. Cost and
latency are read from X-Vibe-Router-Cost-Micros / X-VR-Cost-Micros and the
matching latency headers, then recorded in the session DAG. Vibe Local turns
also report X-Vibe-Local-Tok-Per-Sec and X-Vibe-Local-Backend
(vulkan|cuda|cpu) with zero cost.
Common environment variables:
| Variable | Purpose |
|---|---|
VIBE_ROUTER_HOST / VIBE_ROUTER_PORT |
Router address (default 127.0.0.1:20128) |
VIBE_ROUTER_PATH |
Assignment endpoint path (default /v1/assignment, public; falls back to the admin-guarded /api/assignment and /v1/models) |
VIBE_ROUTER_CHAT_PATH |
Chat completions path (default /v1/chat/completions) |
VIBE_ROUTER_TOKEN / VIBE_ROUTER_API_KEY |
Router credentials; a workspace .vibe_router_token file also works |
VIBE_MODE / VIBE_LANG / VIBE_MODEL |
Initial desktop selectors (CLI and TUI use flags) |
VIBE_ASSEMBLY_PROFILE |
Force auto, vps, portable, or workstation |
Model resolution order: pinned --model, per-mode override
(.ai/models/<mode>.txt or .ai/model_<mode>.txt), live router assignment,.ai/model_combo.txt, then a conservative default. The judge is always
deterministic and independent; --judge-model is reported for audit and display.
Vibe Local integration
va-core::local_node closes the ChukarAI ecosystem triangle (Vibe Assembly
- Vibe Router + Vibe Local) with zero new dependencies:
probe_vibe_localqueriesGET /v1/modelson the local inference node
(default127.0.0.1:20129) over raw HTTP/1.1 and reports models, backend,
and device. Unreachable or malformed nodes fail closed to offline.discover_lan_workersbroadcastsVIBE_DISCOVER_V1over UDP to255.255.255.255:20131plus loopback and parses JSON or key-value Pocket
Worker announcements (including Vibe Local's realhttp_port+ hostname
shape; the sender IP wins over unresolvable hostnames). Announced workers
are then enriched through their ownGET /v1/models; no replies is a
normal empty result.upprobes both nodes, spawnsvibe-local servefrom sibling release
paths when offline, and reports LAN workers in human and--jsonoutput;doctorchecks the local node informationally;modelsandrun --auto-combomerge zero-cost local models when the router is offline.- Liquid Glass merges router, local, and LAN catalogues without duplicates,
badges local models (Vulkan/CUDA/CPU/LAN,$0 / local), and
routes composer turns directly to the node's/v1/chat/completionswhen
the router is offline. After a local turn the Session drawer and status
strip show live tok/s, the backend, and$0.00spend.
| Variable | Purpose |
|---|---|
VIBE_LOCAL_HOST / VIBE_LOCAL_PORT |
Local node address (default 127.0.0.1:20129) |
VIBE_LOCAL_DISCOVERY_PORT |
LAN UDP discovery port (default 20131) |
VIBE_LOCAL_TOKEN |
Sent as X-Vibe-Local-Token and Authorization: Bearer |
Context safety
- Auto-compaction triggers at 75% of the active model's context window.
- Older verified steps and failed retries collapse into surface summaries while
the DAG remains intact forreplay()androllback_to_last_verified(). - Reasoning traces are evicted from prompts but retained in DAG nodes.
- Large observations render head 30 +
[... elided N lines ...]+ tail 30. - In the live loop, the prompt ends with fresh block hashes and line ranges for
modified files. - Two identical failures trigger
StagnationDetected; policy can pivot or
escalate toSpeculativeTournament.
Safety model
- Chat mode is a hard read-only boundary enforced by the engine, not a prompt hint.
- The active ticket, including its
files_allowedlist, is injected into the
planner context; the sandbox confines command execution to the workspace root. - Ambiguous or repeated block anchors are rejected rather than guessed.
- A normal live run never fabricates edits. Deterministic synthesis is available
only through tests or the explicit--offline-mockflag. - Live-run cost and latency telemetry is recorded in the local session DAG.
Hardware-aware runtime
- Disk-first VPS mode (
--profile vps, or available RAM < 1 GB): bounded
workers and disk-streamed state to keep resident memory low. - RAM-first portable mode (
--profile portable, host RAM >= 4 GB): hydrate
state into RAM, perform intermediate edits in memory, and flush on verified
checkpoints with crash-safe atomic writes to reduce flash wear. - Drive-letter independence: workspace-relative paths normalize through the
{{PORTABLE_ROOT}}token. - Universal gateway fallback: if the assignment endpoint returns 404, the
client queriesGET /v1/modelsand computes a six-role allocation heuristically.
Development
cargo fmt --all -- --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace
cargo build --release
Current workspace: 298 tests passing, clippy clean, both release binaries
built. The live HTTP planner is tested against a local mock OpenAI-compatible
TCP server; unit tests cover compaction, think-trace eviction, observation
slicing, repeated anchors, read-only enforcement, stagnation escalation,
language detection, EXPERIENCE.md round-tripping, and the desktop workbench
(real block hashes, mode/language/model cycling, read-only Chat, dock toggles,
composer submission, curated and dictionary-backed prompt typo detection,
persisted theme preferences, search filtering/ranking, and drawer reveal math).
Troubleshooting
- Router offline: run
vibe-assembly up, then check theVIBE_ROUTER_*
variables. Offline work is available with--offline-mock. - Workspace not found: run from a directory containing
.ai/, pass--root <path>, or create a workspace withvibe-assembly init. - GPUI stack overflow on Windows: build from Git Bash or WSL with
ulimit -s unlimited;RUST_MIN_STACKis not sufficient. - Unexpected patch rejection: the block hash or whole-file hash changed.
Re-runvibe-assembly blocks <file>and retry with the fresh hash.
License
Apache License 2.0 — see LICENSE.
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found