TrustLog Dynamics: Python Daemon Uses Bond Math to Kill Rogue AI Agents

TrustLog Dynamics is an open-source Python daemon that monitors AI agent API costs in real time and terminates rogue processes using detection methods borrowed from quantitative finance. The tool addresses the problem of AI agents spending money continuously without oversight, drawing inspiration from trading floor circuit breakers.
Detection Methods
The daemon uses two specific detection algorithms:
- Convexity detection (
d²C/dt² > 0) — borrowed from fixed-income risk management. When cumulative cost accelerates over time (snowballing), the daemon kills the agent at the inflection point. - Zero-variance detection (
σ² < ε) — borrowed from statistical process control. When rolling cost variance drops to near zero, indicating the agent is stuck in a mechanical loop, the daemon severs the connection.
Testing Results
The developer tested TrustLog Dynamics live against two AI models:
- Claude 4.6 Sonnet (context window explosion) — caught and terminated
- Gemini 3.1 Pro (retry loop) — caught and terminated
Both interceptions were recorded on video: Claude intercept and Gemini intercept.
Installation and Deployment
The tool requires three commands to install and runs as a systemd daemon. It's released under MIT license with source code available at GitHub.
The developer positions this as a financial governance layer for AI agents, inspired by NVIDIA's NemoClaw for network security and Jensen Huang's recent comments about OpenClaw strategies. The approach uses mathematics that has been protecting capital markets for decades.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Using an MCP Server to Optimize React Native Apps with Claude Code
An MCP server streams live runtime data from a React Native app into Claude Code, identifying performance issues like Zustand store thrashing and unnecessary re-renders.

MCP Server for Semantic Search in Obsidian Vaults
A developer built an MCP server that indexes Obsidian vaults into Qdrant with local embeddings, enabling semantic search instead of keyword matching. It chunks markdown by headings, uses BAAI/bge-small-en-v1.5 embeddings, and works with Claude Code, Cursor, Windsurf, or any MCP client.

Claude Code v2.1.143: Plugin Dependency Enforcement, PowerShell Defaults, and Background Session Fixes
Anthropic released Claude Code v2.1.143 with plugin dependency enforcement, PowerShell -ExecutionPolicy Bypass, new worktree isolation option, and numerous fixes for background sessions, Windows Terminal, and macOS file access.

Open-source Claude Code skill /unzuck curates social media feeds into dashboard
A free, open-source Claude Code skill called /unzuck scans feeds across Hacker News, Reddit, LinkedIn, YouTube, Twitter/X, Instagram, and Facebook in parallel using browser automation, scores items against user interest profiles, and generates interactive HTML dashboards.