The Architecture of Amnesia: Inside hironow/paintress

How an experimental Go orchestrator uses event sourcing and RPG mechanics to solve the AI context collapse problem.

7 min read • View on GitHub • More from hironow

A heavily encumbered mechanical pack mule collapsing under blueprints next to a sleek, unburdened mechanical hound sprinting with a single scroll. This visualizes the burden of 'god context' versus the agility of a stateless, single-task agent.
The God Context Fallacy: long-running agents collapse under their own history, while disposable agents stay fast and focused.
Key Takeaways

The God Context Fallacy

Most AI coding agents fail because they try to remember too much. They maintain long-running, monolithic context windows that eventually become polluted. This causes the model to hallucinate or drift from the original task. The signal-to-noise ratio degrades until the AI is paralyzed by its own history.

Paintress takes a radical, counter-intuitive approach. It assumes the AI will fail and get confused. Its core design philosophy is to destroy the canvas. By forcefully wiping the LLM context after every single task, it treats the AI not as a senior engineer, but as a disposable, stateless worker bee.

Paintress uses Claude Code to automatically process Linear issues — implementing code, running tests, creating PRs, running code reviews, verifying UI, and fixing bugs — with no human intervention, until every issue is done.

hironow, Primary Author/Maintainer · github.com/hironow/paintress

Event Sourcing for Disposable Agents

If the AI forgets everything, how does it improve? Paintress answers this with event sourcing. It acts as a Go CLI wrapper around Claude Code, pulling tasks from Linear, and forcefully killing the process after a PR is opened.

The system maintains a SQLite database to track state. The internal domain logic extracts 'Alerts' and 'Defensive' patterns into a journal before wiping the context. This allows the system to rebuild the necessary state for the next run without carrying the bloat of previous conversations.

The Expedition Loop: Extracting knowledge before incinerating the context window.

The RPG-ification of Rate Limits

The internal logic of Paintress is heavily inspired by the RPG game Clair Obscur: Expedition 33. This is not just a naming convention. The game design principles surprisingly map perfectly to LLM orchestration.

The system design is inspired by the world structure of Clair Obscur: Expedition 33, an RPG game.

hironow, Primary Author/Maintainer · github.com/hironow/paintress

Paintress uses a 'Gradient Gauge' which acts as a combo-meter. It unlocks complex tasks only when the agent has a success streak. If Claude 3.7 Opus hits a rate limit, the system automatically cascades to Sonnet, treating the cheaper model as a literal 'Reserve Party'.

A close-up of a brass analog pressure gauge with the needle pinned in the red zone, pushing open a heavy vault door via interlocking gears. This represents the Gradient system unlocking complex tasks after a success streak.
The Gradient Gauge: building pressure through success to unlock higher-priority tasks.

The Swarm and the Monolith

Paintress uses Go's concurrency capabilities and git worktrees to enable 'Swarm Mode'. This allows multiple disposable agents to drain a backlog simultaneously.

Instead of one giant agent trying to balance multiple context threads, Paintress spins up parallel, isolated Claude Code instances. They independently attack the Linear backlog without stepping on each other's toes.

A split composition showing a massive wooden painter's palette mixed into unusable brown sludge on the left, and a neat stack of pristine blank white canvases on the right. This depicts Context Pollution versus the Destroy the Canvas philosophy.
Context Pollution vs. The Clean Slate.
FeatureMonolithic AgentExpedition Agent
State ManagementGod ContextDestroy the Canvas
MemoryIn-PromptSQLite Event Sourced
Failure ModeDriftClean Restart