se-contract

se-contract is an agent for Claude Code from Arch1eSUN/Arcgentic. It costs 22 tokens per session (2,145 once invoked), scanned A, original, MIT.

A specialised code-review agent that checks only the public interfaces of new code, such as protocols, API signatures, and exported types, for new security threats.

In plain words
What is it for?
Use it during a development review to examine public APIs and protocols against specified threat categories and security rules, then produce a structured findings table.
Why use it?
It provides an isolated security check focused on what other software can access, without using the broader design document. This helps uncover different issues from those found by another reviewer.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions subagents.

Part of the arcgentic plugin — 18 skills, 9 agents, 1 MCP server shipped together

Good fit Use it during a development review to examine public APIs and protocols against specified threat categories and security rules, then produce a structured findings table.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/arch1esun/arcgentic/se-contract
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.

Clone the repo
git clone --depth 1 https://github.com/Arch1eSUN/Arcgentic

Made for: Claude Code.

Or install arcgentic, the plugin that ships this one along with the rest of its 18 skills, 9 agents, 1 MCP server.

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 se-contract

README.md
[![agentmods](https://agentmods.dev/badge/agents/arch1esun/arcgentic/se-contract/github.svg)](https://agentmods.dev/agents/arch1esun/arcgentic/se-contract)
Your own site
<a href="https://agentmods.dev/agents/arch1esun/arcgentic/se-contract"><img src="https://agentmods.dev/badge/agents/arch1esun/arcgentic/se-contract/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for se-contract

Your own site · 80×15
<a href="https://agentmods.dev/agents/arch1esun/arcgentic/se-contract"><img src="https://agentmods.dev/badge/agents/arch1esun/arcgentic/se-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,145 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00022 $0.02145
Opus 5.5 $0.00009 $0.00858
Sonnet 5.5 $0.00004 $0.00429
Haiku 4.5 $0.00002 $0.00215

Measured 3mo ago against content hash 126abd1795dd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

se-contract 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 3mo 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.

agents/se-contract.md · 148 lines

How it starts

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

se-contract agent

You are the se-contract sub-agent for arcgentic round development. You perform a CONTRACT-ONLY security review per mandate #20 and produce a NOVEL P3 findings table for § 2.3 of the self-audit handoff.

Role

You review ONLY the public contract / Protocol / API surface of new code for novel security threats. You have access to:

  • The contract text extracted from new code (Protocol definitions, public API signatures, exported types)
  • 5 threat surface categories enumerated for this round
  • Specific invariants to check

You do NOT have access to the BA design doc. This isolation is mandate #20 and is LOAD-BEARING.

Your output IS the structured findings table for § 2.3 of the self-audit handoff. Your findings must be NOVEL — not recapitulating issues CR already found.

Input — what you receive (MANDATE #20 CONSTRAINT)

You receive a fully self-contained brief from the execute-round skill (Phase 3 inline SE dispatch). The brief is CONTRACT-ONLY. The brief follows this shape:

CONTEXT (self-contained):
- Round name: {round_name}
- Contract text: {contract_text}         # Protocol defs + public API signatures ONLY
- Threat surface categories: {5 items}   # enumerated for this round per handoff § 14
- Invariants to check: {invariant_list}  # anti-contamination / cost-discipline / replay / trust boundary

TASK:
Perform CONTRACT-ONLY security review. Produce NOVEL P3 findings table.
Expected finding count: 3-6 NOVEL findings.

MANDATE #20: Input MUST NOT contain

If any of the following appear in your input brief, refuse to proceed with BLOCKED status:

  • BA design doc text or path
  • CR review output or findings
  • Any spec section content beyond § 5.5
  • Implementation internals (class bodies, method implementations, private fields)

The isolation is intentional. Mandate #20 requires that SE finds threats INDEPENDENT of BA's already-known analysis. If you can see BA's analysis, you cannot be independent.

Discipline (mandate #20 LOAD-BEARING)

Read the full file on GitHub · 148 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. 3mo ago First seen · 148 lines · 22 tokens per session scan A 126abd1795dd

Subscribe to this mod's changes

se-contract is an agent published in the GitHub repository Arch1eSUN/Arcgentic (199 stars, last pushed 2mo ago), licensed MIT. It adds 22 tokens to every session and 2,145 once invoked, about $0.0001 per session on Opus 5.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

se-contract compared with agents from other repositories

se-contract next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
se-contractArch1eSUN/ArcgenticAgent1992mo agoMITA22Claude Code
refactor-cleanerClear-Capabilities/agentic-securityAgent122todaynoneA50Claude Code
security-logic-reviewerClear-Capabilities/agentic-securityAgent122todaynoneA66Claude Code
ac-evidence-verifierThe01Geek/prflowAgent1012d agoMITA25Claude Code
ac-claim-verifierThe01Geek/prflowAgent1012d agoMITA26Claude Code
branch-setupThe01Geek/prflowAgent1012d agoMITA28Claude Code
implement-finalizationThe01Geek/prflowAgent1012d agoMITA17Claude Code