8000 Native VSCode extension for real-time scanning · Issue #8 · inkog-io/inkog · GitHub
[go: up one dir, main page]

Skip to content

Native VSCode extension for real-time scanning #8

Open

Description

@cloakmaster

Problem

Developers want security feedback while writing code, not after pushing to CI. Inkog currently works in VSCode through the MCP server integration with GitHub Copilot, but this requires Copilot and manual invocation. A native VSCode extension would provide real-time inline diagnostics, problems panel integration, and gutter icons — the same experience developers expect from ESLint or Pylint, but for AI agent security.

Current Behavior

  • ✅ MCP server (@inkog-io/mcp on npm) works with Claude Desktop and GitHub Copilot in VSCode
  • ✅ CLI can be run manually from the terminal
  • ❌ No native VSCode extension
  • ❌ No inline diagnostics or problems panel integration
  • ❌ No real-time scanning on file save

Proposed Solution

Build a native VSCode extension that wraps the Inkog CLI:

Core features

  1. Diagnostics provider — Run inkog -output json on file save, parse findings, display as inline squiggles (red=CRITICAL, orange=HIGH, yellow=MEDIUM)
  2. Problems panel — Register findings with VSCode's diagnostic collection for the standard problems view
  3. Code actions — Quick-fix suggestions based on finding remediation text
  4. Status bar — Show scan status and finding count in the status bar
  5. Configuration — Settings for policy preset, severity threshold, scan-on-save toggle

Architecture

VSCode Extension (TypeScript)
  ├── Calls: inkog CLI binary (must be installed)
  ├── Parses: JSON output from -output json
  ├── Provides: DiagnosticCollection, CodeActionProvider
  └── Config: extension settings → CLI flags

Extension settings

{
  "inkog.policy": "balanced",
  "inkog.severity": "MEDIUM",
  "inkog.scanOnSave": true,
  "inkog.cliPath": "inkog"
}

References

Notes

  • The extension should wrap the CLI binary, not embed detection logic (maintaining the dumb-client pattern)
  • JSON output already includes file, line, severity, description, remediation — everything needed for diagnostics
  • Consider workspace-level caching to avoid re-scanning unchanged files
  • The MCP server integration should remain as a complementary option for Copilot Chat users
  • This could live in a new inkog-vscode/ directory in the monorepo or a separate repository

Activity

  1. cloakmaster commented on Apr 28, 2026

    @cloakmaster
    MemberAuthor

    We've thought about this. Currently, the MCP server (npx @inkog-io/mcp) already provides real-time scanning inside Cursor, Claude Code, Windsurf, and any MCP-compatible editor. For VS Code specifically, users can connect via the MCP extension.

    A native VS Code extension would add value for non-MCP workflows (e.g., on-save scanning, inline diagnostics in the Problems panel, gutter annotations). It's a significant investment though, so we're tracking community demand before committing.

    If there's strong interest or someone wants to contribute, the core work would be calling the same CLI/API under the hood and mapping findings to VS Code diagnostics. Happy to discuss architecture if anyone picks this up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0