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

Chrome Extension Adds Live Preview to Claude Code Web
A Chrome extension called Claude Code Preview adds live preview functionality to Claude Code Web, similar to Lovable and other 'vibecoding' sites, allowing side-by-side viewing of deployments.

Free macOS Menu Bar Monitor for Claude AI Usage Limits
A free, open-source macOS tool that displays Claude AI's session usage percentage, weekly limits, and reset countdowns directly in your menu bar. Installs with a single Homebrew command and piggybacks on existing Chrome sessions without storing data.

TeamOut AI Agent for Company Retreat Planning
TeamOut has launched an AI agent that plans company events through conversation, handling venue sourcing, vendor coordination, flight cost estimation, itinerary building, and project management. The system uses multiple LLMs and specialized tools to manage planning as a stateful coordination problem.

SoulPrint: Local Tool for Searching Claude and ChatGPT History Together
SoulPrint is an open-source Python tool that imports conversation exports from Claude (.json) and ChatGPT (.zip) into a local SQLite archive, enabling full-text search across both providers simultaneously with BM25 ranking and highlighted snippets.