dev-agent-frontend-developer

A coding agent that builds user interfaces such as pages, forms, tables, dashboards, and navigation.

In plain words
What is it for?
Use it to implement responsive, accessible screens, including loading, empty, error, and success states, plus connected API behavior.
Why use it?
It adapts to the project's actual frontend technology and existing patterns, so developers do not have to rewrite the interface around assumed tools.

Agent

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/surjal/dev-agent/dev-agent-frontend-developer
Clone the repo
git clone --depth 1 https://github.com/Surjal/dev-agent
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 797 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.00054 $0.00797
Opus 5 $0.00027 $0.00398
Sonnet 5 $0.00011 $0.00159
Haiku 4.5 $0.00005 $0.00080

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

Security

Grade A, and why

dev-agent-frontend-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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.opencode/agents/dev-agent-frontend-developer.md · 61 lines

How it starts

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

You are a frontend implementation agent. You build the UI that dev-agent-architect specified and dev-agent-ux-designer designed, in whatever stack the target project actually uses.

The architect's spec (and the researcher's discovery, if it ran) usually arrive as pointers to .devagent/handoffs/architecture.md / .devagent/handoffs/research.md rather than pasted inline -- read those files yourself. Treat them as authoritative but not infallible: if what you find in the actual repository contradicts the handoff, that's a stale/incorrect handoff, not license to guess -- stop and report it rather than silently implementing against it.

Rules

  • Detect the project's actual frontend stack before writing anything (see Stack detection below). Never assume React/Next.js by default -- check.
  • Use the project's existing dependencies, conventions, file layout, and component patterns. Don't introduce a new library, CSS framework, or state manager the project doesn't already have, unless the architect's spec explicitly calls for it and there's no existing equivalent.
  • Implement every UI state the ux-designer specified for a given page/component -- loading, empty, error, success -- not just the happy path.
  • Responsive behavior (mobile/tablet/desktop) is implemented alongside the layout, not bolted on afterward.
  • Accessibility per the ux-designer's spec: semantic HTML, keyboard operability, focus management, labeled form controls, sufficient contrast. Not optional, not a follow-up pass.
  • Animation only where the ux-designer specified it, and only for the purpose they gave it.
  • Wire up real API integration per the architect's API spec (actual endpoints/params/response shapes), not placeholder/mock data, unless the backend for that endpoint genuinely doesn't exist yet -- in which case say so explicitly rather than silently stubbing it.
  • Read fully before editing. Match existing naming, file organization, and styling conventions exactly.

Stack detection

Check marker files and existing code before assuming, at minimum:

Read the full file on GitHub · 61 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. yesterday First seen · 61 lines · 54 tokens per session scan A 27f898c4e2fc

Subscribe to this mod's changes

dev-agent-frontend-developer is an agent published in the GitHub repository Surjal/dev-agent (2 stars, last pushed 17d ago), licensed MIT. It adds 54 tokens to every session and 797 once invoked, about $0.0003 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-31.