The docs, as files
The npm package contains both files, next to itsREADME.md:
They are generated from the same docs as this site and checked in the SDK’s CI, so they match the version you have installed. Tell your coding agent where they are, for example in your project’s
AGENTS.md or CLAUDE.md:
The docs, from this site
Every page here has a Copy page button at the top, which copies the page as Markdown for pasting into a chat. The same menu opens the page in ChatGPT or Claude.Let the coding agent check its work
Two parts of the SDK make an agent’s work easy to verify without an API key:- Testing:
mockModelscripts the model’s replies, so a test can assert on tool calls and final text and run offline in CI. - Evals:
defineEval()asserts on the trajectory (which tools, in what order, with which arguments) andlousho evalreports the result as JUnit.
npx lousho doctor checks the Node version, peer dependencies and API keys, and prints a fix for anything missing. It is a useful first command for a coding agent to run in a new checkout.
Your Lousho agent as a coding agent
The other direction is covered too. An agent you build with the SDK can itself work on code:- Workspace tools: file system and shell tools confined to a root directory, with the shell behind approval.
- Editors (ACP):
lousho acp ./my-agentserves your agent to Zed and other Agent Client Protocol editors. - Project instructions:
projectInstructionsappends your repository’sAGENTS.mdto the agent’s instructions.