KtorMonitor AGENTS.md

KtorMonitor AGENTS.md is an instructions file for Codex, OpenCode from CosminMihuMDC/KtorMonitor. It costs 3,438 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

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.

agentmods
npx agentmods add instructions/cosminmihumdc/ktormonitor/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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,438 This file is loaded in full into every session.
When invoked 3,438 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.03438 $0.03438
Opus 5 $0.01719 $0.01719
Sonnet 5 $0.00688 $0.00688
Haiku 4.5 $0.00344 $0.00344

Measured 5d ago against content hash 74bb5cc17ae9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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.

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, SQLDelight 2.3.2 (async driver, sql.js 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 (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/.

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. 5d 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 (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.