Skip to content

v0.1.0-alpha.17

Choose a tag to compare

@luccast luccast released this 09 Mar 19:02
dd42d9a

Response-side enforcement, token usage tracking, and fluid TUI.

What's new

Response-side enforcement

Crabwise now inspects LLM responses (not just requests) to enforce policy on tool use blocks before they reach the agent. Works for both streaming and non-streaming responses.

  • Pre-buffers streaming responses, extracts tool use blocks, and evaluates them against gate commandments before forwarding
  • Supports OpenAI-compatible and Anthropic response formats
  • gate.evaluate IPC method for external PEP callers (custom integrations, hooks)
  • stream_max_buffer config for controlling pre-buffer size
  • Argument parsers for Bash/Write/Edit/Read tool targets

Token usage tracking

Audit system now tracks token usage instead of cost. Cost calculation planned for a future release.

  • crabwise audit reports token summaries per session/agent
  • Data structures updated from cost to token semantics

Fluid TUI layout

Table and feed heights in the TUI now resize dynamically with the terminal window.

Other

  • GNU AGPL v3 license added
  • Enforcement architecture design docs
  • Concurrency fix for OpenClaw status snapshot (RWMutex data race)

Included work

#26 Token usage tracking
#27 Fluid TUI table height
#28 Response-side enforcement
#29 PR #28 review fixes