Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>G1 Editor - AI Coding AgentNew to Visual Studio Code? Get it now.
G1 Editor - AI Coding Agent

G1 Editor - AI Coding Agent

AbhayRajSinghBhadauriya

|
1 install
| (0) | Free
MCP-Native AI Code Editor with autonomous agents, inline completions, and multi-file editing
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

G1 Editor - AI Coding Agent for VS Code

🚀 MCP-Native AI Code Editor with autonomous agents, inline completions, and multi-file editing.

G1 Editor

Features

💬 AI Chat Panel

  • Natural language conversations about your code
  • Context-aware responses using your workspace
  • Streaming responses for real-time feedback

🤖 Autonomous Agent

  • Set a goal and let G1 work autonomously
  • Multi-step reasoning with tool use
  • Approval gates for sensitive operations
  • Run history tracking

✨ Inline Completions

  • Copilot-style code suggestions
  • Context-aware completions
  • Works with any language

🔧 Built-in Tools

  • File Operations: Read, write, search files
  • Git Integration: Status, diff, blame
  • Language Services: Diagnostics, references, definitions
  • Terminal: Run commands directly

🔌 MCP Server Support

  • Connect external MCP servers
  • Extend functionality with custom tools
  • Configure via settings

Keyboard Shortcuts

Shortcut Command
Ctrl+L Open AI Chat
Ctrl+K Inline Edit
Ctrl+Shift+A Run Autonomous Agent
Ctrl+Shift+E Explain Selected Code

Quick Start

  1. Set API Key: Open Settings (Ctrl+,) and search for g1.apiKey
  2. Open Chat: Press Ctrl+L to open the AI chat panel
  3. Ask Anything: Type your question or request

Commands

  • G1: Open AI Chat - Open the chat panel
  • G1: Edit Selection with AI - Edit selected code with AI
  • G1: Explain Code - Get explanation of selected code
  • G1: Generate Tests - Generate unit tests
  • G1: Fix All Errors - Fix all errors in current file
  • G1: Run Autonomous Agent - Start an autonomous coding task
  • G1: Stop Agent - Stop the running agent
  • G1: Configure MCP Servers - Open MCP configuration
  • G1: Show Available Tools - List all available tools

Configuration

{
  // Anthropic API key
  "g1.apiKey": "sk-ant-...",
  
  // AI model to use
  "g1.model": "claude-sonnet-4-20250514",
  
  // Maximum agent iterations
  "g1.maxIterations": 25,
  
  // Enable inline completions
  "g1.enableInlineCompletions": true,
  
  // Tools that don't require approval
  "g1.autoApprove": [
    "read_file",
    "list_directory",
    "search_files"
  ],
  
  // MCP server configurations
  "g1.mcpServers": [
    {
      "name": "filesystem",
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-filesystem", "${workspaceFolder}"]
    }
  ]
}

MCP Server Configuration

Add external MCP servers to extend G1's capabilities:

"g1.mcpServers": [
  {
    "name": "github",
    "command": "npx",
    "args": ["-y", "@modelcontextprotocol/server-github"],
    "env": {
      "GITHUB_TOKEN": "your-token"
    }
  },
  {
    "name": "postgres",
    "command": "npx", 
    "args": ["-y", "@modelcontextprotocol/server-postgres", "postgresql://..."]
  }
]

Built-in Tools

Tool Description
read_file Read file contents
write_file Write to a file
list_directory List directory contents
search_files Search for files by pattern
run_terminal_command Execute terminal commands
get_diagnostics Get TypeScript/ESLint errors
apply_edit Apply text edits to files
get_git_status Get git repository status
git_diff Get uncommitted changes
find_references Find all symbol references
go_to_definition Jump to symbol definition

Requirements

  • VS Code 1.85.0 or higher
  • Anthropic API key (get one at console.anthropic.com)

License

MIT


Made with ❤️ by Builder.app

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft