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

  1. Detects your stack — Scans the repository to identify programming languages and frameworks
  2. Interactive questionnaire — Asks targeted questions about your project (up to 5 rounds, max 15 questions)
  3. Generates context — Creates an ai-context.md file in your project root
  4. 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.