Skip to content

Graph and Impact

Graph commands are the understanding step between ranking and editing. Copy a qname from rank output, then ask for file anatomy, inbound callers, outbound callees, or impact so the agent sees the target in context.

Example

List symbols in a file

Explains the indexed symbol anatomy of the TypeScript tutorial file.

$ agide query anatomy src/applyMiddleware.ts
file src/applyMiddleware.ts
symbols (1 total)
function  src.applyMiddleware.applyMiddleware
    function applyMiddleware(
Example

Show inbound references

Asks who calls a helper reached from the ranked reducer-combining hotspot.

$ agide query callers src.combineReducers.assertReducerShape --limit 5
callers (1 total)
function  src.combineReducers.combineReducers
    function combineReducers(reducers:
Example

Show outbound dependencies

Asks what the selected ranked symbol calls, including a shallow transitive view.

$ agide query callees src.createStore.createStore --depth 2 --limit 5
callees (5 total)
method  test.typescript.store.test-d.next
    next(state: State)
function  src.utils.kindOf.kindOf
    function kindOf(val: any)
function  src.utils.isPlainObject.isPlainObject
    function isPlainObject(obj: any): obj is object
function  test.typescript.enhancers.test-d.enhancer
    enhancer: StoreEnhancer<
function  src.utils.kindOf.miniKindOf
    function miniKindOf(val: any): string

Use impact before changing a signature or behavior that other code may depend on. It gives agents and reviewers the blast-radius context that is easy to miss when a model only sees the local file.

Example

Estimate blast radius

Collects callers, tests, and warnings for a symbol before changing it.

$ agide query impact src.combineReducers.assertReducerShape
impact: src.combineReducers.assertReducerShape
direct callers (1)
function  src.combineReducers.combineReducers
    function combineReducers(reducers:
transitive callers (1)
function  src.combineReducers.combineReducers
    function combineReducers(reducers:
tests reaching (0)