agentic-loop-upgrade
БесплатноЗапускает вложенные скриптыНе проверенEnhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine. Includes Mode dashboard UI…
от modbender★ 21 звезда на GitHubОб этом скилле
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 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.
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.
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.
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 exechigh: Messages, browser actions, git pushcritical: rm -rf, database drops, format commands
4. Automatic Retry with Alternatives
Failed tools get diagnosed and retried with modified approaches.
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.)
// - Applies fixes (add sudo, increase timeout, etc.)
// - Retries with exponential backoff
5. Context Summarization
Automatically summarizes old messages when context grows long.
import { createContextSummarizer } from "@openclaw/enhanced-loop";
const summarizer = createContextSummarizer({
thresholdTokens: 80000, // Trigger at 80k tokens
targetTokens: 50000, // Compress to 50k
keepRecentMessages: 10, // Always keep last 10
});
if (summarizer.needsSummarization(messages)) {
const result = await summarizer.summarize(messages);
// Replaces old messages with summary, saves ~30k tokens
}
6. Checkpoint/Restore
Save and resume long-running tasks across sessions.
import { getCheckpointManager } from "@openclaw/enhanced-loop";
const checkpoints = getCheckpointManager();
// Create checkpoint
const ckpt = await checkpoints.createCheckpoint(state, {
description: "After step 3",
trigger: "manual",
})
Установить agentic-loop-upgrade в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл agentic-loop-upgrade?
Enhanced agentic loop with planning, parallel execution, confidence gates, semantic error recovery, and observable state machine. Includes Mode dashboard UI for easy configuration.
Как установить скилл agentic-loop-upgrade?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл agentic-loop-upgrade запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic