OpenClaw Ships Yet Another Release — How to Track Every Second of Its Spend in Real Time and Open the Agent "Thinking" Black Box

OpenClaw has shipped yet another release. This 2026.3.22-beta.1 version looks like a “complete overhaul”: major changes to the plugin system, a reworked SDK path, a rewritten messaging mechanism, a changed run mode, consolidated tool capabilities, and rebuilt browser and large-model strategies.

OpenClaw Ships Yet Another Release — How to Track Every Second of Its Spend in Real Time and Open the Agent "Thinking" Black Box

This update gives developers more power when building complex AI applications, but it also brings a new challenge: when multiple Agents run in parallel and tasks span several days, how do you precisely grasp the compute consumption and state changes at every stage?

From our small-scale survey, developers report these frustrations when running complex tasks with OpenClaw: a task suddenly slows down halfway through, but they can’t tell whether the model is thinking deeply or has stalled; at the end of the month they get an API bill far exceeding expectations but can’t trace the specific consumption; or worse, the context gets silently compacted, causing the Agent to “forget” key decisions and breaking task continuity.

This “black box” development experience is exactly the core pain point the new open-source tool ClawProbe sets out to solve. As a real-time monitoring tool designed specifically for OpenClaw, it lets developers precisely control every bit of compute spend amid today’s fierce model price war.

clawprobe doesn’t change your Agent logic and injects no performance overhead; it just silently reads OpenClaw’s local state files and uses a differential algorithm to compute everything you want to know in real time. It’s like running strace on the Agent, but the output is a human-readable dashboard.

This release is an internal beta: github.com/seekcontext/ClawProbe. We warmly invite you to try it, file PRs, or post suggestions in the “Q&A” board of the OceanBase community.

Two-Minute Onboarding: Even Simpler Than Configuring Prometheus

Don’t rush to set up a Grafana dashboard. For most OpenClaw users, deploying a full monitoring stack only adds complexity. clawprobe’s philosophy is: a monitoring tool itself should not become a new thing to monitor.

1
2
3
npm install -g clawprobe
clawprobe start # Start the background file watcher
clawprobe status # Instantly view the Agent's "CT scan" report

No YAML config, no API key management, no Docker containers. The tool automatically probes the ~/.openclaw directory, watches session-file changes via fs.watch(), and uses under 30MB of memory. Node.js 22+’s native file system API ensures cross-platform efficiency, with latency under 100ms on macOS and Linux. As for Windows users, for now it runs perfectly only under WSL2.

Core Features: A Complete Toolchain from status to top

clawprobe status: The Agent’s “CT Scan Report”

This isn’t a simple status query but a complete data collection and analysis. The instant you run it, the tool will:

  1. Read the current session’s session.json for metadata
  2. Parse conversation.log to compute token throughput
  3. Scan the context/ directory to estimate window usage
  4. Query the built-in pricing database (auto-updated daily) to compute cost
  5. Run heuristic rules to detect anomalies

The output is a diagnostic report of extremely high information density:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
📊  Agent Status  (active session)
──────────────────────────────────────────────────
Agent: main
Session: agent:main:workspace:direct:xxx ●
Model: moonshot/kimi-k2.5
Active: Today 16:41 Compacts: 2

Context: 87.3K / 200.0K tokens ███████░░░ 44%
Tokens: 72.4K in / 5.2K out

Today: $0.12 → clawprobe cost for full breakdown

🟡 Context window at 44% capacity
→ Consider starting a fresh session or manually compacting now

Note the Compacts: 2: it tells you the context has been compacted twice, and part of the historical conversation has been lost. If you notice the Agent behaving oddly, this is usually the first clue.

clawprobe top: An htop Designed for Long-Horizon Tasks

When debugging Claude 3.7’s agentic tasks, you need to observe continuously. The top command provides a real-time dashboard with a 2-second refresh, drawing the live picture in ASCII characters:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
clawprobe top  refreshing every 2s  (q / Ctrl+C to quit)     03/18/2026 17:42:35
────────────────────────────────────────────────────────────────────────────────
Agent: main ● daemon running
Session: agent:main:workspace:direct:xxx ● active
Model: moonshot/kimi-k2.5
Active: Today 17:42 Compacts: 2
────────────────────────────────────────────────────────────────────────────────
Context ████████░░░░░░░░░░░░░░░░ 44% 87.3K / 200.0K tokens
Headroom 112.7K tokens remaining (56%)
────────────────────────────────────────────────────────────────────────────────
Session cost $0.52 Input 859.2K tok Output 29.8K tok
Today total $0.67 Cache read 712.0K tok
────────────────────────────────────────────────────────────────────────────────
Recent turns
Turn Time ΔInput ΔOutput Cost Note
27 17:42 22.0K 908 $0.0094 ← latest
26 17:19 990 630 $0.0026
25 17:19 20.4K 661 $0.0094
24 15:57 564 39 $0.0014
23 15:56 18.8K 231 $0.0076 ◆ compact
────────────────────────────────────────────────────────────────────────────────
🟡 Context window at 44% capacity
Costs are estimates based on public pricing.

The key insight is in the Recent turns table: a compact happened at turn 23, and input surged by 20.4K tokens at turn 25. If the Agent behaves abnormally at this point, you’ll know it’s a context break caused by compaction. This replayable debugging ability is worth its weight in gold when troubleshooting in production.

clawprobe cost: A “Real-Time Audit” of the API Bill

Claude 3.7’s 200K context window is powerful, but both input and output are priced per 1M tokens. One careless move and a single day’s cost can exceed $50. The cost command offers multidimensional cost analysis:

1
2
3
4
5
6
7
8
9
10
11
12
💰  Weekly Cost  2026-03-12 – 2026-03-18
──────────────────────────────────────────────────
Total: $0.67
Daily avg: $0.096
Month est: $2.87

2026-03-16 ████████████████ $0.16
2026-03-17 █░░░░░░░░░░░░░░░ $0.0088
2026-03-18 ███░░░░░░░░░░░░░ $0.03

Input: 1.0M tokens $0.65 (97%)
Output: 47.8K tokens $0.03 (3%)

The built-in pricing database syncs daily from official APIs, covering 30+ models across OpenAI, Anthropic, Google, Moonshot, DeepSeek, and more. For privately deployed models, you can define custom pricing in ~/.clawprobe/models.json. We also plan to integrate the pricing-metadata standard of MCP (Model Context Protocol); once the protocol matures, we’ll enable automated model-cost discovery.

clawprobe context: Catching the Culprit Behind Silent Truncation

This is the most technically deep feature. When OpenClaw loads tool definitions, if TOOLS.md exceeds the bootstrapMaxChars limit, it silently truncates. The Agent can’t see the full tool description, which may cause call failures, but it won’t tell you “I can’t see this.”

1
2
3
4
5
6
7
8
9
10
11
🔍  Context Window  agent: main
──────────────────────────────────────────────────
Used: 87.3K / 200.0K tokens ███████░░░ 44%

Workspace overhead: ~4.2K tokens (7 injected files)
Conversation est: ~83.1K tokens

⚠ TOOLS.md: 31% truncated — model never sees this content
Increase bootstrapMaxChars in openclaw.json to fix this

Remaining: 112.7K tokens (56%)

clawprobe precisely computes the truncation ratio through static analysis of the injected files under the workspace/ directory. This check runs once at Agent startup and alerts immediately if truncation is found. Last week we just helped a user pinpoint the cause of Claude 3.7’s repeated call failures, his TOOLS.md was 40% truncated, and the model simply couldn’t see the key parameter definitions.

clawprobe compacts: Auditing Context “Forgetting” Events

Every compact is an instance of information loss. This feature lets you see the detailed medical record of the Agent’s “amnesia”:

1
2
3
4
5
6
7
8
9
10
11
$ clawprobe compacts

📦 Compact Events last 5
──────────────────────────────────────────────────

#3 Today 16:22 [agent:main…] 3 messages

👤 "Can you add retry logic to the upload handler?"
🤖 "Done — added exponential backoff with 3 retries. The key change is in…"

→ Archive: clawprobe compacts --save 3

You can use --save to archive key conversations to ~/.clawprobe/archive/ for later recall via RAG in subsequent sessions. We’re experimenting with integration with vector memory libraries like mem0 to achieve automatic semantic archiving of compaction events.

Intelligent Suggestions: A Rule Engine, Not AI Alerts

The suggest command runs a set of hard-coded rules, avoiding the extra cost of LLM introspection:

  • tools-truncation: detects tool-definition truncation
  • high-compact-freq: more than 2 compactions within 30 minutes
  • context-headroom: usage >90%
  • cost-spike: today’s cost > 2x the weekly average
  • memory-bloat: MEMORY.md >10K tokens

The rules file lives at ~/.clawprobe/rules.js and supports hot reload. You can define custom business rules in JavaScript, for example, “alert when dangerous_tool is called more than 5 times.” This is simpler than using PromQL and more reliable than LLM judgment.

Self-Monitoring: The Agent’s “Introspection” Ability

clawprobe’s most radical feature is support for Agent self-monitoring. Installed as a Skill, the Agent can read its own status --json output:

1
2
3
4
5
6
7
8
{
"agent": "main",
"context_used": 87300,
"context_limit": 200000,
"today_cost": 0.67,
"compacts": 2,
"alerts": ["context-headroom"]
}

Based on this data, the Agent can:

  • Proactively ask for user confirmation when cost is >$5
  • Automatically start compaction when context is >80%
  • Refuse to execute and report when a tool is truncated

This is the first step toward building self-aware Agents. The code is open-sourced in the skills/clawprobe directory; PRs to improve the decision logic are welcome.

Performance and Resources: Lighter Than a systemd Service

The clawprobe daemon is based on Node.js’s fs.watch() and setInterval(), with extremely low resource usage:

  • CPU: <1% (triggered only on file changes)
  • Memory: ~28MB (caches the last 1,000 conversation turns)
  • Disk I/O: only reads OpenClaw logs, writes no temp files
  • Network: zero traffic (except for pricing-database updates)

For comparison: to monitor OpenClaw with Prometheus + Grafana, you’d need to:

  1. Modify the OpenClaw source to inject metrics
  2. Deploy node-exporter
  3. Configure Prometheus scrape rules
  4. Design a Grafana dashboard

clawprobe solves this in 200 lines of code.

Open Source and the Future: A Community-Driven Roadmap

The project uses the MIT license, GitHub: github.com/seekcontext/ClawProbe. Everyone is welcome to try it, file PRs, or post suggestions in the “Q&A” board of the OceanBase community.

v1.2.0 will support:

  • Multi-session monitoring: track multiple Agent instances at once
  • WebSocket real-time push: for self-built dashboards to consume
  • MCP protocol integration: fetch metadata from the Model Context Protocol
  • Plugin system: support custom metric collection

We especially welcome two kinds of PRs:

  1. Adding new model pricing data (especially for privately deployed models)
  2. Optimizing the differential algorithm to lower CPU usage when parsing large files

A Final Thought: Transparency Is the Agent’s “Moral Foundation”

Frequently updated large models are pushing Agent capabilities to new heights, but the greater the capability, the greater the risk of losing control. An Agent that can autonomously call tools, read and write files, and consume resources is, without transparency, essentially a black-box process with unlimited permissions. The arrival of clawprobe isn’t just meeting a technical need; it’s an ethical requirement of AI engineering, any autonomous system must be observable, auditable, and constrainable.

Now, close that anxiety-inducing OpenClaw terminal and open a new tab:

1
2
3
npm install -g clawprobe
clawprobe start
clawprobe top

Let your little lobster swim in a glass tank, not struggle in ink. Transparency starts with this one command.


This Saturday (3.28), come to Zhongguancun for an on-site install party and hear frontline founders reveal their operating logic and profit models live (extremely high-value content!).

OpenClaw Ships Yet Another Release — How to Track Every Second of Its Spend in Real Time and Open the Agent "Thinking" Black Box