Skip to content
AI IntelligenceSep 22, 2026Practical Tip
Article

Claude Code uses local JSON files and Unix sockets for messaging

Frontier EditorialSource: Reddit r/ClaudeAI
01

Source Brief

Claude Code uses local JSON files and Unix sockets for messaging

02

Practical Tip

1. Navigate to the ~/.claude/sessions/ directory on your system to view active Claude Code session JSON files.
2. Inspect the JSON files to find the 'messagingSocketPath' and 'pid' for each active session.
3. Connect to the specified Unix socket path using a tool like netcat to observe or send newline-delimited JSON messages.