How kylehton/git-lint works
GitLint accepts GitHub pull-request webhooks, reviews changed files with codebase context, posts a consolidated review, then refreshes repository embeddings. The graph preserves the separate initial-embedding workflow and the RAG storage layer. Connections reflect README statements and sampled calls; some storage initialization and Pinecone configuration details are only partially shown.
Main entry points: run_agent.py Review orchestrator · diff_functions.py RAG context search · s3_upload.py Chunk store · embeddings.py Initial embeddings
Components 13
Webhook and orchestration
- Webhook handler
app/main.py - Review orchestrator
app/agent_workflow/run_agent.py
Review and RAG
- Diff operations
app/logic_functions/diff_functions.py - File reviewer
app/agent_workflow/review_agent.py - Review summarizer
app/agent_workflow/run_agent.py - RAG context search
app/logic_functions/diff_functions.py
Repository embeddings
- Embedding refresh
app/logic_functions/diff_functions.py - Initial embeddings
app/logic_functions/embeddings.py
Context storage
- Pinecone index
- Chunk store
app/logic_functions/s3_upload.py
Other components
- GitHub
- OpenAI
- AWS S3
Connections 22
- GitHub → Webhook handler: sends webhook
README.md - Webhook handler → Review orchestrator: schedules review
app/main.py - Review orchestrator → Diff operations: fetches and splits
app/agent_workflow/run_agent.py - Review orchestrator → RAG context search: requests context
app/agent_workflow/run_agent.py - Review orchestrator → File reviewer: reviews files
app/agent_workflow/run_agent.py - Review orchestrator → Review summarizer: summarizes reviews
app/agent_workflow/run_agent.py - Review orchestrator → Diff operations: posts comment
app/agent_workflow/run_agent.py - Review orchestrator → Embedding refresh: refreshes embeddings
app/agent_workflow/run_agent.py - Diff operations → GitHub: fetches diff and files
app/logic_functions/diff_functions.py - Diff operations → GitHub: posts review comment
app/logic_functions/diff_functions.py - RAG context search → OpenAI: embeds diff chunks
app/logic_functions/diff_functions.py - RAG context search → Pinecone index: queries vectors
app/logic_functions/diff_functions.py - RAG context search → Chunk store: loads matched text
app/logic_functions/diff_functions.py - File reviewer → OpenAI: runs review agent
app/agent_workflow/review_agent.py - Review summarizer → OpenAI: runs summarizer
app/agent_workflow/run_agent.py - Embedding refresh → OpenAI: embeds changed code
app/logic_functions/diff_functions.py - Embedding refresh → Pinecone index: upserts vectors
app/logic_functions/diff_functions.py - Embedding refresh → Chunk store: saves updated chunks
app/logic_functions/diff_functions.py - Initial embeddings → OpenAI: embeds code chunks
app/logic_functions/embeddings.py - Initial embeddings → Pinecone index: upserts vectors
app/logic_functions/embeddings.py - Initial embeddings → Chunk store: saves chunk store
app/logic_functions/embeddings.py - Chunk store → AWS S3: uploads and downloads
app/logic_functions/s3_upload.py