Contributing
We welcome contributions to codectx! The project aims to become the definitive standard for integrating local codebases with agentic workflows.
Development Setup
Section titled “Development Setup”codectx requires Python 3.10+ and relies heavily on uv for dependency management.
- Fork and clone the repository.
- Setup the virtual environment and install dependencies:
Terminal window uv venvsource .venv/bin/activateuv pip sync requirements-dev.txt - Install the package in editable mode:
Terminal window uv pip install -e .
Running the tool locally
Section titled “Running the tool locally”Once installed in editable mode, you can test modifications against the codectx source itself:
codectx analyze . -o /tmp/test-context.mdRunning Tests
Section titled “Running Tests”codectx maintains a high standard of coverage utilizing pytest.
pytestTo run tests across all supported Python versions, use tox:
toxSubmitting a Pull Request
Section titled “Submitting a Pull Request”- Create a feature branch from
main. - Ensure your code satisfies linting requirements (
ruff check .). - Ensure all tests pass.
- Submit the PR with a clear description of the problem solved.