Documentation Index
Fetch the complete documentation index at: https://docs.driftless.icu/llms.txt
Use this file to discover all available pages before exploring further.
Install
Authenticate
Rundriftless login to open your browser to the Driftless dashboard, where you can copy your API key:
Environment Variables
| Variable | Description |
|---|---|
DRIFTLESS_API_KEY | API key (takes priority over config file) |
DRIFTLESS_API_URL | API server URL (default: https://api.driftless.icu/api/v1) |
Env var always wins. If both
DRIFTLESS_API_KEY and ~/.driftless/config.json are present, the environment variable takes priority.Config File
The CLI stores its state in~/.driftless/config.json:
api_key- Your Driftless API key.api_url- The API base URL. Defaults tohttps://api.driftless.icu/api/v1if omitted.workspace_slug/workspace_id- Set automatically bydriftless initafter linking to a workspace.
Initialize a Repo
driftless init scans the current repository, uploads a baseline to Driftless Cloud, and installs the agent skill so your agents can read and write context. See Agent setup for details on what the skill provides.
Verify
driftless doctor checks that your config, API key, and network connectivity are all working. Run this whenever you want to confirm the CLI is set up correctly.
Agent setup
Driftless provides a skill that teaches coding agents how to use Driftless context within your repo. Install it with:- Downloads
SKILL.mdfrom the mirror repositorydriftless-sh/driftless-skillinto.driftless/ - Writes (or updates)
CLAUDE.mdandAGENTS.mdwith a managed Driftless block
Self healing
Runningdriftless install-skill again replaces the block contents. This means you can update the skill instructions without manual editing. Re-run the command and the block refreshes to the latest version.
Auto install via init
driftless init calls install-skill automatically, so there’s no separate step needed when setting up a new repo.
What agents learn
Once the skill is installed, agents that readAGENTS.md or CLAUDE.md will follow these workflows:
| Behavior | Description |
|---|---|
| Sync on start | Agents run driftless sync to pull in team context changes before coding. |
| Load context before editing | Agents run driftless context load --files "a,b" before touching any files. |
| Check graph | Agents run driftless graph impact --files "a,b" to understand blast radius before changing code. |
| Persist discoveries | Agents run driftless context update <slug> --decision "..." --gotcha "..." to append what they learn. |
driftless-sh/driftless-skill mirror on GitHub. The source of truth for the skill lives in the Driftless monorepo under skills/driftless/.