TECHNOLOGY

Cline configuration and session data use different directory controls

In this article
THE QUICK TAKE

Changing a data directory does not necessarily replace instruction discovery; settings, reusable guidance and session records occupy different parts of Cline state.

Name the state you intend to isolate

A developer wants a clean experimental session without losing reusable project guidance. Another wants different global rules without abandoning session history. These are different tasks. Cline’s configuration guide separates configuration directories, settings, reusable instructions, and data such as session messages and databases. Decide which state must change before choosing a directory override that sounds like a complete reset.

Understand the current directory layout

Global instructions live under the Cline configuration root, while settings and session artifacts occupy its data area. Project-level rules, skills, workflows, hooks, agents, and plugins can live in .cline/ at the repository root. Team-shared guidance and machine-specific provider settings therefore should not be treated as one interchangeable file bundle. Identify the specific artifact being inspected instead of copying an entire private state directory into a repository.

Preserve supported compatibility paths deliberately

The rules reference supports both .clinerules/ and .cline/rules/. Both are searched when present, so duplicating the same instruction in both is unnecessary. The configuration guide also documents cross-tool and historical discovery paths. Finding an older directory is not sufficient reason to delete it. Review what is still active and remove duplication deliberately rather than assuming only the newest visible folder contributes context.

Separate configuration and data overrides

The CLI reference defines --config separately from --data-dir; the configuration guide maps their corresponding environment controls. A custom data directory isolates local state without necessarily changing every global instruction search location. A configuration-directory override addresses a different root. Record both effective locations when diagnosing why a supposedly fresh session still sees a preference or why an expected session history appears absent.

Verify the intended clean boundary

Check the active project guidance, selected settings, and expected session history in the chosen test environment. The task-contract guide helps define what “clean” means for this experiment. Tool observations distinguish a changed path setting from evidence that the intended state is isolated. Preserve a minimal record of the effective locations so the result can be reproduced without exposing provider credentials or unrelated conversation archives.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles