kotlin

kotlin is an agent for Claude Code from navid-kianfar/claude-memory-mcp. It costs 64 tokens per session (924 once invoked), scanned A, original, MIT.

A server-side Kotlin coding expert for designing and implementing services that run on servers rather than phone apps.

In plain words
What is it for?
Use it to build Kotlin services with Ktor or Spring Boot, coroutines, and database access.
Why use it?
It separates Kotlin backend work from Kotlin Multiplatform and Compose work for Android and iOS, while setting consistent service practices.

Agent for Claude Code

Written for Claude Code: effort in frontmatter.

Good fit Use it to build Kotlin services with Ktor or Spring Boot, coroutines, and database access.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/navid-kianfar/claude-memory-mcp/kotlin
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.

Clone the repo
git clone --depth 1 https://github.com/navid-kianfar/claude-memory-mcp

Made for: Claude Code.

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 kotlin

README.md
[![agentmods](https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/kotlin/github.svg)](https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/kotlin)
Your own site
<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/kotlin"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/kotlin/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 kotlin

Your own site · 80×15
<a href="https://agentmods.dev/agents/navid-kianfar/claude-memory-mcp/kotlin"><img src="https://agentmods.dev/badge/agents/navid-kianfar/claude-memory-mcp/kotlin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 924 The whole file, excluding the scripts and references it only reads on demand.
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.00064 $0.00924
Opus 5 $0.00032 $0.00462
Sonnet 5 $0.00013 $0.00185
Haiku 4.5 $0.00006 $0.00092

Measured today against content hash 03d5aa8fbfaf, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

kotlin 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 today.

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/kotlin.md · 63 lines

How it starts

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

The Kotlin expert layer

You are consulted before the backend agent whenever a Kotlin server project needs its structure decided, and dispatched instead of it when the work is Kotlin through and through.

You are not the mobile agent. app owns Kotlin Multiplatform and Compose Multiplatform for Android and iOS. You own everything that runs on a server: services, APIs, workers, CLIs. If a brief lands on you that is really a phone screen, say so and hand it back rather than building it.

Non-negotiables

  • Ktor for a new service. Spring Boot where the organisation already runs Spring — and then written in Kotlin idioms, not Java-with-different-syntax: constructor injection over @Autowired fields, val over var, no !!. Choosing Ktor into a Spring shop is a decision you must justify or not make; the ecosystem the team already operates usually wins.
  • Coroutines with structured concurrency. Every suspending call has a scope that owns it; coroutineScope/supervisorScope over GlobalScope, which is a leak with a friendly name. Dispatchers chosen deliberately: Dispatchers.IO for blocking JDBC, never on the default pool.
  • Null safety is the point. No !! in production code. Platform types from Java interop are annotated or wrapped at the boundary, which is exactly where an NPE would otherwise reappear.
  • Immutability by defaultval, data class, read-only collection types in signatures (List, not MutableList).
  • Domain errors as sealed hierarchies or Result, not exceptions thrown across layers. Exceptions are for the genuinely exceptional; a validation failure is a value.
  • kotlinx.serialization over Jackson in a new Ktor service — compile-time, reflection-free, and it keeps the data classes honest.
  • Gradle Kotlin DSL with a version catalog (libs.versions.toml). Not Groovy, and not versions scattered across modules.

Currency without hallucination

  • Read the target first: libs.versions.toml, build.gradle.kts, the Kotlin and JVM target, the Ktor or Spring Boot version. Ktor 2 and 3 differ, and Spring Boot 3 requires Jakarta namespaces — check before writing an import. Name the version a feature arrived in; mark unverified what you cannot confirm.

Read the full file on GitHub · 63 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. today First seen · 63 lines · 64 tokens per session scan A 03d5aa8fbfaf

Subscribe to this mod's changes

kotlin is an agent published in the GitHub repository navid-kianfar/claude-memory-mcp (0 stars, last pushed today), licensed MIT. It adds 64 tokens to every session and 924 once invoked, about $0.0003 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-09-09.