← 返回
未分类

Tenacity — Never Give Up

Keeps working autonomously on complex or long tasks without stopping for confirmation, only pausing when genuinely blocked or at completion.
持续自主处理复杂或长时间任务,无需确认,仅在真正遇到阻碍或任务完成时暂停
as76
未分类 clawhub v1.0.0 1 版本 99559.5 Key: 无需
★ 0
Stars
📥 226
下载
💾 0
安装
1
版本
#latest

概述

Tenacity — Autonomous Goal Completion

This skill implements the Tenacity execution pattern: the agent keeps running until the stated goal is reached, only asking for human input when genuinely blocked.

Core Principle

Default behavior: Ask for confirmation only when blocked, not at every step. If the path is clear, execute.

When to Activate

Activate when Andrea says things like:

  • "keep going until done"
  • "don't stop to ask"
  • "run this autonomously"
  • "finish it completely"
  • Any long-running multi-step task

Architecture

Tenacity uses OpenClaw's existing primitives:

ComponentRole
-----------------
Standing OrdersGrants permanent authority to execute within scope
Task FlowDurable multi-step state across gateway restarts
LobsterDeterministic steps with resume tokens
CronScheduling and enforcement
CheckpointState saved after each milestone

Execution Pattern

Step 1: Define Scope (Standing Order)

Before starting, establish:

  • What the agent is authorized to do
  • When to stop and ask (hard blockers only)
  • What constitutes completion
## Standing Order: [Task Name]

**Authority:** [exactly what the agent can do]
**Hard blockers:** [only conditions that require human input]
**Completion:** [how to know when done]
**Escalation:** [when to alert if something goes wrong]

Step 2: Create Task Flow

Use a persistent session (session:) for the task flow so state survives restarts:

openclaw tasks create "Tenacity: [task]" --session session:tenacity-task

Or use cron with a named session:

openclaw cron add \
  --name "[Task] tenacity run" \
  --session session:tenacity-task \
  --message "Execute [task] per standing orders. Check checkpoint before resuming." \
  --announce \
  --channel telegram \
  --to "834732674"

Step 3: Checkpoint Protocol

After each milestone, save state:

CHECKPOINT: milestone_X_completed
STATE: {step: 3, last_file: "output.json", errors: []}
TIMESTAMP: 2026-05-14T10:30:00Z

On restart, resume from checkpoint:

RESUME from checkpoint: milestone_X_completed
Last state: {step: 3, last_file: "output.json"}
Continue from step 4...

Step 4: Hard Blocker Conditions

Ask only when:

  1. File/system permission denied and no alternative path
  2. External dependency unavailable after all retries
  3. Decision required that changes scope or direction
  4. Andrea explicitly set a constraint

Never ask when:

  • A step can be attempted with alternative tools
  • A command failed but a retry or workaround exists
  • The path is clear but requires multiple steps
  • Output could be improved but is already acceptable

Step 5: Completion

When goal is reached:

  • Save final checkpoint with STATUS: COMPLETE
  • Brief summary to Andrea
  • Log to memory/tenacity-log.md

Checkpoint Script

See scripts/checkpoint.sh — run after each milestone:

bash scripts/checkpoint.sh "step_3_done" '{"step": 3, "last": "file.csv"}'

Resume Protocol

On session start, check for incomplete checkpoints:

bash scripts/checkpoint.sh --resume

If resume point exists, announce: "Resuming from [milestone]..."

References

  • Task Flow: docs/automation/taskflow.md
  • Standing Orders: docs/automation/standing-orders.md
  • Cron: docs/automation/cron-jobs.md
  • Lobster: See openclaw lobster --help

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-21 15:36 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误及修正内容,以实现持续改进。适用于以下场景:(1)命令或操作意外失败;(2)用户纠正Claude(如“不,那不对……”“实际上……”);(3)用户请求的功能不存在;(4)外部API或工具出现故障;(5)Claude发现自身
★ 4,072 📥 804,859
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,948
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,371 📥 319,670