Check your environment
When an agent misbehaves, the first question is whether the problem is your code or the machine underneath it. @namzu/cli answers that question before you start reading your own logic.
Install the CLI
pnpm add -D @namzu/cliIt works as a project-local bin or as a library, so you can call the same checks from your own tooling instead of shelling out.
Run the check
pnpm namzu doctordoctor inspects the environment rather than your agent: the runtime version against the supported floor, which Namzu packages are present, and whether the provider you have configured can actually be reached.
TIP
Run doctor in CI as the first step of the job. A failure there tells you the runner is wrong; a failure later tells you the change is wrong. Separating those two saves the argument about whose fault a red build is.
Order of elimination
Work down this list before opening your agent code:
- Node version. The floor is 20. A machine below it fails in ways that look like library bugs.
- Packages present. The kernel installed without a provider driver falls back to
MockLLMProvider- which succeeds, and returns nothing you asked for. If responses look synthetic, this is usually why. - Provider reachable. For a local driver, that means Ollama or LM Studio is actually running and has the model pulled. For a hosted driver, it means the credential is present in the environment.
- Then your agent.
Current scope
NOTE
namzu doctor is the command the operator CLI ships today. Other commands are planned but not published, and this page will list them when they exist rather than in advance.
Next steps
- Choose a provider - which driver you should have installed.
- Packages - the supported runtime floor and install shapes.