Skip to content
Agentmart
Submit a tool

agentic-loop-upgrade

Enhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine.

Skill by LeoYeAI

IndexedMIT★ 2,168
Write a review

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.

We use your email only for this newsletter. Privacy

About

Enhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine. Includes Mode dashboard UI for easy configuration.

Use cases: design, data, agent-building

No 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

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

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from LeoYeAI

Cite this page

agentic-loop-upgrade skill. Agent Mart. https://agentmart.dev/skills/leoyeai-agentic-loop-upgrade (last updated 2026-10-24)