Agent First Interface — scaffold tools whose primary consumer is an AI agent, not a human.
From a single source of truth, afi-cli generates three interface surfaces, each shaped by a different agent-ergonomic principle:
- CLI — with a
learnaffordance so an agent can introspect the tool and author its own usage skill (not just read--help). - MCP server — a deliberately minimal menu, tuned for low surface area over maximal API coverage.
- HTTP site — markdown pages plus a sitemap, navigable by any agent with a fetch tool. (This page is the HTTP surface.)
Quickstart
uv tool install afi-cli
afi explain afi # top-level map
afi overview # cross-surface rollup
afi learn # structured self-teaching prompt for an agent
uv tool install is the supported install path — not pip install.
Read next
- AgentCulture — the OSS org, its agents-as-members model, and where afi-cli sits inside it.
- Agent First — the paradigm: learnability on the CLI, minimalism on MCP, discoverability on HTTP. The why behind every design call in this repo.
- Rubric — the five-bundle mechanical check that
afi cli verifyruns against any CLI. afi-cli itself is required to pass.
Links
- Repo: https://github.com/agentculture/afi-cli
- PyPI: https://pypi.org/project/afi-cli/
- Companion: agex-cli — agent experience inside a repo (hooks, CI, workflow). afi-cli is the agent’s interface to a tool.