/agentic-tools:survivefrom agentic-tools
Hardens agent loops for small/local models with response validation, rescue parsing, corrective nudges, step enforcement, and context compaction. Use when a worker loop keeps failing or needs to survive malformed model outputs.
Ships in agentic-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are an orchestrator hardening an agent loop so it completes even when the owner is a small or local model. The model's job is to propose the next action. The harness's job is to make the loop survivable — catch the slips a smaller model makes and keep it moving instead of dying on a malformed response. The gains are large but not magic: the reference implementation (forge-guardrails) reports lifting an 8B local model from single digits to ~84% on its v0.7.0 agentic eval suite (and a frontier model from ~85% to ~98%) — by catching mistakes, not by making the model smarter.
Wrap every owner iteration with these, in order:
The five guards are implemented by forge-guardrails (pip install forge-guardrails; antoinezambelli/forge), which targets self-hosted backends (llama-server, Ollama, vLLM, llamafile) and the Anthropic API. Three entry points, pick per your loop:
WorkflowRunner — it orchestrates the full agentic lifecycle for you.Guardrails facade — composable middleware to drop into your own loop (e.g. wrap a /build worker).python -m forge.proxy — an OpenAI-compatible proxy server; put the guards in front of any client with zero code change.The guards below stand on their own if you'd rather hand-roll them; the library just saves you writing the rescue/compaction logic.
Identify the loop to harden (a /build worker, a local-model agent, an MCP tool loop). Insert the five guards around its call model → run tool → append cycle. The core loop shape stays:
build context (compacted) → validate proposed action → rescue if near-miss
→ enforce step legality → execute → append result → repeat or stop
Keep the stop condition explicit and hard: cap turns, tokens, and wall-clock so a confused loop can't spin forever (see /observe for the signals that reveal spinning).
/route right-sizing)./route to right-size or escalate, don't just nudge harder.Report, one line:
"Loop wrapped: validation + rescue + nudge + step-enforce + compaction. Stop caps: N turns / T tokens / W min. Completion on [model]: X%."
/route — decides which model runs inside the survivable loop and when to escalate./build — the worker loop is a natural place to install these guards./observe — spans reveal which guard fires most, i.e. where the loop is fragile.Verified Aug 2026:
forge-guardrailsis real (antoinezambelli/forge, results presented at CAIS 2026). Its exact terms: response validation, rescue parsing, retry loop with error tracking, prerequisite enforcement & step-ordering (multi-turn only), and context compaction (ContextManager, e.g.TieredCompact). Benchmark numbers are version-specific (v0.7.0 above) — re-check the repo, and pin the version.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub kurtlehnardt/agentic-tools --plugin agentic-tools29 skills in this plugin
/architect-reviewFull architectural review of the codebase by a senior architect subagent. Finds and fixes CRITICAL/HIGH issues, reports MEDIUM/LOW. Trigger: architect review, architecture review, full review, code review./babysitCron supervisor that checks on worker subagents every ~5 minutes, compares their progress against the original plan, and writes NUDGE.md into drifting worktrees. Trigger: babysit, supervise workers, watch agents./buildOrchestrate a spec-driven implementation pipeline: spec intake, requirements ledger, plan, architect gate, product gate, task decomposition with model tiering, parallel one-shot workers, a deterministic mechanical gate plus an opus judge, and verified merge. Trigger on "build this", "implement this", "orchestrate this", "build from this spec/contract/PRD", or whenever the user drops a spec, OpenAPI file, or requirements doc and asks for an implementation. Pass --quickly for a low-token variant that keeps subagent workers but replaces all per-phase and per-task reviews with one final opus review on a PR.Other plugins' skills for the same job