The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Humsana MCP listing page.
Cognitive Security for AI-assisted development.
🛡️ "The breathalyzer for your terminal."
Humsana prevents you from running dangerous commands or accepting large AI code rewrites when you're fatigued. Think of it as an industrial safety interlock, but for your brain.
safe_execute_command)| Situation | Result |
|---|---|
You're fresh, running ls | ✅ Runs normally |
You're fresh, running rm -rf | ⚠️ Warning, allowed |
You're tired, running rm -rf | ⛔ BLOCKED — requires override |
safe_write_file)| Situation | Result |
|---|---|
| AI writes new file | ✅ Allowed |
| AI rewrites 10 lines | ✅ Allowed |
| You're tired + AI deletes 30+ lines | ⚠️ Warning |
| You're tired + AI deletes 50+ lines | ⛔ BLOCKED — saved for review |
Keep this running in a terminal tab.
Create/edit ~/Library/Application Support/Claude/claude_desktop_config.json:
Quit (Cmd+Q) and reopen.
Ask Claude: "What's my current state?"
Humsana starts in dry-run mode for safety. Commands are simulated, not executed.
When you trust the system, enable real execution:
Step 1: Create/edit ~/.humsana/config.yaml:
Step 2: Restart Claude Desktop (Cmd+Q, reopen)
Step 3: Test with a safe command first:
You should see actual output instead of "WOULD have been executed."
Create ~/.humsana/config.yaml:
When blocked, say:
Example:
This is logged to ~/.humsana/audit.json and sent to your webhook.
| Tool | Purpose |
|---|---|
get_user_state | Get current stress, focus, fatigue levels |
check_dangerous_command | Check if a command would be blocked |
safe_execute_command | Execute shell commands with interlock |
safe_write_file | Write files with AI rewrite protection |
| Path | Purpose |
|---|---|
~/.humsana/signals.db | Behavioral data from daemon |
~/.humsana/config.yaml | Your configuration |
~/.humsana/activity.json | Activity heartbeats (for fatigue) |
~/.humsana/audit.json | Safety event log |
~/.humsana/pending_reviews/ | Blocked AI writes saved here |
🔒 100% Local.
Start the daemon in a terminal:
Check your mode:
If it says dry_run, change to live and restart Claude.
Verify your Claude Desktop config path:
~/Library/Application Support/Claude/claude_desktop_config.jsondist/index.js is correctMIT