r/CLine • • 14h ago

Tutorial/Guide How I use Cline, and how I build the harness around it

Thumbnail
gallery
4 Upvotes

I'm building a local-first desktop app (Tauri + Svelte + SurrealDB). I don't expect Cline to just "be good". I give it a frame: rules, deterministic skills, a task tracker, ADRs and specs before code, quality gates, a context budget and session memory. The model matters, but the harness does the rest.

The project

VTT Data Manager Visuel (VTT-DMV) is a local-first desktop app for tabletop RPG game masters. It manages campaigns: the world, entities, relations, assets, tokens, players, dice and table tools.

The stack is :
Tauri v2 (Rust) for the backend,
Svelte 5 / SvelteKit for the UI,
embedded SurrealDB (surrealkv) for storage. The P2P layer over Steamworks is an additional layer, and optional in practice. All data stays on the user's machine.

Why describe the project? Because the project defines the needs, and therefore the Cline setup and the harness around it.

What the project needs (and why a harness)

Before talking tooling, we need to talk constraints. Here's what the project imposes:

- Local-first / privacy by design:
no cloud, no CDN, no telemetry.

- A complex, long-lived domain:
43 documented tables, architecture, ADRs and specs. The code has to stay correct six months from now.

- Non-negotiable quality:
unit, component and integration tests, `clippy -D warnings`, docs, WCAG accessibility, FR/EN i18n, light and dark themes.

- Traceability:
every change has to trace back to a ticket, a spec and an ADR.

- Context:
the codebase keeps growing, and an agent that reads everything blows the context window and "freezes".

- Reproducibility:
same conventions, same checks, same results, whatever the model (not exactly.. but... you know).

How I set up Cline in VS Code

In VS Code, I set up Cline around four ideas.

Always-loaded rules.
Four files (guardrails, workflow, documentation, traceability) carry the non-negotiables: architecture boundaries, error handling, commit conventions and the context budget. The model doesn't have to "remember" the rules, they're there from the start.

Deterministic skills.
I have 30 skills, one per domain: Rust, Svelte, SurrealDB and SurrealQL, testing, i18n, accessibility, repository pattern, ADRs and specs, security, and so on. A routing table (skills-map.tsv) maps a domain or a task label to the skills to load, a script (resolve-skills) resolves them, and each skill declares its linked skills. For example, Svelte pulls in i18n and accessibility, and SurrealDB pulls in SurrealQL and the repository pattern. A gate checks that no skill is orphaned.

Plan and Act, with reasoning effort.
I stay in Plan for design (ADRs, specs, Rust architecture), and switch to Act for mechanical edits. Reasoning effort is higher in Plan.

Memory outside the context.
I run a memory MCP server (MemPalace): a wake-up summary, a semantic search before answering about the past, and at the end of each ticket a drawer, a knowledge-graph fact and a diary entry. That way the project survives the context window.

The harness around it (adapting to the project)

Then I built a whole harness around Cline. This is the part that changed my day-to-day the most.

The plan lives in the tracker, not in the chat.
I drive tasks with Backlog.md on the CLI: acceptance criteria, definition of done, status transitions and a final summary. The agent reads the task first and writes the plan back into it. As a result, the next session doesn't start from a chat log.

The decision is documented before the code.
I don't implement anything before the ADR or the spec says what to build. When code and spec diverge, we fix one or the other in the same change. It's an active trade-off, not an automatic correction. And I'm the one who has to think through the consequences.

Quality gates are scripts.
make quality checks formatting, clippy, tests, docs, architecture invariants, schema and doc consistency, error-code i18n, duplication, traceability and Markdown links. A pre-commit hook runs a gate limited to staged files. The pre-push hook re-runs the full gate, but a tree fingerprint avoids running it twice. The agent can't "declare Done", the gate decides. I don't let the agent edit the gates on the fly. That's a working rule, not a technical lock yet, and it's something I want to improve.

The context budget is a first-class rule.
No verbose build or test without --quiet or redirection. Long outputs get filtered, big logs go to /tmp and I read the tail, and files are read by line ranges. That's what fixed my "Cline is stuck" moments.

Doc resolvers.
./scripts/vtt-docs (specs, ADRs, tickets), ./scripts/surreal-docs, ./scripts/svelte-docs and ./scripts/steamworks-docs: the agent reads the local docs instead of inventing syntax, especially SurrealQL, and it also picks up the frontend rules.

Documentation traceability.
A CHANGELOG in Keep a Changelog format, a roadmap split into three registers, numbered ADRs, specs, and a gate that checks the cross-links between ADRs, specs and the README.

The extra tooling

None of this is magic. These are standard tools, chosen to serve the quality loop.

On the Rust side, ts-rs generates the TypeScript contracts from the Rust types, so there's a single canonical source and versioned bindings. tokio, serde, toml, semver and uuid make up the base, and tempfile is used for isolated test databases. For the gates, I use cargo-nextest for fast tests, cargo-audit for security, clippy -D warnings and rustfmt.

On the frontend side, there's svelte-check, prettier, eslint, vitest for unit and component tests in a Chromium browser, playwright for real E2E, valibot for runtime validation of the IPC contracts, and Paraglide for compiled i18n.

For the workflow, there's Backlog.md on the CLI for tasks, a memory MCP server for the session, and make as the orchestrator, with one command: make quality.

A small note for the curious: cargo-nextest and cargo-audit are cargo subcommands installed globally, not dependencies in Cargo.toml.

Living documentation

The docs aren't a dead PDF. They're generated and checked like code.

The schema field inventory is generated from the code with gen-schema-fields.mjs --write. If the appendix is stale, the gate fails.

The ERD (.d2 to .svg) and the menu map are regenerated, and a gate checks that the code, the docs and the ERD agree.

The doc caches are built from the official docs (build-surrealdb-docs.sh, build-svelte-docs.sh, build-steamworks-docs.sh), and the CLIs return a path, not the content. That's a context saving.

Finally, ADRs, specs, the roadmap and the CHANGELOG are part of the workflow, and a gate (docs-traceability) checks the cross-links.

The result: when I change the schema, the docs get updated in the same change, or the gate fails. No docs rotting away.

The story that sums it up

Recently, an assistant proposed a ~250-line "write-ahead intent" to fix an atomicity problem between the database and a manifest file.

The harness did its job. The audit said "this isn't atomicity, it's compensation", the ADR laid out the options, and the conclusion was to remove the double write instead of adding a journal. The result: less code than before.

But that was only because I asked. I had to check what I suspected. The agent proposed an unsuitable solution because of a single word in the spec, interpreted as "atomicity is mandatory". The lesson isn't "write better prompts". It's that an ambiguous contract is enough to push the AI into over-engineering. The fix is an explicit spec, an audit and an ADR.

That's exactly what a setup built on rules, audits, ADRs and gates brings. It doesn't make the AI smarter. It stops it from shipping a bad solution.

Hosting and CI: Tangled

My `origin` remote isn't GitHub. It's Tangled (tangled.org), a decentralized git host built on the AT Protocol.

The CI lives in .tangled/workflows/ (backend, frontend, bench), and the logs are read over SSH with `ssh -t -p 3333 tangled.org did:plc:…`.

It's consistent with the project: local-first and decentralized on the product side, so also on the tooling side. It's not a technical requirement, just an ecosystem choice.

The result

In practice, here's what I get:

- less "it's going in circles", because the task, the skills, the gates and the context budget bound the work;

- fewer regressions, with ``make quality`` before pushing;

- traceable code, where every change is tied to a ticket, a spec or an ADR;

- and a simple takeaway: the model matters, but only for a small part. The harness does the rest.

What I want to improve: explore a context or doc cache, and add a real technical lock so the agent can't edit the gates.

hé voilà :D


r/CLine • • 1d ago

Discussion Aetheris Microbrains is now available for Cline and Cline CLI

7 Upvotes

Hey everyone,

I just added native support for both Cline (VS Code) and Cline CLI to Aetheris Microbrains.

It is an open-source, local CPU pre-flight safety gate (under 2 ms, no GPU or cloud calls needed) that checks Cline's tool calls before they run.

What you get with it:

  1. Safer autonomous runs: blocks destructive shell commands (like rm -rf or curl | sh), .env and API key leaks, and unsafe code edits before they execute.
  2. Secret protection on outputs: automatically scrubs leaked credentials and flags prompt injection in tool outputs.
  3. Fewer wasted tokens and retries: catches broken syntax and bad edits locally before they trigger expensive error-recovery loops, and supports tool-schema narrowing (up to 81% fewer schema tokens in local 25-step benchmarks, with 0% false positives on benign calls).
  4. Works everywhere you use Cline: one-command setup for both VS Code and Cline CLI, plus built-in protection for your .clinerules/ and .cline/ hook configs.

Setup takes one command: aetheris install cline (or aetheris install cline --target cli for Cline CLI)

Repo (Apache 2.0): https://github.com/drtikov/microbrainsforagents

Happy to hear any feedback if you try it with Cline.


r/CLine • • 3d ago

Discussion Cline - Standalone Android app

Post image
18 Upvotes

Hello there,

I had my GPU work on a standalone cline app - a vscode extension ported into an app.

It lets you work either remotely via SSH, or locally on your phone using Termux - even inside a full proot (chroot) distro like Debian, with whole gcc toolchain and everything

Basic functionality is working pretty good, some providers may be broken, I only tested free ClinePass models and my local LLM. Let me know if you find any issues

Check it out if you are interested: https://github.com/dadas190/cline-android


r/CLine • • 10d ago

🗂️ Bug: Needs Info Cline v4.1.26 stuck on "Activating..." with blank UI / Extension Host Unresponsive on Windows (CPU Profile attached)

7 Upvotes

Hi everyone,

I just did a fresh install of Cline (v4.1.26) on the latest version of VS Code (Windows), and the extension gets stuck infinitely on "Activating..." with a completely blank UI (no panel loading at all).

What happens:

  • When I open the Cline sidebar, nothing loads and the Extension Host freezes (Extension host is unresponsive).
  • In Developer: Show Running Extensions, Cline stays permanently on Activating... and triggers a performance warning generating saoudrizwan.claude-dev-unresponsive.cpuprofile.txt.

What I already tried:

  • Updated VS Code to the latest version.
  • Moved my VS Code portable folder (VscodeV4) out of OneDrive to a local root path (C:\VSCODE\) with no spaces.
  • Configured git.path manually in VS Code settings.
  • Performed a clean reinstall by deleting saoudrizwan.claude-dev-* from .vscode/extensions and the .cline folder.

CPU Profile findings:
Looking at the .cpuprofile file, the Extension Host freezes synchronously during the initial parsing/evaluation of Cline's bundled extension.js (specifically around module loading, Zod schemas, rxjs, and simple-git initialization) before the Webview UI can even mount.

Has anyone else experienced this freeze on v4.1.26 on Windows, or is there a specific version I should downgrade to while waiting for a fix?

Thanks in advance!

link of log : log.txt


r/CLine • • 10d ago

❓ Question: New Running local model on Cline - is there any telemetry that could leak my private info?

17 Upvotes

I'm specifically setting up a local LLM to ensure that my highly sensitive, private information stays on disk at all times.

I just wonder if Cline has any telemetry set up that could scrape this data.

Interestingly, while installing cline-cli, I noticed this:

npm warn deprecated u/opentelemetry/sdk-trace-base@2.6.1: Use u/opentelemetry

now the question is... what is actually sent as telemetry in cline? if it's just usage statistics, it's fine, but if it's the actual data snippets, I bouta bail out of this.


r/CLine • • 12d ago

Discussion What's your local Cline stack?

2 Upvotes

I'm running Cline on VS Code connected to an Ollama server running on a macbook pro. Most of the time it works fine, but sometimes Cline would just hangs there doing nothing and gets stuck, and I can see the GPU on the other side doing nothing. Seems like a normal occurrence at this point.

I'm guessing it's some sort of limitation of the stack I'm using. I wonder if there's a better more stable way?


r/CLine • • 12d ago

Discussion Cline Deepseek pricing

21 Upvotes

Cline Pass seems to be intentionally vague about how much DeepSeek4.1-flash usage is included in their Cline-pass. Here are my findings:

  • The allowance is roughly 2.6B tokens/month, worth around $25 of DeepSeek usage at off-peak list and around $50 at peak.
  • Makes it roughly 5x cheaper than upstream against peak rates.
  • 100% of the 5-hour allowance = 40% of the weekly = 20% of the monthly. A week is 2.5 windows, a month is 5.
  • One full 5 hour window is approx. 0.52B tokens.
  • Exhausting a window returns 429 "You have reached your 5-hour Clinepass limit".

As for speed, Cline is very fast.

Speed — same task, five measured runs each, fresh session per request, same cap:

Providerbestmediantok/s
CommandCode ultrafast0.98 s1.52 s1001
Cline Pass2.19 s3.02 s328
CommandCode fast1.92 s3.55 s241
DeepSeek official2.11 s3.22 s220
CommandCode standard3.01 s3.81 s199
OpenCode Go4.12 s4.80 s143

Benchmark script: https://gist.github.com/divinity76/1b3edb5625c5f60294f2b2c4d7f18f7f


r/CLine • • 13d ago

🐞 Bug: New Cline silently accept and ignore reasoning_effort and temperature

6 Upvotes

Silently ignoring errors in APIs is much worse than than sending an error.

Now i have no idea what Cline's reasoning effort actually is.​‌

Is it hardcoded to low? high? Highly doubt its hardcoded to Max.​‌

This is important for me!

reasoning_effort and temperature are both accepted and ignored in the Cline API.

Proof:

for i in 1 2 3 4 5; do
  curl -sS https://api.cline.bot/api/v1/chat/completions \
    -H "Authorization: Bearer $CLINE_API_KEY" \
    -H 'Content-Type: application/json' \
    -d '{"model":"cline-pass/deepseek-v4.1-flash-1017","messages":[{"role":"user","content":"Reply with one random English noun and nothing else."}],"reasoning_effort":"none","temperature":0}' \
    | jq -r '[.data.choices[0].message.content, .data.usage.completion_tokens_details.reasoning_tokens] | @tsv'
done

output:

lantern	21
umbrella	20
lantern	20
lantern	21
umbrella	20
  • If reasoning_effort was honored, it would output something like:
lantern	0
umbrella	0
lantern	0
lantern	0
umbrella	0
  • If temperature was honored, it would output something like:
lantern	21
lantern	21
lantern	21
lantern	21
lantern	21
  • If both was honored, it would output
lantern	0
lantern	0
lantern	0
lantern	0
lantern	0

But, Cline's actual output proves that it accepted both, and honored neither.

comparing it with other providers,

  • Poe does this correctly (actually apply them)
  • 1min also does it correctly. (throws an error, "we don't support temp/reasoning_effort for this model)
  • OpenRouter does it correctly (apply them)
  • OpenCode Go and OpenCode Zen both does it correctly (apply them)
  • CommandCode Goat does it correctly (apply them)

Cline chose the worst path, accept and silently ignore them.

Bad engineering, Cline!


r/CLine • • 13d ago

❓ Question: New How long until Cline Pass activate?

7 Upvotes

Edit: Solved it. For Cline Pass, you need to use model id cline-pass/deepseek-v4.1-flash-1017

For Cline PAYG, you need to use model id deepseek/deepseek-v4.1-flash-1017

Original post:

Bought a Cline Pass, it's now been an hour and the API still gives me insufficient_credits error,

Did something go haywire, or does Cline Pass need hours to activate?

curl -sS https://api.cline.bot/api/v1/chat/completions \
  -H "Authorization: Bearer $(cat /kai/keys/cline-api-key)" \
  -H 'Content-Type: application/json' \
  -d '{"model":"deepseek/deepseek-v4.1-flash-1017","messages":[{"role":"user","content":"hi"}]}'

{"error":{"code":"insufficient_credits","message":"Insufficient balance. Your Cline Credits balance is $0.00","current_balance":0,"total_spent":0,"total_promotions":0,"buy_credits_url":"https://app.cline.bot/credits"}}

r/CLine • • 13d ago

Discussion Opencode go vs Cline Pass

14 Upvotes

I have one sub on my OC go and reliaze I need double of it to use in one month, I am planning to get one more sub, which one should I choose, another OC go or Cline pass? Please advise


r/CLine • • 13d ago

🐞 Bug: New "The request was rejected because it was considered high risk"

2 Upvotes

I was using Mimo Pro 2.6 API while developing software and got this message when I asked to prepare tests to test the features end to end. Is this coming from Cline or Mimo?


r/CLine • • 15d ago

Discussion Why was MiMo 2.6 Pro removed?

16 Upvotes

:(? Anyone know?


r/CLine • • 16d ago

Tutorial/Guide How to use uncensored models in Cursor, Cline, Codex and Claude Code

Thumbnail reddit.com
1 Upvotes

r/CLine • • 16d ago

🐞 Bug: New OmniRoute + Cline: Custom models failing with 400 and 500 errors. Anyone experienced this?

3 Upvotes

I've been experiencing an issue when using OmniRoute with Cline through its OpenAI-compatible API.

Custom models from certain providers fail when I try to execute requests, returning different errors:

  • HTTP 500: Upstream API error.
  • HTTP 400: ChatPlayground model not found or invalid.

The models can be selected in Cline, but execution fails.

I suspect this might be related to provider routing, custom model ID handling, or model normalization, but I haven't confirmed the root cause.

Has anyone experienced something similar? Is there a known workaround or configuration issue?

I've attached screenshots of both errors.

GitHub Issue: [https://github.com/cheaper-inference/OmniRoute/issues/19216]


r/CLine • • 18d ago

Discussion Possible cline desktop bug

3 Upvotes

I was working on a project using cline desktop with Deepseek v4.1 Flash 1017 and my context jumped from the usual 300K to 8.9M out of nowhere, then i got hit with the weekly Clinepass limit (For the first time after two months), i checked tool calling and there wasn't anything that could have ramped up the context this much, i use /compact a lot so context is always under 400K, and my usage for this month is practically nothing compared to my first month where i built a project four times as big as this one (Never hit any limit)

That said, im going back to the cline cli, i can't trust the desktop version


r/CLine • • 21d ago

❓ Question: New ClinePass

13 Upvotes

I was looking for a AI Subscription mainly for running DeepSeek V4.1 Flash. Came across with ClinePass for $9.99, was the usage limit good for daily use? I would like to use it for a School Project.


r/CLine • • 23d ago

Discussion No starter credits?

0 Upvotes

I've heard from some people that when logging in with an account on the website version of Cline, you'd usually get around 0.50 worth of free credits for cline usage-billing. But when I tried it, I didn't receive any credits. Was this always a thing, or did they recently remove the free credits?


r/CLine • • 24d ago

Tutorial/Guide Is Roo Code / Cline + OpenRouter the right choice for debuggable, traceable web apps?

17 Upvotes

Hey everyone,

I run my own Corporate IT systems consulting, tax compliance logic, payroll engines, and enterprise accounting software. Im a one-man job (self employed)

My Goal:

I am expanding my business services into building custom web portals and data-driven client tools. My research has led me to Roo Code / Cline + VS Code via OpenRouter, and I want to get a sanity check from the community to see if I’m taking the right approach.

My top priority is engineering discipline, traceability, and clean architecture. I want to build products that can be easily debugged, audited, and upgraded over time—avoiding the "vibe coding" trap of fragile monoliths that require full rewrites whenever business rules or tax regulations evolve.

Appreciate any sanity checks, red flags, or advice from anyone running a similar workflow!


r/CLine • • 26d ago

Discussion does cline use openrouter under the hood?

9 Upvotes

r/CLine • • 27d ago

Tutorial/Guide cline keeps exceeding128k context for local llm

3 Upvotes

I'm not sure how to work around this. Problem is cline stops processing.

request exceeds the context window: prompt (132667 tokens) leaves no room to answer in the context (131072); requests are never truncated

when you say it's only 128k per setting

context window exceeded — compacting and retrying

overflow-recovery-compacting

overflow-recovery-compacted

few hours later, same issue...


r/CLine • • 27d ago

❓ Question: New Help: Agent is always executing cat/grep to read files instead of using built in tools

2 Upvotes

Using vscode extension, I've given auto approve to read files but it insists on running cat/grep to read through files. It's super annoying because I have to approve each command.

I don't want to enable auto approve for executing commands, but I want the agent to be able to read any file in the workspace automatically. How do I achieve this?


r/CLine • • 28d ago

Discussion We nearly Doubled Nemotron 3.5 Super VL throughput on a single GB300 GPU

Post image
15 Upvotes

We’ve been experimenting with NVIDIA’s Nemotron 3.5 Super VL on a DGX Station, trying to see how far we could push inference throughput with 256 concurrent requests.

Starting with stock vLLM, we were already getting 6,058 tokens/sec. After five configuration changes, we reached 11,840 tokens/sec on a single GB300 GPU, a 95% improvement.

Here's what made the difference:

  1. MTP decoding: Enabled speculative decoding to predict tokens ahead, bringing throughput to ~7,000 tok/s.
  2. Async scheduling: Allowed the CPU to schedule work while the GPU was processing, reducing idle time.
  3. FlashInfer: Switched the Mamba kernel to FlashInfer, pushing throughput to 7,800 tok/s.
  4. MTP 3 → MTP 1: Interestingly, reducing the number of speculative tokens improved throughput to 9,500 tok/s. With 256 concurrent requests, the overhead of verifying additional predictions wasn't worth it.
  5. FP16 Mamba state: Switched from FP32 to FP16 with stochastic rounding, reaching 11,840 tok/s, though with a potential precision tradeoff.

One interesting takeaway was that more speculative decoding doesn't necessarily mean more throughput. The optimal configuration depends heavily on the traffic pattern and how much useful work the GPU already has.

We're particularly excited about what this means for self-hosted models and agentic workloads. We also tested 32 parallel Cline sessions running on a single DGX Station, and our cost estimates suggest self-hosted inference could be roughly 66% cheaper than API inference when the GPU is fully utilized.

We documented the experiments, configurations, and what we think comes next for agentic inference here: https://cline.bot/blog/11-840-tps-on-a-single-gpu

Curious if anyone here is running Nemotron locally or experimenting with vLLM optimizations. What configurations have worked best for your workloads?


r/CLine • • 28d ago

🐞 Bug: New I said debug the checkbox in the code, not kill code!

Thumbnail
reddit.com
1 Upvotes

r/CLine • • 29d ago

Cline Desktop v0.0.49 is out with some major updates 🚀

Post image
63 Upvotes

We just shipped another update to Cline Desktop, with a bunch of improvements to make your development workflow smoother.

Here's what's new:

1. Local Model Management with Ollama & LM Studio - You can now install and manage local models directly from Cline Desktop. Cline checks your hardware and recommends the best models your machine can run.

Head to Settings → Provider → Local to try it out.

2. Pull Request Status in Your Session - No need to jump to GitHub to check your PR. You can now see CI status, merge status, line counts, and individual checks directly in your session header.

3. Custom Keyboard Shortcuts - You can now configure your own shortcuts for actions like starting a new session, searching sessions, and more.

Find them under Settings → Keybindings.

4. Integrated Terminal - Run commands without leaving Cline Desktop. The terminal opens directly in your project folder, so you can quickly execute commands while working on a task.

Press Ctrl+` to toggle it.

5. Review Code Changes Without Leaving Chat - You can now see exactly what Cline changed in its last turn, review your Git changes, or open any file in your project, all from within the same interface.

We're continuing to ship improvements to Cline Desktop based on feedback from the community.

Download Cline Desktop for macOS, Windows, or Linux: https://cline.bot/desktop

Give the desktop latest version a try and let us know what you think. What else would you like to see in Desktop?


r/CLine • • Oct 26 '26

❓ Question: New Vale a pena trocar DeepSeek API ($10/mês) pelo ClinePass? Como funciona o limite?

3 Upvotes

E aí, pessoal. Tô com uma dúvida e queria a opinião de quem já usa o ClinePass.

Atualmente coloco uns $10/mês na API da DeepSeek e uso quase sempre o modelo flash. Meu consumo varia: tem dia que não uso, mas na média dá entre $0,25 e $1 por dia.

Tô considerando migrar pro plano do ClinePass e queria saber:

  1. Vale a pena essa troca no meu cenário? Alguém aqui já fez essa migração e sentiu diferença?
  2. Como funciona o limite? É por modelo ou é um total agregado?
  3. Se eu estourar o limite de um modelo (ex: DeepSeek), ainda consigo usar outro (ex: Gemini) ou só fico restrito aos modelos gratuitos?