|
| 1 | +# Agent Contributor Guide |
| 2 | + |
| 3 | +This repository is Codanna: a local code-intelligence MCP server and CLI for AI coding agents. Keep changes small, local-first, and easy to verify. |
| 4 | + |
| 5 | +## Start Here |
| 6 | + |
| 7 | +Before changing code, read: |
| 8 | + |
| 9 | +- `README.md` for product scope, supported modes, and user-facing behavior. |
| 10 | +- `CONTRIBUTING.md` for the short contribution workflow. |
| 11 | +- `contributing/README.md` and `contributing/development/guidelines.md` for Rust development rules. |
| 12 | +- `contributing/development/language-support.md` before parser or language-support work. |
| 13 | +- `.mcp_stdio.json`, `CLAUDE.md.example`, and `.codannaignore` when touching MCP integration, agent handoff, or indexing behavior. |
| 14 | + |
| 15 | +## Important Areas |
| 16 | + |
| 17 | +Be extra careful with changes to: |
| 18 | + |
| 19 | +- `src/` parser, indexing, relationship, semantic-search, and MCP code. |
| 20 | +- MCP stdio / HTTP / HTTPS transport behavior. |
| 21 | +- Document/RAG indexing and `.codannaignore` handling. |
| 22 | +- Embedding model download/configuration and any remote embedding opt-in paths. |
| 23 | +- Install scripts, release packaging, and profile/integration templates. |
| 24 | +- Language parser grammars or generated parser analysis files under `contributing/parsers/`. |
| 25 | + |
| 26 | +## Verification |
| 27 | + |
| 28 | +Use the existing scripts instead of inventing new checks: |
| 29 | + |
| 30 | +```bash |
| 31 | +cargo build --release --all-features |
| 32 | +./contributing/scripts/quick-check.sh |
| 33 | +./contributing/scripts/auto-fix.sh |
| 34 | +./contributing/scripts/full-test.sh |
| 35 | +``` |
| 36 | + |
| 37 | +For small docs-only changes, at minimum run a diff/format sanity check and state that no code tests were needed. For code changes, prefer a targeted test first, then the relevant contributor script. |
| 38 | + |
| 39 | +## Pull Request Notes |
| 40 | + |
| 41 | +- Keep PRs focused on one issue or behavior. |
| 42 | +- Add or update tests for behavior changes. |
| 43 | +- Update docs when user-facing commands, MCP contracts, configuration, or language support changes. |
| 44 | +- Do not commit generated or cache directories such as `.codanna/` unless maintainers explicitly ask. |
| 45 | +- If a change affects agent integration, include the MCP/CLI command you used to verify it. |
0 commit comments