Cold Validation Architecture: Dual-Agent Code Review System Open-Sourced

Cold Validation Architecture is an open-source system that implements dual-agent validation for AI-generated code. One agent writes the code, while a separate agent reviews it independently without access to the builder's reasoning or context.
How It Works
The system addresses single-agent self-review bias by applying separation of duties similar to independent audits. The reviewer operates in complete isolation from the builder's thought process.
Workflow Phases
- Write plan →
/review-plan(Gate A) - Implement →
/review-impl(Gate C) - Ship →
/acceptance-report(Gate D)
Key Implementation Details
- The reviewer runs in an isolated temporary directory
- Reviewer only sees: plan document, code diff, and test output
- Findings persist with fingerprints for tracking
- Builder can disagree with reviewer's rationale
- Maximum 2 rounds per phase
- Built with bash scripts and JSON schemas
- Currently works with Claude Code + Codex CLI
- Pattern is agent-agnostic (can work with different AI agents)
Technical Specifications
The system is implemented as bash scripts that coordinate between two separate AI agents. JSON schemas define the structure for plan documents, code reviews, and acceptance reports. The isolated execution environment ensures the reviewer has no access to the builder's internal reasoning or intermediate steps.
This approach is useful for developers who want to implement more rigorous validation for AI-generated code, particularly when working with complex systems where single-agent self-review might introduce confirmation bias.
📖 Read the full source: r/LocalLLaMA
👀 See Also

Two New Open Source Tools for AI Agent Security and Optimization
Two open source tools are available for AI agent developers: AI Agent Defense Kit provides runtime security skills, and AgentGuard (in development) offers cost tracking, security scanning, and activity monitoring.

Dual-model architecture reduces token consumption by half for long conversations
A developer built a dual-model system where a small 'subconscious' model compresses conversation history in the background, allowing the main model to work with a curated ~35K context instead of 120K tokens of raw history. This architecture cuts token consumption roughly in half for sustained project work.

Caveman: A Claude Code Skill That Cuts 75% of Tokens by Using Caveman-Style Speech
Caveman is a Claude Code skill that reduces token usage by approximately 75% by making Claude respond in a concise, caveman-like style while maintaining full technical accuracy. It's installed via npx or the Claude plugin marketplace.

Relational Memory for LLMs: Three-Layer System Models User Relationships
An open-source Python tool that adds relational memory to LLMs by modeling user-AI relationships across seven psychological dimensions, using a three-layer narrative structure instead of flat fact storage.