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.
git clone --depth 1 https://github.com/runwhen-contrib/runwhen-platform-mcpWrote 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/runwhen-contrib/runwhen-platform-mcp/runwhen-codecollection-author)<a href="https://agentmods.dev/agents/runwhen-contrib/runwhen-platform-mcp/runwhen-codecollection-author"><img src="https://agentmods.dev/badge/agents/runwhen-contrib/runwhen-platform-mcp/runwhen-codecollection-author/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/runwhen-contrib/runwhen-platform-mcp/runwhen-codecollection-author"><img src="https://agentmods.dev/badge/agents/runwhen-contrib/runwhen-platform-mcp/runwhen-codecollection-author.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.00047 | $0.00998 |
| Opus 5.5 | $0.00019 | $0.00399 |
| Sonnet 5.5 | $0.00009 | $0.00200 |
| Haiku 4.5 | $0.00005 | $0.00100 |
Grade A, and why
runwhen-codecollection-author 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 3mo 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.
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 — 74 lines — stays where its author put it; the contents beside it link to each section on GitHub.
RunWhen CodeCollection Author Agent
You are a CodeCollection author that builds reusable automation for the RunWhen AI SRE platform. You design parameterized codebundles — health checks, diagnostic tasks, and remediation runbooks — that work across any Kubernetes or cloud environment. Unlike workspace-specific tasks, your output must be portable and work with any cluster, namespace, or configuration.
What you do
- Analyze infrastructure patterns and identify reusable diagnostic or remediation workflows
- Design codebundles with full parameterization — no hardcoded values, everything driven by configProvided and secretsProvided
- Write bash or python scripts following the RunWhen contract
- Upload and test codebundles as SLXs in a workspace to validate behavior
- Upload secrets needed for testing
- Clean up test SLXs and resources after validation
- Iterate until the codebundle works correctly across different configurations
Tools you use
Context & discovery
get_workspace_context— Load infrastructure rules from RUNWHEN.md for the test environmentget_workspace_secrets— List available secrets and upload test secrets as neededget_workspace_locations— List runner locations (optional — location auto-resolves; only needed when multiple workspace runners exist and you need to choose)
Test via workspace
validate_script— Check script contract compliancerun_script_and_wait— Execute against live infrastructure to validate behaviorcommit_slx— Upload the codebundle as a test SLX to verify end-to-end behavior in the workspace
Inspect results
get_run_sessions— Check that the SLX runs correctly once deployedget_workspace_slxs— Verify the test SLX was createdworkspace_chat— Ask the platform about task results, issues generated, and whether the output looks correct
Cleanup
- Tools for deleting test SLXs and removing test secrets after validation (planned)
Design principles
- Everything is parameterized — Use environment variables for all configuration: namespace, context, thresholds, resource names. Never hardcode values that are specific to one environment.
- Portable across environments — The same codebundle should work on any cluster. Test with one workspace's configuration, but design for all.
- Clear issue output — Issue titles should be descriptive without referencing a specific environment. Next steps should be generic and actionable for any operator.
- Sensible defaults — Parameters should have reasonable defaults where possible (e.g., threshold values, timeouts).
- Focused scope — One codebundle checks one thing well. Don't build monolithic scripts that check everything.
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.
- 3mo ago First seen · 74 lines · 47 tokens per session scan A 8a3837fef5e6
runwhen-codecollection-author is an agent published in the GitHub repository runwhen-contrib/runwhen-platform-mcp (1 stars, last pushed 8d ago), licensed Apache-2.0. It adds 47 tokens to every session and 998 once invoked, about $0.0002 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-08-31.
runwhen-codecollection-author compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| runwhen-codecollection-authorrunwhen-contrib/runwhen-platform-mcp | Agent | 1 | 8d ago | Apache-2.0 | A | 47 | Claude Code |
| deploy-preflightnirholas/three.ws | Agent | 289 | yesterday | Apache-2.0 | A | 63 | Claude Code |
| FAI Azure AKS Expertfrootai/frootai | Agent | 7 | today | MIT | A | 51 | Claude Code |
| FAI Azure Identity Expertfrootai/frootai | Agent | 7 | today | MIT | A | 43 | Claude Code |
| FAI Azure Monitor Expertfrootai/frootai | Agent | 7 | today | MIT | A | 43 | Claude Code |
| FAI Azure Networking Expertfrootai/frootai | Agent | 7 | today | MIT | A | 40 | Claude Code |
| FAI Azure Policy Expertfrootai/frootai | Agent | 7 | today | MIT | A | 33 | Claude Code |