aktual: Agent for Claude Code

.claude/agents/gradle-runner.md

gradle-runner is an agent for Claude Code from jonapoul/aktual. It costs 42 tokens per session (905 once invoked), scanned A, original, Apache-2.0.

An agent that runs Gradle build, test, and formatting commands while returning only useful errors and warnings.

In plain words
What is it for?
It helps compile modules, run the project's specific test tasks, and check Kotlin formatting with the required command and timeout rules.
Why use it?
Gradle output can be very large, making failures difficult to find and wasting the main agent's context.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is jonapoul/aktual's own configuration. It tells Claude Code how to work on aktual 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 aktual configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/gradle-run.sh <tasks> [flags].

Reuse

Borrowing it

Nothing to install: this file belongs to jonapoul/aktual. 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/jonapoul/aktual/main/.claude/agents/gradle-runner.md
Clone the repo
git clone --depth 1 https://github.com/jonapoul/aktual

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 gradle-runner

README.md
[![agentmods](https://agentmods.dev/badge/agents/jonapoul/aktual/gradle-runner/github.svg)](https://agentmods.dev/agents/jonapoul/aktual/gradle-runner)
Your own site
<a href="https://agentmods.dev/agents/jonapoul/aktual/gradle-runner"><img src="https://agentmods.dev/badge/agents/jonapoul/aktual/gradle-runner/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 gradle-runner

Your own site · 80×15
<a href="https://agentmods.dev/agents/jonapoul/aktual/gradle-runner"><img src="https://agentmods.dev/badge/agents/jonapoul/aktual/gradle-runner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 905 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.00042 $0.00905
Opus 5.5 $0.00017 $0.00362
Sonnet 5.5 $0.00008 $0.00181
Haiku 4.5 $0.00004 $0.00090

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

Security

Grade A, and why

gradle-runner 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 6d 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.

.claude/agents/gradle-runner.md · 82 lines

How it starts

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

Gradle Runner

Run a single Gradle command and return only the actionable output (errors, failures, warnings). This keeps the parent context window clean by absorbing verbose Gradle noise in an isolated agent.

Execution

Parse the caller's prompt for the Gradle task(s) to run and any extra flags, then run via the wrapper script which handles output capture, filtering, and exit-code propagation:

./scripts/gradle-run.sh <tasks> [flags]

Common invocations

# Compile one module (most common)
./scripts/gradle-run.sh :<module>:compileAll

# Run tests for one module - `:<module>:test` is AMBIGUOUS in this project; use a
# concrete task: `testAll`, `testAndroidHostTest`, or `testAndroid`
./scripts/gradle-run.sh :<module>:testAndroidHostTest --continue

# Format check
./scripts/ktfmt.sh check 2>&1 | grep -v "^$" | head -50

Getting more output

The script prints a filtered view, capped at 200 lines, and ends with the path of the full log, e.g. Full log (1234 lines): /.../build/gradle-run/20261006-191500-12345.log. If the filtered view is missing something the caller asked for, or says TRUNCATED, search that log instead of running Gradle again:

grep -nE "<pattern>" <log path> | head -100
sed -n '<from>,<to>p' <log path>

Test failure details are in <module-dir>/build/test-results/**/*.xml and detekt findings in <module-dir>/build/reports/detekt/issues.txt, with every module's findings from the last run merged in build/reports/detekt/all-issues.txt.

Helper scripts

./scripts/detekt.sh, compile.sh, test.sh and lint.sh aren't wrapped by gradle-run.sh. Run them directly and filter the output, e.g. ./scripts/detekt.sh 2>&1 | tail -100. Read detekt findings from build/reports/detekt/all-issues.txt and test failures from the result XML.

Output files

Never write output to a file of your own (> out.txt, tee, /tmp/...), not even a scratch one you delete afterwards. Everything you need is in the full log or under build/.

Read the full file on GitHub · 82 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. 6d ago Changed 9a520115036d
  2. 20d ago Changed · +11 lines 37c74545025e
  3. 29d ago Changed · +17 lines 167332ecf230
  4. 1mo ago Changed f113cef9830b
  5. 2mo ago First seen · 54 lines · 42 tokens per session scan A 3f863da76a64

Subscribe to this mod's changes

gradle-runner is an agent published in the GitHub repository jonapoul/aktual (43 stars, last pushed yesterday), licensed Apache-2.0. It adds 42 tokens to every session and 905 once invoked, about $0.0002 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-09-01.

Related

gradle-runner compared with agents from other repositories

gradle-runner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
gradle-runnerjonapoul/aktualAgent43yesterdayApache-2.0A42Claude Code
deep-workerkvdm-co-pilot/create-cmpAgent016d agoMITA99Claude Code
Squaddotnet/maui-labsAgent235yesterdayMITC23Claude Code
kotlin-expertandisab/swe-marketplaceAgent21yesterdayMITA28Claude Code
playwright-test-generatormicrosoft/playwrightAgent99kyesterdayApache-2.0A151Claude Code
.NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginnersAgent79k4d agoMITA33Claude Code
code-revieweranthropics/claude-cookbooksAgent54k2d agoMITA52Claude Code