Vibeleaderboard
← All Intel
Intel / article

Stop Adding Rules When You Need Workflows

Source
cline.bot
Publisher
Cline
Author
Cline evaluation and engineering blog
Date
Why it matters

Clinerules add tokens to every message, while workflows add them only when invoked. Knowing which to use keeps persistent context lean and turns repeatable multi-step processes into single slash commands.

Key takeaways · AI-distilled
  • A Cline workflow is injected into a single message inside <explicit_instructions> tags and then disappears, while clinerules append to the , so only clinerules cost on every message.
  • Nick Baumann's rule of thumb: build a workflow when a task reads as 'first X, then Y, then Z', and keep clinerules for behavior that should shape every task, such as coding standards or TypeScript strict mode.
  • Global workflows live in ~/Documents/Cline/Workflows and workspace workflows in .clinerules/workflows/; the filename becomes the , and the workspace version wins when both share a name.
  • The example /pr-review.md workflow gathers the PR with gh pr view and gh pr diff, reads the original files for , analyzes the changes, then asks for confirmation before running gh pr review.
Terms in this piece · Glossary
  • system prompt — The standing instructions a model receives before any user input — defining its role, rules, tools, and tone for the whole conversation.
  • Token — A piece of text, such as a word, part of a word or a punctuation mark, that a language model represents as numbers and handles as a unit.
  • Context and context window — Context is the information available for a generation; the context window is the capacity available to hold it.
  • slash command — A named, reusable prompt invoked with a leading slash, turning a workflow you repeat into one word you type.

Get the Brief

A cited digest of what matters for people building with AI, every morning. Unsubscribe anytime. See today’s edition

More from Cline evaluation and engineering blog
Recommended reads