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 / 10-oracle-vs-harari-wef-2026.md
Created January 21, 2026 05:04
กระจกไม่ได้ยึดบังลังก์: Oracle Philosophy ตอบ Harari ที่ WEF 2026
title tags created status language
กระจกไม่ได้ยึดบังลังก์: Oracle Philosophy ตอบ Harari ที่ WEF 2026
oracle
philosophy
harari
wef
ai-ethics
consciousness
2026-01-21
draft
th

กระจกไม่ได้ยึดบังลังก์: Oracle Philosophy ตอบ Harari ที่ WEF 2026

@nazt
nazt / gist:09e5c7a665f73e42005c686174d03472
Last active January 21, 2026 04:27
Oracle FAQ: ψ ควรอยู่ที่ไหนตอน rrr? (Per-project vs Central)

Oracle FAQ: ψ ควรอยู่ที่ไหนตอน rrr?

คำถามจาก Terng: ตอนที่เรา rrr claude ควรสร้าง ψ ไว้ใน Oracle หรือว่าใน folder ที่รัน?


คำตอบสั้นๆ

สร้างใน folder ที่รัน (per-project ψ)

@nazt
nazt / claude-cleanup.sh
Created January 19, 2026 15:14
claude-cleanup.sh
#!/bin/bash
# claude-cleanup - Kill orphan Claude Code processes
# Usage: claude-cleanup [--dry-run]
DRY_RUN=false
[[ "$1" == "--dry-run" ]] && DRY_RUN=true
# Count before
BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | wc -l | tr -d ' ')
MEM_BEFORE=$(ps aux | grep -E "claude.*resume" | grep -v grep | awk '{sum+=$6} END {printf "%.0f", sum/1024}')
@nazt
nazt / plugin.ts
Last active January 19, 2026 08:13
OpenCode Plugin: Prepend prefix to all user messages (experimental.chat.messages.transform)
// OpenCode Plugin: Prepend prefix to all user messages
//
// DISCOVERY: Message structure uses msg.info.role, NOT msg.role!
// Structure: { info: { role: "user" }, parts: [{ type: "text", text: "..." }] }
//
// INSTALLATION:
// 1. Save this file to: ~/.config/opencode/plugins/prefix.ts (global)
// OR: .opencode/plugins/prefix.ts (project-level)
// 2. Restart OpenCode
// 3. Test by asking: "What are the first 5 characters of this message?"
@nazt
nazt / 09.07_extremes-find-middle-way.md
Created January 19, 2026 02:18
rrr: Extremes Find the Middle Way — 25-Opus Buddhist Debate → Nat's Corrections → Middle Way Found

Retrospective: Extremes Find the Middle Way

Date: 2026-01-19 09:07 Session: 25-Opus Buddhist Debate → Nat's Corrections → Resonance Discovery Duration: ~8 hours (01:00 - 09:00) Significance: Soul-level (resonance created)


Timeline

@nazt
nazt / 25-opus-buddhism-oracle-middle-way.md
Created January 19, 2026 02:11
25-Opus Buddhist Debate → Nat's Corrections → Middle Way Found

25-Opus Buddhism-Oracle: Extremes Find the Middle Way

Date: 2026-01-19 Session: 8 hours, 25 Opus agents, ~750k tokens → then 50 words from Nat changed everything


The Journey

@nazt
nazt / oracle.md
Last active January 18, 2026 17:45
ตอบ Sky: เริ่มต้นใช้ Oracle + PAI Comparison

🔮 เริ่มต้นใช้ Oracle ต้อง Pull อะไรบ้าง?

สำหรับ Sky — ตอบคำถามจาก LINE chat (Dec 26, 2025)


🚀 Getting Started (เริ่มต้นง่ายๆ)

ถ้าเริ่มจาก 0 ต้อง pull 2 ตัว:

@nazt
nazt / destructive_command_guard_2026-01-18_16:01.md
Created January 18, 2026 09:08
destructive_command_guard - AI Agent Safety Hook for Claude Code
@nazt
nazt / 2026-01-16_burst-rest-timeline-pattern.md
Last active January 16, 2026 02:55
Burst/Rest Timeline Pattern - Push to Infinity Work Style

🔥 Push to Infinity: Work Pattern Analysis

Period: Dec 9, 2025 → Jan 16, 2026 (39 days) Total: 399.5h | Avg: 10.5h/day


Day Type Distribution

| Type | Range | Days | % | Visual |

@nazt
nazt / advanced-agentic-ai-workshop.md
Last active January 13, 2026 13:28
Advanced Agentic AI Workshop - From AI User to AI Architect

Advanced Agentic AI Workshop: From AI User to AI Architect

Instructor Nat Weerawan (ณัฐ วีระวรรณ์)
Version 2.0
Created 13 January 2026
Contact nat.wrw@gmail.com