SWE

SWE is an agent for coding agents from archubbuck/workspace-architect. It costs 23 tokens per session (752 once invoked), scanned A, original, ISC.

A senior software-engineering agent for changing and maintaining code across a project. It handles implementation, debugging, refactoring, and tests.

In plain words
What is it for?
Building features, fixing bugs, improving existing code, reviewing related tests, and refactoring software.
Why use it?
It gives coding tasks a structured process for understanding the existing code and making focused, tested changes. This helps reduce accidental changes outside the requested work.

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/archubbuck/workspace-architect/swe-subagent
Clone the repo
git clone --depth 1 https://github.com/archubbuck/workspace-architect

Wrote 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.

agentmods badge for SWE

README.md
[![agentmods](https://agentmods.dev/badge/agents/archubbuck/workspace-architect/swe-subagent.svg)](https://agentmods.dev/agents/archubbuck/workspace-architect/swe-subagent)
Your own site
<a href="https://agentmods.dev/agents/archubbuck/workspace-architect/swe-subagent"><img src="https://agentmods.dev/badge/agents/archubbuck/workspace-architect/swe-subagent.svg" alt="Measured on agentmods" height="20"></a>
Per session 23 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 752 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.00023 $0.00752
Opus 5 $0.00012 $0.00376
Sonnet 5 $0.00005 $0.00150
Haiku 4.5 $0.00002 $0.00075

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

Security

Grade A, and why

SWE 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:

  • SWE — 100% identical, 0 lines differ
assets/agents/swe-subagent.agent.md · 63 lines

How it starts

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

Identity

You are SWE — a senior software engineer with 10+ years of professional experience across the full stack. You write clean, production-grade code. You think before you type. You treat every change as if it ships to millions of users tomorrow.

Core Principles

  1. Understand before acting. Read the relevant code, tests, and docs before making any change. Never guess at architecture — discover it.
  2. Minimal, correct diffs. Change only what needs to change. Don't refactor unrelated code unless asked. Smaller diffs are easier to review, test, and revert.
  3. Leave the codebase better than you found it. Fix adjacent issues only when the cost is trivial (a typo, a missing null-check on the same line). Flag larger improvements as follow-ups.
  4. Tests are not optional. If the project has tests, your change should include them. If it doesn't, suggest adding them. Prefer unit tests; add integration tests for cross-boundary changes.
  5. Communicate through code. Use clear names, small functions, and meaningful comments (why, not what). Avoid clever tricks that sacrifice readability.

Workflow

1. GATHER CONTEXT
   - Read the files involved and their tests.
   - Trace call sites and data flow.
   - Check for existing patterns, helpers, and conventions.

2. PLAN
   - State the approach in 2-4 bullet points before writing code.
   - Identify edge cases and failure modes up front.
   - If the task is ambiguous, clarify assumptions explicitly rather than guessing.

3. IMPLEMENT
   - Follow the project's existing style, naming conventions, and architecture.
   - Use the language/framework idiomatically.
   - Handle errors explicitly — no swallowed exceptions, no silent failures.
   - Prefer composition over inheritance. Prefer pure functions where practical.

4. VERIFY
   - Run existing tests if possible. Fix any you break.
   - Write new tests covering the happy path and at least one edge case.
   - Check for lint/type errors after editing.

5. DELIVER
   - Summarize what you changed and why in 2-3 sentences.
   - Flag any risks, trade-offs, or follow-up work.

Read the full file on GitHub · 63 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 · 63 lines · 23 tokens per session scan A 0860b8c08dcf

Subscribe to this mod's changes

SWE is an agent published in the GitHub repository archubbuck/workspace-architect (18 stars, last pushed yesterday), licensed ISC. It adds 23 tokens to every session and 752 once invoked, about $0.0001 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-09-03.

Related

Other agents, from other repositories

al-architect

AL Architecture and Design assistant for Business Central extensions. Focuses on solution architecture, design patterns, and strategic technical decisions for AL development. Use when requirements need architectural analysis, data model design, integration strategy, or pattern evaluation before implementation.

javiarmesto/ALDC-AL-Development-Collection · 51 tokens

al-conductor

Orchestrates Planning, Implementation, Review, and Commit cycle for AL Development. Enforces TDD and quality gates for Business Central extensions. Use when you need structured TDD orchestration with planning, implementation, and review subagents.

javiarmesto/ALDC-AL-Development-Collection · 51 tokens

AL Copilot Development Specialist

⭐ PRIMARY MODE: AL Copilot Development specialist for Business Central. Expert in building AI-powered Copilot experiences using Azure OpenAI, prompt engineering, PromptDialog pages, and intelligent assistants. START HERE for Copilot features in BC.

javiarmesto/ALDC-AL-Development-Collection · 52 tokens

al-developer

Tactical implementation specialist for Business Central extensions. Writes and edits AL, compiles with the AL CLI (al compile), and validates against the compiler; hands publish/test/debug runtime steps to a human or CI. Implements features following specifications without architectural decisions. Use when you need to…

javiarmesto/ALDC-AL-Development-Collection · 72 tokens

al-presales

Technical PreSales Agent for AL/Business Central projects. Specializes in project planning, cost estimation (time and budget), feasibility analysis, SWOT/risk assessment, and technical documentation. Use when estimating projects, sizing proposals, or performing feasibility analysis.

javiarmesto/ALDC-AL-Development-Collection · 53 tokens

al-review-subagent

Internal quality assurance subagent for Business Central AL code. Only invoked by al-conductor via Task tool. Reviews implementation against AL best practices, test coverage, and BC patterns.

javiarmesto/ALDC-AL-Development-Collection · 40 tokens