AAH20

Apex Zero Loop — Development skill for Claude Code

Development community

Sub-Millisecond Zero-Iteration Agent Verification and Hoare Logic Kernel in Pure Python.

How to install Apex Zero Loop

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AAH20/apex-zero-loop and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Apex Zero Loop does

Sub-Millisecond Zero-Iteration Agent Verification and Hoare Logic Kernel in Pure Python.

Alternatives in Development

  • Claudes C Compiler — Claude Opus 4.6 wrote a dependency-free C compiler in Rust, with backends targeting x86 (64- and 32-bit), ARM 2.6k ★
  • Claw Code Agent — Claw Code No Rust No TypeScript Only Python 543 ★
  • Apex Architect — Use the @apex-architect agent to help the user with the following architectural or debugging matter: $ARGUMENT 523 ★

README

Apex Zero Loop (AZL)

**Sub-Millisecond Zero-Iteration Agent Verification and Hoare Logic Kernel in Pure Python 3.10+**

[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE) [![Python: 3.10+](https://img.shields.io/badge/Python-3.10%2B-brightgreen.svg)](pyproject.toml) [![Dependencies: Zero](https://img.shields.io/badge/Dependencies-Zero%20(Pure%20Stdlib)-success.svg)](pyproject.toml) [![Tests: 100% Pass](https://img.shields.io/badge/Tests-18%2F18%20Passing-brightgreen.svg)](tests/)

`ai-agents` • `agentic-ai` • `formal-verification` • `guardrails` • `llm-safety` • `infinite-loop` • `hoare-logic` • `autonomous-agents` • `runtime-verification` • `langgraph` • `crewai` • `autogen` • `python` • `zero-dependency`


1. System Architecture

AI coding agents (Hermes, Cursor, Claude Code, Devin) frequently enter expensive retry death loops: generating code, executing it, encountering a runtime exception or contract violation, calling an upstream LLM to fix it, and repeating 5 to 10 times ($0.50 to $2.00 per loop, 30 to 60s latency).

`Apex Zero Loop` eliminates this loop by intercepting agent payloads before execution:

  1. Proving Hoare logic weakest preconditions $\mathrm{wp}(C, Q)$ using pure Python DPLL SAT.
  2. Tracing symbolic runtime hazards (division by zero, None dereferences, KeyErrors) in microseconds.
  3. Auditing agent state machines for deadlocks and livelocks using Tarjan's SCC algorithm.
  4. Synthesizing deterministic local AST patches in sub-500 microseconds without calling any LLM.
flowchart TD
    Agent["AI Coding Agent Payload
(Hermes / Cursor / Claude)"] --> Gate["ZeroLoopGate Interceptor"] subgraph VerificationKernels["Formal Verification Core"] Gate --> AST["Python AST Parser"] AST --> Hoare["Hoare wp Engine
Dijkstra Calculus (237.98 us)"] AST --> SymExec["Symbolic Hazard Tracer
Exception Paths (35.45 us)"] AST --> State["State Machine Auditor
Tarjan SCC (2