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:
| Key | What it does |
|---|---|
| Enter | approve, this once |
d | deny: nothing runs, and the model is told why |
a | always approve this command in this project (shown only when Enclawed™ allows it) |
r | approve, 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(orccode approvals) lists your "always" answers./approvals forget IDremoves one, and/approvals forget allremoves 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 -pruns, 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
| Command | What it does |
|---|---|
/help | Lists the commands |
/undo | Puts back the files the last task changed (never a file you edited since) |
/model | Open models scored for this computer; /model 3 or /model ORG/NAME switches (the conversation stays) |
/model search NAME | Finds any model on Hugging Face, scored the same way |
/approvals | Your "always" answers in this project; /approvals forget ID removes one |
/compact | Summarizes the earlier conversation to free the model's context |
/receipt | Shows and checks the last task's run receipt |
/status | The status line, now |
/clear | Starts a fresh conversation (your files stay as they are) |
/paste | Pastes a screenshot or copied files (also Ctrl+V or Alt+V) |
/voice | Starts and stops recording your voice (also Ctrl+R); the words go into the input line |
/mic | Lists the microphones; /mic 2 picks one, /mic default uses the system's |
/factor | Enclawed™'s second factor: what is enrolled, and which of your actions need it; /factor on commands, /factor off undo, /factor on all |
/guide question | Answers a question about CrowdCode™ from this guide |
/exit | Closes CrowdCode™ (also Ctrl+D) |
?command | Runs 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:
- It first shortens old file contents and command output. The model can read them again if it needs to.
- 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.