Environment Setup for Codomyrmex
This document outlines the steps to set up the development environment for the Codomyrmex project.
Core Prerequisites
- Python 3.10 or higher
uv(Python package manager)git
Core Project Setup Instructions
-
Clone the Repository (if you haven't already):
git clone <repository_url> # Replace <repository_url> with the actual URLcd codomyrmex -
Create and Activate a Virtual Environment: It's highly recommended to use a virtual environment to manage project dependencies.
uv venv .venvsource .venv/bin/activate # On Windows: .venv\Scripts\activate -
Install Core Dependencies: The project dependencies are managed by
pyproject.toml.uv sync -
Graphviz (Optional for Dependency Visualization): Some modules, like those for visualizing code dependencies using
cased/kit, may require Graphviz.-
Install the Graphviz system package. Instructions can be found at graphviz.org.
-
Then, install the Python bindings:
uv pip install graphviz
-
-
API Keys (Optional for LLM features): If you plan to use features of
cased/kitthat interact with Large Language Models (e.g., code summarization, docstring indexing with LLM-generated summaries), you will need to set up API keys for the respective services (OpenAI, Anthropic, Google Cloud). Set these as environment variables. It is recommended to create a.envfile in the root of your repository (codomyrmex/.env) with the following format:# .env file exampleOPENAI_API_KEY="your_openai_api_key_here"ANTHROPIC_API_KEY="your_anthropic_api_key_here"GOOGLE_API_KEY="your_google_api_key_here"# Add other environment variables as neededThe
environment_setup/env_checker.pyscript can help guide you on this, and the system will attempt to load these usingpython-dotenv.
Documentation Site Development (Using Docusaurus)
The main documentation website is built using Docusaurus and is managed within the documentation/ module. To work on or build the documentation site locally:
Prerequisites for Documentation
- Node.js: Version 18.0 or higher is recommended. You can download it from nodejs.org or use a version manager like nvm.
- npm (usually comes with Node.js) or yarn.
Setting up the Documentation Environment
-
Navigate to the
documentationmodule directory:cd documentation # From the root 'codomyrmex' directory -
Install Docusaurus dependencies:
npm install# OR if you prefer yarn# yarn install -
Run the Docusaurus development server:
npm run start# OR# yarn startThis will typically start the site at
http://localhost:3000. -
Build the static documentation site:
npm run build# OR# yarn buildThe output will be in
documentation/build/.
Refer to the documentation/README.md (inside the documentation module directory) for more details on the Docusaurus setup and structure.
Using cased/kit
The cased/kit toolkit is a core component for many modules within this project. It provides functionalities for:
- Codebase mapping and symbol extraction
- Text and semantic code search
- Dependency analysis
- Code summarization
- Building context for LLMs
Refer to the documentation of individual modules for specific examples of how cased/kit is utilized. The official cased/kit documentation is also a key resource.
Navigation Links
- Parent: Project Overview
- Module Index: All Agents
- Documentation: Reference Guides
- Home: Root README