As an Amazon Associate I earn from qualifying purchases

Replit’s Ghostwriter AI can explain programs to you—or help write them

A Replit Ghostwriter illustration of robot hands over a crystal ball.
Enlarge / Replit’s Ghostwriter AI tool can assist you while you code.


Today, Replit announced Ghostwriter, an AI-powered programming assistant that can make suggestions to make coding easier. It works within Replit’s online development environment and resembles GitHub Copilot’s ability to recognize and compose code in various programming languages to accelerate the development process.

According to Replit, Ghostwriter works by using a large language model trained on millions of lines of publicly available code. This baked-in data allows Ghostwriter to make suggestions based on what you’ve already typed while programming in Replit’s IDE. When you see a suggestion you like, you can “autocomplete” the code by pressing the Tab key.

Replit says that Ghostwriter performs best with JavaScript and Python but supports 16 languages, including C, Java, Perl, Python, and Ruby. It also supports HTML and CSS for web development and SQL for database queries.

Ghostwriter includes four main components: Complete Code (which analyzes what you’ve written and suggests continuations), Generate Code (which creates new code based on your suggestions), Transform Code (which helps you refactor or modernize code to fit standards), and Explain Code (which analyzes existing code and explains its function using natural language).

From our informal experiments with Replit’s IDE (conducted with an ordinary account we registered), we found that Ghostwriter performed the tasks promised in the marketing copy, though not flawlessly. In a few cases, the autocomplete suggestions got stuck in a repetitive loop or produced code that would still need extensive programming knowledge to integrate into a project. Replit will likely refine Ghostwriter’s capabilities over time.

While evaluating Ghostwriter, we could not help but notice similarities to GitHub Copilot, an AI coding assistant from Microsoft and OpenAI that has been publicly available since July. Like Ghostwriter, Copilot suggests code that autocompletes with a press of the Tab key, offers natural language explanations, and translates code.

For now, Ghostwriter isn’t a replacement for raw programming chops. It could instead be considered a complement to existing knowledge—or an automated assistant that might reduce the amount of time you spend on sites like Stack Overflow while asking for help or studying code examples.

Replit makes its online IDE available in several plans that range from free to $7 a month, depending on how you plan to use it. In addition, Ghostwriter is a subscription service that costs $10 (or 1,000 Cycles) per month. Cycles are virtual tokens that represent computational power on Replit’s cloud servers. Ghostwriter is available through Replit’s website.

Source link

We will be happy to hear your thoughts

Leave a reply

Enable registration in settings - general
Compare items
  • Total (0)
Shopping cart