Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
boshu2 avatar

Agent Native

  • 25 installs
  • 416 repo stars
  • Updated August 5, 2026
  • boshu2/agentops

agent-native is a Claude skill that makes an out-of-session agent AgentOps-native using skills, the ao CLI tool surface, and a local/CI gate instead of runtime hooks.

About

A doctrine skill for making an out-of-session agent (an Anthropic Managed Agent, an Agent SDK loop, or a self-hosted sandbox job) AgentOps-native without runtime hooks. It replaces the old reflex of porting marketplace hooks with three mechanisms: loading AgentOps skills into the agent definition, exposing the ao CLI as a callable tool, and gating output through the local cockpit and CI backstop. A developer uses it to keep a cloud or SDK agent under the same guardrails as an interactive session.

  • Makes an out-of-session agent (Managed Agent, Agent SDK, sandbox) AgentOps-native without runtime hooks
  • Guardrails come from skills, the ao CLI tool surface, and a local cockpit/CI gate instead of hooks
  • Loads the same skills/ files an interactive session uses to avoid a forked guardrail set

Agent Native by the numbers

  • 25 all-time installs (skills.sh)
  • Ranked #9,764 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

agent-native capabilities & compatibility

Capabilities
agent configuration · guardrails · agent orchestration
Use cases
orchestration · ci cd
From the docs

What agent-native says it does

AgentOps 3.0 is runtime-hookless.** Guardrails come from three things, never runtime hooks
SKILL.md
Managed Agents are NOT ZDR.
SKILL.md
npx skills add https://github.com/boshu2/agentops --skill agent-native

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs25
repo stars416
Last updatedAugust 5, 2026
Repositoryboshu2/agentops

What it does

Make an out-of-session Managed Agent or SDK loop AgentOps-native via skills, the ao CLI, and a local/CI gate instead of runtime hooks.

Who is it for?

Teams running Managed Agents, Agent SDK loops, or self-hosted sandbox jobs that must stay under AgentOps guardrails.

Skip if: Interactive Claude Code / Codex sessions that already load the skills and gate surfaces directly.

When should I use this skill?

When bringing a Claude loop running outside an interactive session under the same AgentOps guardrails without runtime hooks.

What you get

An out-of-session agent enforced by portable skills, the ao CLI, and a deterministic gate that works in any runtime.

  • docs/contracts/agent-runtime-profile.md
  • An AgentOps-native agent definition

By the numbers

  • 3 guardrail mechanisms (skills, ao CLI, local/CI gate)
  • 3-phase workflow (bundle, expose ao, gate output)

Files

SKILL.mdMarkdownGitHub ↗

/agent-native — Make Out-of-Session Agents AgentOps-Native (Hookless)

Run a Claude loop outside an interactive Claude Code / Codex session — an Anthropic Managed Agent, an Agent SDK loop, or a self-hosted sandbox job — and keep it under the same AgentOps guardrails. The old reflex ("port the ~50 marketplace hooks into the new runtime") is wrong for AgentOps 3.0. This skill is the hookless reframe.

Overview

AgentOps 3.0 is runtime-hookless. Guardrails come from three things, never runtime hooks:

1. Skillsskills/<name>/SKILL.md progressive-disclosure contracts (standards, behavioral-discipline, council, validation, trace, provenance). 2. The `ao` CLI — the deterministic tool surface (ao session bootstrap, ao inject, ao corpus inject --query, ao validate, ao goals measure) plus the standards skill loaded into the agent's instructions. 3. Local cockpit gate as routine authority — the operator accepts output by landing it through ao gate check / installed Git pre-push / pawl proof; .github/workflows/validate.yml remains PR/tag/manual backstop telemetry, NOT a PreToolUse hook.

So an out-of-session agent becomes AgentOps-native by: (a) loading AgentOps skills into the Agent definition, (b) exposing the ao CLI as a callable tool (MCP or shell-tool) so the agent can ao session bootstrap / ao inject / ao validate itself, and (c) running the same deterministic local validation/proof path on its outputs before the work is accepted. The Agent SDK's own hooks become an optional thin adapter for teams wanting in-loop interception — never the primary mechanism.

Mechanism status (planned, not yet shipped). This skill is the doctrine layer and lands first; the two concrete commands it names — ao agent bundle (ag-jspr) and ao mcp serve (ag-higd) — are open, ready beads under epic ag-7s9fo, not yet in the live CLI. The ao session bootstrap / ao inject / ao corpus inject / ao validate / ao goals measure commands the bundled agent calls are real today. When ag-jspr and ag-higd land, remove this skill's entry from scripts/skill-body-refs-allowlist.txt.

This is an extension of two existing skills, not a rewrite:

  • standards — gains an Agent-runtime profile: how the standards/behavioral-discipline checklists get loaded by a non-interactive Claude and enforced by deterministic gate surfaces rather than runtime hooks.
  • converter + the skills/skills-codex/ parity machinery — reused as-is to keep the bundle dual-runtime.

Concrete runtime recipes — the three-phase workflow below, one per runtime:

  • references/managed-agents-runtime.md — the Claude path: Anthropic Managed Agents + Agent SDK + self-hosted sandbox.
  • references/codex-ntm-runtime.md — the Codex/NTM path: tmux pane swarms + agent-mail + direct ao shell calls (no Managed Agents API).

⚠️ Critical Constraints

  • This is a reframe of the retired "port hooks" idea, NOT a hook revival. Why: hooks are runtime-coupled and fork the guardrail surface; skills + ao + CI are the portable 3.0 waist that works in any runtime.
  • Single source of truth — no skill fork. The cloud/SDK agent loads the same skills/ files an interactive session uses. Why: a forked guardrail set drifts and defeats the corpus moat.
  • Managed Agents are NOT ZDR. Never bundle holdout target/ground_truth/PII into an Agent definition or its MCP tool responses. Why: anything sent to the cloud agent leaves the boundary permanently. For holdout-touching work see eval-outcomes.
  • The deterministic gate is the boundary, not the adapter. The optional SDK hook adapter is convenience, never the enforcement boundary. Why: a bypassed in-loop hook must not mean unvalidated work lands; the local cockpit/pre-push/pawl path is the routine authority and CI is PR/tag/manual backstop telemetry.

Workflow

Phase 1: Bundle skills into an Agent definition

ao agent bundle --runtime managed > agent-def.json

Stitches the selected AgentOps skills (default: session-bootstrap, standards, behavioral-discipline, validation, provenance) into a Managed Agents API payload — model + instructions + skills array + an MCP descriptor for the ao tool surface. POST-able with the managed-agents-2026-04-01 beta header.

Checkpoint: the payload carries the skills + the ao MCP descriptor, and contains no holdout values.

Phase 2: Expose ao as a tool

Run a thin MCP server (ao mcp serve) — or a documented shell-tool spec — exposing session_bootstrap, inject, corpus_inject, validate, goals_measure so the hosted loop can orient and self-check. For self-hosted sandboxes (bushido), the MCP server runs inside the sandbox boundary with tailnet access to Dolt.

Checkpoint: the agent can call ao session bootstrap + ao inject itself before doing work.

Phase 3: Gate the output through the cockpit path

A reusable workflow (agent-output-validate.yml) can run ao validate + the standards/eval-outcomes gates against whatever the agent produced (PR branch or artifact bundle) as remote backstop telemetry. The routine acceptance path is the same local cockpit/pawl gate as interactive work: land through ao gate check and the installed Git pre-push proof path.

Checkpoint: the agent's output passed the local cockpit/pawl gate; PR/tag/manual CI backstop evidence is green when that route is used.

Optional: SDK hook adapter

For Agent SDK users who want in-loop interception, a documented PreToolUse/Stop adapter shells out to ao validate (with the standards checklist loaded). Clearly optional — the default path is the deterministic cockpit/proof gate, never runtime hooks. Reference samples (TypeScript + Python, wired into no runtime by default): references/sdk-hook-adapter.md.

Output Specification

Format: a JSON Agent definition plus a validated PR/artifact. Path: the Agent definition is written to agent-def.json at the repo root; the runtime profile is written to docs/contracts/agent-runtime-profile.md (the frontmatter produces path). Structure: model, instructions (stitched skills), skills array, ao MCP descriptor; the output is accepted only after the local cockpit/pawl proof path passes, with CI backstop evidence when that route is used.

Quality Rubric

  • [ ] Agent definition loads the same skills/ files as interactive sessions (no fork).
  • [ ] ao is callable by the agent (MCP/shell-tool); it can self-bootstrap + self-validate.
  • [ ] Outputs pass the same local cockpit/pawl proof path as interactive work (the deterministic gate is the boundary, not a runtime hook).
  • [ ] No holdout target/ground_truth/PII in the Agent definition or tool responses.

Examples

# Bundle, serve the ao tool surface, and land through the cockpit/proof gate
ao agent bundle --runtime managed > agent-def.json
ao mcp serve &   # exposes session_bootstrap/inject/validate/goals_measure as MCP tools
# (submit agent-def.json to the Managed Agents API; PR CI is backstop telemetry)

Troubleshooting

ProblemCauseSolution
Tempted to port the hooksOld runtime-coupled reflexDon't — bundle skills + expose ao + land through the cockpit/proof gate. Hooks are the optional adapter only
Agent can't orientao not exposed as a toolRun ao mcp serve (or the shell-tool spec) so the loop can ao session bootstrap
Unvalidated work mergedRelied on the optional in-loop adapterThe cockpit/pawl proof path is the gate — never the adapter

See Also

  • references/managed-agents-runtime.md — Claude runtime recipe (Managed Agents + Agent SDK + self-hosted sandbox)
  • references/codex-ntm-runtime.md — Codex/NTM runtime recipe (tmux pane swarms + agent-mail + direct ao)
  • standards — the checklists the agent loads and deterministic gates enforce
  • converter — keeps the bundle dual-runtime (skills ↔ skills-codex)
  • eval-outcomes — holdout-safe grading for cloud/out-of-session agents
  • swarm — the in-session/NTM multi-agent backends that dispatch whole /rpi skill loops (ao agent bundle produces the definition a managed-agents substrate runs)
  • skill-auditor — audit this skill before declaring stable

Related skills

FAQ

Do I still need runtime hooks?

No. AgentOps 3.0 is runtime-hookless; guardrails come from skills, the ao CLI, and the local cockpit/CI gate, with the SDK hook adapter as an optional thin convenience.

Are Managed Agents safe for holdout data?

No. Managed Agents are not ZDR; never bundle holdout target/ground_truth/PII into an agent definition or its MCP tool responses.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.