Ghostwriter for VS Code: your AI interviewer in your editor

VS Code AI GitHub Copilot Writing Productivity
post

Last week, I was experimenting with the GitHub Copilot SDK to see how to use it within an Electron app. That experiment led to the creation of the standalone Ghostwriter App. But as I was building it, I realized something important.

Why leave the editor?

Most of us live in Visual Studio Code. Switching context to a separate app just to draft a blog post feels like friction we don’t need. So, I decided to minimize that friction.

Show image Ghostwriter for VSCode
Ghostwriter for VSCode

In this post, I want to introduce you to the Ghostwriter for VS Code extension. It brings the concept of “interview-based writing” directly into your favorite editor, leveraging the GitHub Copilot Chat API without needing the CLI or complex SDK setups.

{{< blockquote type="info" text="Install Ghostwriter for VS Code from the marketplace

The problem with AI writing

We have all seen that kind of AI content. You know the type of content, it sounds smart but says nothing useful. That’s what you get when AI writes for you instead of with you.

The standard workflow usually looks like this:

  1. Open ChatGPT or Copilot.
  2. Type: “Write me a blog post about React hooks.”
  3. Get a wall of text that sounds like everyone else.
  4. Spend an hour rewriting it to sound like you.

I wanted to flip this script.

AI-assisted writing works best when it acts as your interviewer, not your ghostwriter.

Enter Ghostwriter for VS Code

The core philosophy behind the entire Ghostwriter ecosystem is simple: You are the expert. The AI’s job is just to get the information out of your head and organize it.

Instead of prompting an AI to generate content from thin air, Ghostwriter facilitates a conversation. It asks you thoughtful questions to draw out your unique insights, experiences, and specific examples. Then, and only then, does it structure those answers into a polished draft.

And now, you can do this right inside VS Code.

How it works

I already integrated similar chat-based functionality into Front Matter CMS, so extending this logic to a dedicated extension felt like a natural progression.

Here is how the workflow looks in practice:

  1. Open the Extension: You start a new session within VS Code by using the Ghostwriter: Open Ghostwriter command.
  2. The interview: The extension (powered by GitHub Copilot) starts asking you questions based on the topic you want to cover.
  3. Your answers: You answer casually, just like you are talking to a colleague. You share your war stories, your code snippets, and your opinions.
  4. The writing: Once the interview is done, you can use the transcript to generate a draft blog post, article, or documentation.

The result isn’t a generic AI article; it’s your article, organized by AI. It solves the “blank page” problem without sacrificing authenticity.

Show image Ghostwriter extension homepage
Ghostwriter extension homepage

The interview process

Show image The interview process
The interview process

Writing the draft

Show image The generated draft
The generated draft

Building the extension

Technically, building this was a fun challenge. I wanted to showcase how you can use GitHub Copilot’s capabilities from an extension without actually requiring the heavy lifting of the GitHub Copilot CLI or the full SDK for every little interaction.

By tapping into the chat API provided to VS Code extensions, I could create a lightweight wrapper content creation workflow. It removes the need for you to manually manage agent files or prompts, you just experience the app.

For those interested in the code, or if you want to see how I handled the conversation flow, the project is open-source.

Why this matters

I wrote deeper about the philosophy of “interview-based writing” in a previous post: How I was interviewed by AI to write blog posts.

The gist is this: It is faster than writing everything from scratch, but it is far more genuine than pure AI generation. It captures your voice because the source material is literally your voice.

If you have valuable knowledge to share but struggle to structure it, this tool offers a middle path.

Try it out

The extension is part of a growing ecosystem. If you prefer a standalone experience, you can still check out the experimental Electron App. But for my daily workflow, staying in VS Code is king.

You can install the Ghostwriter extension from the VS Code marketplace.

I am keen to hear what you think. Does being “interviewed” help you write better? Give it a spin and let me know.

Happy writing!

Resources

Related articles

Report issues or make changes on GitHub

Found a typo or issue in this article? Visit the GitHub repository to make changes or submit a bug report.

Comments

Elio Struyf

Solutions Architect & Developer Expert

Loading...

Let's build together

Manage content in VS Code

Present from VS Code

Engage with your audience throughout the event lifecycle