How darshankamate1254/codearchitect-ai-agent works
CodeArchitect AI turns a user’s project request into a structured plan, breaks it into implementation tasks, then uses a tool-enabled coder to create and refine project files. The CLI invokes a LangGraph workflow; planner and architect calls use Groq-backed structured outputs, while the coder iterates through tasks and reads or writes files under a bounded project root. Pydantic models define the plan and coder state. The README also describes visual execution debugging; the graph enables LangChain debug mode. Generated application examples in the tree are outputs, not runtime components. Relationships reflect the sampled workflow and README; unsampled capabilities are not expanded into speculative edges.
Main entry points: graph.py Coder agent · tools.py Filesystem tools · prompts.py Agent prompts · states.py Plan and state schemas
Components 12
Entry
- Prompt CLI
main.py
Agent workflow
- LangGraph workflow
agent/graph.py - Planner agent
agent/graph.py - Architect agent
agent/graph.py - Coder agent
agent/graph.py
Models and tools
- Agent prompts
agent/prompts.py - Plan and state schemas
agent/states.py - Filesystem tools
agent/tools.py
Other components
- Project requester
- Groq LLM
- Tool agent runtime
- Generated project files
Connections 18
- Project requester → Prompt CLI: enters request
main.py - Prompt CLI → LangGraph workflow: invokes
main.py - LangGraph workflow → Planner agent: starts at
agent/graph.py - Planner agent → Architect agent: dispatches
agent/graph.py - Architect agent → Coder agent: dispatches
agent/graph.py - Coder agent → Coder agent: repeats tasks
agent/graph.py - Planner agent → Agent prompts: builds prompt
agent/graph.py - Architect agent → Agent prompts: builds prompt
agent/graph.py - Coder agent → Agent prompts: gets instructions
agent/graph.py - Planner agent → Plan and state schemas: validates Plan
agent/graph.py - Architect agent → Plan and state schemas: validates TaskPlan
agent/graph.py - Coder agent → Plan and state schemas: tracks progress
agent/graph.py - Planner agent → Groq LLM: requests structured output
agent/graph.py - Architect agent → Groq LLM: requests structured output
agent/graph.py - Coder agent → Tool agent runtime: creates tool agent
agent/graph.py - Tool agent runtime → Filesystem tools: uses tools
- Coder agent → Filesystem tools: reads task file
agent/graph.py - Filesystem tools → Generated project files: reads and writes
agent/tools.py