agentleFS
ClineKnown publishercline/cline/AGENTS.md

cline

AGENTS.md70k starsChanged 7 months agoApache-2.0View on GitHub

This is the Cline monorepo. Toolchain is Bun 1.4.2 (package manager + task runner) with Node >=22 as the runtime. Do not use npm/yarn/pnpm. Don't add .changeset/ files or other per-PR changelog entries; changesets aren't used here. Release notes are written into the relevant CHANGELOG.md at release time.

  • Reads credentials

Trending

More talk lately.about the whole repository

Dec 2025: 0 mentionsJan 2026: 4 mentionsFeb 2026: 2 mentionsMar 2026: 4 mentionsApr 2026: 2 mentionsMay 2026: 3 mentionsJun 2026: 2 mentionsJul 2026: 0 mentionsAug 2026: 2 mentionsSep 2026: 8 mentionsOct 2026: 4 mentionsNov 2026: 2 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the cline/cline repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about cline/cline

The biggest 5 of 103 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 103

Talked about on Bluesky, GitHub and Hacker News (103 times).

On Bluesky · 50

45 more on Bluesky

On GitHub · 41

36 more on GitHub

On Hacker News · 12

7 more on Hacker News

The file

We split this AGENTS.md into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Don't add .changeset/ files or other per-PR changelog entries.

    line 3
  2. Very specific:

    Run from source: bun run cli (interactive: bun run cli -i.

    line 8
  3. Very specific:

    Headless (no Rust/window): run the backend and UI separately — bun run dev:sidecar (Bun backend on 127.0.0.1:3126, serves …

    line 30

≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

This is the Cline monorepo. Toolchain is Bun 1.4.2 (package manager + task runner) with Node >=22 as the runtime. Do not use npm/yarn/pnpm.

Don't add .changeset/ files or other per-PR changelog entries; changesets aren't used here. Release notes are written into the relevant CHANGELOG.md at release time.

Cloud Agent Instructions

Cline CLI

  • Run from source: bun run cli (interactive: bun run cli -i; one-shot: append a prompt). This resolves to apps/cli and auto-spawns the @cline/cline-hub daemon — you do not start the hub separately.
  • Inspect local health with bun run cli doctor; bun run cli version prints the version.
  • An actual agent turn requires an LLM provider credential. With no credentials the default cline provider fails fast with an Unauthorized error and the interactive TUI shows a provider sign-in screen. Configure via cline auth or provider env vars (e.g. ANTHROPIC_API_KEY, CLINE_API_KEY, OPENROUTER_API_KEY); see apps/cli/README.md.

Build / Lint / test

  • SDK packages (@cline/shared|llms|agents|core|sdk) resolve each other through compiled dist/ (their exports point only at dist/, with no development source condition). You must run bun run build:sdk after changing SDK dependencies/source before running the CLI or SDK tests, otherwise imports fail with missing @cline/* / missing dist/ errors. Running processes do not hot-reload SDK source changes — rebuild and restart.\
  • Known cloud-env test artifact: @cline/core test src/services/workspace/workspace-manifest.test.ts > readGitWorkspaceState > prefers origin and returns the current branch fails because cloud VMs configure git insteadOf rules that rewrite GitHub remotes to https://x-access-token:...@github.com/.... This is an environment artifact, not a code bug.
  • Some @cline/cli e2e assertions (bun -F @cline/cli test:e2e) may fail on exact tool-listing string formats; treat as pre-existing test drift, not an environment problem.

GUI display

  • A virtual X display is live at DISPLAY=:1 (the same desktop used for screenshots). GUI apps (VS Code, the Tauri desktop window) launched with DISPLAY=:1 render there and can be screenshotted — no need to start your own xvfb. Prefer starting long-running GUI/dev processes in a tmux session (see the tmux guidance) so they survive.

VS Code extension (apps/vscode, package claude-dev)

Toolchain is pre-installed and persisted in the VM: generated gRPC/proto code, the bundled ripgrep binaries (apps/vscode/bin/), the built webview (webview-ui/build), the esbuild bundle (dist/extension.js), VS Code itself (/usr/bin/code), and the GUI system libraries its tests need.

  • Codegen prerequisite: bun run protos (from apps/vscode) regenerates src/generated/* and the webview grpc client. The dev, build:webview, and check-types scripts already run it, so proto changes are picked up by those commands; run it manually only if you edit .proto files without a full build.
  • Build: bun run build:webview (webview UI, ~15s) then bun esbuild.mjs (extension bundle). bun run package does the full production build.
  • Run it (dev host): DISPLAY=:1 code --no-sandbox --user-data-dir=/tmp/vscode-userdata --extensionDevelopmentPath=/workspace/apps/vscode <some-folder>, then click the Cline icon in the Activity Bar to open the webview. (--no-sandbox is required in this container.)
  • Test: bun run test:unit (bun-based, ~984 tests, no VS Code host needed). bun run test:integration (@vscode/test-electron, downloads a VS Code build, runs under the GUI libs) and bun run test:e2e (Playwright) exercise a real extension host — heavier, and the GUI libs for them are already installed.
  • One-time deps (already installed, listed here in case they must be recreated): ripgrep via bun run download-ripgrep; VS Code test GUI libs per CONTRIBUTING.md (libnss3, libatk*, libgbm1, xvfb, etc.).

Desktop app (apps/examples/desktop-app, package @cline/code)

A Tauri v2 (Rust) shell + Next.js webview + a Bun "sidecar" backend. Rust and the Tauri Linux system libs are pre-installed and persisted.

  • Headless (no Rust/window): run the backend and UI separately — bun run dev:sidecar (Bun backend on 127.0.0.1:3126, serves ws://.../transport) and bun run dev:web (Next.js UI on http://localhost:3125).
  • Native window: bun run dev (tauri dev) — its beforeDevCommand builds the sidecar binary and starts dev:web (:3125), then Rust main.rs spawns the sidecar; so free ports 3125/3126 first. Launch with DISPLAY=:1 to see the window. A libEGL: DRI3 error warning is benign (software rendering) — the WebKitGTK window still renders.
  • Rust version caveat: the crate graph needs Cargo's edition2024 feature, so Rust ≥1.85 is required (the VM's base 1.83 fails with "feature edition2024 is required"). The toolchain here was updated via rustup default stable (currently 1.97). First cargo build downloads/compiles the full Tauri crate graph (a few minutes); subsequent builds are cached.
  • System libs (already installed): libwebkit2gtk-4.1-dev, libgtk-3-dev, libayatana-appindicator3-dev, librsvg2-dev, libxdo-dev, libssl-dev, build-essential.
  • Test/typecheck: bun run typecheck, bun run test:chat-ui (Vitest). Both trigger build:ui first.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.