codespeak init
Initialize a new CodeSpeak project in the current directory.
Synopsis
codespeak initDescription
Creates the necessary configuration files and project structure for a new CodeSpeak project. If inside a Git repository, the project is created at the Git repo root (not necessarily the current directory).
By default, this creates:
project/
โโโ .codespeak/ # Internal state used by CodeSpeak
โโโ .gitignore
โโโ codespeak.json # Project configuration
โโโ spec/
โโโ main.cs.md # Your spec โ edit this to describe what you want to build
If run inside an existing codebase, it creates codespeak.json at the repo root without generating a spec directory. You then manually register specs and configure which files CodeSpeak can modify.
Error messages
| Error | Cause | Resolution |
|---|---|---|
| CodeSpeak project at {path} already initialized | Running init in a directory that already has codespeak.json | The project is already set up โ edit codespeak.json directly |
See also
codespeak.jsonโ project configurationAGENTS.mdโ project context for agents- Spec file naming โ naming conventions
- Model selection โ choose a model
- Quick Start โ build a project from scratch
- Mixed Mode tutorial โ add CodeSpeak to an existing codebase
- Django Oscar tutorial โ mixed mode with a Django project