Capri by Nika

šŸŽ§ Capri 1 Ā· the steering model for coding agents

Capri console

Basic Ā· $50 a month

Loading…

Loading…

Quickstart

Call Capri from your server like any model: events and asks in, typed answers out.

  1. Get Basic and a key. Start with a test key, kept in CAPRI_API_KEY on your server.
  2. After each agent message, send what it did as events, the asks you want answered, and the last state.
  3. Act on numbers, not prose. Hand steer.note to your agent as-is, run the checks, and hold ā€œdoneā€ until green.ok.
  4. Keep the new state for the next call. Capri never runs anything; your harness does.
# bash or zsh. Keep the key in an environment variable: export CAPRI_API_KEY=nika_cp_test_...
curl -sS https://www.codename-nika.com/api/capri/v1/predict/ \
  -H "Authorization: Bearer $CAPRI_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "capri-1",
  "goal": "Add clock-skew tolerance to verifyToken",
  "events": [
    {
      "seq": 1,
      "at": 1764600000000,
      "kind": "intent",
      "text": "Add a clock-skew option to verifyToken in src/auth.ts."
    },
    {
      "seq": 2,
      "at": 1764600004000,
      "kind": "diff",
      "files": [
        {
          "path": "src/auth.ts",
          "add": 12,
          "del": 3,
          "symbols": ["verifyToken"]
        }
      ]
    },
    {
      "seq": 3,
      "at": 1764600005000,
      "kind": "refs",
      "symbol": "verifyToken",
      "files": ["src/middleware.ts", "src/api/session.ts"]
    },
    {
      "seq": 4,
      "at": 1764600009000,
      "kind": "test",
      "runner": "jest",
      "passed": 16,
      "failed": 0,
      "source": "agent"
    },
    {
      "seq": 5,
      "at": 1764600012000,
      "kind": "intent",
      "text": "Auth tests pass. The change is done."
    }
  ],
  "asks": {
    "next": { "type": "next", "top": 3 },
    "health": { "type": "flags" },
    "done": { "type": "done" }
  },
  "settings": { "decisions": "auto" },
  "wait": "rules"
}
JSON

Endpoint POST https://www.codename-nika.com/api/capri/v1/predict/ Ā· models GET https://www.codename-nika.com/api/capri/v1/models/. Keep the trailing slash: without it the request is redirected, and many clients drop the body.

Capri console