Spendplane shows what it redacted in a coding agent request

Spendplane’s gateway audit records detection categories and token usage for compatible coding requests. These measurements distinguish protection from input size. A recognized sensitive value can disappear even when its placeholder takes just as many tokens.

Example

An AI review request gets a compact diff and a compiler excerpt. One run includes a matched fictional key and 1,550 input tokens. A second run sends a longer approved diff and has higher token usage even though its private values are still masked.

What Spendplane does

Spendplane replaces the detected key before forwarding the reviewed request and can record its category in audit metadata.

Token usage is tracked separately so engineers can distinguish redaction activity from the size of the diff and log.

For a covered request, operators can inspect the resulting metadata without storing the original prompt in the gateway audit log.

What the result looks like

The audit can show that a secret was detected even in a run whose input token count grew.

Limits

Detection counts describe observed matches. Remaining context and task quality need independent evidence.

Spendplane for this workflow

Explore Spendplane Governance Shield

Related reading