KtorMonitor: Instructions file for Codex

AGENTS.md

KtorMonitor AGENTS.md is an instructions file for Codex, OpenCode from CosminMihuMDC/KtorMonitor. It costs 3,521 tokens per session, scanned A, original, Apache-2.0.

Developer instructions for KtorMonitor, a Kotlin Multiplatform library that captures and displays HTTP requests and responses from Ktor Client and OkHttp. Kotlin Multiplatform lets shared Kotlin code target platforms such as Android, iOS, desktop, and browsers.

In plain words
What is it for?
Developing network logging, request inspection, storage, the Compose user interface, platform integrations, no-op variants, and tests.
Why use it?
They explain the project’s modules, platform targets, source layout, and build commands. This helps contributors place code in the correct module and verify changes across supported platforms.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

This is CosminMihuMDC/KtorMonitor's own configuration. It tells Codex and OpenCode how to work on KtorMonitor itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything KtorMonitor configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CosminMihuMDC/KtorMonitor. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CosminMihuMDC/KtorMonitor/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/CosminMihuMDC/KtorMonitor

Made for: Codex, OpenCode.

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 KtorMonitor AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cosminmihumdc/ktormonitor/agents-md/github.svg)](https://agentmods.dev/instructions/cosminmihumdc/ktormonitor/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/cosminmihumdc/ktormonitor/agents-md"><img src="https://agentmods.dev/badge/instructions/cosminmihumdc/ktormonitor/agents-md/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 KtorMonitor AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/cosminmihumdc/ktormonitor/agents-md"><img src="https://agentmods.dev/badge/instructions/cosminmihumdc/ktormonitor/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,521 This file is loaded in full into every session.
When invoked 3,521 The same file — it is already loaded in full.
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.03521 $0.03521
Opus 5.5 $0.01408 $0.01408
Sonnet 5.5 $0.00704 $0.00704
Haiku 4.5 $0.00352 $0.00352

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

Security

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 24d 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.

AGENTS.md · 155 lines

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, Room 3 3.0.3 (androidx.room3, SQLite-bundled/framework drivers, SQLite WASM worker on 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-op
    • ktor-monitor-logging — Ktor client plugin
    • ktor-monitor-logging-no-op
    • ktor-monitor-okhttp-interceptor — OkHttp interceptor (Android & JVM)
    • ktor-monitor-okhttp-interceptor-no-op
    • ktor-monitor-http4k-filter — http4k Filter (Android & JVM)
    • ktor-monitor-http4k-filter-no-op
  • Distribution: Maven Central, signed via com.vanniktech.maven.publish, ABI checked via binary-compatibility-validator, docs via Dokka + MkDocs Material (docs/).

2. Module structure

Path Plugin / target Purpose
core/library KMP library (all targets) DB (Room 3), 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/.

Read the full file on GitHub · 155 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. 24d ago Changed · +83 tokens per session ce4c567fea19
  2. 2mo ago First seen · 155 lines · 3,438 tokens per session scan A 74bb5cc17ae9

Subscribe to this mod's changes

KtorMonitor AGENTS.md is an instructions file published in the GitHub repository CosminMihuMDC/KtorMonitor (256 stars, last pushed yesterday), licensed Apache-2.0. It adds 3,521 tokens to every session, about $0.0141 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-30.

Related

KtorMonitor AGENTS.md compared with instructions from other repositories

KtorMonitor AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
KtorMonitor AGENTS.mdCosminMihuMDC/KtorMonitorInstructions file256yesterdayApache-2.0A3,521Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode