Open-source trust scoring hook for Claude Code monitors sessions, blocks protected paths

What this tool does
A developer has released an open-source trust scoring hook for Claude Code that provides visibility into AI agent sessions by scoring them across three dimensions and implementing security controls.
Key features from the source
The hook scores every Claude Code session on three specific dimensions:
- Reliability: Tool success rate
- Scope: Whether Claude Code stayed within allowed tools and paths
- Cost: Number of tool calls relative to task complexity
At the end of each session, you get output like:
[authe.me] Trust Score: 92 (reliability=100 | scope=75 | cost=100) [authe.me] tools=14 violations=1 failed=0
Security and implementation details
The tool includes several security features:
- Blocks access to protected paths like
.envand secret keys via PreToolUse hooks - Hash-chains every event for tamper detection
- Configure tool allowlist and protected paths in
~/.authe/config.json
The implementation is a single Python file with zero dependencies, free and open source. The developer used Claude to architect the hook system, including figuring out which events to listen to, how to pass state between PostToolUse and Stop events, writing the scoring logic and hash chaining, and iterating on the PreToolUse blocking behavior.
Development and testing
The developer tested edge cases with Claude, including .env access and tool failure detection. The repository is available at https://github.com/autheme/claude-code-hook.
Who it's for
Developers running Claude Code in production who need visibility into agent behavior and security controls.
📖 Read the full source: r/ClaudeAI
👀 See Also

Improving Claude Code Sessions with claude-self-improve
Claude-self-improve is a CLI tool that enhances Claude Code's AI performance by analyzing session data and updating memory files automatically.

Custom WhatsApp Channel Plugin for Claude Code Using Baileys
A developer built a custom channel plugin that adds WhatsApp support to Claude Code 2.1.80+ using Baileys v7, implementing the WhatsApp Web Multi-Device protocol as an MCP server with the experimental claude/channel capability.

Browser39: A Headless Web Browser for AI Agents
Browser39 is a headless web browser designed specifically for AI agents that converts web pages to token-optimized Markdown locally, runs JavaScript, manages cookies and sessions, queries the DOM, and fills forms. It's a single binary with no external browser needed, no fees, and no external service.

RelayPlane Open Source Proxy Shows 73% Cost Reduction with Claude Model Routing
RelayPlane, an open source npm-native proxy for the Anthropic API, demonstrated 73.4% cost savings in benchmarks by routing requests to appropriate Claude models based on complexity. The tool reduced cost per 10 requests from $0.0323 to $0.0086 while improving p50 latency from 1.55s to 0.78s.