Martin Andrt CZ

Insights

Practical write-ups from building and running a persistent AI workflow with Claude Code: agent memory, autonomy, and the failure modes that only show up in daily use.

Three session windows in a row pass a gold card along, the first two write notes onto a shared shelf and the third reads from it
Memory

A memory for Claude Code that we build together

Every Claude Code session starts with an empty head. I published a Markdown memory base you can build the context of your own work on.

Read
A terminal with a command and a gold arrow leads to a note in the menu bar at the top, beside a row of vertical bars like a recording of a mix
Agents

I wanted a music player that starts on my Mac instantly

Focus Nota is a note in the Mac menu bar that plays the moment it launches, or lets an AI pick the mix. Music on my Mac loaded so slowly my focus was gone.

Read
A dense block of text on the left, three cards in the middle with one choice marked in gold, a phone on the right with a choice tapped
Autonomy

Decision form: answer all of an agent’s questions at once

My AI kept needing decisions from me, and I wanted to be able to answer every one. Decision form turns its questions into one page of tappable cards.

Read
On the left the jet from the outlet hits the floor and spreads along it, on the right it hits the breaker plate and turns sideways
Verification

3D printing the possible and the impossible: a flow breaker for my axolotl

I designed a flow breaker for my axolotl in Claude Code, tested the collar size on the outlet and set a reminder to reprint the PLA+ part in six months.

Read
A long conversation narrows into a small summary card, next to it one separate card with the rules and an arrow leading back into the context, and three dashed cards left aside
Agents

What I ask my agent to reread after compaction

Since 22 November 2026, I've asked my agent to reread only our collaboration rules after compaction. What a test with and without them showed, and its limits.

Read
Diagram: a phone, an app and a Mac connected in a loop; writes travel directly, with no copying between windows.
Integration

The Loop Where Nothing Gets Copied

From my phone I save an entry straight to my app, Tělo. I used to copy it between windows. How the connection through my own MCP server works and what the first day showed.

Read
Render of the simulated adult fruit fly body (NeuroMechFly) in a physics engine.
Research

Synthetic Brain: A Replicated False Positive

A whole-brain fruit fly model (138,639 neurons) in a closed loop. Two methodological results: a replicated finding produced by the analysis, and a rewiring control that only measures set size.

Read paper
Two result lists, one ranked by words and one by meaning, merge into a single ranking in which the target record is highlighted.
Memory

Does AI find what it remembers? A small memory-search test

A test on 32 questions: keyword search, semantic search and both combined over my AI system's session archive. What each found and what the test cannot show.

Read
Three steps side by side: your own attempt first, then an explanation from AI, then a check without AI
Teaching

Learning with AI: your own attempt first, then the explanation

One experiment: AI without guardrails lowered test scores once removed; a second study found no overall effect. Three rules I use and what they imply.

Read
Chart: mean rubric score with and without the system prompt, by persona and by model.
Research

Does a Persona System Prompt Improve Coaching-Style Answers?

100 paired outputs from four models, with and without a persona prompt. What the prompt changed, how it was scored, and a data problem found when the numbers were recomputed.

Read paper
Two paths from text to sound side by side, a short local one and a longer one through the network, drawn as two columns of waveforms.
Voice

A Czech voice without the internet: what I measured

A local Czech voice (Piper) started speaking in 55 to 81 ms, a cloud voice in about 200 to 2150 ms. Measured 23 Sept 2026: speed, the letter ř, melody, pace.

Read
One coordinating node sends briefs to nine agents, and a set of criteria written in advance stands beside it, against which the results come back.
Orchestration

Orchestrating agents: write the criteria before the run

How I run nine agents, a researcher and a coordinator: orchestration is writing briefs and criteria that are fixed before anything runs.

Read
Diagram: untrusted input stays behind a boundary; the LLM step with no tools hands only text to deterministic code with a hardcoded destination.
Security

Isolating Autonomous Agent Jobs from Prompt Injection

Prompt injection in a background agent is a tool-access problem, not a wording problem. The isolation pattern for a background agent job: an inert LLM step, hardcoded destinations, wrapped input, and a human gate. And where it still fails.

Read
A finished document with a green tick, a magnifying glass, a list of findings, and only after it a small verdict card
Verification

Done does not mean verified: a critic that hunts errors

Why an AI agent reports success before its work is verified, and how a second pass by a critic who assumes an error and lists findings first catches it.

Read
Diagram: sessions as a row of entries, older ones fading; lasting facts move up into maintained files, the latest entries are loaded at start.
Architecture

Persistent Memory for AI Agents Without a Vector Database

You don't need RAG to give an agent long-term memory. The session-lineage architecture (plain markdown, a bootloader and a session-end hook) that gave Claude Code continuity across hundreds of sessions, and when to use a vector database instead.

Read
Three columns of cards: reversible actions with a return arrow on the left, actions waiting at a human gate in the middle, forbidden actions struck through on the right
Autonomy

When may an agent act alone? Do, ask, never

An agent may act without asking when its action can be undone and it sees the full state it changes. Three rule lists and a case where an edit was irreversible.

Read
Three narrow procedure cards side by side, one of them linked by a gold arrow to a task window
Skills

Skills instead of long prompts: a procedure packaged for AI

A skill is a folder with a SKILL.md file that the model loads when its description matches the task. My failure log shows the description fixes only one of four causes.

Read
Diagram of a loop: the model proposes an action, a tool carries it out on files, the result returns to the model, and permissions guard the boundary.
Agents

From chat to agent: what changes when AI can act

A chat returns text, an agent calls tools in a loop and changes files. What that means for instructions, permissions and checking, from my March 2026 use.

Read
Three answer cards with the same confident frame, only one connected to a verified source while the others lead nowhere
Verification

Why AI states falsehoods with confidence, and what to do

Language models invent plausible falsehoods because training and benchmarks reward guessing. What a 2025 study found, and how to handle it in practice.

Read
A long strip of text with three highlighted spots at the start, middle and end; an orange arrow leads from the strip into a new card holding a summary.
Fundamentals

Why a model loses track in a long chat

The context window is all a model sees when it answers. Why quality drops as a chat grows, and my fix: a fresh chat with a summary, key points first and last.

Read