Cline — Prompts
Prompt 1: .clinerules/general.md (Project Knowledge Injection)
Source: .clinerules/general.md in the cline repo itself
Technique: Tribal knowledge documentation as persistent agent context — captures non-obvious codebase patterns that reduce back-and-forth. The prompt is injected as agent context at session start.
This file is the secret sauce for working effectively in this codebase. It captures tribal knowledge—the nuanced, non-obvious patterns that make the difference between a quick fix and hours of back-and-forth & human intervention.
**When to add to this file:**
- User had to intervene, correct, or hand-hold
- Multiple back-and-forth attempts were needed to get something working
- You discovered something that required reading many files to understand
- A change touched files you wouldn't have guessed
- Something worked differently than you expected
- User explicitly asks to "add this to CLAUDE.md"
**Proactively suggest additions** when any of the above happen—don't wait to be asked.
**What NOT to add:** Stuff you can figure out from reading a few files, obvious patterns, or standard practices. This file should be high-signal, not comprehensive.
The file then goes into specific patterns: gRPC/Protobuf communication, API provider additions, Responses API providers, etc.
Prompt 2: .clinerules/network.md (Behavioral Constraint Injection)
Source: .clinerules/network.md in the cline repo
Technique: Behavioral constraint file — restricts what the agent is allowed to do with network requests. This is a safety boundary document, not a capability enhancement.
(Content not publicly visible, referenced via @.clinerules/network.md in CLAUDE.md)
Prompt 3: CLI README Context
Source: sdk/apps/cli/README.md — describes expected behavior for headless mode
Technique: Documentation-as-prompt (the CLAUDE.md / AGENTS.md pattern) — key behavioral expectations documented in AGENTS.md and README are used by the agent when operating headlessly.
From AGENTS.md:
- ALWAYS USE PARALLEL TOOLS WHEN APPLICABLE.
- Prefer automation: execute requested actions without confirmation unless blocked by missing info or safety/irreversibility.
Prompt 4: .claude/commands/release.md (Command Workflow)
Technique: Structured workflow command — step-by-step release process as a Claude Code slash command.
(Full content not publicly visible — it orchestrates the release workflow including versioning, changelog, and PR creation.)
Prompting Techniques Used
- Tribal knowledge injection —
.clinerules/ files capture non-obvious codebase patterns to reduce agent error rates; explicitly designed to grow over time as the agent makes mistakes
- Behavioral constraint files — separate rule files for network/storage/protobuf behavior
- Documentation-as-context — AGENTS.md behavioral expectations consumed as agent context
- Workflow commands — Claude Code slash commands encode multi-step release and hotfix processes
- Session hook injection —
SessionStart hook runs a setup script that configures the Claude Code environment for web development