Rescue your fleet. Honor the break.
AI-assisted rescue boot media for broken systems. A Ventoy multi-boot USB on Ubuntu 24.04 (with persistence) carrying rescue ISOs, an offline LLM stack (Ollama + llama.cpp), seven pre-installed agentic CLIs, and host-specific recovery runbooks ready to hand to an AI agent — built from a fresh clone with one command.
./scripts/kintsugi-build # fresh clone + blank USB → a flashable, personalized .img.zstWhat's on it · Quick Start · Build Your Own · Documentation · Issues
A "final level of recovery" for home-lab and small-fleet operators: one USB that works whether the internet is up or down, whether you know what's broken or not, and whether the person holding it built the fleet or not. It boots almost any UEFI or BIOS machine into a full Ubuntu desktop with rescue tooling and a local AI assistant that can read host-specific runbooks and help drive the repair.
This repo is also the toolkit that produces the drive: a wizard remasters a stock Ubuntu ISO into a personalized, flashable image. Fork it to roll your own Kintsugi-like USB with your own model set, agentic tools, runbooks, and (from v1.1) signing key.
- Ventoy multi-boot loader — UEFI + BIOS; pick your ISO at boot, with persistence so state survives reboots.
- Ubuntu 24.04 Desktop (Xubuntu base) — full desktop OS for hands-on rescue.
- Rescue ISOs — SystemRescue, Clonezilla, GParted Live, Memtest86+ (catalog in progress, #35).
- Offline AI stack — Ollama (with
llama.cppavailable) as a local runtime, pre-installed and wired to a persistence-backed model store (/data/ollama/models) so models pulled in the field survive reboots. No model weights ship in the read-only image by default (ADR-005); the operator loads their own viakintsugi-models/ollama pull, or pre-loads them into the drive's persistence at build time. Start frommanifest/models-recommended.yaml. - Agentic CLIs (pre-installed) — Claude Code, Codex, OpenCode, Copilot, OpenClaw, omnius, and Aider, baked in and offline-available. You sign in with your own credentials post-flash — no auth is ever baked. Add or manage more via
kintsugi-frameworks; the heavier Hermes agent installs on demand viakintsugi-install-hermes. - Recovery runbooks — host-specific AGENT-CONTEXT and RUNBOOK packs an AI can consume directly (operator-provided from the fleet repos; not in this public repo).
- Fleet scripts — inventory, drive health, build/imaging pipeline, and the
kintsugi-buildwizard.
kintsugi-build remasters the stock Ubuntu 24.04 ISO (ADR-008) — starting from a known-good UEFI+BIOS-bootable image and injecting the rescue tools, agentic CLIs, and offline AI stack into the squashfs — then assembles a Ventoy disk image with persistence and packages a distributable .img.zst. The whole pipeline runs unattended from one command.
You received a Kintsugi USB image. Here's how to use it.
Every release ships a companion .sha256. Check it — if it does not match, do not flash (re-download or report via SECURITY.md):
./scripts/verify-image.sh kintsugi-v2026.5.0.img.zst
# manual equivalent:
( cd /path/to/download && sha256sum -c kintsugi-v2026.5.0.img.zst.sha256 )⚠ This destroys everything on the target device. Identify it with
lsblkand pick carefully.
# Guided flasher (recommended — guards against system disks, verifies after)
sudo ./scripts/flash-image.sh kintsugi-v2026.5.0.img.zst /dev/sdX
# Or directly:
zstdcat kintsugi-v2026.5.0.img.zst | sudo dd of=/dev/sdX bs=4M status=progress conv=fsync && sync- Plug in the USB, enter the boot menu, select it, and pick the Kintsugi entry in the Ventoy menu.
- The agentic CLIs are already installed — sign in with your own credentials when you have a network.
- Local inference (offline):
start-ai.sh # start Ollama against the persistence model store ollama list # models pre-loaded on the drive (if any) kintsugi-models pull qwen3.5:4b # or pull more on a trusted network
See docs/update-strategy.md for keeping the USB current over time.
Wizard-first: one command walks you from fresh clone + blank USB to a flashable personalized image.
./scripts/kintsugi-build # interactive TUI (defaults give a working build)
./scripts/kintsugi-build --help # all modes (--from-profile, --dry-run, …)Full external-builder walkthrough: docs/toolkit-guide.md. Per-screen reference: docs/wizard-guide.md.
| Doc | Purpose |
|---|---|
| docs/about-the-name.md | Name origin, meaning, why it fits |
| docs/requirements.md | Project requirements |
| docs/architecture.md | Design: Ventoy + persistence + AI layer |
| docs/build-guide.md | Manual / reference build (Ventoy mechanics, stock-ISO acquisition) |
| docs/wizard-guide.md | kintsugi-build reference: prompts, flags, profile schema, troubleshooting |
| docs/toolkit-guide.md | External-builder walkthrough: fork → choose models/tools → build → release |
| docs/physical-test-guide.md | Testing on physical hardware |
| docs/test-strategy.md | Test strategy |
| docs/update-strategy.md | Post-flash refresh model — git pull + ollama pull; reflash only for base-image changes |
| docs/sanitization-checklist.md | Pre-imaging secret scan + hygiene rules |
SDLC artifacts (.aiwg/): intake, requirements, architecture (SAD + ADRs 001–008), risks, test strategy, iteration plan, and the roadmap. Start at .aiwg/reports/construction-ready-brief.md.
See docs/about-the-name.md for the etymology and philosophy behind Kintsugi.
v2026.5.0 — pre-release. The wizard-first toolkit auto-chains end-to-end (#36): ./scripts/kintsugi-build takes a fresh clone to a flashable .img.zst + sha256 via the ADR-008 remaster pipeline, with the offline AI stack and agentic CLIs baked in. The tag is gated on the hardware-acceptance round-trip (#37) — build → flash → boot → persistence verified on real hardware. See the roadmap for what's next.
Versioning follows CalVer (YYYY.M.PATCH). Distribution is sha256-verified; cryptographic signing (minisign) lands in v1.1 (#19).
Reserved — populated when v1.1 signing lands (#19). v2026.5.0 ships sha256-only verification per ADR-006 §D5. Until a key is published here, treat any file claiming to be
kintsugi.pubas untrusted.
From v1.1, maintainer-produced artifacts carry a minisign (Ed25519) signature; pin the key from this block (verifying against a key fetched out-of-band is what makes a signature meaningful):
untrusted comment: kintsugi-usb release signing key (Ed25519)
<PUBKEY-PENDING-v1.1>
Rotation history and the secret-key custody model are documented in SECURITY.md.
Tracked in Gitea: https://git.integrolabs.net/roctinam/kintsugi-usb/issues
MIT — see LICENSE. The repository (scripts, docs, YAML manifests) is MIT-licensed. Bundled third-party binaries retain their own licenses — see manifest/THIRD-PARTY-LICENSES.md. Model weights and agentic-framework binaries are user-fetched at build- or boot-time and carry their own licenses; the user is responsible for reviewing those before use.