LocalWP Assistant — VS Code Chat Participant

Just released this VS Code extension, a GitHub Copilot Chat participant (@localwp) that lets you query and manage your Local WordPress sites directly from VS Code.

Slash commands

Command Description
@localwp /sites List all Local sites with running status
@localwp /plugins List active plugins (fast — direct DB)
@localwp /options siteurl Fetch options matching a pattern
@localwp /db SELECT ... Run a raw read-only SQL query

Free-form examples

@localwp What plugins are active?
@localwp What is the siteurl?
@localwp List all users
@localwp What WordPress version is running?
@localwp Show me all transients matching _site_transient_%
@localwp --site=my-other-site What theme is active?

Available at: LocalWP Assistant - Visual Studio Marketplace
Issues: https://github.com/soderlind/vs-local-wp/issues/new/choose

2 Likes

Awesome! I’m not familiar with how Copilot Chat participants work. But I’ll check it out.

It’s MIT licensed; please feel free to borrow code from it.