flock CLAUDE.md

flock CLAUDE.md is an instructions file for coding agents from Onelevenvy/flock. It costs 2,138 tokens per session, scanned A, a copy of flock AGENTS.md, Apache-2.0.

Repository instructions for Flock, a desktop application that lets people use different AI providers, tools, sandboxes, workflows, and browser or computer controls.

In plain words
What is it for?
Use them when developing the Rust backend or React desktop interface, running the application, selecting an AI provider, testing, linting, or making release builds.
Why use it?
They explain the Rust workspace, desktop interface, command-line modes, and separate build and test commands for each part.

Instructions file

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add instructions/onelevenvy/flock/claude-md
Clone the repo
git clone --depth 1 https://github.com/Onelevenvy/flock

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for flock CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/onelevenvy/flock/claude-md.svg)](https://agentmods.dev/instructions/onelevenvy/flock/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/onelevenvy/flock/claude-md"><img src="https://agentmods.dev/badge/instructions/onelevenvy/flock/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,138 This file is loaded in full into every session.
When invoked 2,138 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.02138 $0.02138
Opus 5 $0.01069 $0.01069
Sonnet 5 $0.00428 $0.00428
Haiku 4.5 $0.00214 $0.00214

Measured 4d ago against content hash 5fbad5740e47, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

flock CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to flock AGENTS.md — 5 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

CLAUDE.md · 195 lines

How it starts

The opening of the file, as written. The whole thing — 195 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Flock is a multi-provider AI agent desktop application with tool orchestration, sandbox execution, visual workflow, and browser/computer-use capabilities. It's a Rust workspace with a Tauri-based desktop UI (React + TypeScript + Mantine).

Build & Development Commands

Rust Backend

# Build the CLI
cargo build --release

# Run in single-shot mode
cargo run -- "your question"

# Run interactive REPL
cargo run

# Run with specific provider/profile
cargo run -- --profile deepseek "your question"

# Run tests (workspace-wide)
cargo test

# Run a single crate's tests
cargo test -p flock-core
cargo test -p flock-agent
cargo test -p flock-tools
cargo test -p flock-skills

# Run a specific test
cargo test -p flock-core test_name

# Lint
cargo clippy --workspace

Tauri Desktop UI

cd flock-ui

# Install dependencies
npm install

# Development server
npm run dev
# or
npm run tauri dev

# Build for production
npm run build
# or
npm run tauri build

# Lint frontend
npm run lint

Architecture

Workspace Crates

Crate Purpose
flock-core Core types, config, database, IPC interface, crypto, model factory
flock-agent Agent engine, session management, tool execution, memory, graph orchestration, workflow engine
flock-tools Tool registry, built-in tools (Read/Write/Edit/Bash/Grep/Glob), MCP integration, sandbox tools (CodeExecution, SandboxExec, Browser, ComputerUse)
flock-skills Skill discovery, loading, frontmatter parsing, hooks, permissions, bundled skills
flock-ui/src-tauri Tauri desktop app backend (commands, agent state, workspace management)
workspace-hack cargo-hakari build optimization

Key Dependencies

  • LangGraph: Rust reimplementation (langgraph-rust) for agent graph orchestration
  • LLM Providers: OpenAI-compatible (default), Anthropic, AWS Bedrock, Google Vertex
  • Database: SQLite via sqlx for sessions, conversations, providers, tools, MCP servers, workflows
  • Async Runtime: Tokio
  • Sandbox: Daytona cloud container runtime for isolated code execution
  • Browser Automation: Playwright (Python, runs inside sandbox via CDP)

Read the full file on GitHub · 195 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 195 lines · 2,138 tokens per session scan A 5fbad5740e47

Subscribe to this mod's changes

flock CLAUDE.md is an instructions file published in the GitHub repository Onelevenvy/flock (1,103 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 2,138 tokens to every session, about $0.0107 per session on Opus 5. A static security scan graded it A with 0 findings. It is 97% identical to flock AGENTS.md, differing in 5 lines, and is treated as a copy.