Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Replit 9 min read Announcement mediumAdept

Ghostwriter AI & Complete Code Beta

Replit'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.

Assumes: large language model basicscode completion tools

Related posts

  • Building Ghostwriter Chat

    Replit easyNovice

    Ghostwriter 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.

  • Build Your Own AI-Driven Code Analysis Chatbot for Developers with the GenAI Stack

    Docker mediumAdept

    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.

  • Building Ghostwriter Chat

    Replit easyNovice

    Ghostwriter Chat is an LLM-powered pair programmer built into Replit's IDE and shipped in about 6-8 weeks after a January Hackweek. Streaming model output brings time-to-first-response under 500 ms, and a generic prompt-construction layer merges repl context, chat history and other sources into formats for different models and APIs. To fit within token limits it drops older chat messages, caps user messages at 500 characters, and prioritizes files the user is currently or recently editing over noise like .venv, linter and CI configs.

  • Replit’s new AI Model now available on Hugging Face

    Replit easyNovice

    Replit Code V1.5 3B is an open code-completion model released on Hugging Face under a license that allows commercial use. It was trained on 1 trillion tokens of permissively licensed code from the Stack plus StackExchange content, covers 30 languages with a custom 32K vocabulary, and uses Grouped Query Attention, Flash Attention Triton kernels, ALiBi and the LionW optimizer. Replit reports leading HumanEval and MultiPL-E scores for its size, and a version fine-tuned on Replit user code outperforms CodeLlama 7B. A transformers snippet shows how to load the model and generate code with sampling parameters.

  • AI Agent Code Execution API

    Replit mediumAdept

    Replit 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.

The quest for software engineering knowledge.

Look:
Layout: