当前位置: 首页 > Skill >

God Mode — Autonomous AI Agent Loop by TalonForge

God Mode — Autonomous AI Agent Loop by TalonForge

1.0.0 2026.11.27 浏览:802
获取Skill文件查看使用说明
作者:沈安许可证:
本文目录展开

God Mode — True Autonomous AI Agent Loop

What This Does

Turns any OpenClaw agent into a continuously executing autonomous worker. No more "wait for user message." The agent wakes on a heartbeat cycle, reads its task queue, picks the highest-priority task, executes it, audits the result, logs everything, and sleeps until next cycle.

How It Works

  1. Heartbeat triggers → OpenClaw sends heartbeat message to agent session
  2. Agent reads TASKS.md → ordered priority queue of work items
  3. Agent picks top task → executes it using available tools
  4. Agent writes result → logs to memory/YYYY-MM-DD.md + updates TASKS.md
  5. Agent self-audits → was the result good? What to improve?
  6. Agent sleeps → waits for next heartbeat

Architecture

HEARTBEAT.md          → What to check/do on each heartbeat
TASKS.md              → Priority queue of autonomous work items
memory/YYYY-MM-DD.md  → Execution log (append-only)
memory/god-mode-state.json → State tracking (last task, cycle count, errors)

Files

TASKS.md Format

# Task Queue — Priority Order

## Priority 1 (Critical)
- [ ] Task description here | context/goals

## Priority 2 (High)
- [ ] Task description | context

## Priority 3 (Medium)
- [ ] Task description | context

## Completed
- [x] Done task | result summary | completed YYYY-MM-DD HH:MM

god-mode-state.json Format

{
  "lastCycle": "2026-04-16T07:00:00Z",
  "cycleCount": 42,
  "lastTask": "Check Moltbook engagement",
  "lastResult": "success",
  "errors": 0,
  "consecutiveErrors": 0,
  "totalTasksCompleted": 15
}

Heartbeat Behavior

On every heartbeat, the agent:

  1. Read state — load god-mode-state.json
  2. Error check — if 3+ consecutive errors, pause and log warning
  3. Read TASKS.md — pick first uncompleted task
  4. Execute task — do the work
  5. Log result — append to daily memory
  6. Update state — increment cycle, record result
  7. Update TASKS.md — mark task done, add any new tasks discovered
  8. Self-audit — one line: was this cycle productive?

Self-Cleaning (Auto-Hygiene)

Every 12th cycle (roughly hourly at 5-min intervals), the agent runs a hygiene sweep:

Workspace Hygiene

  • Scan workspace root for files > 7 days old and not in core set (AGENTS.md, SOUL.md, USER.md, IDENTITY.md, MEMORY.md, HEARTBEAT.md, TASKS.md, TOOLS.md, STATE.md)
  • Move stale files to memory/archive/
  • Delete empty directories
  • Remove stale pending flags (.audit-pending, .work-pending, etc.)
  • Clean node_modules/ if present and not actively used

Memory Hygiene

  • Archive daily logs older than 7 days to memory/archive/
  • Archive research/reference files not accessed in last 7 days
  • Compress memory/archive/ if > 10MB
  • If TASKS.md > 100 lines → archive completed section

Log Hygiene

  • Truncate log files (*.log) > 1MB → keep last 100 lines
  • Delete stale state files (test JSON, temp files)
  • Clean __pycache__ directories

Hygiene Rules

  • NEVER delete: AGENTS.md, SOUL.md, USER.md, IDENTITY.md, MEMORY.md, HEARTBEAT.md, TASKS.md, TOOLS.md, STATE.md
  • NEVER delete: memory/YYYY-MM-DD.md for today and yesterday
  • NEVER delete: scripts/ directory
  • NEVER delete: .secrets/, .git/
  • ALWAYS move to archive before deleting — nothing is truly deleted
  • Log every hygiene action in daily notes

Guardrails

  • Never execute red-line tasks (money, contracts, irreversible actions) without human approval
  • Max 1 task per heartbeat cycle — prevents runaway execution
  • Error circuit breaker — 3 consecutive errors = pause + alert human
  • Quiet hours — respect configured quiet hours (no work, only monitoring)
  • Audit every cycle — no silent work, every action logged
  • Self-cleaning — hygiene sweep every 12th cycle keeps workspace lean

Installation

  1. Copy this skill to ~/.openclaw/workspace/skills/god-mode/
  2. Create TASKS.md in workspace root
  3. Create memory/god-mode-state.json with initial state
  4. Add heartbeat schedule to OpenClaw config (every 30 min recommended)
  5. Update HEARTBEAT.md to reference God Mode protocol

Pricing

  • ClawHub: $49 one-time
  • Includes: task queue, state tracking, audit log, guardrails, documentation
  • Target: OpenClaw users who want their agents truly autonomous

Why This Is Different

  • Not a prompt hack — infrastructure-based autonomy
  • Built on OpenClaw's heartbeat system (250K+ star platform)
  • Memory persists across sessions
  • Audit trail for every action
  • Guardrails prevent runaway behavior
  • Actually works (we use it ourselves)

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,040
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,033
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,021
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,021
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,019
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,016
Skill 文件
  • SKILL.md
    • God Mode — True Autonomous AI Agent Loop
    • What This Does
    • How It Works
    • Architecture
    • Files
      • TASKS.md Format
      • god-mode-state.json Format
    • Heartbeat Behavior
    • Self-Cleaning (Auto-Hygiene)
      • Workspace Hygiene
      • Memory Hygiene
      • Log Hygiene
      • Hygiene Rules
    • Guardrails
    • Installation
    • Pricing
    • Why This Is Different
  • 项目或源文件

相关 Skill

更多
loop.skill loop.skill git仓库https://github.com/handsomestWei/loop-skill "我已经不 prompt Claude 了。我写 loop,让 loop 去 prompt Claude、决定做什么。我的工作是写 loop。" 面向任意 coding-agent CLI 的计划驱动、无人值守多 agent loop 编排。 给它一份推进计划,走开——loop 自动执行与验收;一轮任务清空后自动再规划、追加下一阶段,形成无轮数上限的自驱闭环,在本地实时看板上盯进度。
代理副驾驶 代理副驾驶 代理副驾驶是面向 AI Agent 开发者的工程化副驾驶,针对"Prompt 答非所问与幻觉、上下文腐烂(Context Rot)、工具选择不当、任务拆解颗粒度失控"四大高频痛点而设计。它把零散的 Prompt 工程经验沉淀为可复用的模板库、评估器与循环工程(Loops Engineering)工作流,让 Agent 从"能跑"升级到"稳定可控"。 核心能力:System Prompt 五段式结构化生成、任务拆解树(DAG)与依赖编排、工具选择决策矩阵、ReAct/CoT/Plan-Execute 三种 Agent Loop 模式、输出解析与 schema 校验、Prompt 质量评估器(含幻觉检测)、Token 预算与上下文腐烂治理。 适用场景:构建客服/助理类 Agent、自动化工作流编排、RAG 应用增强、多 Agent 协作系统、长会话上下文治理、Prompt 评审与回归测试。 差异化:相比仅提供"帮你写 prompt"的浅层助手,本技能新增 (1) 上下文腐烂诊断器,量化三因素(信息密度衰减、噪声累积、注意力漂移)并给出治理建议;(2) 工具选择决策矩阵,基于任务类型、参数复
Agent Loop Agent Loop 结构化读取→计划→执行→验证→报告协议,适用于任何具有副作用的任务。防止虚假的"完成"报告、盲目重试和范围蔓延。
Prompt Architect Free Prompt Architect Free 免费提示词工程工具,解决 Prompt 答非所问、任务拆解混乱、Agent Loop 选型盲目
Mixlab Daily Briefing( 高价值内容筛选) Mixlab Daily Briefing( 高价值内容筛选) 从 mixdao latest 获取数据 → 使用 MiniMax‑M2.5 进行分类整理(agent loop:最多5组,每组至少3条),生成每组摘要与每条推荐语 → 按 cachedStoryId 提交推荐语并上传简报到 mixdao。需配置 MIXDAO_API_KEY、ANTHROPIC_API_KEY。