Phaselock: An AI Agent Control System Inspired by Parenting Techniques

✍️ OpenClawRadar📅 Published: March 30, 2026🔗 Source
Phaselock: An AI Agent Control System Inspired by Parenting Techniques
Ad

Phaselock is an open-source Agent Skill that applies parenting techniques for autistic children to control AI coding agents. The developer observed that vague tasks cause both autistic children and AI agents to misinterpret instructions, leading to incomplete or incorrect execution.

Core Control Mechanisms

The system implements four specific control patterns:

  • Explicit gates before action: Uses a BeforeToolUse hook that checks for an approved gate file on disk. No file, no write. The AI cannot proceed without architectural declaration first.
  • Immediate feedback on mistakes: A PostToolUse hook runs static analysis after every file write (PHPStan, PHPCS, ESLint, ruff, etc.) and injects structured JSON results back into context. The AI sees exactly what broke and corrects itself before moving on.
  • Constrained choices not open options: Complex features are broken into dependency-ordered slices. The AI works one slice at a time, with each slice halting for human review before the next begins.
  • Rules that can't be rationalized away: Enforcement is mechanical via shell hooks that either allow or block. The AI's opinion about its own output is not evidence.
Ad

Technical Details

Phaselock works with Claude Code, Cursor, Windsurf, and anything that supports hooks and agent skills. The domain knowledge is shaped around Magento 2 and PHP, but the enforcement architecture is language-agnostic.

The current implementation has a scaling limitation: it loads all rules into context every session. At 80 rules this is manageable, but at 500 rules you're burning context before the task starts, and at 10,000 rules it's physically impossible.

Future Development: Writ

The developer is building Writ as a solution to the scaling problem. It's a hybrid retrieval system that figures out which rules matter right now and returns only those, achieving sub-10ms response times and 726x context reduction at 10,000 rules. The system is still experimental and undergoing stress-testing.

The developer notes that evaluation remains the hardest unsolved problem. Ground truth queries are synthetic at 80 rules, and it's unclear if retrieval quality holds on real queries from real sessions.

📖 Read the full source: r/ClaudeAI

Ad

👀 See Also

Open-source structural hallucination checker for AI agent pipelines
Tools

Open-source structural hallucination checker for AI agent pipelines

A new open-source tool provides four suppressors to catch structural failures in AI agent pipelines, including grounding enforcement, prompt injection detection, JSON validation, and tool response verification. Available as both a REST API and MCP server with a free tier of 500 requests/month.

OpenClawRadar
RunAnywhere RCLI: On-Device Voice AI Pipeline for Apple Silicon
Tools

RunAnywhere RCLI: On-Device Voice AI Pipeline for Apple Silicon

RunAnywhere has released RCLI, an open-source voice AI pipeline for macOS that runs STT, LLM, and TTS entirely on Apple Silicon devices. The tool uses their proprietary MetalRT inference engine and claims significant performance improvements over existing solutions.

OpenClawRadar
Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews
Tools

Pixel Agents: 24 Specialized Claude Agents for Code, Site, and Resume Reviews

Pixel Agents is a collection of 24 task-specific AI agents built on Claude Sonnet 4.6 API, each with tuned personalities and structured JSON output. The system includes code review, site analysis, resume critique, and startup evaluation agents that provide direct feedback.

OpenClawRadar
ATLAS: Adaptive Test-time Learning Framework Outperforms Claude Sonnet on Coding Benchmarks with $500 GPU
Tools

ATLAS: Adaptive Test-time Learning Framework Outperforms Claude Sonnet on Coding Benchmarks with $500 GPU

ATLAS achieves 74.6% pass@1-v(k=3) on LiveCodeBench with a frozen 14B model on a single consumer GPU, outperforming Claude 4.5 Sonnet's 71.4% at a fraction of the cost using constraint-driven generation and self-verified iterative refinement.

OpenClawRadar