Build Your Own AI-Driven Code Analysis Chatbot for Developers with the GenAI Stack
Code Explorer, a winning Docker AI/ML Hackathon project, is a RAG chatbot that answers questions about a local codebase by parsing source files, chunking them with LangChain's RecursiveCharacterTextSplitter (5000 characters with 500 overlap), and storing embeddings in a Neo4j vector store. LangChain builds two chains: a QnA RAG chain for detailed answers and an agent chain that wraps it as a tool and tends to return more concise summaries. The app falls back to the plain LLM when no codebase has been processed. The walkthrough runs the stack with Docker Compose: a Streamlit UI, Ollama serving codellama:7b-instruct, a one-shot model-pull container, and Neo4j, configured through a .env file.
Related posts
- Building Ghostwriter Chat
Replit easyNoviceGhostwriter Chat embeds an LLM-powered assistant directly in the Replit IDE, using file context, chat history and program output so users never copy-paste into a separate tool. Streaming generated tokens keeps time-to-first-token under 500 ms and lets users abort unhelpful answers. A generic prompt-construction layer gathers context from varied sources and renders it for different model APIs. To fit token limits, it drops older chat messages, caps user messages at 500 characters, and favors recently edited source files over noise like .venv, linter and CI configs.
- Ghostwriter AI & Complete Code Beta
Replit mediumAdeptReplit's Ghostwriter adds AI code completion, generation, transformation, explanation and semantic search to its IDE, with Complete Code starting in closed beta. Completion is built on Salesforce's CodeGen, converted to FasterTransformer and served on Triton, with a 2B model distilled to about 1B parameters and int8 quantization under exploration, for a median latency under 400ms. On the editor side, suggestions are matched against existing whitespace, braces and AST structure, adjusted as the user keeps typing, filtered by heuristics and streamed line by line. Other features use a 'society of models': a fine-tuned CodeBERT embedding model for contextual natural-language code search, and large OpenAI and 100B+ parameter models for explaining, generating and transforming code.
- AI Agent Code Execution API
Replit mediumAdeptReplit offers sandboxed code execution so LLM agents can run untrusted generated code, contrasting a stateless model (like Bard's implicit code execution for math) with a stateful, session-long project environment (like ChatGPT). The stateless option is a forkable API server on Replit Autoscale Deployments, using the omegajail unprivileged container sandbox with a customizable Docker image, handling requests in as little as 100ms and integrating with OpenAI function calling via the replit-code-exec package. A stateful prototype using a full Repl as sandbox was tried and then discontinued, with code-exec recommended for most use cases.
- ReadMeAI: An AI-powered README Generator for Developers
Docker mediumAdeptReadMeAI, an honorable mention from Docker's AI/ML Hackathon, generates a draft README from an uploaded code file and a short project description. It is a Node.js/Express app: the code and a prompt template go to Google's PaLM API, the Markdown that comes back is converted to HTML with showdown and rendered into an EJS editor view with live preview, and the result downloads as a zip of Markdown and HTML. The walkthrough covers the controller code, the project layout, and building and running the app with Docker.
- Run Claude Code Locally with Docker Model Runner
Docker mediumAdeptClaude Code can run against local models by pointing its ANTHROPIC_BASE_URL environment variable at Docker Model Runner, which exposes an Anthropic-compatible API on localhost:12434. Docker Desktop users must enable TCP access first. Because gpt-oss defaults to a 4,096-token context, the guide repackages it with `docker model package --context-size 32000` so it is usable for coding, while models like qwen3-coder and devstral-small-2 already ship with 128K. `docker model requests` shows the raw requests Claude Code sends to the model, which helps debug compatibility issues.