Skip to content

Contributing

We welcome contributions to codectx! The project aims to become the definitive standard for integrating local codebases with agentic workflows.

codectx requires Python 3.10+ and relies heavily on uv for dependency management.

  1. Fork and clone the repository.
  2. Setup the virtual environment and install dependencies:
    Terminal window
    uv venv
    source .venv/bin/activate
    uv pip sync requirements-dev.txt
  3. Install the package in editable mode:
    Terminal window
    uv pip install -e .

Once installed in editable mode, you can test modifications against the codectx source itself:

Terminal window
codectx analyze . -o /tmp/test-context.md

codectx maintains a high standard of coverage utilizing pytest.

Terminal window
pytest

To run tests across all supported Python versions, use tox:

Terminal window
tox
  1. Create a feature branch from main.
  2. Ensure your code satisfies linting requirements (ruff check .).
  3. Ensure all tests pass.
  4. Submit the PR with a clear description of the problem solved.