Skip to main content

Agent First Interface — scaffold CLI, MCP, and HTTP interfaces for agent-first tools.

Project description

afi-cli

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 learn affordance 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.

Install

uv tool install afi-cli

Then afi --version should work on your PATH. uv tool install is the supported path — not pip install.

Usage

afi learn    # self-description for an agent reader
afi --help   # subcommand listing

Feature commands (scaffold generators for CLI / MCP / HTTP) are not implemented yet — the learn stub is a placeholder that demonstrates the agent-learnability principle.

Develop

uv sync                          # install + dev deps
uv run pytest -n auto -v         # tests
uv run afi learn                 # run the CLI from source
uv run pre-commit install        # enable lint hooks

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

afi_cli-0.1.1.tar.gz (41.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

afi_cli-0.1.1-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file afi_cli-0.1.1.tar.gz.

File metadata

  • Download URL: afi_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 41.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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

Hashes for afi_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1b18e2c6e9cb39dc0e4201f118e56cebcd253a467b018c2f431dd54665ef826d
MD5 7afc8b2ba7ccefd313267f075b6c46ec
BLAKE2b-256 d829943721c5f696138afb0af9d01aa4e010649fb9e11a2d5f40d32165ebab02

See more details on using hashes here.

File details

Details for the file afi_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: afi_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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

Hashes for afi_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecb280cdf54bd2f471a63edb855d288b5a065bbe76a365ab485cdd2b49e141d
MD5 30ce3518b09c3b0d921e04aa2b5a4d44
BLAKE2b-256 67f792cdf543cdeff026f198de37470490678d3e8beef9dd02f5c4768d980c92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page