Most ArkAPI apps are written with an agent in the loop. A few choices make that work.
Less to write, less to get wrong#
There is no client to write, no URL to keep in sync and no JSON to parse. The measured result on the same notes app is on the home page. Fewer lines means fewer tokens to generate and fewer places to make a mistake, and the mistakes that remain mostly fail the build instead of shipping.
The guide lives in the project#
init writes the full guide into the project's AGENTS.md, between two markers, and adds @AGENTS.md to CLAUDE.md. Running init again replaces only the text between the markers, so the guide stays current and your own notes in the same file stay put. An agent opening the project reads the rules before it writes a line.
Docs that answer in Markdown#
Every docs URL has two faces:
GET /docs/files Accept: text/html ──► the page you are reading
GET /docs/files Accept: text/markdown ──► the same page as Markdown
GET /docs/files.md ──► Markdown, always
GET /llms.txt ──► index of every page for agents
GET /llms-full.txt ──► all docs in one file
HTML pages also advertise their Markdown twin in a Link header, so an agent that fetched the HTML can find the cheaper version.
Errors that say what to do#
- Wrong arguments:
args[0].title: expected string, got number, with the path. - An endpoint name that collides with an event listener:
generatenames both and stops. - An app built against an older backend: the answer says to rebuild the app.
- An unsupported type:
generatenames the type and what to use instead.
An agent can fix each of these without guessing.
Numbers that are checked#
The comparison on the home page comes from two real implementations of the same app in the arkapi repository, counted by a script. A host test reads that script's output and fails if the page shows different numbers.