~ / rigs / MercurieVV / ScalaSemantic

MercurieVV/ScalaSemantic

MCP server for deep semantic analysis of Scala via SemanticDB — exact find-usages, class hierarchies, implicit resolution & call paths for AI coding agents like Claude Code. Beyond grep and standard LSP.

↗ GitHub ★ 23 MIT updated 4d ago project Claude CodeCodexCursor
stack: Scala
share on X
ARCHETYPE
Orchestrator
A bench of specialised subagents. The main agent mostly delegates.
CONTEXT TAX · EVERY TURN
~3.9k tokens
Moderate · median rig: 2.3k · breakdown
GUARDRAILS
3/5
Blocks destructive commands · Pre-tool screening hook · No YOLO mode · details
Quality 27/100 Guardrails v2

Copy this rig

# review before running: this installs third-party code
$ npx degit MercurieVV/ScalaSemantic/.claude ./rig-scalasemantic  # inspect, then merge into .claude/

MCP servers are added to Claude Code at local scope; env vars are shown as YOUR_… placeholders — we never store values. Files are fetched with degit into a separate folder so you can review before merging.

$ npx degit MercurieVV/ScalaSemantic/.claude/skills/gh-task .claude/skills/gh-task
$ npx degit MercurieVV/ScalaSemantic/.claude/skills/orchestrate .claude/skills/orchestrate
$ npx degit MercurieVV/ScalaSemantic/.claude/skills/ta<redacted> .claude/skills/ta<redacted>
$ npx degit MercurieVV/ScalaSemantic/.claude/skills/typed-holes .claude/skills/typed-holes
$ curl -fsSL --create-dirs -o .claude/agents/sanity-check.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/sanity-check.md
$ curl -fsSL --create-dirs -o .claude/agents/scala-coder.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/scala-coder.md
$ curl -fsSL --create-dirs -o .claude/agents/task-plan-architect.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-plan-architect.md
$ curl -fsSL --create-dirs -o .claude/agents/task-prioritizer.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-prioritizer.md
$ curl -fsSL --create-dirs -o .claude/agents/task-tree-triage.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/task-tree-triage.md
$ curl -fsSL --create-dirs -o .claude/agents/triage.md https://raw.githubusercontent.com/MercurieVV/ScalaSemantic/master/.claude/agents/triage.md

Merge into .claude/settings.json (project) or ~/.claude/settings.json (user). Hook commands reference scripts in the source repo — copy those too.

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Grep|Glob|Bash|Edit|Write|MultiEdit|mcp__scala-semantic__annotated_source",
        "hooks": [
          {
            "type": "command",
            "command": "\"$CLAUDE_PROJECT_DIR\"/.claude/hooks/scala-semantic-guard.sh"
          }
        ]
      }
    ]
  }
}

Skills (4)

Subagents (6)

sanity-check
model: haiku
Cheap self-check run BY a task agent on its own worktree before committing. Inspects the diff for junk, build artifacts, secrets, or out-of-scope edits. NOT called by the conductor — the task agent ca
scala-coderImplements a single coding task end-to-end in an assigned git worktree for this Scala project. Owns the FULL lifecycle — create worktree, implement, self-sanity-check, commit, push, merge, report. Use
task-plan-architect
model: opus
Uses the smartest available Claude model to expand one broad GitHub issue into a bounded set of implementation-ready subtasks, choosing the preferred LLM/model for each subtask and linking the resulti
task-prioritizer
model: haiku
Fetches all open GitHub issues/tasks for this repo, prioritizes them by project need and dependency order, and comments priority/dependency notes back onto each task. Use before detailed task planning
task-tree-triage
model: haiku
Cheap per-issue classifier for recursive task planning. Reads one GitHub issue, checks task-tree markers, and returns whether to skip, mark as an implementation-ready leaf with executor routing, or se
triage
model: haiku
Cheap sequential classifier. Reads one GitHub issue, decides whether it is a standard coding task or an analytic task, routes it to the right engine+model (or marks it for step-by-step analytic planni

Hooks (2)

eventmatcherruns
PreToolUseRead|Grep|Glob|Bash|Edit|Write|MultiEdit|mcp__scala-semantic__annotated_source"$CLAUDE_PROJECT_DIR"/.claude/hooks/scala-semantic-guard.sh
PostToolUseRead|Edit|Write|MultiEdit|Grep|Glob|Bashpython3 "$CLAUDE_PROJECT_DIR/scripts/log-scala-interaction.py"

Permissions

deny (0)
—
ask (0)
—
allow (40)
Read
Edit
Write
MultiEdit
Glob
Grep
Bash(git *)
Bash(sbt *)
Bash(gh *)
Bash(./tree2m *)
Bash(scripts/*)
Bash(./scripts/*)
Bash(mkdir *)
Bash(rm *)
Bash(mv *)
Bash(cp *)
Bash(chmod *)
Bash(ls *)
Bash(pwd)
Bash(cd *)
Bash(cat *)
Bash(echo *)
Bash(which *)
Bash(mktemp*)
mcp__scala-semantic__find_symbol
mcp__scala-semantic__find_usages
mcp__scala-semantic__class_hierarchy
mcp__scala-semantic__members
mcp__scala-semantic__method_signature
mcp__scala-semantic__document_outline
mcp__scala-semantic__annotated_source
mcp__scala-semantic__call_path
mcp__scala-semantic__resolve_implicits
mcp__scala-semantic__trace_implicit_chain
mcp__scala-semantic__type_at_position
mcp__scala-semantic__find_overloads
mcp__scala-semantic__structure
mcp__scala-semantic__rename_plan
mcp__scala-semantic__move_plan
mcp__scala-semantic__extract_method_plan

Similar rigs

copied ✓