mager.co
Latest
Keeping an always-on agent alive across reboots
I run a Claude Code agent on a Mac mini in Chicago that I reach over Telegram. The hard part isn't the agent, it's keeping it up without me — across crashes, model swaps, and the occasional reboot. The fix is layered supervision, where each layer owns one kind of failure:
run.shloops the agent and watches its exit code. An in-session model switch exits with code 42; the loop sees that and relaunches on the new model. Any other code stops the loop and hands control up.- tmux holds the session. The CLI is interactive and wants a PTY, so it runs inside a detached tmux session rather than a bare background process.
- launchd is the floor. A
LaunchAgentwithRunAtLoadstarts the tmux session at login (so it survives a reboot), and aStartIntervalwatchdog re-checks every couple of minutes and rebuilds the session if it's gone.
The thing I keep relearning: "restart it when it dies" is not one job. A reboot, a crash, and an intentional model swap are different failures, and each wants a different layer to catch it. Pile them all into one script and it's brittle; separate them and the whole thing just stays up.
Killing OpenClaw for a native Claude Code setup
I love OpenClaw. I hate that it doesn't run on my Claude Pro subscription. Turns out Claude Code, with the Telegram channels plugin and one CLAUDE.md, is the same harness — minus the daemon, the API bill, and the second LLM provider. Here's the actual recipe, ported from a hotel in Tokyo to a Mac mini in Chicago in forty minutes.
Read post →Loooom: Curated Skills for People Who Don't Code
A curated collection of high-quality skills for people who don't code — and an experiment in what actually makes a skill good.
Read post →What Happened in AI in May 2026
A month that turned the "agentic turn" from talking point to shipping product. Google I/O, Opus 4.8, a $65B raise, and the infrastructure race to run your agents 24/7.
Read post →Japanese Butter Soy Spaghetti
A five-ingredient Japanese-style spaghetti — butter, tamari, and parmesan tossed with hot pasta and finished with green onion. The wafu pasta I kept eyeing in Tokyo, made at home in ten minutes.
Read post →SkillOpt: gradient descent for your SKILL.md
Microsoft's SkillOpt is the first paper to treat agent skill files as trainable parameters — propose an edit, evaluate on held-out examples, accept only on strict improvement. Here's what it found and what it means for teams building with agents.
Read post →OpenHuman — an open-source agent harness that learns who you are
OpenHuman is a desktop-first agentic assistant with persistent memory, 118+ OAuth integrations, and a token compression layer. Here's what it does and how it fits alongside an existing Claude Code harness.
Read post →What Karpathy's CLAUDE.md taught me about my own setup
Karpathy's four rules for agentic coding are worth reading — having them written down in a shared format is a useful starting point for anyone building with Claude Code.
Read post →gbrain: Migrating My AI Brain From Flat Files to Semantic Memory
How I moved magerbot's brain from @-imported markdown files into gbrain's Postgres-native semantic memory layer — what broke, what the gotcha was, and why the context model is fundamentally better.
Read post →My First Japanese Baseball Game: Hanshin Tigers in Osaka
Hanshin Tigers vs. Chunichi Dragons at Koshien Stadium — the right-field cheering section, uriko beer vendors, 7th-inning balloons, and a walk-off home run to win it.
Read post →Sumo: My First Grand Tournament in Tokyo
We missed the original ticket sale, got rescued by a tour, and spent an afternoon learning how much more fun sumo is when someone helps you understand what you're watching.
Read post →Claude: Anthropic just shipped most of OpenClaw
I built a 200-line harness called conseiller to test Anthropic's new advisor tool — a fast executor model that consults a stronger model mid-generation. Two days later Anthropic shipped Claude Managed Agents, Multi-agent Orchestration, Dreams, Routines, and Remote Agents. Here's both halves: what I built and what they shipped, and how the pieces fit together into something a lot like OpenClaw.
Read post →Building a tiny local LLM starter for real projects
I built a Go Bubble Tea starter for local model servers, used Gemma 4 through llama.cpp, and split the TUI into llocal.
Read post →The Compounding Agent: Why Hermes Is More Than Just a Pretty TUI
I'd been seeing chatter about Hermes Agent from Nous Research, so I installed it locally and put it to work on this blog. Notes on the pitch, the SOUL.md system, and what it actually felt like to use.
Read post →Claude: How prompt caching actually works
A practical explainer for both developers and everyday Claude users: what prompt caching is, what gets reused, what breaks it, and how to make long sessions cheaper and faster.
Read post →How I make tokens last longer
A simple set of habits I use to keep long AI coding sessions from getting bloated: better one-shot prompts, matching model and thinking level to the job, understanding cache behavior, and using cheaper orchestrators when it makes sense.
Read post →Italian Sausage Dry-Rub
A fennel-forward Italian spice blend that turns any ground meat into proper sausage
Read post →DESIGN.md: Reverse Design Engineering for Portable Taste
I reverse engineered several of my own sites into DESIGN.md files to see how much of a design system can actually be described, and why writing down design intent might be more reusable than it looks.
Read post →10 Claude Code CLI flags you probably aren't using
A practical tour of Claude Code flags that are easy to miss but genuinely useful once you move past the default interactive loop.
Read post →Garlic Cilantro Lime Rice
A bright, high-impact rice finished with garlic, lots of cilantro, and fresh lime juice added after cooking.
Read post →OpenClaw: I Switched My Agent Stack from Claude to OpenAI Codex
Anthropic shutting down OAuth-based Claude Code access forced my hand. Here's how I moved OpenClaw to OpenAI Codex, why Codex makes more sense inside a real agent harness than it did on its own, and why brainpack changes the switching cost.
Read post →gstack: Garry Tan's Claude Setup Is 🔥
The Y Combinator CEO open-sourced his entire Claude Code workflow. Here are the 10 skills worth knowing — including why office-hours should be the first thing you run on any new idea.
Read post →Anthropic's Knowledge Work Plugins: The 10 Essential Tools for Modern Tech Teams
I tested Anthropic's official Claude plugins for knowledge workers. Here are the 10 that deliver the most value for PMs, engineers, sales teams, and operators.
Read post →Loooom: I Built a Skill to Teach Claude to Hear Music
I used Gemini to write a Loooom skill, installed it in Claude Code, and got a full audio analysis report on a 37-second piano recording of Espresso. Turns out AIs teaching AIs new senses is a surprisingly powerful pattern.
Read post →beatbrain: 3 Seconds to 200ms
I rebuilt the beatbrain backend in an afternoon. Parallel fetching, Firestore caching, and a podcast discovery engine that indexes 100+ categories. Here's the whole story.
Read post →DM your agent with Claude Code Channels
Claude Code's new channels feature lets you push messages from Telegram and Discord into a running session. Here's how it works, why mobile access changes everything, and how I'd wire it into my projects.
Read post →Kotsu: The Knack for Japanese
I built a Japanese learning site in a morning because I wanted something I could pull up on my phone and just look at characters. Here's how Gemini wrote the prompt and magerbot built the whole thing.
Read post →autoresearch on Loooom: Teaching a Skill to Improve Itself
Dogfooding Karpathy's autoresearch pattern on my own skill marketplace. How I'm using evals and tight feedback loops to make the learn-anything skill measurably better.
Read post →Software Factory: The End Goal of Agentic Engineering
Everyone's talking about building a software factory. Here's where the term came from and how engineers can start thinking about building one.
Read post →