How siddharthm2416/codecheck works
CodeCheck indexes Python, Java, and JavaScript repositories, then lets users scan for untested code or ask grounded codebase questions, draft tests, and generate convention-aware code. The main path runs from the Streamlit UI or CLI through an agent and MCP tools to indexed chunks or source files. Indexing walks files, extracts AST chunks, links likely tests, embeds them, and stores them in ChromaDB. The README documents the broader capabilities; some implementation details are unsampled, so omitted relationships are not inferred.
Main entry points: index_repo.py Index builder · walker.py File walker · app.py Streamlit UI · mcp_server.py MCP tools
Components 18
Repository indexing
- File walker
walker.py - Chunk model
chunkers/base.py - Python chunker
chunkers/python_chunker.py - Java chunker
chunkers/java_chunker.py - JavaScript chunker
chunkers/js_chunker.py - Test linkage
test_linkage.py - Index builder
index_repo.py - Text embeddings
Retrieval tools
- ChromaDB index
- Retrieval functions
retrieval.py - MCP tools
mcp_server.py
Agent runtime
- Provider adapters
providers.py - Multi-provider agent
agent_multi.py - Claude agent
agent.py
User interfaces
- Streamlit UI
app.py - CLI
agent_multi.py
Other components
- User
- Target repository
Connections 25
- User → Streamlit UI: uses
README.md - User → CLI: runs
README.md - Target repository → Index builder: indexes
README.md - Index builder → File walker: walks files
index_repo.py - File walker → Python chunker: dispatches
walker.py - File walker → Java chunker: dispatches
walker.py - File walker → JavaScript chunker: dispatches
walker.py - Python chunker → Chunk model: creates chunks
chunkers/python_chunker.py - Java chunker → Chunk model: creates chunks
chunkers/java_chunker.py - JavaScript chunker → Chunk model: creates chunks
chunkers/js_chunker.py - Index builder → Test linkage: links tests
README.md - Index builder → Text embeddings: embeds chunks
README.md - Index builder → ChromaDB index: stores vectors
index_repo.py - Text embeddings → ChromaDB index: supplies vectors
- MCP tools → Retrieval functions: calls tools
mcp_server.py - Retrieval functions → ChromaDB index: queries
retrieval.py - Retrieval functions → Target repository: reads source
retrieval.py - Streamlit UI → Index builder: starts indexing
app.py - Streamlit UI → File walker: checks freshness
app.py - Streamlit UI → Multi-provider agent: runs agent
app.py - CLI → MCP tools: connects tools
agent_multi.py - Multi-provider agent → MCP tools: calls tools
agent_multi.py - Multi-provider agent → Provider adapters: uses adapters
agent_multi.py - Claude agent → MCP tools: uses tools
README.md - User → Claude agent: asks questions
README.md