Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
c5514d8
chore(store): move the extraction version to 23
sunerpy Oct 23, 2026
2a3dfde
fix(store): refuse an index a newer schema wrote
sunerpy Oct 23, 2026
e5a8695
test(mcp): give every engine test its own directory and remove it
sunerpy Oct 23, 2026
301a172
test(probes): std-typed Rust receivers stay unresolved
sunerpy Oct 23, 2026
98b7052
build(deps): bump the grammar crates held back from #334
sunerpy Oct 23, 2026
fc6b6d0
fix(store): uninit discards a current index beside its tombstone
sunerpy Oct 23, 2026
b80a14f
fix(store): report a newer schema before the uninit tombstone
sunerpy Oct 23, 2026
7160d9a
fix(store): offer uninit only where it would discard the index
sunerpy Oct 23, 2026
5cb5f32
fix(cli): status offers uninit for a newer schema only where it works
sunerpy Oct 23, 2026
fda96ed
test(cli): import the unix-only upgrade test types on unix only
sunerpy Oct 23, 2026
f699c78
feat(resolve): framework-edge infrastructure
sunerpy Oct 23, 2026
9ef9f69
feat(resolve): framework edges name their resolver
sunerpy Oct 23, 2026
9c84ead
fix(watch): any file that comes or goes re-reads the JS detection inputs
sunerpy Oct 23, 2026
80a5384
fix(react): hooks and contexts prefer own-file declarations and impor…
sunerpy Oct 23, 2026
86c3386
fix(nestjs): conventions stay in their feature; global prefix and ver…
sunerpy Oct 23, 2026
64b4f95
fix(vue): Nuxt routes only in Nuxt apps; a page route references its …
sunerpy Oct 23, 2026
e69a778
feat(explore): Flow section and branch guards
sunerpy Oct 23, 2026
608d5fd
fix(nestjs): a test's bootstrap configures only its own app
sunerpy Oct 24, 2026
ca35060
test(sync): framework edges keep their resolver's name under sync
sunerpy Oct 24, 2026
b1ee323
feat(resolve): Next.js file routes split from React
sunerpy Oct 24, 2026
6b74cae
feat(resolve): Expo Router
sunerpy Oct 24, 2026
d0b744f
fix(resolve): an import alias is the nearest tsconfig's
sunerpy Oct 31, 2026
85c4898
feat(resolve): React Router routes and navigation
sunerpy Oct 31, 2026
820c102
feat(resolve): React Router lazy loaders pick their page
sunerpy Nov 1, 2026
7046a9f
feat(resolve): route tables another file hands React Router
sunerpy Nov 1, 2026
5301bf3
feat(resolve): imported JSX tags render what their module exports
sunerpy Nov 1, 2026
655c1db
feat(resolve): TanStack Router routes and navigation
sunerpy Nov 1, 2026
dda60ca
feat(resolve): Vue Router routes and navigation
sunerpy Nov 1, 2026
69902a9
feat(resolve): Svelte resolver and SvelteKit routing
sunerpy Nov 1, 2026
5ad11e9
feat(resolve): Angular routes and the components they render
sunerpy Nov 2, 2026
112e048
feat(resolve): Angular navigation
sunerpy Nov 2, 2026
b3c03bc
test(resolve): cover the React Router pieces no test caught
sunerpy Nov 2, 2026
fec4fbb
docs: complete the regeneration log and name the rows left for later
sunerpy Nov 2, 2026
c7696e0
feat(resolve): synthesis stage with incremental refresh
sunerpy Nov 2, 2026
2a600ed
fix(resolve): walk synthesis inputs in upstream's order
sunerpy Nov 2, 2026
3cb90d9
feat(resolve): render, override and expect/actual synthesis
sunerpy Nov 2, 2026
f317880
fix(extract): read each type of a Java heritage list
sunerpy Nov 2, 2026
f1237a1
feat(resolve): interface dispatch synthesis
sunerpy Nov 2, 2026
c31a8f7
feat(resolve): object registry synthesis
sunerpy Nov 3, 2026
080ec64
feat(resolve): JSX render synthesis
sunerpy Nov 3, 2026
2b97b52
feat(bench): generate the Go standard-library method table
sunerpy Nov 3, 2026
6b5ffb6
feat(resolve): Go method owners and implicit implements
sunerpy Nov 3, 2026
2cb1b7d
perf(resolve): read the synthesis stage's file texts once, in parallel
sunerpy Nov 3, 2026
a3ae027
feat(resolve): gRPC stub and gin middleware synthesis
sunerpy Nov 3, 2026
180259f
feat(extract): every Go var and const spec is a node
sunerpy Nov 3, 2026
77c32d6
fix(watch): a go.mod change re-resolves the project's Go files
sunerpy Nov 3, 2026
2e419f9
feat(resolve): Go func-field synthesis
sunerpy Nov 4, 2026
062c7a0
feat(resolve): redux-thunk, Celery, Spring, MediatR, Sidekiq and Lara…
sunerpy Nov 4, 2026
6a3d2c2
feat(resolve): C and C++ function-pointer dispatch
sunerpy Nov 4, 2026
f9c795d
feat(resolve): C function-pointer tables in non-indexed includes
sunerpy Nov 4, 2026
ca3accf
fix(resolve): leave ambiguous redux-thunk and Sidekiq targets unlinked
sunerpy Nov 4, 2026
cd56729
feat(extract): Vue store collections and RTK Query endpoints and hooks
sunerpy Nov 5, 2026
701a06b
feat(resolve): RTK Query, Pinia and Vuex dispatch synthesis
sunerpy Nov 5, 2026
ddf97bc
feat(resolve): GoFrame routes and their controller methods
sunerpy Nov 5, 2026
9498108
feat(resolve): navigation-link synthesis
sunerpy Nov 5, 2026
22e415c
feat(resolve): SvelteKit page and loader synthesis
sunerpy Nov 6, 2026
a11026a
perf(store): keep unchanged synthesized edges when the stage replaces…
sunerpy Nov 6, 2026
7bb0ec3
feat(resolve): Vue template synthesis
sunerpy Nov 6, 2026
0d2e96a
feat(resolve): Angular template synthesis
sunerpy Nov 7, 2026
5b2b6d2
feat(explore): dynamic-dispatch links among the named symbols
sunerpy Nov 7, 2026
64b64cb
test(resolve): close the index before deleting the C fn-pointer test …
sunerpy Nov 7, 2026
97a9e19
docs: show double-brace code literally on the website
sunerpy Nov 7, 2026
6841a6d
test(cli): open the migrated index through a file URI Windows accepts
sunerpy Nov 7, 2026
6e68314
perf(watch): skip the name retry when the framework passes restore wh…
sunerpy Nov 8, 2026
ab937ff
feat(resolve): Express and Astro server frameworks and route naming
sunerpy Nov 8, 2026
9a6a45d
feat(resolve): Django, Flask and FastAPI server frameworks and route …
sunerpy Nov 8, 2026
268df19
feat(resolve): Spring and Play server frameworks and Play routes files
sunerpy Nov 9, 2026
97d5b2e
feat(resolve): Laravel and Drupal server frameworks and route naming
sunerpy Nov 9, 2026
dd95fdf
feat(resolve): Rails server framework and scoped routes
sunerpy Nov 10, 2026
2845975
feat(resolve): ASP.NET server framework, FastEndpoints and endpoint g…
sunerpy Nov 10, 2026
7b2134a
feat(resolve): Vapor server framework, SwiftUI and UIKit conventions
sunerpy Nov 10, 2026
8256f7b
feat(resolve): axum and actix server frameworks and Cargo workspace c…
sunerpy Nov 11, 2026
6a58caa
feat(resolve): Go server frameworks and URL-shaped routes
sunerpy Nov 11, 2026
a6e58d6
feat(resolve): cross-tier channels and test requests
sunerpy Nov 12, 2026
b316d65
feat(resolve): React Native, Expo modules, Fabric and Swift-ObjC bridges
sunerpy Nov 19, 2026
654c438
build(deps): take the security fixes of rusqlite, rmcp and quinn-udp
sunerpy Nov 19, 2026
9445d69
fix(resolve): take import candidates only from the indexed files
sunerpy Nov 19, 2026
28c2e90
fix(sync): re-resolve what an added, removed or resized file moves
sunerpy Nov 19, 2026
dd2102a
feat(ui): branch conditions on the Symbol and Flow rails
sunerpy Nov 19, 2026
5a8d229
feat(graph): read call sites, triggers, loops and definitions for the…
sunerpy Nov 19, 2026
b3ff9ac
feat(ui): Screens and the transitions between them
sunerpy Nov 19, 2026
e16226f
feat(ui): Steps, effects and the reading in the code's order
sunerpy Nov 19, 2026
cee9a13
fix(sync): a route follows the module it lazily loads when the module…
sunerpy Nov 23, 2026
9e1dafe
fix(sync): a navigation call relinks when a route appears, goes or moves
sunerpy Nov 23, 2026
421c13d
fix(sync): angular.json and nx.json are JavaScript control inputs
sunerpy Nov 23, 2026
8803eec
feat(resolve): ArkTS modules join the JavaScript import channel and o…
sunerpy Nov 23, 2026
7c49c61
feat(resolve): ArkUI attribute chains, decorators and state, emitter …
sunerpy Nov 23, 2026
b6d35ea
feat(resolve): Nix lexical scope, module imports and option paths
sunerpy Nov 23, 2026
beea106
feat(resolve): Terraform module boundaries, remote state and provider…
sunerpy Nov 23, 2026
48867df
feat(resolve): Erlang behaviours, macros, escripts and application re…
sunerpy Nov 23, 2026
9a7768c
fix(resolve): an imported value's call reaches the class its file means
sunerpy Nov 23, 2026
25dcf4e
fix(resolve): an Erlang macro use binds only a -define of its name
sunerpy Nov 23, 2026
32b9c30
feat(explore): gather the subgraph the way upstream walks it
sunerpy Nov 23, 2026
c369d72
feat(explore): rank files by graph relevance
sunerpy Nov 23, 2026
c10e457
feat(explore): weigh the flow spine in clusters and windows
sunerpy Nov 23, 2026
a960b97
feat(explore): skeletons for off-spine polymorphic siblings
sunerpy Nov 23, 2026
4349c0e
fix(watch): a directory moved into the project indexes its files
sunerpy Nov 23, 2026
e89c1c8
fix(extract): a JSX tag in a .js file renders its component, as in .jsx
sunerpy Nov 23, 2026
05cc19a
fix(ui): the Key, wide effect rows and condition labels fit the canvas
sunerpy Nov 23, 2026
cea1c73
test(sync): cover the imported-value call and Erlang macro rules
sunerpy Nov 23, 2026
0e6586b
fix(sync): a call through an imported value follows its module's edits
sunerpy Nov 25, 2026
e6db340
perf(resolve): stop compiling patterns and splitting files per reference
sunerpy Nov 25, 2026
08d1114
perf(synthesis): read only what the Nix and Erlang passes use
sunerpy Nov 25, 2026
fcdd9fc
perf(sync): rewire Terraform modules only when their wiring changes
sunerpy Nov 25, 2026
97cee04
test(probes): read the Terraform wiring rows through the portable URI
sunerpy Nov 25, 2026
278acd2
build(deps): update cookie and url for two new RustSec advisories
sunerpy Nov 25, 2026
7d5db3b
ci: give the Windows tests 60 minutes
sunerpy Nov 25, 2026
1d2f851
perf(explore): look up each symbol and walk each node once per request
sunerpy Nov 25, 2026
0059b2d
perf(store): cache the edge and node lookups' statements
sunerpy Nov 25, 2026
5b9d797
docs(equivalence): log the explore golden W7-25a re-captured
sunerpy Nov 25, 2026
fa8c7c4
refactor(explore): share the seed search and let the walk take its li…
sunerpy Nov 26, 2026
2a18fb7
feat(cli): add codegraph context
sunerpy Nov 26, 2026
08b5514
feat(cli): print per-phase timings to stderr under CODEGRAPH_PHASE_TI…
sunerpy Nov 26, 2026
9c465bd
feat(bench): phase timings, a load guard, more candidates and sync ru…
sunerpy Nov 26, 2026
2d56231
test(store): pin the WAL fold truncating the sidecar to zero
sunerpy Nov 26, 2026
3344187
feat(config): read the Lua loader settings
sunerpy Nov 26, 2026
55eede8
feat(extract): custom Lua module loaders
sunerpy Nov 26, 2026
cc63b9e
feat(resolve): look up Lua modules under the configured roots first
sunerpy Nov 26, 2026
305e07d
perf(resolve): resolve the next batch while the current one is written
sunerpy Nov 26, 2026
1b8e42f
perf(resolve): read each scope's receiver declarations once per file
sunerpy Nov 26, 2026
4412d1b
perf(watch): sync one or two saved files after a short quiet window
sunerpy Nov 26, 2026
68ab3ad
docs(upstream): record the W9-00 performance dispositions
sunerpy Nov 26, 2026
323f634
docs: name codegraph context and the Lua loaders in the READMEs and o…
sunerpy Nov 26, 2026
82f21ee
docs: close the v0.56 documentation gaps
sunerpy Nov 26, 2026
f6ad441
docs: stop pointing VB.NET comments at W8
sunerpy Nov 26, 2026
28bb16d
docs(upstream): record the follow-up pull request's status
sunerpy Nov 26, 2026
7744126
docs(equivalence): record the v0.56.0 parity run against upstream e8d…
sunerpy Nov 26, 2026
e7be312
docs(site): retake the viewer home screenshots
sunerpy Nov 26, 2026
7c0cb28
perf(store): log the base-graph rows a sync changes
sunerpy Nov 26, 2026
e9d5d65
perf(resolve): record what each synthesis pass reads
sunerpy Nov 26, 2026
941561e
perf(sync): rerun only the synthesis passes whose inputs changed
sunerpy Nov 26, 2026
f8e90e9
docs(upstream): record W9-00's adopted strategies and row 27
sunerpy Nov 26, 2026
f501aa6
test(cli): exempt the stdout snapshots from whitespace checks
sunerpy Nov 26, 2026
a1a3b7e
fix(bench): build the load guard's /proc imports only on Linux
sunerpy Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ crates/codegraph-mcp/src/tools_list.json text eol=lf
# space. Exempt it from whitespace errors (`git diff --check`).
crates/codegraph-ui/viewer/** -whitespace

# --- CLI stdout snapshots: the binary's bytes, compared exactly ---
# `codegraph context`'s Markdown ends with a blank line, as upstream's does, and
# its snapshot keeps that byte. Exempt the snapshots from whitespace errors
# (`git diff --check`).
crates/codegraph-cli/tests/snapshots/*.stdout -whitespace

# --- Binary artifacts: never let git touch these bytes ---
# `-text` is explicit (not just `binary`) so the catch-all `* text=auto eol=lf`
# can never leave a dangling `eol=lf` applied to a binary SQLite DB: `-text`
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ jobs:
name: Windows Tests
needs: workspace-version
runs-on: windows-2025
timeout-minutes: 40
# The sync-convergence matrix alone takes about 16 minutes on this runner.
timeout-minutes: 60
env:
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_PROFILE_TEST_SPLIT_DEBUGINFO: off
Expand Down
5 changes: 5 additions & 0 deletions .oxfmtignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ crates/codegraph-bench/fixtures/
crates/codegraph-extract/tests/fixtures/
crates/codegraph-resolve/tests/fixtures/

# An upstream colbymchenry/codegraph explore fixture, copied byte for byte
# from its `__tests__/fixtures/` (W7-25): the probes assert on the line numbers
# of the definitions inside it, so reflowing it moves what they measure.
crates/codegraph-cli/tests/fixtures/explore_tail_render_ts/

# Embedded verbatim into the MCP tools/list response and byte-compared against
# golden; reformatting breaks the MCP golden test.
crates/codegraph-mcp/src/tools_list.json
Expand Down
87 changes: 52 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ tracing-appender = "0.2"
time = { version = "0.3", features = ["macros", "local-offset", "formatting"] }

# Database
rusqlite = { version = "0.40", features = ["bundled"] }
rusqlite = { version = "0.41", features = ["bundled"] }

# Tree-sitter
tree-sitter = "0.27"
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ LLM to rediscover structure through repeated text searches.

- **Deterministic:** no model calls, embeddings, or vector search; canonical graph
output is guarded by byte-stable golden fixtures.
- **Source-aware:** search, callers/callees, impact, file source, and multi-file
exploration use one indexed representation.
- **Source-aware:** search, callers/callees, impact, file source, multi-file
exploration, and task context (`codegraph context`) use one indexed
representation.
- **Agent-ready:** an MCP server exposes the same graph and verbatim source used by
the CLI.
- **Visual (preview):** a local browser viewer reads the same index: a symbol's
Expand All @@ -42,7 +43,10 @@ LLM to rediscover structure through repeated text searches.
- **Local-first:** the index lives under the project; the shared daemon and HTTP
transport are local processes.
- **Broad language coverage:** grammar-backed languages, embedded/template files,
and framework-aware Godot/Tauri/JS ecosystem relationships share one schema.
and framework-aware relationships (routes, navigation, rendered components and
the dispatch that framework conventions imply) share one schema. A Lua project
that loads its modules through functions of its own can
[name them](docs/cli.md#custom-lua-module-loaders-lua) in its configuration.
- **Incremental:** `sync` and the watcher update changed files while preserving the
same final canonical result as a clean index.

Expand Down Expand Up @@ -154,6 +158,7 @@ codegraph index . # full rebuild of the selected project
codegraph search "symbol" -p .
codegraph explore "area or flow" -p .
codegraph node "symbol-or-id" -p .
codegraph context "task" -p . # entry points, symbols and code for a task
codegraph files -p . --format tree

# Relationships
Expand Down
3 changes: 3 additions & 0 deletions crates/codegraph-bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ rusqlite = { workspace = true }
sha2 = { workspace = true }
codegraph-core = { path = "../codegraph-core" }
codegraph-extract = { path = "../codegraph-extract" }
codegraph-resolve = { path = "../codegraph-resolve" }
regex = "1.10"
tree-sitter = { workspace = true }

[target.'cfg(unix)'.dependencies]
libc = "0.2"
Expand Down
Loading
Loading