workflow-mode

workflow-mode is a cursor rule for Cursor from hlalljie/agent-workflow-presets. It costs 365 tokens per session, scanned A, original, MIT.

A set of chat-only modes that changes how a coding agent works: careful, pair, or afk. The selected mode remains active across long conversations and summaries until the user changes it.

In plain words
What is it for?
It is for switching between cautious work, collaborative coding, and an away-from-keyboard style during a chat.
Why use it?
It prevents the agent from losing the agreed working style when a conversation becomes long or is summarized. It also makes clear that only the user can change the mode.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/. Also seen: mentions subagents.

Good fit It is for switching between cautious work, collaborative coding, and an away-from-keyboard style during a chat.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hlalljie/agent-workflow-presets/workflow-mode
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/hlalljie/agent-workflow-presets

Made for: Cursor.

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 workflow-mode

README.md
[![agentmods](https://agentmods.dev/badge/rules/hlalljie/agent-workflow-presets/workflow-mode/github.svg)](https://agentmods.dev/rules/hlalljie/agent-workflow-presets/workflow-mode)
Your own site
<a href="https://agentmods.dev/rules/hlalljie/agent-workflow-presets/workflow-mode"><img src="https://agentmods.dev/badge/rules/hlalljie/agent-workflow-presets/workflow-mode/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 workflow-mode

Your own site · 80×15
<a href="https://agentmods.dev/rules/hlalljie/agent-workflow-presets/workflow-mode"><img src="https://agentmods.dev/badge/rules/hlalljie/agent-workflow-presets/workflow-mode.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 365 This file is loaded in full into every session.
When invoked 365 The same file — it is already loaded in full.
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.00365 $0.00365
Opus 5.5 $0.00146 $0.00146
Sonnet 5.5 $0.00073 $0.00073
Haiku 4.5 $0.00036 $0.00036

Measured 9d ago against content hash eceba4636f02, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

workflow-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 9d 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.

.cursor/rules/workflow-mode.mdc · 29 lines

What it actually says

Modes

Modes: careful, pair, afk. No mode = default. Details live in .cursor/skills/run-task-loop/modes/<mode>.md.

Switching

  • Only the user switches modes. Never switch yourself or suggest a switch.
  • A message switches mode only when it names the mode with the word "mode" or the skill: careful mode, mode: pair, /run-task-loop afk. default mode or mode: default returns to default.
  • A bare mode word ("afk", "be careful") is not a switch.
  • On a switch, read the mode file now, then follow it.
  • The mode applies to this chat only. Do not store it in files.

Staying in the mode

  • Start every reply with [mode: <name>]. Omit the tag in default.
  • A mode named in your earlier replies or in the conversation summary stays active until the user changes it.
  • Re-read the mode file at the start of each new task or phase, and whenever the earlier conversation has been summarized.

Subagents

  • If you are a subagent, ignore this rule: no tag, no mode file. Follow only the prompt you were given.
  • When you spawn a subagent, follow the "Subagents" section of the active mode file. In default, add nothing.
  • Mode text for a subagent only limits risk or questions. It never changes the subagent's task (for example, never tell a subagent that is writing tests not to write tests).
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. 9d ago First seen · 29 lines · 365 tokens per session scan A eceba4636f02

Subscribe to this mod's changes

workflow-mode is a cursor rule published in the GitHub repository hlalljie/agent-workflow-presets (2 stars, last pushed 6d ago), licensed MIT. It adds 365 tokens to every session, about $0.0015 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-10-07.