Apex Zero Loop — Development skill for Claude Code
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) [](pyproject.toml) [-success.svg)](pyproject.toml) [](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:
- Proving Hoare logic weakest preconditions $\mathrm{wp}(C, Q)$ using pure Python DPLL SAT.
- Tracing symbolic runtime hazards (division by zero, None dereferences, KeyErrors) in microseconds.
- Auditing agent state machines for deadlocks and livelocks using Tarjan's SCC algorithm.
- 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
Related Skills
Terminal Arcade
A retro arcade for your terminal — pure Python, zero deps, curses-based. Six games + interactive bookshelf, pl
Watercolor SVG
Programmatic watercolor paintings as pure SVG — fractal edges, stacked multiply washes, arc-segment dry-edge d
Claude Code Phone Gateway
Keep claude remote-control alive on Windows so the Claude mobile app can start local Claude Code sessions on y
3D File Toolkit
Pure-Python toolkit for inspecting, editing, converting, and analyzing 3D print files, supports 3MF, STL, OBJ,
Sky Claude Hud
A lightweight two-line statusline for Claude Code that works over SSH and in terminals like Xshell — pure Pyth
Offline Telemetry Script
Offline analyzer for Claude Code session transcripts (~/.claude/projects/.jsonl). Pure-stdlib Python, no API c
Related Agents
Iteration Guard
The verify gate of the Logic-Lens iteration loop. Given a baseline iteration and a candidate iteration, compar
Review Bug
Review: Bug/Logic Error Detection (coverage-first) — report all findings with confidence and severity tags; do
Doc Validator
Use when a brainstorming spec names or implies any library, SDK, framework, language version, or external API