locode-protocol 0.1.4

Conversation model, tool call/result types, and the report envelope of the locode coding agent - pure types, no I/O
Documentation
{
  "schema_version": 1,
  "status": "completed",
  "harness": "grok",
  "api_schema": "anthropic",
  "final_message": "Done.",
  "structured_output": null,
  "turns": 2,
  "tool_calls": [
    {
      "id": "call_1",
      "name": "run_terminal_command",
      "kind": "shell",
      "args": {
        "command": "echo hi"
      },
      "ok": true,
      "output": {
        "exit_code": 0,
        "truncated": false
      }
    }
  ],
  "usage": {
    "input_tokens": 100,
    "output_tokens": 20,
    "cache_read_tokens": 0,
    "cache_creation_tokens": null,
    "reasoning_tokens": null
  },
  "session_id": "sess-abc",
  "error": null,
  "stop_reason": "end_turn"
}