Solution

The auditor asks what your agents ran. Show one record.

Turn Protect on, and the gateway logs each tool call it blocks. Each rule change goes into a history where each entry's hash covers the one before it.

Ask

What are our agents doing right now?

Live showsRunning sessionsEach request as it happensThe saving per minute

Live shows running sessions and the saving per minute. In your terminal, a line that starts with context-mode · gives what a turn saved.

What did Protect stop?

BlockedPush to protected branchesBash · git
BlockedRead environment filesBash · cat
Would blockChange cloud resourcesBash · aws

In each row

  • Time, decision, rule
  • Tool, program, host
  • Project, session, policy version

Never in a row

  • Command text
  • Flag values
  • Environment values
  • File contents

Would block: a rule in Monitor records the call and lets it run. Filter, then export as CSV or JSON Lines.

Who loosened that rule, and why?

signed-in person · editor · adds a rule · tightens
API key · import · adds a rule · tightens
signed-in person · editor · deletes a block rule · loosens · reason kept

Each entry's hash covers the one before it.

An API key can only tighten. Edit or delete an entry, and Verify record says where the chain breaks.

Who is stuck, and on what?

Insight answers by roleOwner: the whole orgManager: their teamsMember: their own work

222 patterns over events from the free Engine on each machine, with an Insight key. Insight does not read file contents.

The problem

Agents run commands all day. Can you say which?

"What did the agent run?"

An auditor asks. The answer sits in session files on each laptop, or nowhere.

"Who changed the rule?"

A block rule is gone. Nobody knows who removed it, or why.

"Was it blocked, or let through?"

A rule in test mode lets the call run. You need to see which calls it would have stopped.

How it works

One path for every request. One record of it.

Your agent sends each request to the Context Mode gateway, which forwards it to the model API. On the way, the gateway records tokens, cost and saving, and each Protect decision. The console shows the record. Your agent every machine Context Mode gateway Model API your own account The record cost per request blocks · rule history
The gateway makes the record on the request path. A machine without the base URL is not in it, and Protect does not see that machine.
  1. 01Point your agents at the gateway

    npx @context-mode/cli sets the base URL in each agent's config.

  2. 02Turn Protect on

    Pick a preset. Try a rule in Monitor first: it records the call and lets it run.

  3. 03Each Protect decision is logged

    Once you turn Protect on: the rule, tool and program. A row never holds the command text, flag values, environment values or file contents.

Proof

Numbers you can check. An audit log you can show.

1 to 365 dayshow long the decision log keeps rows; the default is 30
403for an API key that tried to turn Protect off
40-entry historyof policy changes checked out after the production run

Each rule change sits in a history where each entry's hash covers the one before it. Protect checks only requests that go through the gateway; see keep the gateway on. For what each request cost, see Track agent spend. The production run →

Where to look

Each audit question has one screen.

Your questionWhere you see itWhat it holds
What runs now?LiveRunning sessions, each request as it happens, the saving per minute
What did it cost?AnalyticsTokens, cost and saving over time, by session, project and agent. Not by person yet: there are no team roles.
What was blocked?Protect, ActivityThe decision log: time, decision, rule, tool, program, host, project, session. "Would block" means a rule in Monitor recorded the call and let it run. Export as CSV or JSON Lines.
What did no rule cover?Protect, ActivityPrograms, sites and tool servers your agents used, most used first, each with Block and Allow
Who changed a rule?Protect, HistoryWho, how, the rule before and after, the reason, and whether it loosens the policy
Who is stuck?InsightBlockers, risks and changes, by person, team and project, from the free Engine on each machine, with an Insight key

Related: secure coding agents, cut agent spend, team standards.

Products used

What this uses.

Protect

Checks every tool call before it runs. Logs each block and each rule change.

Protect docs

The decision log fields, the History tab and how to verify the hash chain.

Live and Analytics

How the console's ledger prices each request, and where you see the saving.

Insight

How your team works with agents, from free Engine events, answered by role.

Pricing

Live, Analytics and Protect are in every plan, Free included. For Team, write to sales@context-mode.com.

Know what your agents did. Show it to an auditor.

npx @context-mode/cli connects your agents. 1,000 requests free, no card.

Get started free

Your coding agent costs less and remembers your project.

Start free: 1,000 requests, every feature, no card. After you sign in, the console gives you one command to connect Claude Code or Codex.

Read the docs