Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ARGUS for VS CodeNew to Visual Studio Code? Get it now.
ARGUS for VS Code

ARGUS for VS Code

SEA Lab

|
6 installs
| (1) | Free
Generate rationale for a GitHub commit.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rationale for VS Code

Rationale explains the reasoning behind code changes and selected code, then saves results as Markdown in .rationale/ at your repository root.

Features

From the Command Palette, run Rationale: Search via Commit... and enter a GitHub commit URL or commit hash. Hashes use the repository GitHub's origin remote.

To refresh rationale later, run Rationale: Search via Commit..., enter the same command for that commit again and choose Regenerate when prompted. Rationale retrieves the current GitHub context and replaces the saved Markdown for that commit. Choose Open and edit to revise the existing Markdown by hand.

Otherwise, select code in VS Code and run Rationale: Explain Selected Code. Rationale uses Git blame to find the commits behind the selected lines, then analyzes those commits and the code. Selected code must be committed, and the repository's origin must point to GitHub for Rationale to pick up artifacts related to the code.

To reopen saved rationale, right-click its Markdown file under .rationale/ in Explorer, or right-click the open editor or its tab, and choose Rationale: Open in Visualizer. The visualizer reads the current Markdown, including your edits.

Configuration

Run Rationale: Configure from the Command Palette. Provide an API Key from OpenAI or Anthropic or a signed-in Codex or Claude Code CLI, select a model, and test the connection before saving.

GitHub access is optional for public repositories and required for private ones.

If you want to use this extension for a private repo, add a token with access to the repository so ARGUS can gather its artifacts. To create a fine-grained token, open GitHub's token settings, choose the private repository under Repository access, and grant read-only access to Contents, Issues, and Pull requests under Repository permissions. Generate and copy the token, then paste it into the GitHub access field in Rationale's configuration. A classic token needs the repo scope instead.

Troubleshooting

Setup and analysis errors appear in the Rationale output channel. Run Rationale: Show Log to view it. For backend setup problems, run Rationale: Repair Backend.

When reporting a problem, attach your Rationale and VS Code versions and the error from the output channel and create a [new issue] (https://github.com/sea-lab-wm/finegrained-rationale/issues/new).

Settings

Set the commit limit in VS Code Settings or your settings.json:

{
  "rationale.maxCommits": 5
}
  • rationale.maxCommits: Maximum commits analyzed for selected code, ranked by the number of selected lines attributed to each commit; defaults to 3, with a minimum of 1. Searching by a specific commit analyzes that commit only.
  • rationale.runs: Number of rationale identification runs; defaults to 1.
  • rationale.uvPath: Optional path to an installed uv executable, useful if Rationale cannot download its bundled copy.

See PUBLISHING.md for building and publishing the extension.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft