Agent-First Design

The design side of Agent-First Development

Agents are users too.

Four patterns
Discover, understand, keep control and recover. Each has a form for people and a form for agents.
Five tools
Tokens, components, evidence, application chrome and memory: the parts of the family with a design side.
One character
Alfred, the agent's face across AFD: a mark that wakes when it has something to do.
Fig. 01The role

The job was never
the screens.

Design answers for the experience. That used to mean one kind of user. Now a person asks, an agent acts, and both have to find their way through the same product.

01 / The person's side

Intent and authority.

Saying what you want, understanding what was done, deciding what goes ahead and stepping in when it shouldn't.

02 / The agent's side

Legible capability.

Actions it can discover, inputs it can supply, results it can predict and failures it can act on.

03 / The journey they share

One story.

The same identity, state and meaning for both, with the same permission and the same way back, whoever is acting.

Fig. 02The patterns

An agent's four questions,
in patterns you know.

What can I do? What comes back? Should this go ahead? What now? Interfaces have answered these for people for decades. An agent needs the same answers, in a form it can read.

01 / Discover

What can I do?

People getA menu
Agents getA contract

A named list of capabilities. Each says what it is for, what it needs and whether it changes anything.

In code
02 / Understand

What comes back?

People getA message
Agents getA result

The outcome, the reasoning behind it and how sure the system is. Enough to decide the next move.

In code
03 / Keep control

Should this go ahead?

People getA dialog
Agents getA pause

The same stop. Their person confirms what matters, and is not asked about what doesn't.

In code
04 / Recover

What now?

People getA field error
Agents getA next step

A failure that names what to do about it, so the work carries on instead of stalling.

In code
Fig. 03The family

The practice lives
in every part of the family.

The same idea, taken from commands to tokens, components, evidence, application chrome, memory and agent tooling, and arranged by what you want to do.

Build commands

  • TypeScript

    The reference library: commands, an MCP server, a CLI and an in-process client, as nine npm packages.

    Beta, on npm

    Read more
  • Python

    The afd package: commands, an MCP server and a CLI, on the same contract.

    Beta, on PyPI

    Read more
  • Rust

    The afd crate: commands, an optional MCP server, and a build for WebAssembly.

    Preview, on crates.io

    Read more
  • C++

    A C++20 library for running commands inside an application, engine or tool.

    Preview, as a git tag

    Read more

Design for agents

  • Violet

    A design token engine. Tokens live on a tree; each node inherits, overrides or removes, and one source exports to CSS, Swift, Kotlin and more.

    Preview, on npm Stands alone

    Try the tree
  • FAST-AF

    A web component runtime and the component library built on it, violet-elements. The library is part of FAST-AF; it takes its look from Violet tokens. Each component has a record an agent reads before using it.

    Preview, on npm Stands alone

    See every component
  • Specimen

    A component bench. It renders in Chromium and records what actually happened, so two versions are compared on evidence.

    Preview, on npm Stands alone

    Compare two versions

Run and operate

  • Umbel

    A server you run for agents, built from plugins: knowledge, memory and your own commands, over MCP and a command line, with every answer traced to its source.

    In development

    Read a real answer
  • Loam

    An application shell. Apps land in one chrome as plugins, and the shell's own state is commands, so agents drive it the way people do.

    In development

    Read more
  • Botcore

    A Python package of developer tooling. A repository installs it so its coding agent gets the same lint, test and skill commands as every other repository.

    Beta, on PyPI

    See a real session

This repository's tools

  • Alfred

    This repository's quality bot: architecture, language parity and command-description checks.

    Internal

    Read more
  • Health

    Repository health audits with a versioned JSON report and a static dashboard.

    Internal

    Read more

A part that stands alone has foundation packages that depend on nothing in AFD, so it can be adopted on its own; its CLI, server and command packages add AFD on top.

Fig. 04The control check

“Control over what matters, not the most decisions.”

One rule for every confirmation, approval and stop button.

Fig. 05The character

A mark that
looks back.

Alfred is the agent's face across AFD. At rest he is a compass: one bar in a ring, leaning like the slash, turning slowly to find you. Come close and he wakes.

Two bars, one angle.
The lean of the wordmark slash never changes.
Two moves.
A bar slides along its axis or changes length. Nothing bends or grows a mouth.
He rests as the mark.
The face appears when he has something to do, then leaves.