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$ 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
Navigate code by meaning, not text. Tree-sitter ASTs understand your code structure across functions, classes, and modules.
Pull out any function by name with ucn fn. Get clean, complete definitions from files of any size.
See the full call hierarchy with ucn trace. Understand how functions connect at any depth.
Know what breaks before you change it. ucn impact shows every caller and dependency.
Find unused functions and classes with ucn deadcode. Keep your codebase clean and lean.
Works with JavaScript, TypeScript, Python, Go, Rust, and Java out of the box.
Powerful commands for every code navigation task.
# 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
$ npm install -g ucn
This website uses cookies to enhance your experience.