os-control-simulator

os-control-simulator is a skill for Claude Code from richfrem/agent-plugins-skills. It costs 133 tokens per session (738 once invoked), scanned A, original, MIT.

A simulator for testing workflow approvals and other state changes in an isolated SQLite database. SQLite is a file-based database; the simulator can run fixed checks or dry-run agent behaviour without using the live database.

In plain words
What is it for?
Use it to test control-plane pipelines, verify what the agent and human should do, and check that completed workflows reach the expected final state.
Why use it?
It lets you find incorrect transitions, questions, commands, or approval handling without changing real project state. Separate test identities and data reduce the risk of affecting production controls.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the agent-agentic-os plugin — 14 skills, 2 agents, 3 hooks shipped together

Good fit Use it to test control-plane pipelines, verify what the agent and human should do, and check that completed workflows reach the expected final state.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/richfrem/agent-plugins-skills/os-control-simulator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add richfrem/agent-plugins-skills --skill os-control-simulator
Clone the repo
git clone --depth 1 https://github.com/richfrem/agent-plugins-skills

Made for: Claude Code.

Or install agent-agentic-os, the plugin that ships this one along with the rest of its 14 skills, 2 agents, 3 hooks.

Wrote 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.

agentmods badge for os-control-simulator

README.md
[![agentmods](https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-control-simulator/github.svg)](https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-control-simulator)
Your own site
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-control-simulator"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-control-simulator/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.

agentmods 80×15 button for os-control-simulator

Your own site · 80×15
<a href="https://agentmods.dev/skills/richfrem/agent-plugins-skills/os-control-simulator"><img src="https://agentmods.dev/badge/skills/richfrem/agent-plugins-skills/os-control-simulator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 133 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 738 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00133 $0.00738
Opus 5.5 $0.00053 $0.00295
Sonnet 5.5 $0.00027 $0.00148
Haiku 4.5 $0.00013 $0.00074

Measured yesterday against content hash 87eacce4d38e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

os-control-simulator 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.

The scan reads SKILL.md. This mod also ships 42 executable files (scripts/agent_control.py, scripts/control_plane/__init__.py, scripts/control_plane/adapters.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/agent-agentic-os/skills/os-control-simulator/SKILL.md · 80 lines

How it starts

The opening of the file, as written. The whole thing — 80 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Transition Simulator (os-control-simulator)

Simulate and validate SQLite control-plane state transitions across deterministic, behavioral, and post-DONE convergence dimensions.

Contents

Critical Constraints

  1. Database Isolation: Never simulate against real context/control_plane.db; use simulation_control_plane.db.
  2. Identity Separation: Simulations must use simulation keys in context/simulation/identity/, never production signers.
  3. No Softened Grading: Never weaken assertions or grading criteria to bypass a failing transition.

Approver Identity in Simulations

Real work and simulations use separate databases and signing identities:

  • Real work: context/control_plane.db approved only by human key in context/identity/allowed_signers.
  • Simulations: simulation_control_plane.db signed only by simulation key (enrolled as test-human@local in context/simulation/identity/).

Quick start

Run the fast deterministic transition simulator:

pytest -q tests/test_control_plane_pipeline_simulator.py

Workflow

  1. Select Dimension:
    • Deterministic: unit test execution of state graphs without LLMs.
    • Behavioral: cheap-model CLI runs to verify instructions and prompts.
  2. Execute Simulation:
    python3 scripts/control_plane/run_transition_simulation.py --behavior --from <FROM> --to <TO>
    
  3. Inspect Output: Verify questions asked, commands assigned, and state progression.

Edge Classification

  • AGENT-RUNNABLE: Deterministic steps, audits, and test runs. Run directly.
  • SOFT: Review and routing checkpoints. Agent confirms with user, then executes.
  • HARD: Cryptographic human approval gates (APPROVED, DONE). Handed to human.

Read the full file on GitHub · 80 lines

Files

What ships with it

47 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. yesterday First seen · 80 lines · 133 tokens per session scan A 87eacce4d38e

Subscribe to this mod's changes

os-control-simulator is a skill published in the GitHub repository richfrem/agent-plugins-skills (7 stars, last pushed 2d ago), licensed MIT. It adds 133 tokens to every session and 738 once invoked, about $0.0005 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.