4-Pane iTerm2 Setup for Claude Code CLI Separates AI Roles

Problem and Solution
A developer using Claude Code CLI encountered two persistent issues: context drift where sessions become messy and lose thread after dozens of turns, and self-grading bias where a single model both implements and audits its own code, leading to silent failures.
The solution is a four-pane iTerm2 terminal arrangement with each pane dedicated to a specific role, built specifically for Claude Code.
Pane Configuration
- AUDIT (Opus, read-only): Adversarial review only, enforced so it can't write files
- IMPL (Sonnet): Implementation and running tests
- PROMPT: Prompt engineering and iteration, separate from code
- PLAN: Architecture discussions and documentation, zero file-writes
Technical Implementation
A cc alias in each pane launches Claude with the right model, effort level, and permissions automatically. The setup uses $ITERM_PROFILE (set natively by iTerm2) rather than a custom environment variable, so it survives crashes and window arrangement restores without extra ceremony.
The developer has published a free guide with complete implementation details including .zshrc snippets at pravindurgani.github.io/claude-code-multipane-iterm2/.
📖 Read the full source: r/ClaudeAI
👀 See Also

Noren AI: Voice Extraction Tool Identifies Writing Patterns from Samples
Noren AI analyzes 5-10 writing samples to automatically generate a voice guide based on actual patterns, matching 90% of manually identified patterns and discovering additional ones.

Watchtower: A Local Proxy for Monitoring Claude Code API Traffic
Watchtower is a free, open-source tool that acts as a local HTTP proxy and real-time web dashboard to intercept and display all API traffic between Claude Code (or Codex CLI) and their APIs. It shows requests, SSE streams, tool definitions, system prompts, token usage, and rate limits.

How to Move or Rename Claude Code Project Folders Without Losing Session History
Claude Code stores session history using absolute project paths, so moving or renaming folders with mv breaks session access. The clamp tool fixes this by migrating session data to match new paths.

The Log Is the Agent: Event-Sourced Graphs for Auditable, Forkable AI Systems
ActiveGraph inverts typical agent frameworks: an append-only event log is the source of truth, and a deterministic graph projection reacts to changes and emits events. This enables replay, forking, and full lineage without bolted-on memory.