●●●CrowdCode™›User guideversion 1.0.1We the People AI
●●●

Enclawed CrowdCode™

User guide

We the People AI

Version 1.0.1 · 2026-12-03

Enclawed CrowdCode™ user guide

We the People AI

A coding agent on your own models, with every action decided by Enclawed™. Version 1.0.1.

  1. Installing CrowdCode™
  2. Setting up your models
  3. Working with CrowdCode™
  4. While it works
  5. Showing CrowdCode™ what you see
  6. Model servers
  7. Safety and undo
  8. Fine-tuning and what's coming
  9. Reference and troubleshooting

Each page prints on its own (the button beside the chapters, or your browser's Print, then "Save as PDF"). The whole guide on one page prints as one document, and the PDF is ready made.

Installing CrowdCode™

CrowdCode™ is a coding agent that runs on AI models you host yourself: on your own computer, on another computer you own, or on a server you trust. Every action it takes on your files and your machine is checked first by Enclawed™.

What you need

  • Node.js 22 or newer. Get it from nodejs.org or your package manager. Check with node -v. Node.js 22 and 24 both work. (Enclawed™ before 2.0.16 refused node --test inside a contained run on Node.js 24; 2.0.16 allows it.)
  • A model server, or a computer that can run one. For the full experience: an NVIDIA GPU with enough memory for the model (a 32-billion-parameter coding model needs about 40 GB with FP8). The setup step helps you choose.
  • Linux or WSL for the full feature set. On macOS, plain Windows, Android and iOS/iPadOS, CrowdCode™ runs and Enclawed™ decides every action. But Enclawed™ cannot run commands contained there yet, so it asks you about, or refuses, the tests, builds and scripts it would otherwise run contained. ccode doctor shows what Enclawed™ says about your computer.
  • Optional, for speaking to CrowdCode™: a recording program (on Linux and WSL sudo apt install pulseaudio-utils; on macOS and Windows ffmpeg) and a model that hears audio. See While it works.
  • Optional, for a second factor on your own actions: a FIDO2 security key, or this computer's passkey (Windows Hello, Touch ID), enrolled with enclawed auth enroll. See Safety and undo.
  • The programs your tests use, installed system-wide (Linux). Contained commands find programs only in the system folders: /usr/local/bin, /usr/bin, /bin, /usr/sbin and /sbin. A Node.js or Python that only nvm, pyenv or conda installed, in your home folder, isn't there. Install one through your package manager too, or link it into /usr/local/bin. Otherwise the contained run uses another version, or can't find the program.

Install

Linux, macOS and WSL

From a CrowdCode™ folder:

bash scripts/install.sh

The installer:

  1. checks Node.js and npm, and says how to get them if they're missing;
  2. installs CrowdCode™ into ~/.local/share/crowdcode (no sudo);
  3. creates the commands ccode and crowdcode in ~/.local/bin;
  4. offers to add ~/.local/bin to your PATH;
  5. offers to run ccode setup, which asks where your models run.

Useful options: --yes (no questions), --check (show what would happen, change nothing), --from FILE (install from a package file).

Windows

In PowerShell:

powershell -ExecutionPolicy Bypass -File scripts\install.ps1

It installs into %LOCALAPPDATA%\Programs\CrowdCode, creates ccode.cmd and crowdcode.cmd, and adds them to your user PATH. For the full experience on Windows, install inside WSL instead.

Android

CrowdCode™ runs in Termux, a Linux terminal app for Android. Install Termux from F-Droid or GitHub (the Google Play version is outdated), then:

pkg install nodejs-lts git openssh
git clone <your CrowdCode™ folder's address> crowdcode
bash crowdcode/scripts/install.sh
  • Models: a phone can run a small model itself (pkg install llama-cpp or pkg install ollama; ccode setup then shows the models that fit). For a large model, pick "On another computer I can log in to with SSH" or "On a server that is already running" in ccode setup.
  • Pasting: install the Termux:API app and pkg install termux-api to paste copied text. To attach a screenshot, run termux-setup-storage once, then attach it by its path, for example @~/storage/shared/Pictures/Screenshots/shot.png.
  • Contained commands: Android has none of the namespaces Enclawed™'s containment needs, so Enclawed™ asks you about, or refuses, the tests and builds it would run contained on Linux.

iPhone and iPad (iOS and iPadOS)

iOS and iPadOS let no app run Node.js directly. Two ways work:

  1. From the iPhone or iPad, on a computer (recommended). Install CrowdCode™ on a Linux computer (or WSL) and log in to it with an SSH app such as Blink Shell, Termius or a-Shell's ssh. CrowdCode™ runs there with everything, containment included; the iPhone or iPad is its screen and keyboard. mosh keeps the session through network changes and sleep.
  2. On the device, in iSH. iSH runs Alpine Linux by emulating an x86 processor, so it works but is slow, and models must run on another computer (ccode setup: SSH or a server address). In iSH, use Alpine 3.21 or newer (it has Node.js 22 and 24), then:
    apk add nodejs npm git bash openssh-client
    git clone <your CrowdCode™ folder's address> crowdcode
    bash crowdcode/scripts/install.sh
    Pasting copied text works through iSH's /dev/clipboard; attach screenshots by their path. As on Android, Enclawed™ asks about or refuses what it would run contained.

Check it works

ccode --version

Open a new terminal first if the installer just added the PATH line.

Update

Run the installer again from the newer CrowdCode™ folder (or package file). Versions are kept side by side, and the commands switch to the new one.

Uninstall

bash scripts/install.sh uninstall

On Windows: install.ps1 -Uninstall. Your settings (~/.config/crowdcode) and history (~/.local/state/crowdcode) are kept; delete those folders yourself if you want them gone.

Setting up your models

CrowdCode™ talks to a model server: the program that runs the AI model. Run the guided setup once, and again any time you want to change something:

ccode setup

It asks plain questions, checks each answer, and writes two files for you. You never need to edit them by hand.

Where can the model run?

1. On this computer. Setup looks at your GPU and memory and lists the models that fit, each with a score for how well it runs here. Pick one by number, or type any Hugging Face model id. CrowdCode™ then:

  • downloads the model, or has Ollama pull it, if it isn't here yet;
  • chooses the runtime and precision that suit your computer, from vLLM, llama.cpp, Ollama and AirLLM;
  • sets the context to what fits in memory.

Your choices are explained in Choosing a model.

CrowdCode™ starts the model when it opens and stops it when it closes.

2. On another computer, over SSH. Use this for a GPU machine in your office, your lab, or a rented one on the internet. CrowdCode™ logs in with an SSH key (never a password), starts the model there, and stops it when you quit. The model stays private to that machine. CrowdCode™ reaches it through an encrypted SSH tunnel, so nothing is opened on the network.

If setup says it can't log in yet, create a key and copy it over once:

ssh-keygen -t ed25519
ssh-copy-id you@gpu-box

3. At an address. Use this for a server someone already runs, for example http://gpu-box.lan:8000/v1. CrowdCode™ uses it but never starts or stops it. If it needs an API key, setup asks for the name of an environment variable holding the key. The key itself never goes in CrowdCode™'s files.

4. Nothing special. CrowdCode™ finds a model server already running on this computer: vLLM, llama.cpp's llama-server, or Ollama.

Choosing and switching models

ccode models                          # open models, scored for this computer
ccode models search qwen coder        # anything on Hugging Face, scored the same way
ccode models info Qwen/Qwen3-8B       # one model in detail, for each runtime
ccode models use Qwen/Qwen3-8B        # make it the coding model (downloads it first)

In a session, /model shows the same list and /model 3 (or /model ORG/NAME) switches to a model. The model server restarts with it and your conversation carries on. /model search NAME finds any other model.

The score (0–100) says how usable a model is on your computer:

  • whether it fits in GPU memory, and at what precision: full (BF16), FP8, or a 4-bit build;
  • how much conversation fits next to it;
  • how fast it will answer.

"trains here" means CrowdCode™ can fine-tune it on this GPU.

Runtimes

RuntimeGood forNotes
vLLMNVIDIA GPUsThe fastest, and the only one CrowdCode™ fine-tunes with. Uses the model's original files from Hugging Face.
llama.cpp (llama-server)NVIDIA, Apple silicon, CPURuns GGUF builds (compressed copies). CrowdCode™ downloads the right one from Hugging Face.
OllamaNVIDIA, Apple silicon, CPUPulls models itself (from ollama.com, or any Hugging Face GGUF as hf.co/ORG/REPO). If an Ollama is already running, CrowdCode™ uses it and never stops it, but unloads the model it loaded when you quit.
AirLLMNVIDIARuns models far bigger than your GPU, such as a 70B model on an 8 GB laptop GPU, by loading one layer at a time. It is very slow: every word reads the whole model from disk again, so one reply takes many minutes. CrowdCode™ offers it only for models nothing else can run here. Free and open source (Apache-2.0).

To pick a runtime yourself, use ccode models use NAME --engine llama.cpp.

If a runtime is missing, CrowdCode™ offers to install it in its own folder, with no administrator rights needed:

ccode install vllm         # a Python environment with vLLM (several GB)
ccode install llama.cpp    # the prebuilt llama-server that matches your GPU, checked before use
ccode install airllm       # a Python environment with AirLLM (several GB)

Ollama installs system-wide, so CrowdCode™ shows you the command for it instead of running it.

Very large models with AirLLM

AirLLM keeps the model on disk and runs it one layer at a time, so only one layer has to fit on the GPU. In ccode models, such a model shows a low score and its speed in seconds per token (~20 s/tok), not tokens per second. What that means in practice:

  • Use it for work you don't watch: an overnight task (ccode -p "…"), or ccode bench to see how a big model does. A task with AirLLM may run for up to 12 hours (change it with --max-seconds). For coding live, a model that fits your GPU is far better.
  • Disk: the model's download, plus AirLLM's own compressed copy, split by layer, next to it (.airllm in the models folder). The first start makes that copy, which can take an hour for a very large model.
  • Speed is set by your disk. When the compressed copy fits in your computer's memory, it is several times faster.
  • Tool calls are written as text, which CrowdCode™ reads. This happens by itself.

To use it, pick the model in ccode models, or name it: ccode models use meta-llama/Llama-3.3-70B-Instruct --engine airllm.

Some models are gated: accept their license on huggingface.co first, then set your token in the environment as HF_TOKEN. CrowdCode™ never stores it.

Downloads go through Enclawed™ like everything else. If your policy lists the computers CrowdCode™ may reach, CrowdCode™ asks before adding Hugging Face to it.

Images, audio and video

Setup also offers a second model that can see pictures and hear audio, for pasted screenshots, photos, voice notes and videos. Qwen2.5-Omni-7B is a good choice. It can run in the same three ways.

Which computers CrowdCode™ may reach

When a model runs on another computer, setup asks whether to allow it. Enclawed™ decides which computers CrowdCode™ may connect to, from the list setup writes into Enclawed™'s policy. Once a list exists:

  • CrowdCode™ can reach only the computers on it (and this one);
  • the agent's own downloads, such as package installs or git fetch, are limited to the list too. Setup offers to add the usual code and package hosts (npm, PyPI, GitHub, crates.io, Go modules).

An organization can also set a policy for every user in /etc/enclawed/policy.json. A person's own settings can only make it stricter, never looser.

The files setup writes

FileWhat it holds
~/.config/crowdcode/config.jsonYour model servers
~/.config/crowdcode/policy.jsonEnclawed™'s policy: the computers CrowdCode™ may reach

On Windows they live in %APPDATA%\crowdcode.

Working with CrowdCode™

Open a terminal in your project folder and type:

ccode

If your models are set to start with CrowdCode™, you see them warming up first. A 32B model takes a minute or two. Then the logo, a joke from the crowd, and the prompt:

╭─● ● ●─[ CrowdCode™ ]─[ my-project ]─[ Qwen2.5-Coder-32B-Instruct ]
╰─❯

Type what you want done, in plain words: "make the failing test pass", "add a --verbose flag", "explain what this module does".

What you see while it works

  • The model's answer, formatted (headings, lists, code).
  • One line for each action, such as reading a file, editing one or running the tests, with Enclawed™'s decision under it.
  • Each edit as a colored diff with line numbers.
  • After each task, a status line: the model, how many tokens were used, how full its memory (context) is, and what happened in this session.
  • The input line stays at the bottom: type (or speak) your next message while the model works. Enter queues it, Ctrl+S sends it now. See While it works.

When Enclawed™ asks you

Most actions never ask. Edits keep history, tests and builds run contained, and reading is safe. When something can neither be undone nor checked, Enclawed™ shows what it would do and why, then waits for one key and Enter:

KeyWhat it does
Enterapprove, this once
ddeny: nothing runs, and the model is told why
aalways approve this command in this project (shown only when Enclawed™ allows it)
rapprove, and report the question to Enclawed™ as a bug: one it should not have asked

Only a key pressed after the question appears counts: anything you typed before it stays queued as a message, and text you were typing is set aside and comes back afterwards. Anything else you type denies. Typing Enclawed™'s own word and code, as earlier versions asked, still works.

Reporting a question (r). CrowdCode™ saves what Enclawed™ asked and why (never your files' contents) in ~/.local/state/crowdcode/reports/, and opens a draft email to security@enclawed.com in your mail program. Read it and press Send there; nothing is sent without you.

"Always" (a). It allows that command from now on in this project, for example a pytest -m … you run often. The prompt says exactly what "always" covers, as Enclawed™ words it: the same command with the same words, run in the same folder. A changed word, or a variable put in front of it, is a new question. Some commands can only be allowed once (the prompt says why), such as a line that reads what another part of it wrote.

  • /approvals (or ccode approvals) lists your "always" answers.
  • /approvals forget ID removes one, and /approvals forget all removes this project's.
  • Each "always" answer, and each time one is used, is written to Enclawed™'s audit log.
  • "Always" answers apply in sessions where you could have been asked. In ccode -p runs, nobody is there to ask, so what asks is refused as before.

Tip: if your message names an operation, for example "delete the branch old-feature", Enclawed™ takes that as your approval for exactly that operation, in this turn only.

Commands in a session

CommandWhat it does
/helpLists the commands
/undoPuts back the files the last task changed (never a file you edited since)
/modelOpen models scored for this computer; /model 3 or /model ORG/NAME switches (the conversation stays)
/model search NAMEFinds any model on Hugging Face, scored the same way
/approvalsYour "always" answers in this project; /approvals forget ID removes one
/compactSummarizes the earlier conversation to free the model's context
/receiptShows and checks the last task's run receipt
/statusThe status line, now
/clearStarts a fresh conversation (your files stay as they are)
/pastePastes a screenshot or copied files (also Ctrl+V or Alt+V)
/voiceStarts and stops recording your voice (also Ctrl+R); the words go into the input line
/micLists the microphones; /mic 2 picks one, /mic default uses the system's
/factorEnclawed™'s second factor: what is enrolled, and which of your actions need it; /factor on commands, /factor off undo, /factor on all
/guide questionAnswers a question about CrowdCode™ from this guide
/exitCloses CrowdCode™ (also Ctrl+D)
?commandRuns a shell command yourself, for example ?git log --oneline -5 (see While it works)

Ctrl+C stops the current task, and the task is rolled back. At the prompt, it closes CrowdCode™.

Everything goes through Enclawed™, what you do as well as what the model does: see Safety and undo.

Long conversations

A model can only keep so much in mind at once: its context. The status line shows how full it is.

When the context nears full, CrowdCode™ makes room on its own:

  1. It first shortens old file contents and command output. The model can read them again if it needs to.
  2. If that isn't enough, it asks the model to summarize the earlier part of the conversation, and keeps the recent part as it was.

It says so when it happens. You can also do it yourself with /compact. Enclawed™'s rules are never shortened.

Your instructions for every task

Put standing instructions in a CROWDCODE.md file at the top of your project, for example "use tabs", "tests live in spec/" or "never touch the vendor folder". CrowdCode™ also reads AGENTS.md if there's no CROWDCODE.md. Instructions for all your projects go in ~/.config/crowdcode/CROWDCODE.md.

The model follows them unless they conflict with Enclawed™'s decisions.

Finding code

The model searches your project with list_files and search. Neither changes anything, so Enclawed™ rarely needs to ask about them. Both skip .git, node_modules, build output and virtual environments.

Picking up where you left off

ccode --continue

This continues the last conversation in this project. ccode conversations lists them all, and ccode --resume ID picks one.

Keeping changes only when tests pass

ccode -p "make the failing test pass" --verify-cmd "npm test"

With --verify-cmd, the changes are kept only if your command succeeds and nothing was refused; otherwise everything is rolled back. -p runs one task without a person, and anything that would need your answer is refused.

The startup jokes

Every start shows a joke or a surprising fact from the crowd. There are over 300 built in. Add your own, one per line, in ~/.config/crowdcode/quips.txt.

While it works

You don't have to wait for CrowdCode™. While the model works you can type or speak your next message, send it straight away, run a command of your own, and watch helper agents work side by side. Everything here goes through Enclawed™, like the model's own actions.

The input line stays

While a task runs, the output scrolls above and your input line stays at the bottom:

● I'll look for the eigensolver calls in src/ first.

● search(eigSolve)
  ⎿  Enclawed: read-only search of the project
     src/eigenSolver.c:212: eigSolve_CheFSI(rank, pSPARC, ...)

> also check the PDGEMM calls (1 queued · Ctrl+S sends now)
  • Enter queues what you typed. A queued message runs as the next task as soon as this one ends. The input line counts them: "(2 queued · Ctrl+S sends now)".
  • Text you haven't sent stays in the line, even when output is written above it.
  • When Enclawed™ asks you something, the question takes the input line for a moment. What you were typing is set aside and comes back after you answer, so it never becomes the answer by accident.

Sending a message now: Ctrl+S

Press Ctrl+S to send your queued messages, and the line you are typing, to the model in the same task:

  • If the model is writing a reply, the reply is cut, marked [cut: your message goes to the model], and the model starts again with your message in view.
  • If an action is running (a build, the tests), your message goes in as soon as it finishes.
  • Each message sent this way is shown as sent to the model: ….

Some terminals use Ctrl+S to pause output. If Ctrl+S does nothing for you, press Ctrl+X then S instead: it does the same.

Commands (/…) and your own shell commands (?…) are never sent to the model. They wait and run when the task ends.

Speaking instead of typing

Press Ctrl+R (or type /voice) and speak; press Ctrl+R again when you are done. CrowdCode™ shows:

  ● recording from RDPSource: Ctrl+R (or /voice) stops
  transcribing 4.2 s …
╰─❯ please also add the PDGEMM calls in the k-point solver

Your words land in the input line. Check them, correct them if needed, then press Enter (or Ctrl+S during a task). It works both at the prompt and while the model works.

Choosing the microphone

/mic
  microphone: the system's default  (recording with parecord)
     1  RDPSource  (system default)
     2  alsa_input.usb-Blue_Yeti-00.analog-stereo
/mic N picks one · /mic default uses the system's · Ctrl+R or /voice records
  • /mic 2 picks the second one. Your choice is kept for the next session.
  • /mic default goes back to the system's own choice.
  • Change it whenever you like, for example when you plug in a headset.

What it needs

A recording program. CrowdCode™ uses one your system already has:

SystemInstall
Linux, WSLsudo apt install pulseaudio-utils (or pipewire-bin, alsa-utils, ffmpeg). On WSL, Windows' microphone reaches Linux through WSLg.
macOSbrew install ffmpeg
Windowswinget install Gyan.FFmpeg
Android (Termux)the Termux:API app, then pkg install termux-api
iPhone, iPad (iSH)no microphone in iSH: speak from a computer over SSH instead

A model that hears audio. Speech is turned into text on your computer, never by an online service: by the media model (Qwen2.5-Omni, offered in ccode setup), or by your main model if it hears audio itself.

ccode doctor shows both: which recorder and microphone are used, and whether a model can hear.

How it is protected

  • The recording goes into a private folder of this session (yours only), and is deleted once it is turned into text.
  • Before the recording reaches a model, Enclawed™ decides it as a read, like any file you attach.
  • Each recording is recorded in Enclawed™'s audit log: from which microphone, how long, and digests (fingerprints) of the sound and of the words. Not the sound or the words themselves.
  • The words are never sent by themselves: they wait in the input line for you.

Running your own commands: ?

Start a line with ? to run a shell command yourself:

╰─❯ ?git log --oneline -3
● you(git log --oneline -3)
  ⎿  Enclawed: read-only (git log reads the history)
     0d9e9a2 Send now with Ctrl+S, helper agents, ?command, voice input
     e6ea705 Enclawed 2.0.16
     d8cee84 Guide: Android edits
  • Enclawed™ decides it like any command. A line you typed word for word counts as approved by you, so it usually runs without a question; Enclawed™ still runs it contained where it can, and refuses what its policy forbids.
  • It's always recorded in Enclawed™'s audit log, whether it ran or not: the command, Enclawed™'s decision, the exit code, and a digest of the output.
  • The model sees it. What the command printed is added to the conversation as something you ran, so you can say "look at that error" next.
  • You can protect it with a second factor (/factor on commands): each ? command then waits for your security key or passkey. See Safety and undo.
  • A ? line typed during a task waits and runs when the task ends.

Helper agents

For work with separate parts, the model can start helper agents: for example one that updates the tests while another updates the documentation. Helpers:

  • run on the same model as the main agent; several run at the same time, so a model server that serves several requests at once (vLLM) finishes sooner;
  • start fresh: each gets only the task the main agent wrote for it, and reports back when done;
  • have the same tools as the main agent, and can start their own helpers, two levels deep at most, and at most 16 per task.

Their lines carry their name:

● spawn_agent(tests: update test/add.test.mjs for the new signature)
  ⎿  Enclawed: reversible (subagent launch; its own tool calls are checked)
  helper tests started: update test/add.test.mjs for the new signature

● [tests] read_file(test/add.test.mjs)
● [docs] apply_patch(README.md)
  helper tests finished (done)

Safety is the same as for the main agent. Enclawed™ decides each helper it starts, and every action each helper takes; each helper is known to Enclawed™ by its own name. Their actions run one at a time, so you are never asked two questions at once, and a helper's changes belong to the task: they are kept, or rolled back, with it. A refused action by any helper rolls back the whole task, as one by the main agent does.

You don't need to ask for helpers. The model uses them when the work splits well; you can also ask: "use helpers: one for the tests, one for the docs".

Keys at a glance

KeyAt the promptWhile a task runs
Entersends the messagequeues it (runs when the task ends)
Ctrl+S, or Ctrl+X then S—sends the queued messages and the line now
Ctrl+Rstarts or stops recordingstarts or stops recording
Ctrl+V, Alt+Vpastes a screenshot or copied files—
Ctrl+Ccloses CrowdCode™stops the task, and rolls it back
Ctrl+Dcloses CrowdCode™—
Ctrl+X then Llocks the screenlocks the screen
Enter, d, a, rwhen Enclawed™ asks: approve, deny, always, approve and report (see Working with CrowdCode™)the same

Showing CrowdCode™ what you see

You can give the model more than text: documents, screenshots, photos, audio and video.

Three ways to attach

  • Paste with Ctrl+V or Alt+V (Windows Terminal keeps Ctrl+V for itself, so use Alt+V there), or type /paste. A screenshot or a copied file appears in your message as @path.
  • Drop a file onto the terminal window. Its path appears in your message.
  • Name a file with @, for example @docs/spec.pdf what does section 3 require?. Any file works this way. A bare full path to a picture, sound, video or document is attached too.

A multi-line paste stays one message.

What the model gets

You attachThe model gets
PDF, Word, Excel, PowerPoint, OpenDocument, HTMLThe text inside it
Text and code files (with @)The file's text
Pictures, audio, videoThe file itself, if the model can see or hear; otherwise a description or transcript from your media model

Coding models usually read only text. If you set up a media model (see Setting up your models), it describes each picture and transcribes each recording word for word, and the coding model reads that. If no model can read an attachment, the message is not sent, and CrowdCode™ tells you what to set up.

PDFs: installing poppler's pdftotext gives the best text. Without it, CrowdCode™ uses its own reader, which handles most modern PDFs. Scanned PDFs have no text; attach screenshots of their pages instead.

Limits

Pictures up to 20 MB, audio up to 25 MB, video up to 100 MB, documents up to 50 MB. Very long documents are cut at 60,000 characters, and the model is told how much was left out.

Privacy

Attachments go only to your own model servers. Run receipts record a fingerprint (digest) of each attachment. Fine-tuning candidates keep the text but never the picture, audio or video itself.

Model servers

Started and stopped with CrowdCode™

The servers you set up with ccode setup start when CrowdCode™ opens and stop when it closes:

  • Already running? A server that already answers is used as it is. If CrowdCode™ didn't start it, CrowdCode™ never stops it.
  • Several windows: if two CrowdCode™ windows use the same server, it stops when the last one closes.
  • The media model keeps loading in the background. CrowdCode™ waits for it only when you attach something it needs.
  • After a crash, the next start takes over the server that was left running instead of loading the model again.
  • To keep a server running after you quit, use ccode --keep-servers.

Checking on them

ccode servers          # which servers exist, where, and whether they answer
ccode servers stop     # stop the ones CrowdCode™ started and no window uses

Logs are in ~/.local/state/crowdcode/servers/NAME.log. For a server on another computer, they're in ~/.cache/crowdcode/ on that computer.

Sharing a GPU

If other programs use the same GPU, answer "yes" when setup asks. CrowdCode™ then takes about half the GPU's memory instead of nearly all of it.

On WSL, vLLM can't tell its own GPU memory from other programs', so a second model on the same GPU needs a fixed cache size. Setup does this for the media model (KV_CACHE of 4 GB).

The config file

ccode setup writes ~/.config/crowdcode/config.json. For reference, a server entry looks like this:

{ "servers": [
  { "name": "coder", "model": "~/models/Qwen2.5-Coder-32B-Instruct",
    "vllm": "~/crowdcode-vllm/.venv/bin/vllm", "port": 8000,
    "env": { "QUANTIZE": "fp8", "GPU_UTIL": "0.55" } },
  { "name": "media", "role": "media", "ssh": "me@gpu-box",
    "model": "~/models/Qwen2.5-Omni-7B", "port": 8001,
    "env": { "LORA": "0", "KV_CACHE": "4G", "MAX_MODEL_LEN": "12288" } }
] }
KeyMeaning
nameYour name for it (a-z, 0-9, -)
rolecoder (default) or media (pictures, audio, video)
enginevllm (default), llama.cpp, ollama or airllm
modelThe model folder (vLLM, AirLLM), GGUF file (llama.cpp) or model name (Ollama), on that computer
vllm, binThe runtime's program: vLLM, llama-server, ollama, or the Python that has AirLLM (on that computer)
ctxThe context length, for llama.cpp, Ollama and AirLLM (vLLM: env.MAX_MODEL_LEN)
portIts port; localPort is the tunnel's port here, for SSH servers
sshuser@computer: start it there over SSH
urlAn address of a server someone else runs (never started or stopped)
apiKeyEnvThe environment variable holding that server's API key
env, argsSettings passed to the serve script and to vLLM. For AirLLM: env.COMPRESSION (4bit, the default, 8bit or none) and env.AIRLLM_SHARDS (where its per-layer copy goes)

Over the internet

A model on the internet works like one on your network, with two cautions:

  • Prefer SSH (setup option 2): the traffic is encrypted and the model is never exposed. A plain http:// address is not encrypted.
  • Enclawed™ is the gate. CrowdCode™ can reach only the computers in Enclawed™'s policy, so a typo or a changed setting can't send your code somewhere else.

Safety and undo

Enclawed™ decides every action

CrowdCode™ never runs anything on its own authority. Every action the model asks for, such as reading a file, writing one or running a command, goes to the Enclawed™ engine first. Enclawed™ answers in one of three ways:

  • allow: reading, edits that keep history, tests and builds that run contained;
  • ask you: for what can neither be undone nor checked;
  • refuse: reading your keys, sending data out, downloading and running code, and similar.

CrowdCode™ adds no security rules of its own. They are all Enclawed™'s, so one set of rules protects every tool that uses Enclawed™.

Everything goes through Enclawed™

Not only the model's actions. Everything that happens in a session reaches Enclawed™:

WhoWhatWhat Enclawed™ does
The modelevery action: reading, writing, searching, running commands and testsdecides it before it runs (allow, contain, ask you, or refuse)
Helper agentsstarting a helper, and every action of each helperdecides each one, knowing which helper asked; their changes are kept or rolled back with the task
Youa ?commanddecides it (a line you typed word for word counts as yours), records it whether it ran or not
Youa file you attach, paste or drop indecides it as a read before the model sees it (a private key, for example, is asked about)
Youspeaking (Ctrl+R)decides the recording as a read before a model hears it, and records it
Youevery line you enter: messages, / commands, ? commandsrecords it in its audit log (its kind and a digest, not the text)
Youyour answers to its questions, "always" answers, /approvals forget, reporting a question (r), choosing a microphonerecords each one
You/undo, ccode history restoreputs files back from its own history, and records it

Proving it's you at launch

When CrowdCode™ starts, before any model server starts, Enclawed™ checks that it's you:

  • with an Enclaweder™ connected: the code your Enclaweder™ checks (the device checks it, not this computer). If you also enrolled a security key or passkey, Enclawed™ asks for that first, then the code;
  • without one: your security key, or this computer's passkey (Windows Hello, Touch ID), through a page that opens in your browser.

If Enclawed™ doesn't accept it, CrowdCode™ closes. Each attempt is in Enclawed™'s audit log. When no factor is enrolled and no Enclaweder™ is connected, there is nothing to ask, and CrowdCode™ starts as before (ccode doctor says so). Enroll one with enclawed auth enroll (see below). A run with nobody there (ccode -p) needs Enclawed™'s unlock ticket instead: enclawed auth unlock, run by you beforehand.

Locking the screen

/lock (or Ctrl+X then L) locks the session at once, and it locks by itself after 15 minutes without a key. The terminal shows a moving screen of glyphs with the CrowdCode™ shield in the middle; your session is out of sight underneath.

  • Unlocking: press Enter and give Enclawed™'s second factor: a security key, a passkey, or your Enclaweder™'s code (a code you type is never shown). Enclawed™ checks it and records every attempt.
  • While it's locked, tasks keep running, and what they print waits; it all appears, in order, when you unlock. Keys go to the lock only: nobody can type into the session, answer Enclawed™'s questions, or stop a task with Ctrl+C or Ctrl+Z.
  • /lock after 5 changes the wait to 5 minutes; /lock after off stops the automatic lock. Locking later or never needs the second factor first.
  • The lock needs an enrolled factor (or a connected Enclaweder™): without one, nothing could open it, and CrowdCode™ says so instead of locking.

A second factor for your own actions

By default, what you do yourself runs as Enclawed™ decides, without more steps: a command you type is yours. If others could use your computer while you are away, or you want a deliberate pause before your own commands run, ask for Enclawed™'s second factor:

/factor on commands

From then on, each ?command waits, after Enclawed™ allows it and before it runs, for one of:

  • a security key (a FIDO2 key with a PIN, such as a YubiKey 5 or a Google Titan key);
  • this computer's passkey (Windows Hello with a TPM, Touch ID, or Android's secure hardware), through a page that opens in your browser;
  • the code your Enclaweder™ checks, when an Enclaweder™ device is connected (the device, not this computer, checks it).

Enclawed™ itself checks the factor and records every attempt in its audit log. Without the factor, nothing runs, and that is recorded too.

What you can protect:

/factor on …What then needs the second factor
commandsyour own ?commands
alwayssaving an "always" answer, and /approvals forget
undo/undo
allall three
  • /factor shows what is on, and which factors are enrolled. ccode doctor shows it too.
  • Turning protection on needs a factor enrolled first. Enroll one with Enclawed™:
    enclawed auth enroll --label primary              # a security key
    enclawed auth enroll --label backup               # a second key, kept somewhere safe
    enclawed auth enroll --passkey --label laptop     # this computer's passkey
  • Turning protection off (/factor off commands) needs the second factor itself, so nobody else can switch it off at your keyboard.
  • In ccode -p runs nobody is there to give the factor, so protected actions are refused.

Enclawed™'s audit log

Enclawed™ keeps an append-only log of what happened in your sessions, in ~/.local/state/crowdcode/audit.jsonl (yours only). Besides Enclawed™'s own records of every decision, CrowdCode™ adds:

RecordWhen
crowdcode.person.inputeach line you enter (its kind, a digest, the command's name)
crowdcode.person.shelleach ?command: the command, Enclawed™'s decision, whether it ran, its exit code, a digest of its output
crowdcode.person.voice, crowdcode.person.miceach recording (microphone, length, digests of the sound and the words), each microphone choice
crowdcode.person.reporteach question you reported to Enclawed™ with r
crowdcode.approval.always, crowdcode.approval.remembered, crowdcode.approval.forget"always" answers saved, used and removed
auth.second-factorevery second-factor attempt (Enclawed™'s own record)
crowdcode.factor.on, crowdcode.factor.offprotection turned on or off

Nothing is final until it's kept

  • Interrupted tasks (Ctrl+C) are rolled back.
  • Failed checks: with --verify-cmd, a task's changes are kept only if your check passes.
  • /undo puts back what the last task changed. A file you edited since is never overwritten; CrowdCode™ tells you about it instead.
  • Every earlier version of a file the agent changed is kept by Enclawed™:
ccode history                              # the kept versions
ccode history restore SHA256 --to PATH     # put one back

If CrowdCode™ dies

If CrowdCode™ is killed in the middle of a task (power loss, a crash, kill -9), the next start finds the unfinished task and rolls it back, again never touching a file you changed since. It also removes what the dead session left behind.

Run receipts

Every task ends with a signed run receipt. It records what the project looked like before and after, every action and Enclawed™'s decision on it, and the model used. Anyone can check one:

ccode receipt verify FILE

A receipt signed by this computer's own key is self-attested: it proves the record wasn't changed afterwards, not that the work is good. To check the work, re-run its verify command.

Your data

  • Your code, prompts and attachments go only to your own model servers.
  • Sessions are kept on your computer as fine-tuning candidates. A session holding a password or key is dropped, not kept. Nothing is trained on until you approve it (see Fine-tuning). --no-keep-session keeps nothing.
  • All of this lives in ~/.local/state/crowdcode, with access for you only.

Fine-tuning and what's coming

Your sessions, your model

CrowdCode™ can make its model better at your work by learning from your own sessions. You are the teacher. When the model gets something wrong, you undo it and show it what you wanted. CrowdCode™ remembers both, and learns from the difference.

Each round of learning is a small add-on to the model, called a LoRA adapter: the change to the model's weights, kept apart from the model as a patch. The model itself never changes, so removing the adapter gives you the original model back exactly.

Choosing what the model learns from

Every task you finish is kept as a candidate. Nothing is learned until you approve it.

ccode training

In a terminal this opens a picker. Each session has a number, its field, a one-line summary of what was done, and how it ended. Type numbers to tick or untick them (3, 1-4 7), c physics to tick a whole field (u physics to untick it), a for all, s 3 to look at one, then press Enter to save. Ctrl+C leaves everything as it was.

The same without the picker:

ccode training list              # the numbered list
ccode training show 3            # one session in detail
ccode training approve 1-4 7     # by number, range, run id, or: all
ccode training revoke 2          # take it back
ccode training forget 5          # delete it for good

Fields and topics

After each task, the model writes the summary and picks the session's topic from a fixed list. That list covers every use of the model, not only coding: software, testing, operations, data, AI, security, mathematics, physics, chemistry, life sciences, Earth sciences, engineering, business, writing, education and the arts. Each field has its own topics, such as physics.quantum or math.probability.

ccode training topics            # the whole list
ccode training label             # label sessions that have no label yet

Topics let you:

  • choose by field in the picker;
  • train one field with ccode train --category physics;
  • keep earlier fields from being forgotten, since replay takes lessons from every field alike.

Every adapter records the topics it learned (ccode adapters).

Approve only sessions whose code is yours and that hold no output generated by Claude. A session that held a password or key was never kept in the first place.

How to teach it a correction

  1. Ask for something. The model does it, but not the way you want.
  2. Type /undo. The files go back as they were.
  3. Say what you wanted ("no, use a Map instead"). The model does it again, and you keep it.

The first try and the kept one, for the same request, make a correction. The list shows it as "undone → corrected by #4". A task that is rolled back because its checks failed counts too.

Training: ccode train

Training runs when you choose: overnight while you sleep, during the day when you're not coding, or on another computer.

ccode train --dry-run            # what it would learn, and how long it would take
ccode train                      # learn now
ccode train --until 07:00        # stop in time to be done by 7 in the morning
ccode train --hours 3            # at most three hours
ccode train --on gpu-box         # train on another computer (a server set up with ccode setup)
ccode train --category physics   # learn only this field's new sessions (a topic works too)

While it trains:

  • CrowdCode™ pauses its own models, because training needs the GPU. It never stops anyone else's programs. If the GPU is busy, it says so and stops.
  • It shows its progress and how long is left, measured on your GPU. After the first run, --dry-run knows your GPU's speed and estimates before anything starts.
  • Ctrl+C stops it. Nothing changes: the model stays as it was.
  • CrowdCode™ sessions wait until it's done, and tell you when that will be.

Corrections are learned as preferences (the kept answer over the undone one), and kept sessions as examples.

Why it doesn't forget

An adapter has limited room, so learning new things can push out old ones. CrowdCode™ guards against that in four ways:

  • Replay. Each round also re-learns a sample of earlier lessons.
  • Separate directions. Each round changes the model in directions earlier rounds didn't use.
  • The check. Before a new round is used, vLLM scores it on your earlier lessons and on general coding questions, and the round has to solve at least as many coding tasks (ccode bench) as the current model. If the round forgot earlier lessons, drifted on general coding, or learned nothing new, it isn't kept and the model stays as it was. ccode train shows the scores.
  • Compaction. When the adapter fills up, CrowdCode™ folds it into fewer directions, keeping what matters most, and checks the result the same way. This happens on its own, or with ccode adapters compact.
ccode adapters meter             # how full the adapter is
ccode adapters                   # the rounds, and the fields each learned

Does it actually code better? ccode bench

ccode bench                      # realistic coding tasks of every kind (suite v2)
ccode bench --suite v1           # the 12 small single-file tasks
ccode bench list                 # the tasks, with their kind
ccode bench history              # every result so far, per model and round
ccode bench --model crowdcode-lora-r0003   # a particular fine-tuning round

Each task is a real CrowdCode™ task in a throwaway project: fix a bug, implement a function, rename across files, and so on. The model works on it alone, with Enclawed™ deciding every action. When it finishes, hidden tests that it never saw decide whether it passed, so it can't pass by editing the tests.

The v2 tasks are small real projects of several files, of every kind of coding work: fixing bugs, adding features, refactoring, writing tests, debugging from an error message, build and configuration fixes, scripts, and answering questions about the code. The result is given per kind, and as one score weighted by how coding work is split. At first that split is an estimate. Once 10 or more of your sessions are labeled (ccode training label), it is your own: the benchmark then counts most what you actually do.

  • ✓ means passed and ✗ failed.
  • ⊘ means Enclawed™ wouldn't run the check, because it couldn't confine the code the model wrote. That counts as not passed.

Run it before and after a training round to see whether the round helped with real work, not just with your examples. ccode train does this for you: a new round is kept only if it solves nearly as many tasks as the current model (within the benchmark's run-to-run noise). That adds about twenty minutes; --no-bench skips it, but isn't recommended. In testing, a round that learned its lessons well and passed vLLM's check still solved only 4 tasks where the model before it solved 8. This check is what caught it.

Taking your training with you

ccode patch export my-model.ccpatch      # the newest round, and the lessons it learned
ccode patch apply my-model.ccpatch       # on another computer

The patch file records the base model and the topics the adapter learned, so adapters can be grouped by model and by topic without opening them.

On the same base model, for example a fresh download of the same model, the patch plugs straight in. CrowdCode™ checks this by the base weights' digest (ccode models --digest records it once).

On a different base model, for example a newer one, an adapter can't carry over. Instead, the patch's lessons are kept, and the next ccode train learns them on the new model. Add --no-lessons to export the adapter alone: lessons hold your sessions' text, so share them only with people you'd share that code with.

Experimental: not in the first release

These are designed but are placeholders for now:

  • Crowd verification: other people re-run a task's checks and confirm the result.
  • CrowdCoin mining: sharing your fine-tuning rounds, if you choose to.

Reference and troubleshooting

Commands

CommandWhat it does
ccodeStarts a session in the current folder
ccode "task"Starts a session with a first task
ccode -p "task"Runs one task without a person
ccode doctorChecks that everything is in place, and says how to fix what isn't
ccode benchMeasures how well the model solves real coding tasks (bench history compares)
ccode setupChooses where the models run, and which
ccode modelsOpen models scored for this computer (search, info, download, use)
ccode install vllm / llama.cpp / airllmInstalls a model runtime in CrowdCode™'s own folder
ccode servers / ccode servers stopThe model servers
ccode approvals / `ccode approvals forget ID\all`Your "always" answers to Enclawed™'s questions
ccode guide "question"Answers a question from this guide
ccode conversationsConversations you can resume
ccode models servedWhat the running server offers, and whether it can be fine-tuned
ccode trainingChoose the sessions the model learns from (a picker)
ccode trainFine-tune now (--dry-run, --until 07:00, --hours N, --on SERVER)
ccode adapters, ccode adapters meter, ccode adapters compactThe fine-tuning rounds, how full the adapter is, compacting it
ccode patch export FILE / ccode patch apply FILEA round in one file, to take elsewhere
ccode history ...Earlier versions of files
ccode receipt verify FILEChecks a run receipt
ccode --version, ccode --helpVersion and every option

In a session

CommandWhat it does
/helpLists the commands
/undoPuts back the files the last task changed
/model, /model N, /model search NAMEModels scored for this computer; switches mid-conversation
/approvals, `/approvals forget ID\all`Your "always" answers
/compactSummarizes the earlier conversation
/receiptThe last task's run receipt, checked
/statusModel, tokens, context, and this session's numbers
/clearA fresh conversation
/pastePastes a screenshot or copied files
/voiceStarts or stops recording your voice
/mic, /mic N, /mic defaultThe microphones; picks one
/factor, `/factor on\off commands\always\undo\all`Enclawed™'s second factor for your own actions
/lock, `/lock after N\off`Locks the screen now; locks by itself after N minutes without a key (15)
/guide QUESTIONAnswers from this guide
/exitCloses CrowdCode™
?COMMANDRuns a shell command yourself, through Enclawed™
@FILEAttaches a file to the message

Keys

KeyWhat it does
EnterSends the message; during a task, queues it
Ctrl+S, or Ctrl+X then SDuring a task: sends the queued messages and the line now
Ctrl+RStarts or stops recording your voice
Ctrl+V, Alt+VPastes a screenshot or copied files
Ctrl+CStops the task (rolled back); at the prompt, closes
Ctrl+DCloses CrowdCode™
Ctrl+X then LLocks the screen
Enter, d, a, rAnswers Enclawed™: approve, deny, always, approve and report

Options

OptionWhat it does
-c, --continueContinues this project's last conversation
--resume IDContinues that conversation
--verify-cmd CMDKeeps changes only if CMD succeeds
--test-cmd CMDWhat "run the tests" runs
--attach FILEAttaches a file to the first task
--base-url URL, --model IDUses this server and model (no managed servers)
--media-model ID, --media-base-url URLThe model for pictures, audio and video
--keep-serversLeaves started servers running after you quit
--no-keep-sessionKeeps nothing of this session
--policy enclavedEnclawed™'s strict flavor
--max-iterations N, --max-seconds NLimits per task (defaults 25 and 600; 12 hours with AirLLM)

Where things are

PathWhat
~/.config/crowdcode/Settings: config.json (model servers), policy.json (Enclawed™'s policy), quips.txt (your jokes), voice.json (your microphone), second-factor.json (what needs the second factor, and when the screen locks by itself), CROWDCODE.md (your instructions)
~/.local/state/crowdcode/History, receipts, conversations, server logs, audit.jsonl (Enclawed™'s audit log), reports/ (questions you reported)
~/.enclawed/auth/Enclawed™'s enrolled second factors (enclawed auth enroll)
~/.local/share/crowdcode/The installed program
~/.local/bin/ccodeThe command

Troubleshooting

Start with ccode doctor. It checks the program, your settings and Enclawed™'s policy, your GPU, the runtimes, and each model server. For anything wrong it says what to do. It changes nothing.

ccode: command not found. Open a new terminal, or add ~/.local/bin to your PATH. The installer offers to do it.

"no local model server found". Run ccode setup, or start a model server (vLLM, llama.cpp or Ollama) yourself.

"Enclawed's policy does not let CrowdCode™ reach HOST". The computer isn't on Enclawed™'s list. Run ccode setup to allow it, or ask whoever manages Enclawed™ on this computer.

A model server doesn't start. Run ccode servers to see its log's location, and read the last lines. The usual causes are too little GPU memory, a wrong model folder, or a missing vLLM.

A server keeps running after CrowdCode™ closed. Another CrowdCode™ window may be using it. If not, ccode servers stop stops it.

Pasting a screenshot does nothing. On Linux, install wl-clipboard (Wayland) or xclip (X11). In Windows Terminal, use Alt+V.

ccode train says the GPU is busy. Something else is using GPU memory, and CrowdCode™ never stops other programs. Try later, lower --max-len, or train on another computer with --on.

A training round was "NOT kept". vLLM's check found it forgot earlier lessons, drifted on general coding, or learned nothing new. The model stays as it was. Approve more sessions, or try --epochs 3.

Ctrl+S does nothing. Your terminal keeps Ctrl+S for itself (pausing output). Press Ctrl+X then S instead.

"no recording program here". Install one (see While it works); ccode doctor names the one for your system.

"nothing was recorded". The microphone gave no sound: check /mic picks the right one, that your system lets the terminal use the microphone, and on WSL that Windows' microphone privacy settings allow desktop apps.

"no model here can hear audio". Set up a media model that hears audio (Qwen2.5-Omni) in ccode setup, and make sure it is running (ccode servers).

"Enclawed's second factor was not given (not-enrolled)". No factor is enrolled: enclawed auth enroll --label primary (a security key) or --passkey. Or turn the protection off with /factor off … (that needs the factor).

"Enclawed did not start the session". At launch Enclawed™ asked for your second factor and didn't get it. With an Enclaweder™ connected, type the code it shows; without one, use your security key or the passkey page that opens in your browser. For ccode -p, run enclawed auth unlock first.

The screen is locked and the passkey page doesn't open. On WSL, the page opens in Windows' browser; check that it isn't behind another window. Press Enter on the lock screen to try again.

A helper "cannot start more helpers". Helpers go two levels deep, 16 per task. The model then does that part itself.

"the served model cannot take image". Set up a media model with ccode setup, or name one with --media-model.

License and credit

CrowdCode™ is free to use, copy, change and share, under the MIT License with an attribution requirement. Every work that includes, changes or is derived from CrowdCode™, and every work created with it (code, text or other material you produce by using it), carries both:

  1. this credit:
    Created with CrowdCode™. CrowdCode is copyright 2026 Enclawed, Inc., released under MIT license.
  1. a complete, unmodified copy of CrowdCode™'s license, below.

Put both where your work's credits or license information go: its README, a NOTICE or LICENSE file, its documentation, or an "about" screen. A single source file shared on its own carries the credit in a comment at its top, followed by the license. The NOTICE file that comes with CrowdCode™ has the credit ready to copy.

The full license:

MIT License, with the CrowdCode™ attribution requirement

Copyright (c) 2026 Enclawed, Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

Attribution. Any work that includes, modifies or is derived from the Software,
in whole or in part, and any work created with the Software (including code,
text or other material produced by using it), shall:

  (a) credit the Software with this notice:

      Created with CrowdCode™. CrowdCode is copyright 2026 Enclawed, Inc.,
      released under MIT license.

  (b) include a complete, unmodified copy of this license (all of this file,
      from its title to its last line).

Both shall appear where the work's credits, notices or license information
normally appear (for example its README, a NOTICE or LICENSE file, its
documentation or an "about" screen), and shall stay in every copy of the work
and in every work derived from it. A work that cannot hold them (for example a
single source file shared alone) shall carry the notice in (a) in a comment at
its top, followed by the text of this license. The permission above is granted
on these conditions.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.