detect-runtime

detect-runtime is a skill for Claude Code, Codex from slowdoctor-dev/workspace-md. It costs 66 tokens per session (3,254 once invoked), scanned C, original, Apache-2.0.

A skill that identifies the coding agent’s runtime setup, including its control program, service backend, and available context, then recommends a workspace tier.

In plain words
What is it for?
Use it during initial setup, at session start, after changing the agent or backend, or when explicitly checking the runtime.
Why use it?
It detects changes or mismatches in the environment instead of letting the agent silently work with incorrect assumptions.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for continue.dev. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it during initial setup, at session start, after changing the agent or backend, or when explicitly checking the runtime.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/slowdoctor-dev/workspace-md/detect-runtime
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 slowdoctor-dev/workspace-md --skill detect-runtime
Clone the repo
git clone --depth 1 https://github.com/slowdoctor-dev/workspace-md

Made for: Claude Code, Codex.

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 detect-runtime

README.md
[![agentmods](https://agentmods.dev/badge/skills/slowdoctor-dev/workspace-md/detect-runtime/github.svg)](https://agentmods.dev/skills/slowdoctor-dev/workspace-md/detect-runtime)
Your own site
<a href="https://agentmods.dev/skills/slowdoctor-dev/workspace-md/detect-runtime"><img src="https://agentmods.dev/badge/skills/slowdoctor-dev/workspace-md/detect-runtime/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 detect-runtime

Your own site · 80×15
<a href="https://agentmods.dev/skills/slowdoctor-dev/workspace-md/detect-runtime"><img src="https://agentmods.dev/badge/skills/slowdoctor-dev/workspace-md/detect-runtime.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 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.00066 $0.03254
Opus 5.5 $0.00026 $0.01302
Sonnet 5.5 $0.00013 $0.00651
Haiku 4.5 $0.00007 $0.00325

Measured 1mo ago against content hash bf9fa22bbb25, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

detect-runtime scanned grade C with 3 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 1mo ago.

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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

curl -s http://localhost:11434/api/show -d '{"name":"<model>"}' | jq '.parameters'

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

| `~/.continue/config.yaml` | `continue` |

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -s http://localhost:11434/v1/models # Ollama
2-mind/forge/act/skill/detect-runtime/SKILL.md · 290 lines

How it starts

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

detect-runtime

When to use

  • From init — bootstrap; produce initial profile.md draft for Owner ratify from profile.example.md
  • From session-start — cheap re-detect every session; compare against active profile.md when present; propose re-ratify on drift
  • Explicit /detect-runtime — Owner invocation after switching harness or backend
  • From audit (rare) — freshness re-check of last_verified constants

Requires

Requires 3-control/foundation/SOUL.md, 3-control/foundation/PRINCIPLE.md, and 2-mind/garden/essential/ to exist. If any are missing, run init instead of continuing.

Operationalizes the detection mechanism described in 3-control/foundation/runtime-flexibility.md §Detection mechanism.

Quick reference

Single principle: the running agent IS the runtime instance — agent self-introspection is the primary signal; objective signals (env vars, config files, endpoint queries) cross-check. Mismatch = report to Owner; never silently resolve.

Harness is an open enum. Known values: claude-code, codex-cli, gemini-cli, antigravity, cursor, hermes, opencode, continue, custom.

Sub-step Primary signal Verification Fallback
1. Harness Agent self-introspection Env var → repo config folder → user-level config custom
2. Backend (provider + endpoint + model) Agent self-identification Per-harness config read; if local-via-proxy, probe localhost ports for /v1/models Ask Owner
3. Effective context Agent self-knowledge Hosted: known-constants table (below); Local: /v1/models response + attention-cliff clamp Owner declaration

Optional helper: 2-mind/forge/act/script/detect-runtime.sh automates objective verification only: Sub-step 1B/C/D, Sub-step 2B/C, Sub-step 3C (local endpoint) only, then Step 4 tier derivation and Step 5 JSON emission. Hosted Sub-step 3B is the agent's cross-check against the SKILL known-constants table, not scripted. The helper cannot perform Step 0 / Sub-step A agent self-introspection. The running agent supplies that primary signal before interpreting the helper output.

Read the full file on GitHub · 290 lines

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. 1mo ago First seen · 290 lines · 66 tokens per session scan C bf9fa22bbb25

Subscribe to this mod's changes

detect-runtime is a skill published in the GitHub repository slowdoctor-dev/workspace-md (1 stars, last pushed 4mo ago), licensed Apache-2.0. It adds 66 tokens to every session and 3,254 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it C with 3 findings (sends data to an external url, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

grok-cli

Delegate bounded tasks to Grok Build from a supervising agent such as Codex. Use when the user asks Grok to investigate, review, implement, or provide another perspective, or when a distinct coding agent would materially help. Includes a background ACP client for progress, follow-up prompts, permissions, and…

scarletkc/agents · 66 tokens

company-brain

How an agent should operate as one mind inside a shared Company Brain built on Caura — recall before acting, obey fleet keystones, reuse and publish skills, and report outcomes so every task compounds across the whole organization. Use this whenever you work as part of a Caura-connected team or fleet and your work…

caura-ai/caura · 108 tokens

lifecycle_report

Scan project memory for v1.7.1 lifecycle frontmatter · report tier distribution + promotion candidates (reinforcecount >= promoteafter) · NO LLM.

chunxiaoxx/nautilus-compass · 37 tokens

session_audit

Scan project memory · age distribution + ungrouped count (L1 build readiness) + per-namespace entity stats · NO LLM.

chunxiaoxx/nautilus-compass · 32 tokens

marketing-copy

Write outbound promotional copy for a product or project: launch and update posts for community platforms and social media, store page descriptions and short blurbs, landing page headlines and calls to action, press-style announcements, and the naming of a product for another language or market. Covers what may be…

scarletkc/agents · 121 tokens

agronomist

Think and work like an expert Agronomist. Use when a task calls for Agronomist judgment. Reasons from 4R stewardship and G×E×M through MRTN economic N, calibrated soil-test extractants, penetrometer compaction diagnosis, on-farm strip mixed models, partial budgets, and AgroEcoList reporting while treating…

K-Dense-AI/scientific-agents · 97 tokens