03-planner-mode

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

A planning mode for an agent that breaks complex requests into tracked steps. The agent analyzes the request, creates a plan, completes tasks in order, and checks that the plan is finished.

In plain words
What is it for?
Use it for requests involving several files, stages, or checks, such as larger code changes or multi-phase research. It is enabled through the agent’s mode setting.
Why use it?
It makes multi-step work easier to follow and reduces the chance that an agent skips a required task. Progress and completion are recorded as the work proceeds.

Agent

About the project

SmythOS Runtime Environment is an open-source runtime and software development kit for building and running AI agents. Developers use it to create, orchestrate, and manage agents across local, cloud, and edge environments, with abstractions for language models, vector databases, storage, and caching. The catalogue add-ons support work with this runtime.

SmythOS/sre · 1,289 stars · on GitHub · smythos.com

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/03-planner-mode
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 03-planner-mode

README.md
[![agentmods](https://agentmods.dev/badge/agents/smythos/sre/03-planner-mode.svg)](https://agentmods.dev/agents/smythos/sre/03-planner-mode)
Your own site
<a href="https://agentmods.dev/agents/smythos/sre/03-planner-mode"><img src="https://agentmods.dev/badge/agents/smythos/sre/03-planner-mode.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,560 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.1 $0.00000 $0.01560
Opus 5 $0.00000 $0.00780
Sonnet 5 $0.00000 $0.00312
Haiku 4.5 $0.00000 $0.00156

Measured 6d ago against content hash c991f168a758, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

03-planner-mode 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 6d 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/03-planner-mode.md · 202 lines

How it starts

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

Planner Mode

Planner mode gives an agent systematic planning capabilities. When the agent receives a complex or multi-step task, it will create a structured plan, track each step's progress, and verify completion before finishing.

This mode is ideal for tasks that require methodical execution: code generation with multiple files, research with several phases, or any workflow where step-by-step transparency matters.

See the Planner Mode Example for a complete, runnable implementation.

Enabling Planner Mode

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

const agent = new Agent({
    name: 'Code Assistant',
    behavior: 'You are a senior developer who writes clean, well-tested code.',
    model: 'gpt-4o',
    mode: TAgentMode.PLANNER,
});

How It Works

When a user sends a complex request, the agent will:

  1. Analyze the request and reason about the approach (in <thinking> tags)
  2. Plan the steps needed (in <planning> tags)
  3. Register the plan as tracked tasks via the internal _sre_Plan_Tasks skill
  4. Execute each step sequentially, updating task status along the way
  5. Verify that all tasks are completed before finishing

The agent communicates its reasoning transparently using <thinking> tags, and uses <planning> tags to outline its approach. These tags allow the LLM to separate internal reasoning from user-facing output.

Events

Planner mode emits events on the agent object so you can build UIs that reflect the agent's progress in real time.

TasksAdded

Fired when the agent creates a new plan.

agent.on('TasksAdded', (tasksList, allTasks) => {
    // tasksList: the newly added tasks
    // allTasks: all tasks in the planner (cumulative)
    for (const [id, task] of Object.entries(allTasks)) {
        console.log(`${task.status}: ${task.summary || task.description}`);
    }
});

Read the full file on GitHub · 202 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. 6d ago First seen · 202 lines · 0 tokens per session scan A c991f168a758

Subscribe to this mod's changes

03-planner-mode 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,560 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.