Local Behavioral Monitoring System with MCP Pipeline and Claude Code

A developer has implemented a persistent local behavioral monitoring system that tracks computer usage and feeds data to Claude Code through a custom MCP (Model Context Protocol) server. The system, called BRAIN, collects data on app switches, file operations, and development sessions entirely locally without cloud dependencies.
System Architecture and Components
The stack consists of:
- Python for the core implementation
- Custom MCP server for data piping
- Claude Code as the primary AI interface
- Haiku-powered local chatbot (referred to as BBC)
- CSV data lake for storage
- All components running 100% locally with zero cloud usage
Key Functionality and Testing Results
During Day 4 of real testing, the system demonstrated resilience when tokens expired and the MCP went offline. The pipeline continued collecting data silently in the background. When Claude reconnected, it executed a boot protocol that:
- Pulled 3 days of summaries from the offline period
- Read the event inbox
- Cross-referenced BBC (Haiku-powered chatbot) conversation logs
- Rebuilt full context in under 60 seconds
The system eliminates manual catch-up processes and "what did I miss?" scenarios by maintaining continuous context awareness. The Claude Code terminal runs in Portuguese as part of the developer's workflow navigation setup.
Philosophical Approach
The developer emphasizes that the AI observes behavior without judging it, maintaining a concept where "the human always owns the deploy, not the machine." The architecture and AI report are shared as a fable on GitHub, with daily updates to the ongoing story.
📖 Read the full source: r/ClaudeAI
👀 See Also

LLM Skirmish: A Real-Time Strategy Game Benchmark for AI Coding Agents
LLM Skirmish is a benchmark where AI agents write code to play 1v1 real-time strategy games against each other. It uses a modified Screeps API and tests in-context learning across five tournament rounds.

Forge: Turn a Mac or Linux Machine into an Always-On Dev Host for AI Coding Agents
Forge is an open-source tool that installs a daemon to turn any Mac or Linux machine into a permanent, always-on development host. It keeps AI coding agents running when you walk away, provides a web dashboard for monitoring, and uses Tailscale for secure remote access via SSH.

Open Source Dashboard Reveals Actual Claude Code Compute Costs
A developer reverse-engineered Claude Code's rate limit formula to build a local dashboard that shows real-time usage percentage, actual dollar costs, burn rate, peak hours, and which skills/hooks are firing. The tool revealed a $100/month plan consumed $13,286 in equivalent API compute in one month.

Open Source Browser Tool for Testing MCP Servers Without Installation
An open source web tool called MCP Playground lets developers test MCP servers directly in their browser using WebContainers, a WASM Node.js runtime. It can run npm-based MCP servers locally without backend installation and connect to remote servers via URL.