Agent First Interface — scaffold CLI, MCP, and HTTP interfaces for agent-first tools.
Project description
agentfront
Agent First Interface — scaffold tools whose primary consumer is an AI agent, not a human.
Formerly
teken(andafi-clibefore that). The project was renamed to agentfront — the agent-facing front a tool presents. Thetekenpackage and thetekencommand still work as deprecated aliases — see Install.
From a single source of truth, agentfront 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.
Part of the AgentCulture OSS org — see docs/agentculture.md for the org, its paradigm, and how agentfront is foundational to it. The design brief is in docs/agent-first.md; the concrete rubric that agentfront cli doctor enforces is in docs/rubric.md.
Install
uv tool install agentfront
Then agentfront --version should work on your PATH. uv tool install is the supported path — not pip install.
uv tool install teken # still works: a thin wrapper that installs agentfront
The teken command is retained as a deprecated alias for agentfront (it prints a one-line notice to stderr and forwards). New usage should prefer agentfront.
Usage
Every agentfront command supports --json where it produces a listing or report, and respects the exit-code policy (0 success / 1 user error / 2 env error).
Introspect
agentfront learn # structured self-teaching prompt for an agent
agentfront learn --json # same, as a JSON payload
agentfront explain cli cite # markdown docs for any noun/verb path
agentfront explain agentfront # top-level map
CLI scaffolding
agentfront cli cite [path] # emit the agent-first reference tree into
# <path>/.agentfront/reference/python-cli/ (tokens left literal,
# adds `.agentfront/` to .gitignore)
agentfront cli doctor [path] # audit a CLI at <path> against the seven-bundle rubric
agentfront cli doctor . --json # full structured report
agentfront cli doctor . --strict # treat warnings as failures
agentfront cli cite writes only under .agentfront/ plus one line in .gitignore — it never modifies the rest of the target project. The emitted tree has literal {{project_name}}, {{slug}}, {{module}} tokens; an agent reads the accompanying AGENT.md and applies the pattern to the host project on its own terms. Reference trees cited before the rename (under .teken/) are still detected.
agentfront cli doctor is a hybrid auditor: static checks for repo structure (pyproject.toml, tests/) and black-box subprocess probes for behavior (learn, --json, error discipline, explain). Every failure includes a concrete remediation pointer. (agentfront cli verify remains as a deprecated alias for cli doctor.)
MCP / HTTP
Not implemented yet. Planned for v0.4 / v0.5.
Develop
uv sync # install + dev deps
uv run pytest -n auto -v # tests (includes the self-doctor acceptance gate)
uv run agentfront cli doctor . # same gate, interactive
uv run pre-commit install # enable lint hooks
The tests/test_self_doctor.py acceptance gate runs the rubric and self-doctor in-process against the repo root; any regression that breaks a bundle blocks the commit.
See CLAUDE.md for design intent and full command reference.
License
MIT. © 2026 Ori Nachum / AgentCulture.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agentfront-0.10.1.tar.gz.
File metadata
- Download URL: agentfront-0.10.1.tar.gz
- Upload date:
- Size: 167.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08bb038424d937e18d8950e24ce5a99355bf41311cf9b29d78008cd108cf439a
|
|
| MD5 |
a99d3e38ad788179052da2ff56bce1a6
|
|
| BLAKE2b-256 |
3f63fa244d5e84ea97576836cbc5883e3313fa0a94e125771cae5d5fd5b66e75
|
File details
Details for the file agentfront-0.10.1-py3-none-any.whl.
File metadata
- Download URL: agentfront-0.10.1-py3-none-any.whl
- Upload date:
- Size: 73.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eb5abbe430711189bd902415e8b5ac1eab554c462dbab9ff61497cb7e3beab36
|
|
| MD5 |
a3bb31eb865a439e235954cf359561d8
|
|
| BLAKE2b-256 |
6c97e2666b982d7f8821b636566d68d5db6f707db5185912934b90592d52c35b
|