How soumadip-dev/agenticai-codingassistant works
This is a LangGraph-based coding assistant: it accepts a user request, analyzes and routes it, optionally gathers local project or file context, prepares a task-specific prompt, and returns an AI-generated response. The tool-selection and execution paths are supported by sampled source; the README documents the main workflow, but the graph wiring and AI-assistant implementation were not sampled, so their internal details are limited here.
Main entry points: tool_executor.py Tool Executor · prompt_generator.py Prompt Generator · graph.py LangGraph Workflow · requirement_analyzer.py Requirement Analyzer
Components 16
Workflow
- CLI Entry
src/main.py - LangGraph Workflow
src/graph.py - Workflow State
src/state.py - Task Router
src/router.py - AI Assistant
src/nodes/ai_assistant.py
Analysis and Prompts
- Requirement Analyzer
src/nodes/requirement_analyzer.py - Analysis Prompt
src/prompts/analyzer_prompt.py - Prompt Generator
src/nodes/prompt_generator.py - Task Prompts
src/prompts/generator_prompt.py
Context Tools
- Tool Executor
src/nodes/tool_executor.py - Tool Registry
src/tools/tool_registry.py - Project Context
src/tools/project_context_tool.py - File Reader
src/tools/file_reader_tool.py
Model Access
- LLM Adapter
src/llm.py - Google Gemini
Other components
- User
Connections 20
- User → CLI Entry: enters request
- CLI Entry → LangGraph Workflow: invokes workflow
- LangGraph Workflow → Requirement Analyzer: starts analysis
- Requirement Analyzer → Analysis Prompt: renders prompt
- Requirement Analyzer → LLM Adapter: requests structured analysis
- LLM Adapter → Google Gemini: invokes model
- Requirement Analyzer → Task Router: provides analysis
- Task Router → Tool Executor: dispatches tool tasks
- Task Router → Prompt Generator: dispatches direct tasks
- Tool Executor → Tool Registry: looks up tool
- Tool Executor → Project Context: executes project scan
- Tool Executor → File Reader: executes file read
- Tool Executor → Prompt Generator: supplies tool context
- Prompt Generator → Task Prompts: selects template
- Prompt Generator → LLM Adapter: generates prompt
- Prompt Generator → AI Assistant: provides generated prompt
- AI Assistant → LLM Adapter: requests final response
- LangGraph Workflow → Workflow State: tracks workflow data
- LangGraph Workflow → AI Assistant: dispatches final stage
- CLI Entry → User: displays response