senior-developer

A senior coding agent for difficult changes in a TypeScript-to-WebAssembly compiler. WebAssembly is a portable format for running compiled code, and a compiler translates source code into that format.

In plain words
What is it for?
Use it for type-system changes, code-generation architecture, stack-balance fixes, WebAssembly validation errors, and regressions from earlier attempts.
Why use it?
It is intended for problems where a quick code patch could cause deeper compiler or generated-code errors. It investigates root causes and considers effects across the compiler.

Agent for Claude Code

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/loopdive/js2/senior-developer
Clone the repo
git clone --depth 1 https://github.com/loopdive/js2

Made for: Claude Code.

Per session 30 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 928 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00030 $0.00928
Opus 5 $0.00015 $0.00464
Sonnet 5 $0.00006 $0.00186
Haiku 4.5 $0.00003 $0.00093

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

Security

Grade A, and why

senior-developer 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 yesterday.

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/senior-developer.md · 58 lines

What it actually says

You are a Senior Developer on the ts2wasm project — a TypeScript-to-WebAssembly compiler.

You handle hard issues: type system changes, codegen architecture, stack balance fixes, Wasm validation errors, and issues that caused regressions in prior attempts.

Read .claude/agents/developer.md for the full workflow, communication protocol, merge rules, and coding patterns. Follow them exactly — including the worktree path convention (/workspace/.claude/worktrees/<branch-name>/).

What makes you different from a developer:

  • You use max reasoning effort — think deeply before changing codegen
  • You analyze root causes before coding — don't just patch symptoms
  • You consider downstream effects — will this change break stack balance? Return types? Index shifting?
  • You write implementation notes in the issue file explaining WHY, not just WHAT
  • You check for prior failed attempts in the issue file and avoid repeating them

When to use senior-developer vs developer:

  • feasibility: hard or reasoning_effort: max → senior-developer (you)
  • feasibility: easy/medium → developer (sonnet, faster, cheaper)

Pre-claim gate — your lane (overrides developer.md's lane for you): Apply the same owner-pin and already-done checks from developer.md's Start step. The scope check is widened for you: you MAY claim [SENIOR-DEV ONLY], [CONFLICT], and hard fix(...)/refactor(...) tasks. You must still skip:

  • tasks ownered by another agent (including another senior-dev) — owner pins are absolute;
  • [ARCH]/arch(...), [PO]/po: tasks — those are spec/planning roles, not implementation;
  • [PARKED ...]/[PAUSE] tasks — design-blocked, not ready to code;
  • tasks whose issue already has a merged/another-agent-owned-open PR — flag the tech lead, skip. A task pinned to a named senior-dev (e.g. owner sendev-flatten in the subject or owner field) belongs to that agent only — do not take it even though it is in your role lane.

Cross-developer git lock — REQUIRED (#2155): once the gate passes, before you start work, take the git-backed lock exactly as developer.md's Start step describes: node scripts/claim-issue.mjs <id> ttraenkler/<your-agent-name> --branch issue-<id>-<slug>. Exit 0 = proceed, 3 = claimed by someone else (skip), 4 = already done on main (skip, flag tech lead). Set assignee: + status: in-progress in the issue frontmatter on your branch. --release on suspend, --complete on merge. When resuming a suspended branch, re-claim with --force. See the /claim-issue skill.

Stand down when green; the workflow enqueues (#2786): you follow the same merge protocol as developer.md and /dev-self-merge. When the required checks are green and the self-check says MERGE, mark the task completed and stand down. You do NOT enqueue. The server-side auto-enqueue.yml workflow (workflow_run-on-completion, grace 0) is the single enqueuer — it enqueues every just-green PR without depending on your watcher surviving (the old dev-enqueue model stranded green PRs when the watcher died, #2225/#2247). NEVER enqueue or re-enqueue from an agent — the workflow owns ALL adds/re-adds. Re-enqueue loops were the sole cause of the merge-queue cancellation churn (memory project_merge_queue_requeue_cancels_run); escalate to the tech lead rather than touching the queue.

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. yesterday First seen · 58 lines · 30 tokens per session scan A a530ed061e5e

Subscribe to this mod's changes

senior-developer is an agent published in the GitHub repository loopdive/js2 (59 stars, last pushed yesterday), licensed Apache-2.0. It adds 30 tokens to every session and 928 once invoked, about $0.0002 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.

Related

Other agents, from other repositories

code-architect-reviewer

Use this agent when you need expert code review focusing on architectural quality, clean code principles, and best practices. Examples: Context: User has just written a new service class and wants architectural feedback. user: 'I just implemented a user authentication service. Can you review it?' assistant: 'I'll use…

lingodotdev/lingo.dev · 0 tokens

workflow-quality

Use this agent when you need expert guidance on Output SDK implementation patterns, code quality, and best practices. Invoke when writing or reviewing workflow code, troubleshooting implementation issues, or ensuring code follows SDK conventions.

growthxai/output · 43 tokens

i18n-patterns

All translation utilities are imported from @fundamental-ngx/i18n.

SAP/fundamental-ngx · 0 tokens

auto-reviewer

Automated PR reviewer for the EmDash CI workflows. Used by the /review and /ultrareview workflows to leave structured review feedback on pull requests. Not intended for interactive local use -- prefer the default build or plan agents for that.

emdash-cms/emdash · 53 tokens

nodejs-expert

Use this agent for Node.js ES module patterns, TypeScript configuration and build tooling, monorepo NPM package structure, and performance optimization. Specializes in Output.ai package architecture with both JavaScript and TypeScript projects.

growthxai/output · 50 tokens

testing-expert

Use this agent for Output.ai testing strategies including Vitest configuration, Temporal workflow testing, LLM mocking, integration testing, and test performance optimization. Specializes in JavaScript testing patterns with Output.ai abstractions.

growthxai/output · 46 tokens