Skip to content

Navigation Menu

Sign in
Sign up

Repository files navigation

DeepSight — The Agentic Code Intelligence Platform

Premium, token-optimized AI Skill that orchestrates a 10-Agent "Squad Review" to simulate a Senior Staff Engineer's audit.

Version: v0.2.5
Date: July 23, 2026
Token Efficiency Target: <50K tokens/session (vs. 500K industry avg)


Quick Install

One command. Installs to any AI platform.

Quickest (any OS — no download needed)

npx deepsight

macOS / Linux

bash <(curl -fsSL https://raw.githubusercontent.com/DevAnimecx/DeepSight/main/install.sh)

Windows (CMD or PowerShell)

powershell -c "iwr -useb https://raw.githubusercontent.com/DevAnimecx/DeepSight/main/install.ps1 | iex"

Quick Start

# Layer 1 — deterministic guardrails
bash scripts/run-semgrep.sh path/to/your/code
# Trigger a review (in Claude Code)
/review this PR
/audit security of src/auth/
"review this code for architecture issues"

Directory Structure

deepsight-skill/
├── SKILL.md # Main orchestrator (YAML header + workflow)
├── _platforms/ # Platform-specific configs
│ ├── claude/ # Claude Desktop + Claude Code
│ └── openai/ # Codex CLI + Custom GPT
├── agents/ # 10 specialized sub-agent instructions
│ ├── security.md # DeepSight-Sec (Red Teamer)
│ ├── architecture.md # DeepSight-Arch (Staff Architect)
│ ├── solid.md # DeepSight-Solid (Design Patterns)
│ ├── performance.md # DeepSight-Perf (Performance Eng)
│ ├── test.md # DeepSight-Test (QA Lead)
│ ├── error.md # DeepSight-Err (Reliability Eng)
│ ├── smell.md # DeepSight-Smell (Code Hygienist)
│ ├── pattern.md # DeepSight-Pattern (Framework Guru)
│ ├── data.md # DeepSight-Data (Privacy Officer)
│ └── dependency.md # DeepSight-Dep (Dependency Auditor)
├── scripts/ # Layer 1 deterministic analysis
│ ├── run-semgrep.sh # Semgrep + regex security scanner
│ ├── generate-poc.py # Exploit PoC generator
│ └── trace-data-flow.js # Cross-file dependency tracer
├── references/ # On-demand context loaded by agents
│ ├── security-rules.md # OWASP Top 10 rules
│ ├── arch-patterns.md # Hexagonal/Clean Architecture
│ ├── team-playbook.md # Project conventions (customize per repo)
│ └── framework-guides/ # React, Laravel, Next.js, Vue, Django
│ ├── react.md
│ ├── laravel.md
│ ├── nextjs.md
│ ├── vue.md
│ └── django.md
├── assets/ # Templates and configuration
│ ├── report-template.md # GitHub Comment template
│ └── risk-matrix.json # Severity scoring logic
├── tests/ # Validation fixtures
│ ├── vulnerable-code/ # Sample bad code (7 files)
│ └── expected-output/ # Ground truth test cases
├── bin.js # npm install entry point
├── package.json # npm package definition
├── install.sh # macOS/Linux installer
├── install.ps1 # Windows installer
└── README.md # This file

The Three-Layer Depth-Charge

Layer 1: Deterministic Guardrails (0-5s, 0 tokens)

Runs locally via scripts/run-semgrep.sh. Blocks obvious errors before any LLM invocation:

  • eval() usage
  • Hardcoded secrets/credentials
  • SQL injection patterns
  • Semgrep rules (OWASP Top 10, security audit)

Exit codes: 0 = pass/proceed, 1 = too many findings

Layer 2: Semantic Diff Review (10-30s, <10K tokens)

Sends only the git diff (not full files) to the Lead Architect, which routes hunks to relevant agents based on file patterns.

Model routing: Haiku-4 for routine checks, Opus-4.7 for Critical findings.

Layer 3: Agentic Cross-File Trace (1-3min, <40K tokens)

Agents trace data flow on-demand using Grep/Glob/Read. Validates end-to-end security paths (e.g., "Is sanitize() actually called by routes.ts?").

Lazy loading: Agents read only the specific functions/classes needed.

The Ten Agents

Agent Role Focus
DeepSight-Sec Red Teamer PoC exploits for Critical findings
DeepSight-Arch Staff Architect Circular deps, god objects, layer violations
DeepSight-Solid Design Patterns SOLID violations, pattern suggestions
DeepSight-Perf Performance Eng N+1 queries, O(n2), missing indexes
DeepSight-Test QA Lead Untested methods, test stubs
DeepSight-Err Reliability Eng Swallowed exceptions, missing timeouts
DeepSight-Smell Code Hygienist Long methods, magic numbers, duplication
DeepSight-Pattern Framework Guru Stack-specific idioms (React, Laravel)
DeepSight-Data Privacy Officer PII leakage, hardcoded secrets
DeepSight-Dep Dependency Auditor Supply chain risks, outdated libs

Output Format

DeepSight produces a single GitHub Comment with:

  1. Executive Summary — Risk Score (0-10) + Approve/Request Changes
  2. Critical (Must Fix) — Findings with runnable PoC exploits
  3. Architectural Warnings — Cross-file coupling, pattern violations
  4. Suggestions — Performance tweaks, code smells
  5. Verified Correct — Positive reinforcement for good patterns

Every finding uses the Caveman Output format: file:line → severity → finding → fix

Token Efficiency Protocols

  1. Caveman Output — No filler phrases, no "Here is the code"
  2. Progressive Disclosure — Load references only when triggered
  3. Model Routing — Haiku-4 for routine, Opus-4.7 for complex
  4. Diff-Only — Never read unchanged code unless Layer 3 requires it
  5. Session Compaction — Use /recap for long threads

Target: 500K → 30-50K tokens/session (90% reduction)

v0.2.5 Release Notes

Focus: Making npx deepsight bulletproof on every platform.

New

  • Zero-dependency npx deepsight install — works without bash, curl, or wget
  • Three-layer extraction fallback on Windows: PowerShell temp script → tar → Python zipfile
  • Graceful stdin handling — readAnswer() uses numeric fd to avoid TTY crashes
  • Prompt-based platform detection: "Install for $PLATFORM? (Y/n)" before each destination

Changed

  • npx deepsight is now the recommended install method (vs. curl|bash)
  • Landing page redesigned — animated gradient "Recommended" card
  • No Node.js required after install — skill is fully self-contained
  • All shell installers auto-detect Claude Desktop, Claude Code, Codex CLI, and GPT

Fixed

  • npx deepsight crashes on Node.js <22 — process.stdin read failure fixed
  • Windows ZIP extraction — temp PowerShell script avoids inline quote collisions
  • Async race condition in download pipeline — Promise chain properly wired
  • Leaked tokens in test fixtures — sensitive content sanitized before git push

Customization

Team Playbook

Edit references/team-playbook.md with your team's conventions (naming, error handling, API design, etc.).

Framework Guides

Add framework-specific guides in references/framework-guides/. Currently includes React, Laravel, Next.js, Vue, Django.

Security Rules

Extend references/security-rules.md with custom rules or company-specific policies.

Requirements

  • Claude Code with skill support
  • Node.js (for trace-data-flow.js)
  • Python 3 (for generate-poc.py)
  • Optional: Semgrep (pip install semgrep) for enhanced Layer 1 scanning

License

MIT

About

DeepSight: Smarter code reviews. Zero effort.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /