affaan-m/ECC

autonomous-agent-harness

将 Claude Code 转变为具有持久记忆、定时操作、计算机使用和任务队列的完全自主代理系统。通过利用 Claude Code 的原生定时任务、调度、MCP 工具和记忆,取代独立的代理框架(Hermes、AutoGPT)。当用户需要持续自主操作、定时任务或自我导向的代理循环时使用。

75CollectingClaude CodeSends data outNetwork access
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/autonomous-agent-harness"
Automated source guide

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Turn autonomous-agent-harness's source instructions into a guide you can follow

According to the pinned SKILL.md from affaan-m/ECC: 仅使用原生功能和 MCP 服务器,将 Claude Code 转变为持久化、自我导向的代理系统。

npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/autonomous-agent-harness"
Check the pinned source

Best fit

  • 将 Claude Code 转变为具有持久记忆、定时操作、计算机使用和任务队列的完全自主代理系统。通过利用 Claude Code 的原生定时任务、调度、MCP 工具和记忆,取代独立的代理框架(Hermes、AutoGPT)。当用户需要持续自主操作、定时任务或自我导向的代理循环时使用。

Bring this context

  • 检查关注仓库的新PR
  • 对每个新PR:
  • 在本地拉取分支

Expected outputs

  • A result that follows the pinned autonomous-agent-harness instructions.
  • A concise record of assumptions, inputs used, and unresolved questions.
  • A final check against the source workflow and relevant permission signals.

Key source sections

Read autonomous-agent-harness through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

同意与安全边界

自主操作必须由用户明确请求并划定范围。除非用户已批准该能力以及当前设置的目标工作空间,否则不得创建计划、调度远程代理、写入持久化内存、使用计算机控制、发布外部内容、修改第三方资源或处理私人通信。

SKILL.md · 同意与安全边界
自主操作必须由用户明确请求并划定范围。除非用户已批准该能力以及当前设置的目标工作空间,否则不得创建计划、调度远程代理、写入持久化内存、使用计算机控制、发布外部内容、修改第三方资源或处理私人通信。在启用定期或事件驱动操作之前,优先使用预演计划和本地队列文件。将凭据、私有工作空间导出、个人数据集和账户特定自动化排除在可复用的 ECC 工件之外。
02

何时激活

用户需要一个持续运行或按计划运行的代理 设置定期触发的自动化工作流 构建一个跨会话记住上下文的个人 AI 助手 用户说“每天运行这个”、“定期检查这个”、“持续监控” 希望复制 Hermes、AutoGPT 或类似自主代理框架的功能 需要计算机使用与计划执行相结合

SKILL.md · 何时激活
用户需要一个持续运行或按计划运行的代理设置定期触发的自动化工作流构建一个跨会话记住上下文的个人 AI 助手
03

架构

Review the “架构” section in the pinned source before continuing.

SKILL.md · 架构
Review and apply the “架构” source section.
04

核心组件

使用 Claude Code 的内置内存系统,并通过 MCP 内存服务器增强以处理结构化数据。

SKILL.md · 核心组件
用户偏好、反馈、项目上下文存储为带有前置元数据的 Markdown 文件在会话启动时自动加载
05

1. 持久化内存

使用 Claude Code 的内置内存系统,并通过 MCP 内存服务器增强以处理结构化数据。

SKILL.md · 1. 持久化内存
用户偏好、反馈、项目上下文存储为带有前置元数据的 Markdown 文件在会话启动时自动加载

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Task-start prompt

Confirm source fit, inputs, and outputs before acting.

Use autonomous-agent-harness to help me with: [specific task]. Context: [files, data, or background]. Constraints: [environment, scope, and prohibited actions]. Before acting, check the pinned SKILL.md and explain which sections apply, what inputs are still missing, and what you will deliver.

Source-guided execution

Make the Agent explicitly follow the key extracted sections.

Apply the pinned autonomous-agent-harness source to [task]. Pay particular attention to these source sections: “同意与安全边界”, “何时激活”, “架构”, “核心组件”, “1. 持久化内存”. Preserve the important decision at each step. Mark facts not covered by the source as “needs confirmation” instead of inventing them. Then verify the result against my acceptance criteria: [criteria].

Result-review prompt

Check omissions, permissions, and source drift before delivery.

Review the current autonomous-agent-harness result: (1) does it satisfy the original task; (2) were any applicable steps or limits in the pinned SKILL.md missed; (3) did it perform any unauthorized file, command, network, or data action; and (4) which conclusions remain unverified? List issues first, then fix only what the source or user authorization supports.

Output checklist

Verify each item before delivery

The task matches the purpose documented in the SKILL.md.

The source section “同意与安全边界” has been checked.

The source section “何时激活” has been checked.

The source section “架构” has been checked.

The source section “核心组件” has been checked.

Inputs, constraints, and acceptance criteria are explicit.

Unverified facts, compatibility, and outcome claims are clearly marked.

Any file, command, network, or data action has been reviewed.

Choose a different workflow

When another Skill is the better fit

autonomous-agent-harness

Transform Claude Code into a fully autonomous agent system with persistent memory, scheduled operations, computer use, and task queuing. Replaces standalone agent frameworks (Hermes, AutoGPT) by leveraging Claude Code's native crons, dispatch, MCP tools, and memory. Use when the user wants continuous autonomous operation, scheduled tasks, or a self-directing agent loop.

A separate implementation from affaan-m/ECC; compare its source, maintenance signals, and permission requirements.

Open source detail

autonomous-agent-harness

Claude Codeを永続的なメモリ、スケジュール済み操作、コンピュータ使用、タスクキューイングを備えた完全自動エージェントシステムに変換します。スタンドアロンエージェントフレームワーク(Hermes、AutoGPT)を、Claude Codeのネイティブcrons、dispatch、MCPツール、メモリを活用して置き換えます。ユーザーが継続的な自動操作、スケジュール済みタスク、または自己指令エージェントループを望む場合に使用します。

A separate implementation from affaan-m/ECC; compare its source, maintenance signals, and permission requirements.

Open source detail

claude-skill-spec-audit

Audit skill SKILL.md files for compliance with the agentskills.io specification and house conventions. Checks frontmatter fields (name, description, compatibility, metadata, argument-hint), metadata sub-fields (author, scope, layer, confirms), and layer/suffix consistency. Use when adding new skills, reviewing skill quality, or ensuring all skills follow the spec. Triggers: "audit skills", "check skill spec", "skill compliance", "are my skills up to spec", "/claude-skill-spec-audit".

A separate implementation from jackchuka/skills; compare its source, maintenance signals, and permission requirements.

Open source detail

FAQ

What does autonomous-agent-harness do?

仅使用原生功能和 MCP 服务器,将 Claude Code 转变为持久化、自我导向的代理系统。

How do I start using autonomous-agent-harness?

The catalog detected this source-specific install command: npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/autonomous-agent-harness". Inspect the command and pinned source before running it.

Which Agent platforms does it declare?

claude code

Repository stars
234,327
Repository forks
35,711
Quality
75/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

75/100
Documentation23/30
Specificity19/25
Maintenance20/20
Trust signals13/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

autonomous-agent-harness by affaan-m

Transform Claude Code into a fully autonomous agent system with persistent memory, scheduled operations, computer use, and task queuing. Replaces standalone agent frameworks (Hermes, AutoGPT) by leveraging Claude Code's native crons, dispatch, MCP tools, and memory. Use when the user wants continuous autonomous operation, scheduled tasks, or a self-directing agent loop.

autonomous-agent-harness by affaan-m

Claude Codeを永続的なメモリ、スケジュール済み操作、コンピュータ使用、タスクキューイングを備えた完全自動エージェントシステムに変換します。スタンドアロンエージェントフレームワーク(Hermes、AutoGPT)を、Claude Codeのネイティブcrons、dispatch、MCPツール、メモリを活用して置き換えます。ユーザーが継続的な自動操作、スケジュール済みタスク、または自己指令エージェントループを望む場合に使用します。

claude-skill-spec-audit by jackchuka

Audit skill SKILL.md files for compliance with the agentskills.io specification and house conventions. Checks frontmatter fields (name, description, compatibility, metadata, argument-hint), metadata sub-fields (author, scope, layer, confirms), and layer/suffix consistency. Use when adding new skills, reviewing skill quality, or ensuring all skills follow the spec. Triggers: "audit skills", "check skill spec", "skill compliance", "are my skills up to spec", "/claude-skill-spec-audit".

autonomous-loops by affaan-m

Patterns and architectures for autonomous Claude Code loops — from simple sequential pipelines to RFC-driven multi-agent DAG systems.

gan-style-harness by affaan-m

GAN-inspired Generator-Evaluator agent harness for building high-quality applications autonomously. Based on Anthropic's March 2026 harness design paper.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 1 min

自主代理框架

仅使用原生功能和 MCP 服务器,将 Claude Code 转变为持久化、自我导向的代理系统。

同意与安全边界

自主操作必须由用户明确请求并划定范围。除非用户已批准该能力以及当前设置的目标工作空间,否则不得创建计划、调度远程代理、写入持久化内存、使用计算机控制、发布外部内容、修改第三方资源或处理私人通信。

在启用定期或事件驱动操作之前,优先使用预演计划和本地队列文件。将凭据、私有工作空间导出、个人数据集和账户特定自动化排除在可复用的 ECC 工件之外。

何时激活

  • 用户需要一个持续运行或按计划运行的代理
  • 设置定期触发的自动化工作流
  • 构建一个跨会话记住上下文的个人 AI 助手
  • 用户说“每天运行这个”、“定期检查这个”、“持续监控”
  • 希望复制 Hermes、AutoGPT 或类似自主代理框架的功能
  • 需要计算机使用与计划执行相结合

架构

┌──────────────────────────────────────────────────────────────┐
│                    Claude Code 运行时                         │
│                                                              │
│  ┌──────────┐  ┌──────────┐  ┌──────────┐  ┌─────────────┐ │
│  │  定时任务 │  │  远程调度 │  │  记忆存储 │  │  计算机使用  │ │
│  │  调度器   │  │  代理    │  │          │  │             │ │
│  └────┬─────┘  └────┬─────┘  └────┬─────┘  └──────┬──────┘ │
│       │              │             │                │        │
│       ▼              ▼             ▼                ▼        │
│  ┌──────────────────────────────────────────────────────┐    │
│  │              ECC 技能 + 代理层                        │    │
│  │                                                      │    │
│  │  skills/     agents/     commands/     hooks/        │    │
│  └──────────────────────────────────────────────────────┘    │
│       │              │             │                │        │
│       ▼              ▼             ▼                ▼        │
│  ┌──────────────────────────────────────────────────────┐    │
│  │              MCP 服务器层                             │    │
│  │                                                      │    │
│  │  memory    github    exa    supabase    browser-use  │    │
│  └──────────────────────────────────────────────────────┘    │
└──────────────────────────────────────────────────────────────┘

核心组件

1. 持久化内存

使用 Claude Code 的内置内存系统,并通过 MCP 内存服务器增强以处理结构化数据。

内置内存~/.claude/projects/*/memory/):

  • 用户偏好、反馈、项目上下文
  • 存储为带有前置元数据的 Markdown 文件
  • 在会话启动时自动加载

MCP 内存服务器(结构化知识图谱):

  • 实体、关系、观察
  • 可查询的图结构
  • 跨会话持久化

内存模式:

# 短期:当前会话上下文
使用 TodoWrite 进行会话内任务追踪

# 中期:项目记忆文件
写入 ~/.claude/projects/*/memory/ 以实现跨会话回忆

# 长期:MCP 知识图谱
使用 mcp__memory__create_entities 创建永久结构化数据
使用 mcp__memory__create_relations 进行关系映射
使用 mcp__memory__add_observations 添加关于已知实体的新事实

2. 计划操作(定时任务)

使用 Claude Code 的计划任务创建定期代理操作。

设置定时任务:

# Via MCP tool
mcp__scheduled-tasks__create_scheduled_task({
  name: "daily-pr-review",
  schedule: "0 9 * * 1-5",  # 工作日上午9点
  prompt: "Review all open PRs in affaan-m/everything-claude-code. For each: check CI status, review changes, flag issues. Post summary to memory.",
  project_dir: "/path/to/repo"
})

# Via claude -p (程序化模式)
echo "Review open PRs and summarize" | claude -p --project /path/to/repo

有用的定时任务模式:

模式计划用例
每日站会0 9 * * 1-5审查 PR、问题、部署状态
每周回顾0 10 * * 1代码质量指标、测试覆盖率
每小时监控0 * * * *生产健康、错误率检查
夜间构建0 2 * * *运行完整测试套件、安全扫描
会前准备*/30 * * * *为即将到来的会议准备上下文

3. 调度 / 远程代理

远程触发 Claude Code 代理以进行事件驱动的工作流。

调度模式:

# Trigger from CI/CD
curl -X POST "https://api.anthropic.com/dispatch" \
  -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
  -d '{"prompt": "Build failed on main. Diagnose and fix.", "project": "/repo"}'

# Trigger from webhook
# GitHub webhook → dispatch → Claude agent → fix → PR

# Trigger from another agent
claude -p "Analyze the output of the security scan and create issues for findings"

4. 计算机使用

利用 Claude 的计算机使用 MCP 进行物理世界交互。

能力:

  • 浏览器自动化(导航、点击、填写表单、截图)
  • 桌面控制(打开应用、输入、鼠标控制)
  • 超越 CLI 的文件系统操作

在框架内的用例:

  • Web UI 的自动化测试
  • 表单填写和数据录入
  • 基于截图的监控
  • 多应用工作流

5. 任务队列

管理一个跨会话边界的持久化任务队列。

实现:

# 通过记忆实现任务持久化
将任务队列写入 ~/.claude/projects/*/memory/task-queue.md

# 任务格式
---
name: task-queue
type: project
description: 用于自主操作的持久化任务队列
---

## 活跃任务
- [ ] PR #123: 审查并在CI通过后批准
- [ ] 监控部署:每30分钟检查一次 /health,持续2小时
- [ ] 调研:在AI工具领域寻找5个潜在客户

## 已完成
- [x] 每日站会:审查了3个PR,2个问题

替换 Hermes

Hermes 组件ECC 等效组件如何实现
网关/路由器Claude Code 调度 + 定时任务计划任务触发代理会话
内存系统Claude 内存 + MCP 内存服务器内置持久化 + 知识图谱
工具注册表MCP 服务器动态加载的工具提供者
编排ECC 技能 + 代理技能定义指导代理行为
计算机使用计算机使用 MCP原生浏览器和桌面控制
上下文管理器会话管理 + 内存ECC 2.0 会话生命周期
任务队列内存持久化任务列表TodoWrite + 内存文件

设置指南

步骤 1:配置 MCP 服务器

确保这些在 ~/.claude.json 中:

{
  "mcpServers": {
    "memory": {
      "command": "npx",
      "args": ["-y", "@anthropic/memory-mcp-server"]
    },
    "scheduled-tasks": {
      "command": "npx",
      "args": ["-y", "@anthropic/scheduled-tasks-mcp-server"]
    },
    "computer-use": {
      "command": "npx",
      "args": ["-y", "@anthropic/computer-use-mcp-server"]
    }
  }
}

步骤 2:创建基础定时任务

# Daily morning briefing
claude -p "Create a scheduled task: every weekday at 9am, review my GitHub notifications, open PRs, and calendar. Write a morning briefing to memory."

# Continuous learning
claude -p "Create a scheduled task: every Sunday at 8pm, extract patterns from this week's sessions and update the learned skills."

步骤 3:初始化内存图谱

# Bootstrap your identity and context
claude -p "Create memory entities for: me (user profile), my projects, my key contacts. Add observations about current priorities."

步骤 4:启用计算机使用(可选)

授予计算机使用 MCP 浏览器和桌面控制所需的权限。

示例工作流

自主 PR 审查员

Cron: 工作时间内每30分钟执行一次
1. 检查关注仓库的新PR
2. 对每个新PR:
   - 在本地拉取分支
   - 运行测试
   - 使用代码审查代理审查变更
   - 通过GitHub MCP发布审查评论
3. 更新审查状态到记忆库

个人研究代理

Cron: 每天上午6点执行
1. 检查内存中保存的搜索查询
2. 对每个查询运行Exa搜索
3. 总结新发现
4. 与昨日结果进行对比
5. 将摘要写入内存
6. 标记高优先级项目供晨间审阅

会议准备代理

触发条件:每个日历事件前30分钟
1. 读取日历事件详情
2. 搜索记忆中关于参会者的背景信息
3. 提取与参会者近期的邮件/Slack讨论记录
4. 准备谈话要点和议程建议
5. 将准备文档写入记忆

约束

  • 定时任务在隔离的会话中运行——除非通过内存,否则它们不与交互式会话共享上下文。
  • 计算机使用需要明确的权限授予。不要假设可以访问。
  • 远程调度可能有速率限制。设计定时任务时使用适当的间隔。
  • 内存文件应保持简洁。归档旧数据,而不是让文件无限增长。
  • 始终验证计划任务是否成功完成。在定时任务提示中添加错误处理。
Source repo
affaan-m/ECC
Skill path
docs/zh-CN/skills/autonomous-agent-harness/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected