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.
curl -O https://raw.githubusercontent.com/jonapoul/aktual/main/.claude/agents/gradle-runner.mdgit clone --depth 1 https://github.com/jonapoul/aktualWrote 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.
[](https://agentmods.dev/agents/jonapoul/aktual/gradle-runner)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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/.
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.
- 6d ago Changed 9a520115036d
- 20d ago Changed · +11 lines 37c74545025e
- 29d ago Changed · +17 lines 167332ecf230
- 1mo ago Changed f113cef9830b
- 2mo ago First seen · 54 lines · 42 tokens per session scan A 3f863da76a64
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.
gradle-runner compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| gradle-runnerjonapoul/aktual | Agent | 43 | yesterday | Apache-2.0 | A | 42 | Claude Code |
| deep-workerkvdm-co-pilot/create-cmp | Agent | 0 | 16d ago | MIT | A | 99 | Claude Code |
| Squaddotnet/maui-labs | Agent | 235 | yesterday | MIT | C | 23 | Claude Code |
| kotlin-expertandisab/swe-marketplace | Agent | 21 | yesterday | MIT | A | 28 | Claude Code |
| playwright-test-generatormicrosoft/playwright | Agent | 99k | yesterday | Apache-2.0 | A | 151 | Claude Code |
| .NET-Notebook-Migration-Agentmicrosoft/ai-agents-for-beginners | Agent | 79k | 4d ago | MIT | A | 33 | Claude Code |
| code-revieweranthropics/claude-cookbooks | Agent | 54k | 2d ago | MIT | A | 52 | Claude Code |