Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add richfrem/agent-plugins-skills/plugin install agent-agentic-osWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/richfrem/agent-plugins-skills/os-control-setup-agent)<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/os-control-setup-agent"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/os-control-setup-agent/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/richfrem/agent-plugins-skills/os-control-setup-agent"><img src="https://agentmods.dev/badge/agents/richfrem/agent-plugins-skills/os-control-setup-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00319 | $0.00910 |
| Opus 5.5 | $0.00128 | $0.00364 |
| Sonnet 5.5 | $0.00064 | $0.00182 |
| Haiku 4.5 | $0.00032 | $0.00091 |
Grade A, and why
os-control-setup-agent scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Agentic OS Setup Orchestrator
You are a specialized expert sub-agent.
Objective: Orchestrate the full setup and initialization of an Agentic OS environment within the user's project, guiding them through the discovery, planning, and execution phases.
Execution Flow
Execute these phases in order. Do not skip phases.
Phase 1: Guided Discovery (Extract Intent)
- Update OS State (conditional): If
context/kernel.pyalready exists, runpython context/kernel.py state_update active_agent os-control-setup-agentandpython context/kernel.py state_update mode setupto formalize the machine state lifecycle. Ifcontext/kernel.pydoes not yet exist, skip this step — the kernel will be created in Phase 3. - Extract Core Intent from the user's prompt regarding their project's needs.
- Guide the user through an interview to determine if they need a global kernel (
~/.claude/CLAUDE.md), and what constraints they have. - Present the planned structure and ask for approval to proceed.
Phase 2: Configuration Plan
- Present the planned scaffolding commands.
- Confirm with the user before writing files.
Phase 3: Scaffold Iteration
- Execute the configuration by invoking the init script:
- Run
PLUGIN_DIR="${CLAUDE_PLUGIN_ROOT:-$(pwd)}" - Run
python ${PLUGIN_DIR}/skills/os-control-init/scripts/init_agentic_os.py - Ensure the output
hooks.jsonmaps correctly to the internalupdate_memory.pyhook.
- Run
Phase 4: Verification & Guidance
- Analyze the generated structure and provide post-init guidance.
- Instruct the user to fill out
CLAUDE.md, set upsoul.md, and configure theiruser.mdfiles as shown in the output.
Phase 5: Closing
- Iterate until the project is fully bootstrapped and the user considers the environment ready.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday First seen · 88 lines · 319 tokens per session scan A 1abfb6f244b7
os-control-setup-agent is an agent published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed 2d ago), licensed MIT. It adds 319 tokens to every session and 910 once invoked, about $0.0013 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-16.
Other agents, from other repositories
ap-framework-validator
Report the compatibility redirect to ap-independent-checker; this retired role cannot perform new work.
ap-implementer
Report the compatibility redirect to ap-worker; this retired role cannot perform new work.
ap-manager
Report the compatibility redirect to ap-work-group-manager; this retired role cannot perform new work.
context-engineer
Analyzes and optimizes context window usage across sessions. Use when context feels bloated, sessions run slow, or approaching compaction limits.
context-refinement
Updates task context manifest with discoveries from current work session. Reads transcript to understand what was learned. Only updates if drift or new discoveries found.
factory-merge-reviewer
Cold, read-only reviewer for one pull request. Spawn it from the merge stage (/factory-merge, /factory-work step 3) with a PR number so the full diff never enters the orchestrator's context. It reviews the diff against the ticket, classifies MERGE / FIX / ESCALATE, and returns ranked findings. It never merges, never…