Universal Code Navigator

Code navigation built by AI, for AI. Reduces context usage when working with large codebases.

Extract functions. Trace call trees. Detect dead code. Across 6 languages.

Get Started
terminal
$ ucn context handleRequest Context for handleRequest (src/server.js:45) CALLERS (2): [1] startServer src/server.js:12 [2] routeRequest src/routes.js:28 CALLEES (3): [3] parseBody src/parser.js:15 [4] validateInput src/validate.js:8 [5] sendResponse src/server.js:92

What You Get

Semantic Analysis

Navigate code by meaning, not text. Tree-sitter ASTs understand your code structure across functions, classes, and modules.

Function Extraction

Pull out any function by name with ucn fn. Get clean, complete definitions from files of any size.

Call Tree Tracing

See the full call hierarchy with ucn trace. Understand how functions connect at any depth.

Impact Analysis

Know what breaks before you change it. ucn impact shows every caller and dependency.

Dead Code Detection

Find unused functions and classes with ucn deadcode. Keep your codebase clean and lean.

Multi-Language

Works with JavaScript, TypeScript, Python, Go, Rust, and Java out of the box.

Commands at a Glance

Powerful commands for every code navigation task.

terminal
# Understand code
$ ucn about handleRequest        # Full picture
$ ucn context handleRequest      # Callers + callees
$ ucn smart handleRequest        # Function + dependencies
$ ucn trace expandGlob --depth=2 # Call tree
$ ucn impact shouldIgnore       # What breaks?

# Find code
$ ucn find parseConfig           # Locate definitions
$ ucn toc                        # Project structure
$ ucn deadcode                   # Unused functions

# Extract code
$ ucn fn expandGlob              # Pull out function
$ ucn class UserService          # Extract class
$ ucn imports src/server.js      # File dependencies

Install

terminal
$ npm install -g ucn

Ready to navigate your code?

View on GitHub

This website uses cookies to enhance your experience.