SYKE - AI Code Impact Analysis

by khalomsky

Not rated
GitHub

About

Live dependency graph and impact analysis MCP server for AI coding agents. Runs PASS/WARN/FAIL build gates before code changes to prevent cascade failures. Supports TS, Python, Dart, Go, Rust, Java, C++, Ruby.

Details

Author
khalomsky
Categories
Developer Tools, Other

Setup

Install SYKE - AI Code Impact Analysis in your MCP client (Claude Desktop, Cursor, Windsurf, and others).

Repository: https://github.com/khalomsky/syke

Follow the installation instructions in the repository README, then restart your MCP client.

Live dependency graph and impact analysis MCP server for AI coding agents. Runs PASS/WARN/FAIL build gates before code changes to prevent cascade failures. Supports TS, Python, Dart, Go, Rust, Java, C++, Ruby.

AI code impact analysis MCP server.SYKE monitors every file your AI touches, maps dependency graphs, detects cascading breakage, and gates builds before damage spreads.

Works withClaude Code,Cursor,Windsurf, and any MCP-compatible AI coding agent.
- On startup, SYKE scans your source directory and builds a complete dependency graph using static import analysis.
- Your AI agent modifies files freely— no interruptions during normal work.
- Before build/deploy, the AI callsgate_buildto check if all changes are safe.
- If dependencies break, SYKE detects cascading failures and blocks the build with aFAILverdict.
- The dashboardshows a real-time visualization of your dependency graph with risk indicators.

SYKE is a safety net, not a gatekeeper.It doesn't block your AI while working — it catches what your AI missed before you ship.

{ "licenseKey": "SYKE-XXXX-XXXX-XXXX-XXXX", "geminiKey": "your-gemini-api-key" }

Get your license key atsyke.cloud/dashboard. You only need ONE AI key. Supported:geminiKey,openaiKey,anthropicKey.

claude mcp add syke -- npx @syke1/mcp-server@latest
{ "mcpServers": { "syke": { "command": "npx", "args": ["@syke1/mcp-server@latest"] } } }

Windsurf(~/.codeium/windsurf/mcp_config.json):

{ "mcpServers": { "syke": { "command": "npx", "args": ["@syke1/mcp-server@latest"] } } }

Windows note:Ifnpxis not found, use the full path:"command": "C:\\Program Files\\nodejs\\npx.cmd"

Add this line to your project'sCLAUDE.md(or equivalent AI instruction file):

After completing code changes, always run the gate_build MCP tool before committing or deploying.

This ensures your AI agent automatically runs SYKE's safety check after every task — no manual prompting needed.

SYKE auto-detects your project language and builds the dependency graph on startup. Openhttp://localhost:3333to see your live dashboard.

SYKE supports three AI providers for semantic analysis. Bring your own key:

Auto-selection:SYKE uses the first available key (Gemini > OpenAI > Anthropic).Force provider:SetaiProviderin config (orSYKE_AI_PROVIDERenv var) to override.

SYKE goes beyond simple dependency counting. Five production-grade algorithms work together to deliver precise, fast, and context-rich impact analysis — all runninglocally with zero AI token cost.

Circular dependencies are the #1 source of misleading impact analysis. SYKE usesTarjan's algorithmto detect all Strongly Connected Components, condenses them into a clean DAG, then runs topological sort to compute correct cascade levels.

Before: "47 files affected" (inflated by cycles) After: "3 files in circular cluster (Level 0) → 5 files (Level 1) → 4 files (Level 2)"

- O(V+E) computation — runs in single-digit milliseconds
- Every SCC with size > 1 is flagged as a circular dependency cluster
- Cascade levels are accurate even in heavily cyclic codebases

Five signals combined into a single 0–1 risk score:

auth_service.ts → Risk: 0.82 (CRITICAL) Fan-in: 24, Stability: 0.12, Complexity: 47, Cascade: 4 levels, PageRank: 99th string_utils.ts → Risk: 0.31 (LOW) Fan-in: 18, Stability: 0.85, Complexity: 3, Cascade: 1 level, PageRank: 42nd

AI agents can now make threshold decisions: proceed if < 0.3, warn if 0.3–0.7, block if > 0.7.

Static imports misshidden dependencies— files that always change together but have no import relationship. SYKE mines your git history (last 500 commits) to find these logical couplings.

auth_service.ts changed → [Dependency Graph] auth_provider.ts, login_screen.ts [Git Coupling — Hidden Dependencies] config/auth_config.json (85% confidence, 12 co-changes) styles/auth.css (72% confidence, 8 co-changes)

- Catches 15–30% of impacted files that static analysis misses entirely
- Filters mega-commits (>20 files) to avoid noise
- 5-minute cache with auto-refresh

Simple fan-in counts treat all dependents equally.PageRankcomputes recursive importance — a file imported by manyimportantfiles ranks higher than one imported by many leaf files.

Before: utils.ts ranked #1 (25 dependents — but all are leaf components) After: auth.ts ranked #1 (20 dependents — 15 of which are core modules)

- Standard Power Iteration with damping factor 0.85
- Precomputed at startup, incrementally updated on file changes
- Every file gets a rank position and percentile (e.g., "rank #3 of 245, 99th percentile")

5. Incremental Graph Updates + Memoized Queries

For large codebases (10K+ files), full graph rebuilds are too slow. SYKE now updatesonly the changed file's edgesand invalidatesonly the affected cache entries.

Before: 1 file changed → re-parse all 500 files → 2+ seconds After: 1 file changed → re-parse 1 file → edge diff → 50ms Same file queried again → cache hit → O(1) instant

- Reverse index enables O(affected) cache invalidation instead of O(cache_size)
- SCC and PageRank recompute after edge changes (still < 100ms for 10K files)
- 500-entry LRU cache with hit/miss diagnostics

Auto-detected, zero-config:Dart/Flutter,TypeScript/JavaScript,Python,Go,Rust,Java,C++,Ruby.

Live dependency graph visualization atlocalhost:3333with:

- Interactive 3D node graph (click any file to see its connections)
- Real-time cascade monitoring
- Risk level indicators
- Server offline detection with auto-reconnect

SYKE reads from~/.syke/config.json(primary) with environment variable overrides:

Full config example(~/.syke/config.json):

{ "licenseKey": "SYKE-XXXX-XXXX-XXXX-XXXX", "geminiKey": "AIza...", "openaiKey": "", "anthropicKey": "", "port": 3333 }
You (developer) AI Agent SYKE | | | |-- "Add feature X" -->| | | |-- modifies files | | |-- modifies files | | |-- modifies files | | | | | |-- gate_build --->| | | |-- scans graph | | |-- checks impact | |<-- PASS/FAIL ----| | | | |<-- "Done. Safe to | | | build." ----------| |

Founding 100 — Free Pro for Early Adopters

We're giving thefirst 100 developersfull Pro access for30 days— no credit card, no strings.

- All 8 MCP tools with advanced algorithms (SCC, PageRank, Risk Scoring, Git Coupling)
- Unlimited files, multi-project support
- Real-time cascade monitoring + web dashboard
- AI semantic analysis (BYOK — Gemini, OpenAI, or Claude)
- Sign up atsyke.cloud
- Star this repo
- Click "I Starred" in your
dashboard→ 30 days Pro unlocked

Spots are limited. Once they're gone, they're gone.

Source CodeThis repository contains theFree tier source code— the core dependency graph engine, language plugins, and 3 free MCP tools (gate_build,check_safe,get_dependencies).Pro and Cortex features (advanced algorithms, AI analysis, real-time monitoring, web dashboard) are included in thenpm packageas compiled code.

You can use, modify, and distribute SYKE freely, with two limitations:
- No managed service— You cannot offer SYKE as a hosted/managed service to third parties.
- No license key circumvention— You cannot remove, disable, or bypass the license key functionality.

This is a web browser that enables your coding agent, such as Claude Code, to visit websites on your behalf and assist you in identifying bugs or creating UI test cases.

Fast lightweight Java MCP server framework - Build Model Context Protocol servers with minimal boilerplate and full TypeScript SDK compatibility

A Java plugin that exposes the Jadx decompiler API over HTTP for interaction with MCP clients.

Specialized tools for analyzing and migrating Java applications from Java EE 8 (javax.) to Jakarta EE 9+ (jakarta.).

Java Archive Reader Protocol MCP server - Give AI agents X-ray vision into compiled Java code by decompiling JAR/WAR/EAR files and Maven/Gradle dependencies

A Model Context Protocol (MCP) server for searching Java documentation. This server enables AI assistants to search and retrieve Java API documentation from JSON files.

Allows AI assistants to remotely drive the JetBrains debugger via MCP, including breakpoints, stepping, and variable inspection.

Resolves your Gradle project’s real classpath and returns Java source, method signatures, and class structure for any dependency class—using the version your build actually uses, not random files from ~/.gradle/caches.

Legacy Java to Microservices Refactoring

A community gateway to migrate legacy Jakarta EE monoliths into Spring Boot using AST parsing.

Search for and retrieve detailed information, including READMEs and metadata, for Maven packages from Maven Central.

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.