---
title: "Ghostwriter AI & Complete Code Beta"
description: "Replit's Ghostwriter adds AI code completion, generation, transformation, explanation and semantic search to its IDE, with Complete Code starting in closed beta."
url: "https://swe.quest/articles/ghostwriter-ai-complete-code-beta-eb4c500f5fc252eb"
canonical: "https://replit.com/blog/ai"
source: "Replit"
published: "2022-09-08"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["ai-coding","inference","llms","developer-tools"]
---

# Ghostwriter AI & Complete Code Beta

A post on [Replit](https://swe.quest/sources/replit.md), published 2022-09-08, 9 min read, Announcement. Original: [https://replit.com/blog/ai](https://replit.com/blog/ai)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)

## Prerequisites

- large language model basics
- code completion tools

## Keywords

Replit Ghostwriter, CodeGen, FasterTransformer, Triton Inference Server, CodeBERT, knowledge distillation, int8 quantization

## Related posts

- [Building Ghostwriter Chat](https://swe.quest/articles/building-ghostwriter-chat-cdc3d6aa03870bc4.md): Replit · 2023-03-27 · Easy · 5 min read · AI for coding, LLMs, Developer tools
  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.
- [Build Your Own AI-Driven Code Analysis Chatbot for Developers with the GenAI Stack](https://swe.quest/articles/build-your-own-ai-driven-code-analysis-chatbot-for-developers-with-the-genai-062f35bb279ec41b.md): Docker · 2024-06-06 · Medium · 10 min read · RAG & retrieval, LLMs, AI for coding, Containers, Python
  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.
- [Building Ghostwriter Chat](https://swe.quest/articles/building-ghostwriter-chat-1b8d2c338765451d.md): Replit · 2023-03-24 · Easy · 4 min read · AI for coding, LLMs, Developer tools
  Ghostwriter Chat is an LLM-powered pair programmer built into Replit's IDE and shipped in about 6-8 weeks after a January Hackweek.
- [Replit’s new AI Model now available on Hugging Face](https://swe.quest/articles/replit-s-new-ai-model-now-available-on-hugging-face-3b96faee1bd121e8.md): Replit · 2023-10-10 · Easy · 2 min read · LLMs, AI for coding, Model training, Open source
  Replit Code V1.5 3B is an open code-completion model released on Hugging Face under a license that allows commercial use.
- [AI Agent Code Execution API](https://swe.quest/articles/ai-agent-code-execution-api-8f63888d403b81a8.md): Replit · 2023-09-19 · Medium · 4 min read · AI agents, Sandboxing & isolation, LLMs, Serverless, Python
  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).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
