codity init
Initialize a repository for use with Codity. This command detects your project's languages and frameworks, walks you through an interactive questionnaire, and generates an ai-context.md file that helps Codity understand your codebase.
Usage
codity init
What It Does
- Detects your stack — Scans the repository to identify programming languages and frameworks
- Interactive questionnaire — Asks targeted questions about your project (up to 5 rounds, max 15 questions)
- Generates context — Creates an
ai-context.mdfile in your project root - Syncs to server — Uploads the context to Codity for use in reviews and scans
When to Use
Run codity init when:
- Setting up Codity for a new repository
- You want to regenerate your project context from scratch
For more granular context management after initialization, see Context Management.