返回顶部
a

agent-autonomy-primitives自主代理原语

Build long-running autonomous agent loops using ClawVault primitives (tasks, projects, memory types, templates, heartbeats). Use when setting up agent autonomy, creating task-driven execution loops, customizing primitive schemas, wiring heartbeat-based work queues, or teaching an agent to manage its own backlog. Also use when adapting primitives to an existing agent setup or designing multi-agent collaboration through shared vaults.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,123
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

agent-autonomy-primitives

Agent Autonomy Primitives

Turn any AI agent into a self-directing worker using five composable primitives: typed memory, task files, project grouping, template schemas, and heartbeat loops.

Prerequisites

CODEBLOCK0

The Five Primitives

1. Typed Memory

Every memory has a type. The type determines where it lives and how it's retrieved.

TypeDirectoryWhen to Use
INLINECODE0INLINECODE1Recording a choice with rationale
INLINECODE2
lessons/ | Something learned from experience |
| person | people/ | Contact info, relationship context |
| commitment | commitments/ | Promise made, deliverable owed |
| preference | preferences/ | How someone likes things done |
| fact | inbox/ | Raw information to file later |
| project | projects/ | Workstream with goals and status |

Store with type:
CODEBLOCK1

Rule: If you know WHAT KIND of thing it is, use the right command. Dumping everything into daily notes defeats retrieval later.

2. Task Primitives

A task is a markdown file with YAML frontmatter in tasks/:

CODEBLOCK2

Create tasks:
CODEBLOCK3

Update status:
CODEBLOCK4

Statuses: openin-progressdone (or blocked)
Priorities: critical > high > medium > INLINECODE22

3. Project Grouping

Projects group related tasks with metadata:

CODEBLOCK5

Tasks reference projects via the project field. Filter tasks by project:
CODEBLOCK6

4. Template Schemas

Templates are YAML schema definitions that control what fields exist on every primitive. They live in templates/ in your vault.

See references/template-customization.md for full customization guide.

Key points:

  • - Vault templates override builtins — drop a task.md in templates/ to change the schema
  • Add fields (e.g., sprint, effort, client) by editing the template
  • Remove fields you don't need
  • Change defaults (e.g., default priority = high)
  • Validation is advisory — warns but never blocks

5. Heartbeat Loop

The heartbeat is the autonomy mechanism. Wire it into your agent's periodic wake cycle.

Every heartbeat (e.g., every 30 minutes):

CODEBLOCK7

Implementation for OpenClaw agents:

Add to your HEARTBEAT.md:
CODEBLOCK8

For cron-based agents, schedule a recurring job:
CODEBLOCK9

Composing Primitives into Autonomy

The power is in composition, not any single primitive:

CODEBLOCK10

Each cycle compounds:

  • - Memory feeds context into task execution (decisions, lessons, preferences inform how work gets done)
  • Task execution generates new memories (lessons learned, decisions made, commitments created)
  • Lessons improve future execution (mistakes aren't repeated)
  • Wiki-links ([[entity-name]]) build a knowledge graph across all files
  • Projects provide scope boundaries so the agent doesn't drift

Adapting to Your Setup

See references/adaptation-guide.md for detailed patterns on:

  • - Wiring primitives into existing agent frameworks (OpenClaw, LangChain, CrewAI, custom)
  • Choosing which primitives to adopt (start minimal, add as needed)
  • Multi-agent collaboration through shared vaults
  • Migrating from other memory systems

Quick Start: Zero to Autonomous in 5 Minutes

CODEBLOCK11

Anti-Patterns

Don'tDo Instead
Store everything in one big memory fileUse typed memory — decisions/, lessons/, people/
Create tasks without owner/project
Always set --owner and --project | | Ask "what should I work on?" | Read your task queue and decide | | Forget lessons after learning them | clawvault remember lesson immediately | | Skip marking tasks done | Always task done --reason — the ledger tracks transitions | | Create tasks for vague ideas | Put ideas in backlog/, promote to tasks/ when ready | | Modify template schemas constantly | Stabilize schemas early — field renames break existing files |

Obsidian Integration

Because everything is markdown + YAML frontmatter, Obsidian renders your agent's workspace as a human-readable dashboard:

  • - Kanban board — open all-tasks.base in Obsidian Bases, drag between status columns
  • Blocked viewblocked.base shows what needs human input
  • By ownerby-owner.base shows what each agent is working on
  • By projectby-project.base scopes views per workstream

The same file is both the agent's data structure AND the human's UI. No sync layer needed.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 agent-autonomy-primitives-1776419934 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 agent-autonomy-primitives-1776419934 技能

通过命令行安装

skillhub install agent-autonomy-primitives-1776419934

下载

⬇ 下载 agent-autonomy-primitives v1.0.0(免费)

文件大小: 8.61 KB | 发布时间: 2026-4-17 20:22

v1.0.0 最新 2026-4-17 20:22
Initial release of agent-autonomy-primitives.

- Provides 5 core primitives for agent autonomy: typed memory, task files, project grouping, template schemas, and heartbeat-driven loops.
- Details commands and workflows for managing tasks, lessons, projects, decisions, and more using ClawVault.
- Explains customizable template schemas for adapting primitives to your needs.
- Guides wiring primitives into agent wake/sleep cycles using heartbeats.
- Includes quick start, anti-pattern guide, and integration tips for Obsidian and multi-agent setups.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部