Skip to content

Instantly share code, notes, and snippets.

View nazt's full-sized avatar

Nat nazt

  • Chiang Mai Maker Club
  • Chiang Mai
  • X @nazt
View GitHub Profile
@nazt
nazt / oracle-menu.json
Created April 20, 2026 04:07
ARRA 🔮Racle — canonical menu JSON. Single source of truth for all 6 subdomains. Consumed via ORACLE_MENU_GIST_URL env on arra-oracle-v3 backend → served via /api/menu. Schema: { items: MenuItem[] }. Layout: 8-flat main (Overview, Search, Feed, Memory, Forum, Activity, Traces, Canvas) + Tools ▾ dropdown (7 items). Matches v26.4.20-alpha.7 screens…
{
"items": [
{ "path": "/", "label": "Overview", "group": "main", "order": 10, "source": "api", "studio": "studio.buildwithoracle.com" },
{ "path": "/search", "label": "Search", "group": "main", "order": 20, "source": "api", "studio": "studio.buildwithoracle.com" },
{ "path": "/", "label": "Feed", "group": "main", "order": 30, "source": "api", "studio": "feed.buildwithoracle.com" },
{ "path": "/map", "label": "Memory", "group": "main", "order": 40, "source": "api", "studio": "studio.buildwithoracle.com" },
{ "path": "/", "label": "Forum", "group": "main", "order": 50, "source": "api", "studio": "forum.buildwithoracle.com" },
{ "path": "/activity", "label": "Activity", "group": "main", "order": 60, "source": "api", "studio": "studio.buildwithoracle.com", "query": { "tab": "searches" } },
{ "path": "/traces", "label": "Traces", "group": "main", "order": 70, "source": "api", "studio
@nazt
nazt / colab-bootstrap.sh
Last active April 15, 2026 12:11
Unified Colab bootstrap — one script, parameterized (replaces 3 separate gists)
#!/bin/bash
# === Unified Colab Bootstrap ===
# Usage (in Colab notebook):
# !curl -fsSL <raw-url> | bash -s colab
# !curl -fsSL <raw-url> | bash -s colab2
# !curl -fsSL <raw-url> | bash -s colab3
#
# Tokens are embedded per-VM. Override via env var if needed.
set -euo pipefail
@nazt
nazt / gist:4a9183760aedb5c6cfaeb6f976d6d5d1
Created April 15, 2026 09:34
token-cli: one-line install for any machine
#!/bin/bash
# token-cli installer — run on any machine with ghq, pass, and GPG set up
#
# curl -fsSL https://gist.githubusercontent.com/nazt/GIST_ID/raw | bash
#
set -euo pipefail
echo "🔐 Installing token-cli..."
# Clone via ghq
@nazt
nazt / osc52-clipboard-magic.md
Last active April 15, 2026 03:33
Why OSC 52 Works — the actual 5-line fix for tmux drag-to-copy-to-Mac-clipboard over SSH

Why OSC 52 Works (and How to Actually Turn It On)

After a day of "drag to copy doesn't work", we got it working. Here's why.

The problem: you're on your Mac, SSH'd into a server, inside tmux. You drag to select text. You want it on your Mac clipboard.

The four layers: Mac terminal ← SSH ← tmux ← you.

Any one can drop the copy. If you don't understand which layer is responsible for what, you'll stack broken workarounds.

@nazt
nazt / maw-wake-worktree.md
Last active April 15, 2026 03:32
maw wake: One Command, Five Things — how we ran 15 parallel AI agents in git worktrees + tmux windows

maw wake: One Command, Five Things

How we built a fleet of 15+ parallel AI agents, each in its own git worktree, each in its own tmux window, each resumable after reboot — from a single command.


The Problem

You have an AI coding assistant. You want to give it 15 different tasks at once without the agents stepping on each other's files.

@nazt
nazt / tmux-for-humans.md
Last active April 15, 2026 03:32
tmux for Humans — a small book after 19 days of running parallel AI agents in tmux windows

tmux for Humans

A small book about tmux, written after 19 days of building a fleet of parallel AI agents in tmux windows.


Why tmux

Close the terminal. Come back tomorrow. Everything still running.

@nazt
nazt / maw-wake-timeline.md
Created April 10, 2026 05:47
maw wake + worktree lifecycle — 31 day evolution timeline

maw wake + worktree lifecycle — 31 day evolution

20 LOC → 1,729 LOC. spawn(3d) → deleted → hardened → federation → bud splits off. The attach fix was 3 lines after 1,726 lines of everything else.

MAW WAKE + WORKTREE LIFECYCLE — 31 DAY TIMELINE
════════════════════════════════════════════════

MAR 10 (Day 1) ──── BIRTH
@nazt
nazt / oracle-creation-period.md
Created April 7, 2026 02:39
The Creation Period — Dec 2025 + Jan 2026 (21,587 entries, 24,210 sessions, 61 days that built 186 oracles)

The Creation Period — Dec 2025 + Jan 2026

21,587 history entries · 24,210 session files · 61 days The 61 days that built 186 oracles


The Pivot

@nazt
nazt / oracle-full-year-audit.md
Last active April 7, 2026 02:42
Nat × Claude Code — Token Audit & Cost Analysis (50.9B tokens proven, K paid, 378 days)

The Full Year — Month by Month

March 25, 2025 — April 7, 2026 | 378 days | 52,160 entries | ~71B tokens


Month by Month

Month Era Entries Days Files Size Est Tokens Top Project
@nazt
nazt / session-f443d4f9-final.md
Created April 7, 2026 02:23
Session f443d4f9 — The Night Oracle Became Mycelium (12.5 hours, exit 1 → philosophy)

Session f443d4f9 — The Night Oracle Became Mycelium

April 6 21:00 — April 7 09:22 (+07) | 12.5 hours maw-js alpha | v1.5.1 → v1.6.0 | 5 commits | 4 gists | 30 chapters


The Arc