02-agent-modes

02-agent-modes is an agent for coding agents from SmythOS/sre. It costs 0 tokens per session (1,034 once invoked), scanned A, original, MIT.

A reference for the execution modes available in the SmythOS SDK. Modes change how an agent works: the default mode adds nothing, Planner adds task planning and tracking, and Worker delegates background tasks to copy agents.

In plain words
What is it for?
Use it when configuring an agent for ordinary responses, step-by-step task execution, background delegation, or a combination of those behaviors.
Why use it?
It helps developers choose how an agent should handle requests without implementing that behavior from scratch. It also shows how to set one mode or combine several modes.

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/smythos/sre/02-agent-modes
Clone the repo
git clone --depth 1 https://github.com/SmythOS/sre

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 02-agent-modes

README.md
[![agentmods](https://agentmods.dev/badge/agents/smythos/sre/02-agent-modes.svg)](https://agentmods.dev/agents/smythos/sre/02-agent-modes)
Your own site
<a href="https://agentmods.dev/agents/smythos/sre/02-agent-modes"><img src="https://agentmods.dev/badge/agents/smythos/sre/02-agent-modes.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,034 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.00000 $0.01034
Opus 5 $0.00000 $0.00517
Sonnet 5 $0.00000 $0.00207
Haiku 4.5 $0.00000 $0.00103

Measured 4d ago against content hash 18fc2095512f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

02-agent-modes 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 4d 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.

packages/sdk/docs/agents/02-agent-modes.md · 139 lines

How it starts

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

Agent Modes

Agent modes are pluggable execution strategies that augment how an agent processes and responds to tasks. Each mode adds specialized capabilities through additional behavior (system prompt) instructions and hidden skills, all managed transparently by the SDK.

Available Modes

Mode Enum Value Description
Default TAgentMode.DEFAULT No extra capabilities. The agent uses only the skills and behavior you provide.
Planner TAgentMode.PLANNER Adds systematic planning, task tracking, and progress reporting.
Worker TAgentMode.WORKER Adds background task delegation to "copy" agents while the main agent stays interactive.

Setting a Mode

Single Mode

import { Agent, TAgentMode } from '@smythos/sdk';

const agent = new Agent({
    name: 'Research Assistant',
    model: 'gpt-4o',
    behavior: 'You are a helpful research assistant.',
    mode: TAgentMode.PLANNER,
});

Combining Multiple Modes

Modes can be combined using an array. Each mode's capabilities are layered on top of each other:

const agent = new Agent({
    name: 'Research Assistant',
    model: 'gpt-4o',
    behavior: 'You are a helpful research assistant.',
    mode: [TAgentMode.PLANNER, TAgentMode.WORKER],
});

When combining Planner and Worker modes, the agent will plan complex tasks into steps (Planner) and dispatch heavy subtasks to background workers (Worker).

How Modes Work Under the Hood

When a mode is applied to an agent, two things happen:

  1. Behavior (system prompt) extension: The mode appends instructions to the agent's behavior, telling the LLM how to use the mode's capabilities.
  2. Hidden skills: The mode registers internal skills (prefixed with _sre_) that the LLM can call. These skills are not visible to end users but power the mode's functionality.

All mode-managed skills are automatically filtered out when creating copy agents (Worker mode) or exporting agent configurations.

Read the full file on GitHub · 139 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. 4d ago First seen · 139 lines · 0 tokens per session scan A 18fc2095512f

Subscribe to this mod's changes

02-agent-modes is an agent published in the GitHub repository SmythOS/sre (1,289 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,034 tokens. 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.