How raushan291/coding-agent works
Coding Agent is a CLI code assistant whose main workflow indexes the launched project, then answers /ask questions using an LLM agent with code search, citations, and optional cached answers. A separate /plan workflow creates an approved task DAG and runs scoped agents to build a project. The graph also preserves live indexing, persistent conversation memory, skills, and MCP integrations. Edges are limited to relationships shown in the README, excerpts, or SOURCE INDEX; unsampled wiring is not inferred.
Main entry points: main.py Command interface · factory.py Tool-calling agent · orchestrator.py Task orchestrator · semantic_chroma.py Vector indexer
Components 27
CLI and agent
- Command interface
coding_agent/main.py - Tool-calling agent
coding_agent/agent/factory.py - Query handler
coding_agent/agent/orchestrator.py - LLM and embedder
coding_agent/llm/factory.py
Code indexing and retrieval
- Code parser
coding_agent/context/indexers/code_parser.py - Vector indexer
coding_agent/context/indexers/semantic_chroma.py - Indexer selection
coding_agent/context/indexers/factory.py - File watcher
coding_agent/context/indexers/watcher.py - Retriever selection
coding_agent/context/retrievers/factory.py - Hybrid retrieval
coding_agent/context/retrievers/hybrid_chroma.py - Code search tool
coding_agent/agent/tools.py
Planning and execution
- Task planner
coding_agent/tasks/planner.py - Plan approval
coding_agent/tasks/approval.py - Task orchestrator
coding_agent/tasks/orchestrator.py - Task executor
coding_agent/tasks/executor.py - Task database
coding_agent/tasks/task_store.py - Task recovery
coding_agent/tasks/recovery.py
Agent context and tools
- Skills registry
coding_agent/skills/registry.py - Skill tools
coding_agent/skills/skill_tools.py - MCP tools client
coding_agent/mcp/mcp_client.py - Shell tools
coding_agent/tools/terminal_tools.py
Persistence and cache
- Conversation memory
coding_agent/memory/short_term.py - Session management
coding_agent/memory/session.py - Semantic answer cache
coding_agent/cache/semantic_cache.py - Redis startup
coding_agent/cache/redis_manager.py
Other components
- Developer
- Launched codebase
Connections 34
- Developer → Command interface: enters commands
- Command interface → Indexer selection: gets index
coding_agent/main.py - Indexer selection → Vector indexer: selects backend
coding_agent/context/indexers/factory.py - Vector indexer → Code parser: parses files
coding_agent/context/indexers/semantic_chroma.py - Launched codebase → Vector indexer: provides source
- Command interface → File watcher: starts watcher
coding_agent/main.py - File watcher → Vector indexer: reindexes edits
coding_agent/context/indexers/watcher.py - Command interface → Tool-calling agent: builds agent
coding_agent/main.py - Tool-calling agent → LLM and embedder: loads model
coding_agent/agent/factory.py - Tool-calling agent → Code search tool: registers search
coding_agent/agent/factory.py - Code search tool → Retriever selection: gets retriever
coding_agent/agent/tools.py - Retriever selection → Hybrid retrieval: selects backend
coding_agent/context/retrievers/factory.py - Hybrid retrieval → Vector indexer: searches index
- Tool-calling agent → Conversation memory: summarizes context
coding_agent/agent/factory.py - Command interface → Query handler: handles questions
coding_agent/main.py - Query handler → Tool-calling agent: runs agent
- Command interface → Semantic answer cache: checks answers
coding_agent/main.py - Command interface → Redis startup: ensures Redis
coding_agent/main.py - Redis startup → Semantic answer cache: enables cache
- Command interface → Session management: manages sessions
coding_agent/main.py - Tool-calling agent → Skill tools: registers skills
coding_agent/agent/factory.py - Skill tools → Skills registry: loads skills
coding_agent/skills/skill_tools.py - Tool-calling agent → MCP tools client: loads MCP tools
coding_agent/agent/factory.py - Tool-calling agent → Shell tools: registers shell tools
coding_agent/agent/factory.py - Developer → Command interface: submits goal
- Command interface → Task orchestrator: starts planning
coding_agent/main.py - Task orchestrator → Task planner: requests plan
coding_agent/tasks/orchestrator.py - Task orchestrator → Plan approval: requests approval
coding_agent/tasks/orchestrator.py - Task orchestrator → Task database: persists tasks
coding_agent/tasks/orchestrator.py - Task orchestrator → Task recovery: recovers tasks
coding_agent/tasks/orchestrator.py - Task orchestrator → Task executor: dispatches tasks
coding_agent/tasks/orchestrator.py - Task executor → Task database: updates status
coding_agent/tasks/executor.py - Task executor → Shell tools: uses shell tools
coding_agent/tasks/executor.py - Task orchestrator → Indexer selection: reindexes output
coding_agent/tasks/orchestrator.py