Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

long-running-agent-harness长期运行的 Agent 线束

Agent Skill

long-running-agent-harness 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

742

周安装

30

GitHub Stars

公开资料未说明

下载量

233
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:long-running-agent-harness(长期运行的 Agent 线束)
来源仓库:https://github.com/michael-f-bryan/skills
仓库路径:skills/long-running-agent-harness
安装命令:
npx skills add https://github.com/michael-f-bryan/skills --skill long-running-agent-harness
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/michael-f-bryan/skills --skill long-running-agent-harness

简介

long-running-agent-harness 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理。

  • 适用于需要长期运行监控、持续集成或后台任务处理的复杂场景。
  • 支持 Agent 在长时间任务中保持状态同步和异常恢复能力。
  • 安装前建议确认权限范围和维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Long-running agent harness

Plan and scaffold work so an AI agent can make incremental, verifiable progress across many context windows. Flow: design doc (human + AI)Initializer once (creates feature list, runbook, backlog, progress) → Coding agent in a loop until done. The implementation backlog defines one work unit per session and helps identify milestones for human check-in. Based on Anthropic: Effective harnesses for long-running agents.

Problem

Agents work in discrete sessions with no memory. Without structure they tend to: (1) try to do too much in one go and leave half-implemented, undocumented state; (2) declare the job done too early; (3) leave bugs or undocumented progress. A harness gives each new session a clear picture of state and one concrete unit of work.

Workflow overview

PhaseWhoWhat
0. Design docHuman + AIIterate in chat (or doc) with the user to produce one design doc: scope, acceptance criteria, tech stack, run/verify steps. No implementation.
1. Initializer (once)AI (sub-agent)Run the Initializer prompt. Reads _working/design.md. Creates/refreshes in _working/: feature list (YAML), runbook, implementation backlog, progress file, optional init script. Does not implement features or create project scaffolding (assumes existing repo).
2. Coding loopAI (sub-agent each time)Run Coding agent sessions: read progress → pick one work unit from the backlog → implement → verify using runbook → update progress and feature list → commit. At milestones (e.g. end of a work-unit group): pause, check in with the human; when satisfied, re-run Initializer, then continue. Loop until all features pass or the user stops.

The top-level agent invokes the Initializer and each Coding session as sub-agents, passing the relevant prompt each time (no need to copy prompts into .cursor/rules/). Use whatever mechanism Cursor provides to spawn a sub-agent or new task and pass the prompt content (e.g. the contents of the Initializer or Coding prompt file).

Phase 0: Design doc (human + AI)

  • Goal: One design doc that defines scope, acceptance criteria, and enough context for the feature list and runbook.
  • Process: Human and AI iterate (in chat or a shared doc). AI suggests structure and content; human refines. Optionally use the doc-coauthoring skill for the design doc.
  • Output: Design doc at _working/design.md. This is the input to the Initializer (which creates the feature list and other harness artifacts).

Two-phase execution (Initializer + Coding agent)

Initializer (run once)

Run the Initializer prompt (e.g. via sub-agent). It:

  1. Reads the design doc and any existing context.
  2. Creates or refreshes in _working/: agent-runbook.md, implementation-backlog.md, agent-progress.md, feature_list.yaml, and optionally init_<app\>.sh.
  3. Does not implement features. Output: list of artifacts and the recommended first coding target.

Coding agent (every session, until done)

Run the Coding agent prompt (e.g. via sub-agent). Each session:

  1. Session start: If any of _working/agent-progress.md, _working/agent-runbook.md, _working/implementation-backlog.md, _working/feature_list.yaml are missing → run Initializer first.
  2. Get bearings: Read _working/agent-progress.md_working/implementation-backlog.md_working/feature_list.yaml_working/design.md_working/agent-runbook.md → recent git log.
  3. Pick one unit: At most one page/feature from the backlog that still has failing (or unimplemented) criteria.
  4. Implement: Implement only that unit. Add tests. Run lint/typecheck/tests from the runbook; fix failures.
  5. Feature list: Set passes: true only for criteria verified this session.
  6. Handoff: Append a "Session N" block to progress; commit; leave repo runnable.

Loop: After each session, if not all features pass and the user has not stopped, run the Coding agent again (new sub-agent). Repeat until the next milestone or all features pass.

Milestone check-in: At important points (e.g. end of a logical work-unit group, or when the design doc defines a milestone), pause the coding loop. Check in with the human: summarise progress, show what’s done and what’s next. The human may revise the plan, adjust the current implementation, or change priorities. When the human is satisfied, re-run the Initializer (to refresh backlog and progress from any plan changes), then resume the Coding agent loop until the next milestone or completion.

Artifact layout

All harness artifacts live under _working/ (scratch space for the agent; see workspace rules).

LocationPurposeWho updates
_working/design.mdScope, acceptance criteria, tech stack; input to feature list and Initializer.Human + AI (Phase 0).
_working/agent-progress.mdCurrent state, last session summary, next target, session history.Coding agent at end of each session.
_working/agent-runbook.mdHow to start app, lint/typecheck, run tests; how to verify (e.g. unit, E2E, browser automation—exact commands and steps).Initializer; human when tooling changes.
_working/implementation-backlog.mdOrdered work units (one per session); route, acceptance criteria, dependencies. Defines milestones (e.g. end of a group).Initializer from design/context.
_working/feature_list.yamlAcceptance criteria in YAML; each item has passes: true/false.Initializer creates and maintains; Coding agent sets passes: true only after verification per runbook.
_working/init_<app>.sh (optional)One-command start (e.g. install deps, start servers).Initializer or human.

Detailed templates and full prompt bodies live in references/REFERENCE.md.

Rules to enforce in prompts

  • Incremental: One work unit per Coding session. If a unit is large, split across sessions and set "continue [unit X]" as next target.
  • Clean state: Each session ends with a commit and a progress update. No partial broken scaffolding.
  • Feature list discipline: Never remove or reorder items. Never set passes: true without running the corresponding verification.
  • Runbook as source of truth: Coding agent must use runbook commands for verify; do not guess or invent commands.

Feature list format (YAML example)

acceptance_tests:
  - description: log in as admin redirects to app (root / dashboard)
    category: auth
    passes: false
    steps:
      - Start a new browser session
      - Navigate to the login page
      - Log in as the admin user
      - Verify redirect to /
  - description: invalid resource id shows 404 or clear error
    category: edge-case
    passes: false
    steps: [...]

The feature list is YAML only; when updating passes, preserve the rest of the file structure.

Reference

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

32.62%
按下载量换算76

Claude

29.83%
按下载量换算70

Cursor

19.26%
按下载量换算45

Gemini CLI

9.6%
按下载量换算22

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills