Agent Native 标志

Agent Native

社区
boshu2
agent-native

Dispatch independent tasks to parallel workers or subagents without write collisions. Use when: running or planning agents in parallel, even two; check scopes before any launch.

概览

发布者boshu2
代码仓库agentops
技能名称agent-native
星标数
450
复刻数
42
附带文件
9
许可协议Apache-2.0
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 9 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

    由 boshu2 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Agent Native AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/boshu2/agentops/tree/main/plugin/skills/agent-native
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/boshu2/agentops.git /tmp/agentops
mkdir -p .claude/skills
cp -r /tmp/agentops/plugin/skills/agent-native .claude/skills/agent-native
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Agent Native,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Agent Native。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Agent Native 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

Agent Native

Launch and observe caller-selected agent sessions as explicit roles, and return runtime facts per packet. Execution does not validate output, and the runtime never becomes AgentOps lifecycle authority: an adapter cannot select AgentOps semantics, issue a binding verdict, or turn factory completion into delivery or validation proof. Orchestrate decides what to dispatch and when; this skill launches and observes.

Before launch, and while running

  • Validate the whole batch first. Every packet needs its selected executor, packet identity, all transitive effects, the actions it must not take (such as push, merge, history rewrite, tracker or external writes) and a canonical workspace-relative write scope in separate isolation. If any packet is invalid, launch none: starting the valid ones and fixing the rest later is a partial launch.
  • Compare canonical scopes. Resolve symlinks, normalize paths and compare case-insensitively so an alias cannot hide a collision. A lexical check alone cannot prove symlink or runtime isolation. Disjoint files are not independence: workers, readers included, contend on a resource one of them writes, installs into or holds exclusively, such as a bound port, a database it writes, a package install it mutates or a locked browser profile; give each its own instance or serialize only those. A shared model-provider limit is backpressure, launched in waves, not serialized (shared runtime).
  • Delivery is not engagement. A delivered prompt or an acknowledgement proves transport only; reading it as a working worker is prompt-send optimism. Prove engagement from observable state: session output, tool activity, changed files.
  • Capture before restart. Before a nudge, replacement or restart, capture the worker's observable state. A restart destroys the evidence of why it stalled, and rescue is usually cheaper than rerun. Silence or impatience alone does not justify a restart; any replacement stays within authority and remaining bounds.
  • Dispatch once. Keep each packet's identity with its result. An executor error is a result, not a retry trigger; repair and follow-up are the caller's authority. A launch call the runtime refuses, so that its worker never starts, is not a launch: correct a malformed call once, and treat a concurrency or capacity limit as backpressure, waiting natively for a slot and launching the validated batch in waves under it; what each freed slot runs first stays the caller's decision (Orchestrate). Running a packet inline or elsewhere is the caller's disclosed choice (refused launches).
  • Account for every input. When a packet carries many items (files, records, issues), give each a stable ID before launch and join the returned results back to that list. An item with no result is missing, not done; an output with no matching input is unexplained. Report both by ID. Name each return field and its allowed values in the packet when results will be counted, sorted, deduplicated or compared; parsed prose is where counts drift.
  • Prove integration before removal. Before a caller-authorized removal of a finished worker's workspace, branch or stash, compare its content with the integration target by patch or file diff, not by merged status: squash and rebase hide ancestry. Preserve uncommitted, unique or unintegrated content in a recoverable form, such as an archive ref or bundle, first. Report what was kept, what was removed and the evidence for each.

Roles

  • Orchestrator: passes focused intent, scope and evidence references, names the integration/final-review owner, and reports runtime facts. Retrieve extra history only for a consequential uncertainty; a fresh context is not necessarily small. A new goal does not clear history or renew spent bounds.
  • Implementer: may modify only its packet's declared subject.
  • Validator: receives exact candidate content in a fresh, read-only context. It may supply judgment to Validate; only Validate writes verdict.v2.
  • Scribe: records runtime evidence without judging acceptance.

Reader and Writer are bounded cheap delegations, not roles with authority. A Reader returns line-referenced bullets over files the caller never loads, in slices of at most 350 lines. A Writer lands one patterned file from a spec plus a required reference file and returns a receipt the caller never reads back. Both are caller-selected per call and yield runtime facts only; a receipt is not validation. For Codex, use the source-owned bulk-reader and code-writer native roles; their model and sandbox are pinned in agents/bulk-reader.toml and agents/code-writer.toml. Context-budget delegation covers installation, native invocation, opt-in refusal hooks and the limits of role instructions.

Launch and observe

  1. Before starting a worker, require caller intent, role, workspace, starting commit, authorized source/output scope and evidence destination. Record the dispatch association in the caller-owned native channel before execution can fail. A requested ID is not an observed ID; worker identity stays unknown until the runtime reports it.
  2. At startup, before substantive work, capture the observed runtime, session and context identity and return it through that channel. Before its first edit, the worker confirms its HEAD is that starting commit; a mismatch is a launch failure, never repaired by reset. Report launch failures, recording gaps and unknowns; never fill them in. An authentication-shaped error from a sandboxed launch does not prove a logged-out account (launch and isolation). Session associations owns parent and resume links, multi-work spans and frozen source bounds.
  3. Keep concurrent writers disjoint and isolated, using the selected runtime's own isolation where it has one and never nesting a worktree inside the session's own (workspace isolation). Runtime coordination is not a claim, lease, queue or completion state in AgentOps.
  4. Observe through native waits or status notifications; observation costs time and context. Unchanged state is no reason for another analysis, review or retrospective, while a known blocking failure deserves action even as other jobs run. Stop at terminal status or the end of the caller's window.
  5. A headless worker cannot ask: on a choice its packet leaves open it takes no irreversible or out-of-scope step on a guess and returns the choice under gaps (open choices). For new authorized work after a worker completes, including an answer that settled intent supplies, use the runtime's documented follow-up or resume operation that starts a turn. A message operation only queues text for a running worker; a queued repair request is not a resumed attempt.
  6. Record provider state, transcript references, artifacts and terminal status. Provider retries, reconnects, idle states and failures stay runtime facts, never Plan, Candidate or verdict state. A result whose observed tool activity shows an excluded action is out of authority, not a candidate, whatever its checks show.

The batch contract's reference implementation, scripts/swarm/dispatch_once.py, needs an AgentOps source checkout and is not bundled with installed skills; installed use dispatches through the selected native runtime. It rejects a nonempty write_scope.exclude because its proof cannot honor exclusions. Batch mode selects no backlog work, creates no queue and integrates no changes.

Adapters and judgment

NTM, native processes, Agent Mail, Gas City and the one-shot headless runners (codex-exec, claude-exec, agy-native) are replaceable adapters. Use one only when the caller selected that execution shape; a single local agent pays no factory coordination cost.

For judgment, default to a fresh context in the author's model family. Cross-model Validate, mixed Council and dueling model perspectives are explicit caller selections. Model dispatch owns host authorization, isolation, finite input/output, timeout and cleanup for each leg; the working session is the controller, no factory is required, and Agent Mail is never the judgment path. Role requests declare authority, but only native runtime/OS filesystem and egress controls enforce it. Native judgment receipts define receipt references and the checks for caller-required model diversity; missing native identity never satisfies a leg. For exact native source spans, follow bounded raw source reads and its access and output limits.

Per-packet result

text
packet_id:        the caller's packet id
executor:         selected runtime; requested model; observed model if reported
observed_session: session/context id the runtime reported, else unknown
engagement:       observable evidence the worker started, else unobserved
last_activity:    time and kind of the last observed tool call, output or file change, else unobserved
terminal_status:  exit or terminal state | running | launch failed | not launched
result:           candidate <ref> | evidence <ref> | out of authority <action> | error <verbatim>
gaps:             recording failures and unknowns

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Agent Native AI 技能有什么作用?

Dispatch independent tasks to parallel workers or subagents without write collisions. Use when: running or planning agents in parallel, even two; check scopes before any launch.

为什么在 TypingMind 中使用 Agent Native?

因为您只需安装一次,就能搭配任何模型使用。Agent Native 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Agent Native?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/boshu2/agentops/tree/main/plugin/skills/agent-native。TypingMind 会读取其中的 SKILL.md,打包相关文件,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Agent Native?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Agent Native 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Agent Native 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Agent Native AI 技能免费吗?

是的。boshu2 已在 GitHub 上根据 Apache-2.0 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇