← Reddit

Stop asking Claude Code what it just did. I built an open-source MCP server that feeds its recorded execution trail back into context.

Reddit · rohynal · August 10, 2026
A developer built Sentience Governor, an open-source MCP server for Claude Code that records tool execution trails and evaluates them against declared objectives and scope. The system provides independent verification of what Claude Code actually performed by feeding execution records back into context through MCP, separating agent intentions from recorded actions from retrospective explanations. Currently the tool observes and reports on actions without enforcing restrictions, and its creator is exploring what actions should be trustworthy to block or remain advisory.

Detailed Analysis

A developer has released Sentience Governor, an open-source MCP (Model Context Protocol) server designed to solve a specific reliability problem in Claude Code: the inability to independently verify what an AI agent actually did during a long agentic session. The tool's creator noticed that when asking Claude Code to summarize its own work, the response was effectively a reconstruction pulled from the same context window that performed the work in the first place — not an independent audit trail. Sentience addresses this by observing and recording tool activity as it happens, then evaluating that record against an objective and scope Claude declares before it begins working. The latest release exposes this recorded execution trail back to Claude through MCP, allowing developers to query the actual session history from within Claude Code rather than relying on the agent's potentially reconstructed or biased self-report.

The core architectural insight here is the separation of three distinct things that are normally conflated: what an agent says it intends to do, what it actually did (as captured by an external observer), and what it later claims happened. By requiring Claude to declare an objective and scope upfront, Sentience creates a baseline that subsequent actions can be checked against — turning the recorded execution trail, rather than the agent's retrospective explanation, into the source of truth. Notably, the tool's creator is careful to flag that intent declarations themselves aren't automatically trustworthy, since Claude could still declare a scope that's too broad or simply incorrect. This is a meaningful distinction: Sentience isn't claiming to make Claude's plans more accurate, only to make the record of what happened afterward independently verifiable rather than self-reported.

This development sits within a broader and increasingly urgent conversation about observability, auditability, and trust in autonomous coding agents. As tools like Claude Code are given longer leashes — multi-step, multi-tool agentic sessions that can span dozens of file edits, shell commands, and API calls — the gap between what an agent claims to have done and what it actually did becomes a real operational risk, especially in production or team environments where a single hallucinated or omitted action could cause downstream damage. The MCP protocol itself, which Anthropic introduced to standardize how external tools and data sources plug into Claude, is proving to be fertile ground for exactly this kind of third-party infrastructure: rather than waiting for Anthropic to build in-house observability tooling, developers are using MCP's open extensibility to build accountability layers on top of Claude Code themselves.

Currently, Sentience is purely observational — it records and reports but does not block or intervene in agent actions, and it requires no account, running entirely local-first under an Apache 2.0 license. The creator's next open question, posed directly to the community, is whether and how the tool should move from advisory to enforcement: should it actively block writes outside a declared scope, halt destructive shell commands, or prevent an agent from proceeding without first declaring intent? This positions Sentience at the front edge of a natural progression in agentic tooling — from passive logging, to verifiable audit trails, to active guardrails — a trajectory that mirrors broader industry efforts (including Anthropic's own work on Constitutional AI and agent safety) to constrain increasingly autonomous AI systems not just through better training, but through external structural checks that don't depend on the model's own self-reporting being accurate.

Read original article →