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

Session Inspector for Claude Code provides real-time visibility into AI agent operations
Vibeyard, an open-source terminal IDE that wraps Claude Code, has added a Session Inspector feature that provides real-time visibility into Claude Code sessions with timeline tracking, cost breakdowns, tool analytics, and context window monitoring.

TREX: Greptile's AI Code Reviewer That Runs Your Code
TREX is a code execution layer built into Greptile's AI code review. It runs the code and shows screenshots, logs, and traces for bugs static analysis misses.

How Claude Marks AI-Generated Content: Watermarking and Disclosure
Claude marks AI-generated content with watermarks and metadata to ensure transparency and provenance in AI outputs.
Give Your OpenClaw Agent a Phone: Open Source Plugin for Voice Calls
A developer open-sourced a plugin that lets OpenClaw make phone calls. Unlike $20/mo SaaS alternatives, this is free and self-hosted.