Trellis

Code Intelligence

Read the code. See the connections.

Understand what your next change touches—and the decisions behind it.

Follow a function into its callers, routes and the documents and decisions that reference it. Give your team a clearer starting point for review.

From source code to graph

See what becomes connected knowledge.

Select a category to highlight the code Trellis reads and inspect what it captures.

checkout.ts · TypeScript

import { recordPayment } from "./ledger";interface PaymentProcessor {  charge(amount: number): void;}class CheckoutService implements PaymentProcessor {  charge(amount: number): void {    recordPayment(amount);  }}function checkout(service: CheckoutService, amount: number) {  service.charge(amount);}

Syntax → captures → graph15 lines

4 definitions

Names become places to start exploring.

Interface
Lines 3–5
PaymentProcessor
Class
Lines 7–11
CheckoutService
Method
Lines 8–10
CheckoutService.charge
Function
Lines 13–15
checkout

Trellis records each definition with its source location. The method belongs to CheckoutService.

Illustrative source example mapped to Trellis’s TypeScript tree-sitter queries and extraction rules. This is an interactive explanation, not a live parser or product screenshot.
Inspect the query excerpts

These excerpts capture function definitions, named imports and calls. The highlighted categories also use the class, interface, method and implementation queries.

(function_declaration
  name: (identifier) @function.name) @function.def

(import_statement
  (import_clause
    (named_imports
      (import_specifier
        name: (identifier) @import.symbol)))
  source: (string) @import.from) @import.stmt

(call_expression
  function: (identifier) @call.name) @call.expr

(call_expression
  function: (member_expression
    property: (property_identifier) @call.name)) @call.expr

Follow a change

A function is only part of the story.

Our illustrative question: what might a customer-profile change affect?
  1. Code
  2. Dependencies
  3. SQL & decisions

Understand the connections

Look beyond the current file.

Explore callers, callees and related routes. Follow the paths around a function to understand where a change could matter.

Illustrative relationship

Profile route → updateCustomer()

A route provides a starting point for investigating the change.

Follow the data

See what the SQL touches.

Repository .sql files add tables, views and procedures to the graph. The views and procedures in a connected database link to the tables they read or write, so you can review them beside your code in the same graph.

From a SQL procedure to the table it writes.

Recover the why

Bring the decision along.

Explore supporting documents, work items and decisions. Return to the sources as you decide what the change needs to preserve.

Illustrative supporting context

“Keep a change history.”

A design decision adds context to the customer-profile workflow.

For people and AI

Take the context into your work.

Explore it yourself. Make it available to your agents.

Use connected evidence to shape a review, investigate a dependency or prepare your next question. Your team stays responsible for evaluating the result.

Supported languages

Explore what Trellis extracts from your code.

Choose a language for its definitions, relationships and supported file extensions.

What Trellis understands in TypeScript

Definitions
Functions, Classes, Interfaces and Methods, including supported arrow-function patterns.
Connections
Imports, call sites, class inheritance and implemented interfaces.
Put it to work
Trace which functions use a shared interface and which calls may be affected by a change.

Code analysis follows supported syntax and resolution rules; dynamic calls may not resolve. TSX and JSX are included; SQL uses its own pipeline. Supported languages: TypeScript, JavaScript, Python, Go, C#, Rust, SQL, Java, PHP, Scala, Swift, Kotlin, C and C++, Ruby, Elixir.

Start with one real question

What will you change next?

Bring a representative repository and a question your team needs to answer.