Real-Time IDE Edit Blocker
koshik guard hooks into AI tool post-edit triggers (exits 2 on High/Critical hits), while koshik watch monitors saves with a 250ms debounce.
Created by Kamal Nayan. Protect repositories, AI coding assistants, and web apps with real-time edit guards, 6 deterministic scanner engines, 8 specialist security playbooks, closed-loop auto-fix, and a local visual dashboard — with zero cloud uploads.
Install the Koshik defensive security skill from https://github.com/koshikkamalnayan-HOT/koshik/tree/main/skills/koshik into this workspace and enable Mode A parallel live review on every edited file.
Built strictly for legal, permission-verified defensive auditing and human-approved remediation — zero offensive exploitation payloads.
koshik guard hooks into AI tool post-edit triggers (exits 2 on High/Critical hits), while koshik watch monitors saves with a 250ms debounce.
Runs Koshik's zero-dependency auditor alongside shell-free Opengrep, Semgrep CE, Gitleaks, OSV-Scanner, and Trivy ≥ 0.70 with SARIF deduplication.
koshik mcp exposes 5 non-mutating JSON-RPC 2.0 tools (koshik_scan, koshik_scan_file, koshik_diff, koshik_fix_preview, koshik_tools) locally over stdio.
Flags invisible BiDi/Unicode Tag smuggling, hardcoded MCP env/header secrets (redacted), curl | sh pipes, unpinned npx -y, plaintext remote http:// MCP URLs, and prompt-injection directives.
Progressive references cover audit context, OWASP 2025, differential PR review, IDOR/TOCTOU/payment business logic, variant sweeps, AI/MCP security, false-positive gates, and safe fixes.
koshik fix previews unified diffs cleanly (--dry-run), enforces assertPatchApproved before atomic writes, and immediately re-scans modified files to prove resolution.
Verifies domain ownership (DNS TXT, .well-known, HTML meta) with DNS IP-pinning SSRF defense before auditing HTTPS headers, TLS, Set-Cookie, CORS, and HTML SRI.
Supports workspace .koshikignore globs, koshik-ignore-next-line comments, and automatic test-fixture calibration (override via --include-tests).
Run npm run dev for /dashboard posture KPIs, score trends, live finding triage, read-only diff previews, and 1-click Markdown, SARIF 2.1.0, JSON, and Print-to-PDF reports.
Evaluated against leading open-source security skills, PR reviewers, and scanner orchestrators across local privacy, zero-key operation, IDE interoperability, and remediation loops.
| Capability | Koshik | trailofbits/skills | opengrep / semgrep-guardian | anthropics/claude-code-security-review | basitalisandhu/agent-security-skills | The-PR-Agent/pr-agent |
|---|---|---|---|---|---|---|
| 100% Free & Zero API Key Required | Yes | Yes | CLI only | No (API key) | Yes | No (API key) |
| 100% Local Privacy (Zero Cloud Upload) | Yes | Yes | Yes (CLI) | No | Yes | No |
| Native Local Stdio MCP Server | Yes | No | No | No | No | No |
| Real-Time Post-Edit Guard + Watch | Yes | No | No | No | No | No |
| Universal 6-IDE Installer | Yes | Skills only | No | Claude/GH only | Partial | No |
| AI Agent & MCP Config Auditor | Yes | Audit skills | No | No | No | No |
| Closed-Loop Approval-Gated Auto-Fix | Yes | No | No | Suggestions only | No | PR comments |
| Passive Ownership-Verified URL/TLS Audit | Yes | No | No | No | No | No |
| Visual Command Center + PDF/SARIF Export | Yes | No | No / Partial | No | No | No |
| Defensive & Workflow Score (100-pt Rubric) | 96 / 100 | 68 / 100 | 64 / 100 | 62 / 100 | 55 / 100 | 58 / 100 |
Scores reflect Koshik's transparent 100-point defensive capability and local developer-workflow rubric (zero-key local execution, multi-engine determinism, MCP/IDE support, AI config defense, closed-loop patching, passive posture verification, and reporting).
Requires Node.js ≥ 22.18 (Node 24+ recommended) and Git. Zero paid services or LLM API keys required.
git clone https://github.com/koshikkamalnayan-HOT/koshik.git
cd koshik && npm install
# Preview integrations across all 6 AI IDEs:
npm run koshik:init -- --target all --dry-run
# Install skills, MCP configs & rules into any repo:
node ./bin/koshik.mjs init --target all --dir /path/to/repo
npm run koshik:tools
npm run koshik:scan -- . --format table
npm run koshik:scan -- . --save
npm run koshik:fix -- . --dry-run
npm run koshik:guard -- --file src/app/page.tsx --fail-on high
npm run koshik:watch -- .
npm run koshik:mcp
npm run dev # http://localhost:3000/dashboard