﻿# Cline configuration and session data use different directory controls

Locate Cline configuration and session state separately, understanding current .cline directories, supported legacy rules discovery and the distinct config versus data-dir controls.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-cline-config-data-directories/
Language: en

## 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](https://docs.cline.bot/getting-started/config) 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](https://docs.cline.bot/customization/cline-rules) 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](https://docs.cline.bot/cli/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](/journal/learn-codex-task-contract/) helps define what “clean” means for this experiment. [Tool observations](/journal/learn-codex-tool-observation/) 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.
