Skip to main content

NemoClaw

NemoClaw is the safe-runtime screen that runs on every spend. It combines a deterministic policy layer (the inviolable part) with an NVIDIA Nemotron classification (the judgement part). The deterministic layer is decisive on its own, so a spend can never slip through just because a model was slow or unavailable. The implementation is src/lib/hermesco/safety.ts.

Order of evaluation

The hard cap is checked before and after the model. The model can tighten the outcome but it can never loosen a cap.

The deterministic gate

A verdict has three levels:

Nemotron classification

When the deterministic layer does not already block, NVIDIA Nemotron classifies the spend. The screen calls NVIDIA’s own API (integrate.api.nvidia.com) when an NVIDIA_API_KEY is configured, and otherwise reaches the same Nemotron model (nvidia/nemotron-3-ultra-550b-a55b) through OpenRouter:
Nemotron is a reasoning model, so the prompt opens with /no_think and a wider token budget so it returns the verdict JSON directly instead of spending the budget reasoning out loud. If the model is unavailable or times out, the function returns null and the deterministic layers stand. The safety outcome is therefore never blocked on model availability.

What the agent sees

The agent is told the verdict in plain terms so it behaves correctly without retry loops:
  • Awaiting approval: it pauses and explains what it needs and why.
  • Refused by the Treasury: it does not retry the spend.
  • Failed a hard cap: it does not retry.
This keeps the agent honest about money it does not have and spends it cannot make.