khairold

Systems

Not what I build — how I operate. The protocols, agent design, and thinking systems underneath everything else.

Deep modules: structuring code for AI agents, not humans

Mar 2026

Most codebases are structured for human developers navigating with IDEs. AI agents don't use IDEs — they use tool calls. Every file read costs time. Every cross-file edit risks failure. Here's how I'm restructuring a 33,000-line codebase to be maintained by AI.

Meta-tasks: when the agent writes its own plan

Mar 2026

CREATE TASKS — plan items where the agent's job isn't to do work, but to read the world, decide what work should exist, and alter the plan. The plan becomes a program that generates more of itself.

Give the agent a browser

Mar 2026

browser-tool.ts — a thin Playwright CLI that turns an AI agent into a web researcher. No scraping framework, no complex automation. Just launch, screenshot, decide, act.

Atomic Design was made for AI agents

Mar 2026

A living design system built on Atomic Design Methodology — where the AI agent works backward from pattern specs, composing primitives and tokens it already knows. The methodology finally makes sense when the maintainer never gets tired.

Teaching agents to know what they don't know

Mar 2026

AGENTS.md and CAPABILITY-MAP.md — two files that make AI agents honest about their limits, and resourceful about overcoming them.

Autopilot: unattended AI execution

Mar 2026

A shell loop that runs an AI agent repeatedly against a plan — each iteration gets a fresh context window, does one thing, verifies the build, and exits. No human needed.

Work on the system, not in the system

Mar 2026

The operating principle behind everything I build — and why most engineers are doing it backwards.

Designing an AI agent's soul

Mar 2026

SOUL.md, HUMAN.md, and TENSIONS.md — three files that turn a generic AI into a thinking partner that actually knows you.

The .plan/ protocol

Mar 2026

Four files that replace standups, sprint planning, and handoff meetings when building with AI.