Cline system prompts
Copied by ../extract.py from https://github.com/cline/cline, commit 72b3d71405 (2026-11-13). The prompts live in sdk/packages/shared/src/prompt/ and sdk/packages/core/src/cloud/.
Source and license
Cline is licensed under the Apache License 2.0. A copy is in LICENSE.
Changes from the original: the prompt strings were taken out of the TypeScript files and joined the way buildClineSystemPrompt joins them, and placeholders and tags such as <env> were wrapped in backticks so that Markdown shows them. The wording was not changed.
How Cline builds the system prompt
buildClineSystemPrompt (prompt/cline.ts) starts from one of two base prompts: act or yolo. The {{CLINE_RULES}} slot gets, in order and separated by blank lines:
- the caller’s rules (project rules and similar; empty in these files),
- the Plan / Act mode section, except in yolo mode,
- the Plan Mode section, in plan mode only.
These placeholders are kept as they are: {{PLATFORM_NAME}}, {{CURRENT_DATE}}, {{IDE_NAME}}, {{CWD}}, and {{CLINE_METADATA}}. The last one becomes a # Workspace Configuration block with workspace details when the provider is Cline’s own, and is empty for other providers.
Files
Subagents and team members (extensions/tools/team/subagent-prompts.ts): with Cline’s own provider, a team member gets the act prompt with its role under # Team Teammate Role as the rules, and a subagent gets its spawn prompt in place of the base prompt. With other providers, both get only their spawn prompt.