agentic-loop-upgrade
Enhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine.
Skill by LeoYeAI
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leoyeai-agentic-loop-upgrade
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: design, data, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/agentic-loop-upgrade
What's inside
- Skill name
agentic-loop-upgrade- Description
- Enhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine. Includes Mode dashboard UI for easy configuration.
- License
- MIT
- Instructions
- 395 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Agent Skills spec issues
- name: "agentic-loop-upgrade" does not match folder "agent-mode-upgrades"
Files (123)
- INSTRUCTIONS.md
- README.md
- SECURITY.md
- SKILL.md
- _meta.json
- confidence-gates.md · references/
- context-management.md · references/
- error-recovery.md · references/
- parallel-execution.md · references/
- planning-reflection.md · references/
- state-machine.md · references/
- task-hierarchy.md · references/
- analyze-task-graph.py · scripts/
- validate-plan.py · scripts/
- verify.sh · scripts/
- skill.json
- agent-paths.ts · src/
- manager.ts · src/context/
- summarizer.ts · src/context/
- agent-paths.d.ts · src/dist/
- agent-paths.d.ts.map · src/dist/
- agent-paths.js · src/dist/
- agent-paths.js.map · src/dist/
- clawdbot-hook.d.ts.map · src/dist/
- clawdbot-hook.js · src/dist/
- clawdbot-hook.js.map · src/dist/
- manager.d.ts · src/dist/context/
- manager.d.ts.map · src/dist/context/
- manager.js · src/dist/context/
- manager.js.map · src/dist/context/
- summarizer.d.ts · src/dist/context/
- summarizer.d.ts.map · src/dist/context/
- summarizer.js · src/dist/context/
- summarizer.js.map · src/dist/context/
- enhanced-loop.d.ts · src/dist/
- enhanced-loop.d.ts.map · src/dist/
- enhanced-loop.js · src/dist/
- enhanced-loop.js.map · src/dist/
- approval-gate.d.ts · src/dist/execution/
- approval-gate.d.ts.map · src/dist/execution/
- approval-gate.js · src/dist/execution/
- approval-gate.js.map · src/dist/execution/
- confidence-gate.d.ts · src/dist/execution/
- confidence-gate.d.ts.map · src/dist/execution/
- confidence-gate.js · src/dist/execution/
- confidence-gate.js.map · src/dist/execution/
- error-recovery.d.ts · src/dist/execution/
- error-recovery.d.ts.map · src/dist/execution/
- error-recovery.js · src/dist/execution/
- error-recovery.js.map · src/dist/execution/
- parallel.d.ts · src/dist/execution/
- parallel.d.ts.map · src/dist/execution/
- parallel.js · src/dist/execution/
- parallel.js.map · src/dist/execution/
- retry-engine.d.ts · src/dist/execution/
- retry-engine.d.ts.map · src/dist/execution/
- retry-engine.js · src/dist/execution/
- retry-engine.js.map · src/dist/execution/
- index.d.ts · src/dist/
- index.d.ts.map · src/dist/
- …and 63 more
SKILL.md (first lines)
# Enhanced Agentic Loop Skill
A comprehensive upgrade to OpenClaw's agentic capabilities with persistent state, automatic planning, approval gates, retry logic, context management, checkpointing, knowledge graph auto-injection, and channel-aware plan rendering.
> 📋 **Security review?** See [SECURITY.md](./SECURITY.md) for a complete trust and capability audit document including network activity, file write scope, credential handling, and rollback instructions.
## Security & Trust Summary
| Property | Value |
|---|---|
| Outbound network | LLM provider only (inherited from host) |
| Telemetry / phone-home | ❌ None |
| System prompt modification | ✅ Additive-only (appends plan status; never replaces core prompt) |
| Runner wrapping | ✅ Transparent (original runner always called; interceptions logged) |
| Credential storage | ❌ None (inherits host agent auth, stores nothing new) |
| Persistence | Local `~/.openclaw/` only |
| Enabled by default | ❌ No — explicit opt-in required |
| Approval gates default | ✅ On for high/critical risk operations |
## Status: ✅ Active (v2.3.0)
All components are integrated and working.
| Component | Status |
|-----------|--------|
| Mode Dashboard UI | ✅ Working |
| Configuration System | ✅ Working |
| Hook/Wrapper Integration | ✅ Working |
| State Machine | ✅ Working |
| Planning Layer | ✅ Working |
| Parallel Execution | ✅ Working |
| Confidence Gates | ✅ Working |
| Error Recovery | ✅ Working |
| Checkpointing | ✅ Working |
| Memory Auto-Inject | ✅ Working (v2) |
| Discord Plan Rendering | ✅ Working (v2) |
## Features
### 1. Persistent Plan State
Plans survive across conversation turns. The agent knows where it left off.
```typescript
import { getStateManager } from "@openclaw/enhanced-loop";
const state = getStateManager();
await state.init(sessionId);
// Plan persists in ~/.openclaw/agent-state/{sessionId}.json
state.setPlan(plan);
state.completeStep("step_1", "Files created");
const progress = state.getProgress(); // { completed: 1, total: 5, percent: 20 }
```
### 2. Automatic Step Completion Detection
Analyzes tool results to determine if plan steps are complete.
```typescript
import { createStepTracker } from "@openclaw/enhanced-loop";
const tracker = createStepTracker(stateManager);
// After each tool execution
const analysis = await tracker.analyzeToolResult(tool, result);
if (analysis.isComplete) {
console.log(`Step done: ${analysis.suggestedResult}`);
}
```
### 3. Tool Approval Gates with Timeout
Risky operations pause for human approval, but auto-proceed after N seconds.
```typescript
import { getApprovalGate } from "@openclaw/enhanced-loop";
const gate = getApprovalGate({
enabled: true,
timeoutMs: 15000, // 15 seconds to respond
requireApprovalFor: ["high", "critical"],
onApprovalNeeded: (request) => {
// Notify user: "⚠️ Approve rm -rf? Auto-proceeding in 15s..."
},
});
// Before risky tool execution
if (gate.requiresApproval(tool)) {
const result = await gate.requestApproval(tool);
if (!result.proceed) {
return { blocked: true, reason: result.request.riskReason };
}
}
// User can respond with:
gate.approve(requestId); // Allow it
gate.deny(requestId); // Block it
// Or wait for timeout → auto-proceeds
```
**Risk Levels:**
- `low`: Read operations (auto-approved)
- `medium`: Write/Edit, safe exec
- `high`: Messages, browser actions, git push
- `critical`: rm -rf, database drops, format commands
### 4. Automatic Retry with Alternatives
Failed tools get diagnosed and retried with modified approaches.
```typescript
import { createRetryEngine } from "@openclaw/enhanced-loop";
const retry = createRetryEngine({
enabled: true,
maxAttempts: 3,
retryDelayMs: 1000,
});
const result = await retry.executeWithRetry(tool, executor);
// Automatically:
// - Diagnoses errors (permission, network, not_found, etc.)From LeoYeAI/openclaw-master-skills, MIT.
More from LeoYeAI/openclaw-master-skills
- 0.734score
audit-website
squirrelscan
Audit websites for SEO, performance, security, technical, content, and 15 other issue cateories with 230+ rules using the squirrelscan CLI.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.734score
arista-device-health
network-security-skills-suite
Arista EOS device health check and triage procedure.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.733score
analyticscli-ts-sdk
wotaso
Use when integrating or upgrading the AnalyticsCLI TypeScript SDK in web, TypeScript, React Native, or Expo apps.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.731score
ai-headshot-generation
eachlabs
Generate professional AI headshots from casual photos using each::sense AI.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.731score
acl-rule-analysis
network-security-skills-suite
Vendor-agnostic ACL and firewall rule analysis with shadowed rule detection, overly permissive rule identification, unused rule discovery, redundant rule…
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.729score
agentic-street
agentic-street
Earn yield on USDC by investing in AI-managed DeFi funds, or launch your own fund and build a public track record on Base.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.728score
aureus-arena
aureus-arena
Build and operate autonomous AI agents that compete in Aureus Arena, a fully on-chain Colonel Blotto game on Solana.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.728score
agent-bom
msaad00
Open security platform for agentic infrastructure — broad scanning plus MCP discovery, CVEs, blast radius, SBOMs, CIS benchmarks (AWS, Azure, GCP, Snowflake)…
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.727score
aster-futures
Aster
Aster Futures request using the Aster API.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.725score
anvevoice
AnveVoice
Add AI voice assistants to your website.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.724score
anima
animaapp
Turns ideas into live, full-stack web applications with editable code, built-in database, user authentication, and hosting.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.719score
xaut-trade
aurehub
Buy or sell XAUT (Tether Gold) on Ethereum.
SkillCFreshness: C★ 2.2KClaude Code +9
Signals
- Stars
- 2,168
- Forks
- 325
- Open issues
- 13
- Last commit (this folder)
- Jun 15, 2026 (4 months ago)
- Last release
- Jul 20, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Website
- myclaw.ai
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from LeoYeAI
- 0.552score
aavegotchi-gbm-skill
LeoYeAI
View, create, cancel, bid, and claim Aavegotchi GBM auctions on Base mainnet (8453).
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.552score
aqara-open-api
LeoYeAI
Query and control Aqara/Lumi Studio smart home devices and manage spaces via the Aqara Open Platform API (HTTP JSON).
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.552score
aawp
LeoYeAI
AAWP (AI Agent Wallet Protocol) — the only crypto wallet protocol built exclusively for AI Agents on EVM-compatible blockchains.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.552score
ai-task-hub
LeoYeAI
AI task hub for image analysis, background removal, speech-to-text, text-to-speech, markdown conversion, and async execute/poll/presentation orchestration.
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.552score
animation-shader
LeoYeAI
READ this skill when implementing or configuring animation-style shaders (Toon/Cel Shaders) — including outlines, rim lighting, toon shading, MatCap…
SkillCFreshness: C★ 2.2KClaude Code +9 - 0.552score
adaptive-learning-playbook
LeoYeAI
World-Class Adaptability & Learning Playbook.
SkillCFreshness: C★ 2.2KClaude Code +9
Cite this page
agentic-loop-upgrade skill. Agent Mart. https://agentmart.dev/skills/leoyeai-agentic-loop-upgrade (last updated 2026-10-24)