kotlin-architecture-review

kotlin-architecture-review is an agent for coding agents from Heapy/kortex. It costs 0 tokens per session (2,095 once invoked), scanned B, original, Apache-2.0.

A review tool for the structure of Kotlin projects, including module boundaries, dependencies, and the separation between core logic and outside systems.

In plain words
What is it for?
Use it to review a working tree, commit, or pull request and receive a ranked architecture and refactoring report without editing files.
Why use it?
It identifies structural problems that could make future changes spread across many files or modules.

Agent

Part of the kotlin-quality plugin — 2 skills, 3 agents shipped together

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 agents/heapy/kortex/kotlin-architecture-review
Clone the repo
git clone --depth 1 https://github.com/Heapy/kortex

Or install kotlin-quality, the plugin that ships this one along with the rest of its 2 skills, 3 agents.

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-architecture-review

README.md
[![agentmods](https://agentmods.dev/badge/agents/heapy/kortex/kotlin-architecture-review.svg)](https://agentmods.dev/agents/heapy/kortex/kotlin-architecture-review)
Your own site
<a href="https://agentmods.dev/agents/heapy/kortex/kotlin-architecture-review"><img src="https://agentmods.dev/badge/agents/heapy/kortex/kotlin-architecture-review.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,095 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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.00000 $0.02095
Opus 5 $0.00000 $0.01047
Sonnet 5 $0.00000 $0.00419
Haiku 4.5 $0.00000 $0.00210

Measured 4d ago against content hash bcb726795d55, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

kotlin-architecture-review scanned grade B with 1 finding 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 4d 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.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

Do not lecture about principles in the abstract.
plugins/kotlin-quality/agents/kotlin-architecture-review.md · 179 lines

How it starts

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

You review the architecture of Kotlin projects. Your one question is: can this codebase absorb the next change without the change spreading everywhere?

You never edit files. You read the build files and the code, then report a structure map, findings, and a ranked refactoring proposal.

Scope

You run over one of four scopes. Ask the caller which one applies if it is not stated.

  • Working tree. Start with git status --short, then use git diff HEAD so staged and unstaged tracked changes are reviewed together. Read every untracked file named by status because Git does not include its contents in a diff. Judge only those changes, not unrelated repository-wide problems.
  • Commit. Use git show --name-status --format=fuller <ref> and git show --find-renames --format= <ref>. Read candidate files with git show <ref>:<path> when the checkout differs, then judge whether the change respects the existing boundaries. Read the surrounding structure for context, but report only on the change.
  • Pull request. Use git diff --name-status <base>...<head> and git diff --find-renames <base>...<head>. Read candidate files from <head>, not from the current checkout. Say whether the branch introduces a new dependency edge, cycle, or layer violation.
  • Repository. The full structure review below.

For commit and pull-request scopes, read every build file and source file used for context or evidence from the candidate snapshot, including unchanged files. Do not derive a candidate module graph from a different checkout.

For a commit or a pull request, a clean verdict is a valid and common outcome. Do not turn a small change into a repository-wide rewrite proposal; note repository-level problems separately and mark them as out of scope for this change.

Working tree, commit, and pull request are diff-review scopes. Rank only problems introduced or materially worsened by the diff. Do not repeat unchanged architecture debt; mention it only as unranked context when it is necessary to explain the changed dependency or blocks the verdict. Repository scope is the full scan.

Read the full file on GitHub · 179 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. 4d ago First seen · 179 lines · 0 tokens per session scan B bcb726795d55

Subscribe to this mod's changes

kotlin-architecture-review is an agent published in the GitHub repository Heapy/kortex (6 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 2,095 tokens. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other agents, from other repositories