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.
npx agentmods add instructions/cosminmihumdc/ktormonitor/agents-mdgit clone --depth 1 https://github.com/CosminMihuMDC/KtorMonitorWrote 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/instructions/cosminmihumdc/ktormonitor/agents-md)<a href="https://agentmods.dev/instructions/cosminmihumdc/ktormonitor/agents-md"><img src="https://agentmods.dev/badge/instructions/cosminmihumdc/ktormonitor/agents-md.svg" alt="Measured on agentmods" 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 | $0.03438 | $0.03438 |
| Opus 5 | $0.01719 | $0.01719 |
| Sonnet 5 | $0.00688 | $0.00688 |
| Haiku 4.5 | $0.00344 | $0.00344 |
Grade A, and why
KtorMonitor AGENTS.md 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 5d 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 — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — KtorMonitor
Operational guide for AI coding agents (and new contributors) working in this repository.
Keep this file up to date when build commands, module layout, conventions or coding standards change.
1. Project overview
KtorMonitor is a Kotlin Multiplatform library that intercepts and visualizes HTTP traffic from Ktor Client and OkHttp, with a Compose Multiplatform UI for inspecting requests and responses.
- Targets: Android, iOS (arm64 / simulator arm64), Desktop JVM (Windows / macOS / Linux), JS (browser), Wasm/JS (browser).
- Tech stack: Kotlin 2.3.21, Compose Multiplatform 1.11.0-beta01, Ktor 3.4.3, OkHttp 5.3.2, http4k 6.15.1.0, SQLDelight 2.3.2 (async driver,
sql.json web), Koin 4.2.1, Coil 3.4.0, kotlinx.atomicfu, kotlinx.coroutines, kotlinx.datetime, kotlinx.serialization. - Group / artifacts (group
ro.cosminmihu.ktor):ktor-monitor-core— shared core (UI + storage)ktor-monitor-core-no-op— ABI-equivalent no-opktor-monitor-logging— Ktor client pluginktor-monitor-logging-no-opktor-monitor-okhttp-interceptor— OkHttp interceptor (Android & JVM)ktor-monitor-okhttp-interceptor-no-opktor-monitor-http4k-filter— http4k Filter (Android & JVM)ktor-monitor-http4k-filter-no-op
- Distribution: Maven Central, signed via
com.vanniktech.maven.publish, ABI checked viabinary-compatibility-validator, docs via Dokka + MkDocs Material (docs/).
2. Module structure
| Path | Plugin / target | Purpose |
|---|---|---|
core/library |
KMP library (all targets) | DB (SQLDelight), Compose UI, Koin DI, notification & share managers. |
core/library-no-op |
KMP library | API-compatible empty implementation for production builds. |
ktor/library-ktor |
KMP library | Ktor client KtorMonitorLogging plugin; depends on core/library. |
ktor/library-ktor-no-op |
KMP library | No-op mirror of library-ktor. |
okhttp/library-okhttp |
KMP (Android + JVM) | KtorMonitorInterceptor for OkHttp; depends on core/library. |
okhttp/library-okhttp-no-op |
KMP (Android + JVM) | No-op mirror of library-okhttp. |
http4k/library-http4k |
KMP (Android + JVM) | KtorMonitorFilter for http4k; depends on core/library. |
http4k/library-http4k-no-op |
KMP (Android + JVM) | No-op mirror of library-http4k. |
sample/ktor/shared |
KMP shared module | Shared business/UI code for Ktor sample. |
sample/ktor/androidApp |
Android application | Android app for Ktor sample. |
sample/ktor/jvmApp |
JVM desktop application | Desktop app for Ktor sample. |
sample/ktor/webApp |
KMP web app module | JS + Wasm browser targets for Ktor sample. |
sample/okhttp/shared |
KMP shared module | Shared business/UI code for OkHttp sample. |
sample/okhttp/androidApp |
Android application | Android app for OkHttp sample. |
sample/okhttp/jvmApp |
JVM desktop application | Desktop app for OkHttp sample. |
sample/http4k/shared |
KMP shared module | Shared business/UI code for http4k sample. |
sample/http4k/androidApp |
Android application | Android app for http4k sample. |
sample/http4k/jvmApp |
JVM desktop application | Desktop app for http4k sample. |
docs/ |
MkDocs Material | Documentation site, including generated Dokka API docs in docs/api/. |
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.
- 5d ago First seen · 155 lines · 3,438 tokens per session scan A 74bb5cc17ae9
KtorMonitor AGENTS.md is an instructions file published in the GitHub repository CosminMihuMDC/KtorMonitor (230 stars, last pushed 4d ago), licensed Apache-2.0. It adds 3,438 tokens to every session, about $0.0172 per session on Opus 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-30.
Other instructions, from other repositories
skills AGENTS.md
AGENTS.md instructions for chrisbanes/skills, covering agents.md, when adding, renaming, or removing a skill, skill authoring checklist, evaluation result documentation and release/version system.
kmp-lsp AGENTS.md
AGENTS.md instructions for Hessesian/kmp-lsp, covering agents.md — kmp-lsp project instructions, workflow, code quality, rust-specific and key files.
kmp-lsp copilot-instructions.md
Copilot instructions for Hessesian/kmp-lsp, covering kmp-lsp — agent & copilot coding instructions, workflow, code quality, rust-specific and key files.
ampere AGENTS.md
AGENTS.md instructions for socket-link/ampere, covering agents.md, concepts, changelog, development commands and build & test.
kormium AGENTS.md
AGENTS.md instructions for kormium/kormium, covering kormium for ai agents, mental model (read this first), define a schema, connect and inspect the sql without running it.
kotlin-lib-mcp CLAUDE.md
Claude Code instructions for aoreshkov/kotlin-lib-mcp, covering kotlin-lib-mcp, modules, build & run, conventions & gotchas and mcp tools.