

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# Copilot Instructions for Cline23This is a VS Code extension. Read `.clinerules/general.md` for tribal knowledge and nuanced patterns.45## Architecture6- **Core** (`src/`): `extension.ts` → `WebviewProvider` → `Controller` (single source of truth) → `Task` (agent loop).7- **Webview** (`webview-ui/`): React/Vite app. State via `ExtensionStateContext.tsx`, synced through message passing.8- **Communication**: Protobuf-defined gRPC-like protocol over VS Code message passing. Schemas in `proto/`.9- **MCP**: `src/services/mcp/McpHub.ts`.1011## Build & Test (Critical — non-obvious commands)12- **Build**: `bun run compile` — NOT `bun run build`.13- **Watch**: `bun run watch` (extension + webview).14- **Protos**: `bun run protos` — run **immediately** after any `.proto` change. Generates into `src/shared/proto/`, `src/generated/`.15- **Tests**: `bun run test:unit`. After prompt/tool changes: `UPDATE_SNAPSHOTS=true bun run test:unit`.1617## Protobuf RPC Workflow (4 steps)181. **Define** in `proto/cline/*.proto`. Naming: `PascalCaseService`, `camelCase` RPCs, `PascalCase` Messages. Use `common.proto` shared types for simple data.192. **Generate**: `bun run protos`.203. **Backend handler**: `src/core/controller/<domain>/`.214. **Frontend call**: `UiServiceClient.myMethod(Request.create({...}))`.22- Adding enums (e.g. `ClineSay`) → also update `src/shared/proto-conversions/cline-message.ts`.2324## Adding API Providers (silent failure risk)25Three proto conversion updates are **required** or the provider silently resets to Anthropic:261. `proto/cline/models.proto` — add to `ApiProvider` enum.272. `convertApiProviderToProto()` in `src/shared/proto-conversions/models/api-configuration-conversion.ts`.283. `convertProtoToApiProvider()` in the same file.2930Also update: `src/shared/api.ts`, `src/shared/providers/providers.json`, `src/core/api/index.ts`, `webview-ui/.../providerUtils.ts`, `webview-ui/.../validate.ts`, `webview-ui/.../ApiOptions.tsx`.3132For Responses API providers: add to `isNextGenModelProvider()` in `src/utils/model-utils.ts` and set `apiFormat: ApiFormat.OPENAI_RESPONSES` on models.3334## Adding Tools to System Prompt (5+ file chain)351. Add enum to `ClineDefaultTool` in `src/shared/tools.ts`.362. Create definition in `src/core/prompts/system-prompt/tools/` (export `[GENERIC]` minimum).373. Register in `src/core/prompts/system-prompt/tools/init.ts`.384. Whitelist in `src/core/prompts/system-prompt/variants/*/config.ts` for each model family.395. Handler in `src/core/task/tools/handlers/`, wire in `ToolExecutor.ts`.406. If tool has UI: add `ClineSay` enum in proto → `ExtensionMessage.ts` → `cline-message.ts` → `ChatRow.tsx`.417. Regenerate snapshots: `UPDATE_SNAPSHOTS=true bun run test:unit`.4243## Modifying System Prompt44Modular: `components/` (shared) + `variants/` (model-specific) + `templates/` (`{{PLACEHOLDER}}`). Variants override components via `componentOverrides` in `config.ts` or custom `template.ts`. XS variant is heavily condensed inline. Always regenerate snapshots after changes.4546## Global State Keys (silent failure risk)47Adding a key requires updating the typed storage definitions in `src/shared/storage/state-keys.ts`; runtime reads and writes should go through `StateManager`, not VS Code `ExtensionContext` storage. Persistent state is file-backed so it works across VS Code, CLI, and JetBrains hosts.4849## Slash Commands (3 places)50- `src/core/slash-commands/index.ts` — definitions.51- `src/core/prompts/commands.ts` — system prompt integration.52- `webview-ui/src/utils/slash-commands.ts` — webview autocomplete.5354## Conventions55- **Paths**: Always use `src/utils/path` helpers (`toPosixString`) for cross-platform compatibility.56- **Logging**: `src/shared/services/Logger.ts`.57- **Feature flags**: See PR #7566 as reference pattern.58
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| cline/cline.clinerules/cline-overview.md · 66k | Cline rules | archtypesapi | 54/100 | 14 days ago | |
| cline/cline.clinerules/debug-harness.md · 66k | Cline rules | buildtesttesting-strategysecurity+1 | 85/100 | 14 days ago | |
| cline/cline.clinerules/general.md · 66k | Cline rules | setupbuildstylearch+2 | 86/100 | 14 days ago | |
| cline/cline.clinerules/network.md · 66k | Cline rules | styletesting-strategydependencies | 54/100 | 14 days ago | |
| cline/cline.clinerules/sdk-migration.md · 66k | Cline rules | style | 59/100 | 14 days ago | |
| cline/cline.clinerules/storage.md · 66k | Cline rules | stylearchdatabasedo-not | 65/100 | 14 days ago | |
| cline/clinesdk/AGENTS.md · 66k | AGENTS.md | setupbuildteststyle+5 | 89/100 | 14 days ago | |
| cline/cline.clinerules/bun-and-node.md · 66k | Cline rules | setuptestmonorepodo-not | 74/100 | 14 days ago | |
| cline/cline.clinerules/protobuf-development.md · 66k | Cline rules | buildstylearchapi+1 | 74/100 | 14 days ago | |
| cline/clineAGENTS.md · 66k | AGENTS.md | buildtestlint-formatstyle+2 | 83/100 | 14 days ago | |
| cline/clinesdk/packages/llms/AGENTS.md · 66k | AGENTS.md | no sections | 45/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| chihebnabil/lovable-boilerplate.github/instructions/global.instructions.md · 65 | Copilot instructions | buildlint-formatstylearch+4 | 100/100 | 14 days ago | |
| louislam/uptime-kuma.github/copilot-instructions.md · 90k | Copilot instructions | setupbuildtestlint-format+9 | 100/100 | 14 days ago | |
| HerringtonDarkholme/megarepo.github/copilot-instructions.md · 17 | Copilot instructions | setupbuildtestlint-format+7 | 100/100 | 14 days ago | |
| bagisto/bagisto.github/copilot-instructions.md · 28k | Copilot instructions | setupbuildteststyle+5 | 97/100 | 14 days ago | |
| JCodesMore/ai-website-cloner-template.github/copilot-instructions.md · 32k | Copilot instructions | buildlint-formatstylearch+3 | 97/100 | 7 days ago | |
| nerolis-lab/nerolis-lab.github/copilot-instructions.md · 32 | Copilot instructions | setupbuildtestlint-format+11 | 96/100 | 14 days ago | |
| darkmatter/nixmac.github/copilot-instructions.md · 25 | Copilot instructions | setupbuildtestlint-format+8 | 96/100 | 14 days ago | |
| thangaram611/second-brain.github/copilot-instructions.md · 0 | Copilot instructions | setupteststylearch+4 | 96/100 | 14 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/cline-cline-github-copilot-instructions)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.