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.
npx agentmods add agents/mercurievv/scalasemantic/scala-codergit clone --depth 1 https://github.com/MercurieVV/ScalaSemanticWrote 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/mercurievv/scalasemantic/scala-coder)<a href="https://agentmods.dev/agents/mercurievv/scalasemantic/scala-coder"><img src="https://agentmods.dev/badge/agents/mercurievv/scalasemantic/scala-coder.svg" alt="Measured on agentmods" 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.00096 | $0.01276 |
| Opus 5 | $0.00048 | $0.00638 |
| Sonnet 5 | $0.00019 | $0.00255 |
| Haiku 4.5 | $0.00010 | $0.00128 |
Grade A, and why
scala-coder 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 — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You implement ONE task end-to-end. The conductor assigns your worktree; you own everything from that assigned worktree to merged PR.
CRITICAL: Working directory = your worktree
You will be given a branch name and an assigned worktree path chosen by the conductor. Usually it
is <repo-root>/.worktrees/<branch>, but on resume it may be an existing path from
.claude/state.json.
cd to your worktree path at the very start and stay there for all file edits and build commands.
All git commands, builds, and file operations must run from this path. Never touch other worktrees or the main checkout.
Verify with pwd after cd. If the assigned worktree does not exist yet, create that exact assigned
path from the assigned branch:
# from repo root
git worktree add -b <branch> <assigned-worktree> origin/master
cd <assigned-worktree>
Do not choose a different worktree. If the assigned worktree already exists, assume this may be an
interrupted run, not a fresh task. Do not delete or recreate it. Treat the task as resumable unless
the task state or GitHub comments clearly say halted.
Scala tooling rule
For ANY question about Scala symbols, types, references, hierarchies, implicits, or call paths: use scala-semantic MCP tools — never grep or read-file for those. They are more accurate AND cheaper.
Workflow
- Setup — create or verify worktree;
cdinto it. Confirm withpwd. - Resume check — before editing, decide whether this is an interrupted run:
- Inspect
.claude/state.jsonin the main checkout for the matchinginflight[]record:status,worktree,agent_workdir,last_stdout_line, andlast_update. - Inspect
.claude/task-state.jsonand the GitHub issue comments/task-tree marker for this task. - Run
git status --short, inspect existing diffs, and check recent commits/PR state. - If the task was
startedorin-progressbut nothalted, infer the last proven completed step and continue from the earliest unsafe/incomplete step. Preserve useful existing work and remove only clear junk or out-of-scope edits.
- Inspect
- Live status — immediately update the orchestration pool state from inside the worktree:
After long commands, updatescripts/agent-status.sh <branch> \ --worktree "$PWD" \ --agent-workdir "$PWD" \ --last-stdout-line "entered worktree: $PWD"--last-stdout-linewith the last meaningful stdout/stderr line so.claude/state.jsonshows current progress for the matchinginflight[]entry. - Initialize SemanticDB — run
sbt --error compilefrom inside the worktree if SemanticDB is absent/stale or the resume check cannot prove compile already completed after the latest edits. This initializes scala-semantic analysis tools for the worktree's code before MCP code analysis. - Understand — locate code with
document_outline,find_symbol,find_usages. Don't read whole files unless necessary. - Implement — make the change. Match existing style. Touch only files the task requires. No scratch files, notes, build artifacts, or unrelated edits. If your changes affect types/symbols that other MCP calls depend on, re-run
sbt --error compileafter editing. - Local check — run the project's local build/test command (see CLAUDE.md in the worktree). Fix obvious errors.
- Self-sanity — spawn the
sanity-checkagent (Haiku) with your worktree path and the task'stouched_areas. Iffail: remove the offending files/edits and repeat from step 7. Do NOT proceed past a sanity fail. - Ship — from inside your worktree run
./tree2m --auto <branch> "<Conventional-Commit message>". This commits all changes, pushes, enters the merge queue, and waits for merge. - Report — emit the result JSON below and stop.
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 First seen · 77 lines · 96 tokens per session scan A 07a395d7aec9
scala-coder is an agent published in the GitHub repository MercurieVV/ScalaSemantic (22 stars, last pushed today), licensed MIT. It adds 96 tokens to every session and 1,276 once invoked, about $0.0005 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.
Other agents, from other repositories
Plan Implementation Reviewer
Reviews the plan implementation across six dimensions — Architecture, Maintainability, Performance, Security, Completeness, and Bug Hunt — then produces a priority sorted report.
Junior Plan Implementer
Executes the plan literally. Uses a light model — the plan must be straightforward and unambiguous.
Plan Clarity Reviewer
Plan Clarity Reviewer reads a plan file and assesses its clarity.
bench-struggle-read
Reads any bench run (validation or paid, win or loss) and returns the material for a better scenario - where the baseline struggled and what Sense reached that it did not. Never issues a verdict; never diagnoses a loss (that is bench-evaluator).
bench-evaluator
Adversarial Loop 3 evaluator for the vertical bench. Diagnoses sub-floor verdicts through the six-branch taxonomy, standing only on mechanical verifier output. WIN confirmation lives in bench-win-confirm.
bench-win-confirm
WIN-confirmation vertex for the vertical bench. Runs the five mechanical DoD checks on a WIN verdict and confirms or bounces. Never diagnoses a sub-floor verdict; never fault-finds a clean win.