Back to Projects

Basic Coding Agent Extension

What this project does

This is a simple AI coding agent for VS Code that lets users interact with AI in the editor, understand coding requests, and apply changes after confirmation.

It demonstrates how an agent-style product can integrate with rNet OAuth And ai tokens are debuted from rNet account.

Demo Features

  • rNet login from VS Code: Opens the rNet OAuth flow and returns the user to the extension after authorization.
  • Basic agent chat: Accepts a natural-language coding request from the extension sidebar.
  • Editor context: Uses the currently open file as context for the agent request.
  • File modification flow: Generates a proposed code change and asks the user to approve it before writing to the file.
  • Command/action approval: Shows a confirmation step before the agent performs a workspace action.
  • Action result feedback: Shows the completed change and a short success message in the extension panel.
  • Session handling: Stores the rNet session locally and refreshes tokens when needed.

Demo Screenshots

Extension entry point

rNet sign-in flow

rNet OAuth login screen used by the VS Code extension
User signs in with rNet.
rNet OAuth consent screen authorizing app access
User approves the app connection.
rNet OAuth login success screen after authorization
rNet returns the user to the app.

Agent workflow

The extension imports RNetAuth, RNetAi, and TypeScript types from @rnet-ai/rnet-oauth-node.

VS Code AI Assistant chat prompt inside the editor
The user asks the agent to change the open file.
VS Code AI Assistant confirmation dialog before modifying a file
The agent asks for confirmation before modifying code.
VS Code AI Assistant showing a successful code modification
The approved code change is applied in the editor.

GitHub Links