265 KiB
Changelog
Full release notes with details on each version: GitHub Releases
0.9.13 (2026-07-12)
-
Fix: the query log is now opt-in (off by default) (#1797, thanks @adam-pond-agent).
querylogwrote everyquery/path/explainquestion and corpus path (and full responses ifGRAPHIFY_QUERY_LOG_RESPONSES) to a default-on, unbounded, fail-silent plaintext file at~/.cache/graphify-queries.log— outside any repo's .gitignore/retention, and undocumented, which contradicts graphify's on-device / no-telemetry posture. Logging is now OFF unless you opt in withGRAPHIFY_QUERY_LOG_ENABLE=1(default path) orGRAPHIFY_QUERY_LOG=<path>;GRAPHIFY_QUERY_LOG_DISABLE=1still forces it off. All the query-log env vars are now documented in the README. -
Fix: a markdown file that went through semantic extraction is no longer duplicated into two disconnected nodes on later
graphify update(#1799, thanks @jerp86). The semantic pass mints<slug>_docwhile the markdown quick-scan mints the bare<slug>, so the file's edges split across two twins (a docs->code path query would dead-end on the bare half; centrality and communities split too).build_from_jsonnow merges the bare quick-scan node into the semantic_docnode when both share the samesource_fileand arefile_type: document, consolidating their edges/hyperedges onto one node. Gated so an unrelated code symbolfooandfoo_docnever merge. -
Fix: incremental
graphify updateno longer silently evicts nodes for a file that left the scan corpus but still exists on disk (#1795, thanks @CJNA)._reconcile_existing_graphread "source absent from the collected corpus" as "deleted", but that's also what an ignore-rule/filter change looks like (e.g. an upgrade that starts honoring.gitignore) — in one 27k-node graph the first rebuild after such an upgrade mass-evicted 655 nodes whose files were present the whole time. Eviction now fails closed: a corpus-absent source is only evicted whenPath(identity).exists()is False (true deletion), otherwise its nodes/edges/hyperedges are preserved and a loud line reports how many were kept and why. True deletions and renames evict as before; a fullextract --forcestill purges deliberate exclusions. -
Fix:
build_mergeno longer silently deletes a re-extracted file's fresh nodes when that file is also passed inprune_sources(#1796, thanks @erichkusuki). A file present innew_chunksis being replaced, not deleted, so it's now excluded from the prune set — "replace" wins over a contradictory "delete" of the same source. Previously, following the old edit-workflow (pass the changed file inprune_sources) deleted the just-built concept whenever an edit kept a node's label. Genuine deletions (a file inprune_sourcesbut notnew_chunks) still prune. -
Fix:
graphify pathresolves each endpoint to the first candidate whose label contains every query token, instead of blindly taking the top-scored node (#1785, thanks @CJNA)._score_nodes' full-query bonus only fires when the query equals/prefixes a label, so a query that is a token subset of the intended label ("Reject-everything judge"vs"Degenerate Reject-Everything Judge") got no bonus and a node prefix-matching one rare token could outscore it — anchoring the path on an unrelated, often disconnected node and yielding a false "No path found". When the top candidate already full-matches (the common case) the pick is unchanged. Applied to both thepathCLI and the MCP shortest-path tool; the close-runner-up ambiguity warning now fires only when the score head is what was actually picked. -
Fix: the report's "Suggested Questions" weakly-connected-node count now matches its "Knowledge Gaps" count (#1768, thanks @balloon72).
suggest_questions()omitted thefile_type != "rationale"filter thatreport.py's Knowledge Gaps section applies, so the sameGRAPH_REPORT.mdshowed two different numbers for the same concept (e.g. 757 vs 245), making a healthy graph look like it had a major documentation gap. Both computations now use the same filter. -
Fix: Bash scripts that run each other by execution now get a cross-file edge (#1756, thanks @balloon72).
extract_bashonly linkedsource x.sh/. x.sh; the two most common forms —bash x.shand./x.sh— produced no edge, so execution topology was missing. They now emit acallsedge (contextscript_invocation) to the invoked script's entry node when the target resolves to a real file on disk (script runnersbash/sh/zsh/ksh/dashand bare./x.sh), skipping missing or shadowed targets. -
Fix: Ruby
.rakefiles are now extracted and participate in Ruby cross-file resolution like.rb(#1784, thanks @krishnateja7)..rakeis plain Ruby but the extension was gated out of seven places (classification, extractor dispatch, the language-name/family maps, theruby_member_callsresolver's suffix set, both.rb-suffix filters inruby_resolution.py, and the build repo-tag map), so every rake task was skipped and its calls were invisible. All seven now include.rake;Widget.tallyfrom a.raketask resolves to its.rbdefinition. -
Fix: cross-module references to a function now resolve to its definition instead of dangling on a name-only stub (#1781, thanks @EmilNyg).
_rewire_unique_stub_nodesgated merge targets through_is_type_like_definition, which rejects any label ending in)— so function/method defs could never absorb their reference stubs, and "who references this function" returned nothing on the definition node while a sourceless stub held all the edges. Top-level function defs are now eligible rewire targets when the label match is globally unique, gated by a language-family match with the referrers (a Pythonget_dbreference can't bind to a unique Goget_db()) and excluding stubs used as a supertype (inherits/implements/extends— you don't inherit from a function). Types are unchanged.
0.9.12 (2026-07-10)
-
Fix: live PostgreSQL introspection (
--postgres) now emits foreign-keyreferencesedges under a read-only role (#1746, thanks @rithyKabir). The FK query readinformation_schema.referential_constraints, which is privilege-filtered — a role with only SELECT sees zero FK rows while tables/views/routines still appear, so everyreferencesedge silently vanished. It now reads the world-readablepg_catalog.pg_constraint(keyed by oid, which also fixes same-named constraints on sibling tables cross-matching in the old name-based joins), preserving composite-FK column order viaUNNEST ... WITH ORDINALITY. -
Fix:
json_configno longer emitsimports/extendsedges to node IDs it never creates (#1764, thanks @oleksii-tumanov).package.jsondependencies andtsconfig.jsonextends/$reftargets produced edges whose endpoint node was absent, sobuild_from_jsonsilently dropped them (the "no matching node id" case is filtered out of real errors) — losing dependency/extends structure on two of the most common files in any JS/TS repo. The extractor now creates the referenced target as aconceptnode before adding the edge. -
Fix:
graphify updateno longer deletes semantic hyperedges on every run (#1755, thanks @oleksii-tumanov). The AST-only rebuild treated every rebuilt corpus file as grounds to evict hyperedges anchored to it, but the AST pass never re-emits hyperedges, so doc-sourced hyperedges (exactly what semantic extraction produces) were permanently lost on the firstupdateafter a full build — even a no-op run. Hyperedge eviction is now scoped to genuinely deleted (or symlink-outside) sources, mirroring node/edge handling; replacement-by-id and dangling-member cleanup are unchanged. -
Fix: Java member calls resolve against the receiver's declared type instead of a bare method-name match (#1696/#1697, thanks @oleksii-tumanov).
gw.charge()wheregw: PaymentGatewaynow binds toPaymentGateway.charge, not a same-namedAuditLog.chargein another file. Explicit-type receivers andthisare exact; current-class fields, method parameters, and explicitly-typed locals resolve via a method-scoped type table; a missing, ambiguous, inherited, or chained receiver is skipped rather than guessed (same god-node guard as the C#/Swift/Ruby resolvers). Fully-qualified and nested-type receivers are deferred (they need package/nesting-aware type identity). -
Fix: output/cache artifacts no longer land in the scanned corpus or CWD when
--out/--graphpoint elsewhere (#1747, thanks @bbqboogiedwonsen).extract <corpus> --out <dir>correctly wrote the graph to<dir>butdetect()'s word-count/stat-index cache still created a straygraphify-out/cache/inside the corpus (it uses the scan root); it now honors the--outdir via a threadedcache_root. Andcluster-only --graph <elsewhere>/graphify-out/graph.jsonwroteGRAPH_REPORT.md/labels/analysis/re-clustered graph to the CWD instead of beside the input; it now writes beside--graphwhen that graph lives in agraphify-out/dir, while still restoring into the CWD for an archivedbackup/graph.json(#934). -
Fix:
imports/referencesedges no longer bind across a language boundary (#1749, thanks @philberndt). The spec already forbids cross-languagecalls, but an unresolved Pythonimport timecould still resolve by bare stem onto asrc/time.tsfile node — welding a polyglot repo's halves together at a phantom edge (in the reporter's repo, 3 such edges were the only thing bridging 2409 Python nodes to 1403 TS nodes, inflatingtime.tsbetweenness ~90x and making it the #1 "god node"). The build-time cross-language guard now coversimports/imports_from/referencesin addition tocalls, dropping an edge only when both endpoints are known code languages of different interop families (so a config/manifest → code reference is untouched). -
Fix: files whose extractor bailed out for a missing optional dependency no longer vanish without a trace (#1745, thanks @rithyKabir).
.sqlfiles (and other extra-gated languages) have a dispatch entry, so the #1689 no-extractor warning can't fire, andextract_sqlreturns an error result whentree-sitter-sqlis absent, so the #1666 zero-node warning skips it too — the graph built "successfully" while an entire SQL corpus contributed nothing.extract()now surfaces these grouped by extension, naming the extra that restores the language (e.g.pip install "graphifyy[sql]"). -
Fix:
build_from_jsonis deterministic across process runs again (#1753, thanks @erasmust-dotcom). The ghost-node merge iteratedset(G.nodes()), so which node survived a(basename, label)collision depended on CPython's per-process string-hash seed — rebuilding the same extraction JSON in a fresh process could silently pick a different canonical id (breaking the cluster→relabel workflow with aKeyErroron an id that vanished). The Pass 1/Pass 2 loops now iterate in sorted order. Additionally, two non-AST (semantic) nodes sharing a key but from different files are now treated as distinct concepts and both survive (mirroring the AST/AST ambiguity guard #1257) instead of one arbitrarily merging away; a genuine same-file duplicate still collapses. -
Fix: a Java field/parameter/return-type reference to a class whose simple name is shared by two modules no longer dangles on a sourceless phantom node (#1744, thanks @aviciot). Both same-named classes already survive as distinct path-scoped nodes, but the cross-module
referencesedge was left pointing at a bare no-source stub because_resolve_java_type_referencesre-pointedimplements/inherits/importsbut notreferences— so a query about the referenced class could miss it. The Java resolver now disambiguatesreferencesby the importing file'simportstatement (falling back to same-package), mirroring the C# resolver, and drops the orphaned phantom.
0.9.11 (2026-07-08)
-
Fix: file enumeration no longer silently drops a directory subtree.
detect()'sos.walkhad noonerrorhandler, so anos.scandirfailure (a permission error, or a directory created/deleted mid-walk by concurrent writes) was swallowed and that whole subtree vanished from the scan with no log, yielding a silently partialgraph.json. The walk now records every skipped directory (surfaced in the result'swalk_errors) and warns to stderr, while still enumerating the rest. Relatedly,to_json's anti-shrink guard (#479) now fails safe: a non-empty but unreadable existinggraph.jsonrefuses the overwrite (passforce=Trueto override) instead of silently clobbering a good graph; an empty file still proceeds. -
Fix: Pascal/Delphi extractors no longer emit duplicate
method/contains/inheritsedges. A class method declared in the interface section and defined in the implementation section each emitted an edge to the same node, so ~half of a Pascal graph's method edges were doubled (skewing degree/centrality and tripping the new cross-file resolver's god-node guard). Both extractors now dedup edges on (source, target, relation), mirroring the existing node dedup. -
Fix: Pascal/Delphi call resolution is scoped to the caller's class + inherits chain, and calls to methods inherited across file boundaries now resolve (#1739, thanks @richtext). Both extractors previously resolved every call via a single file-wide
{name: node_id}dict, so two unrelated classes with a same-named method (property accessors, generated COM/TLB wrappers) collapsed onto whichever was inserted last, producing wrong cross-classcallsedges. Resolution now walks own-class then ancestor chain then file-level free functions, emitting no edge when ambiguous (same god-node guard as the Ruby resolver). A new corpus-wide resolver (graphify/pascal_resolution.py) resolves calls from a descendant to a base-class method declared in a different file (the common generated-base/manual-descendant split). Also stops emitting a duplicate cross-file base-class stub carrying the wrongsource_file. -
Fix: query ranking no longer lets a lone generic term that exact-matches a short leaf label hijack seed selection in multi-term queries (#1602/#1724, thanks @fkhawajagh).
_score_nodesscales the per-term exact/prefix tiers by squared term coverage; single-term and full-coverage queries are unchanged. -
Fix: Kotlin enum entries are extracted as nodes with
case_ofedges to their enum (#1700, thanks @ivanzhilovich). Closes the Kotlin half of #1700 (the Java half shipped in 0.9.10 via #1719);enum class ChatType { NORMAL, GROUP, SYSTEM }now yields NORMAL/GROUP/SYSTEM nodes and "where is ChatType.X used" works for Kotlin. -
Fix: SKILL.md's POSIX interpreter probe no longer silently falls back to a graphify-less system python (#1735, thanks @mohammedMsgm). Step 1 ran
uv tool run graphifyy python -c ..., but thegraphifyypackage's executable isgraphify, so uv treatedpythonas a missinggraphifyycommand;2>/dev/nullhid uv's own--fromhint, leavingPYTHONon an interpreter without graphify. The probe now runsuv tool run --from graphifyy python -c .... The PowerShell path was already correct. -
Refactor: decomposed the two largest modules into focused, single-responsibility modules — verbatim moves only, every original import path preserved via re-exports, no behavior change (#1737, thanks @TPAteeq).
extract.py17,054 → 4,740 LOC (the tree-sitter engine, cross-file resolution, shared models, and 23 language extractors moved undergraphify/extractors/),__main__.py5,368 → 673 (install/uninstall + CLI dispatch split intographify/install.pyandgraphify/cli.py),export.py1,671 → 962 (HTML + graph-DB exporters undergraphify/exporters/). Full suite unchanged. -
Fix:
merge-graphsgives each input a distinct repo tag so same-stem nodes from different source graphs don't collapse (#1729). Two graphs under a same-named repo dir (src/graphify-outandfrontend/src/graphify-out, both →src) shared thesrc::prefix, so a backendsrc/app.jsand a frontendApp.jsx(both bareapp) merged into one node with edges from both — false cross-runtimepathresults. Colliding tags are now widened (frontend_src) with an index-suffix backstop, and the command prints a note when it disambiguates. -
Fix:
uninstallremoves the graphify hook/section from Claude's local-only files too (#1731, thanks @TPAteeq). It now cleans.claude/settings.local.jsonand bothCLAUDE.local.mdlocations in addition to the standard files, via bothgraphify uninstallandgraphify claude uninstall. -
Feat:
graphify extract --code-onlyindexes code (local AST, no API key) and skips the doc/paper/image semantic pass, so a mixed repo no longer hard-fails when no LLM backend is configured (#1734). Reports what it skipped; the no-key error now points users at the flag.
0.9.10 (2026-07-08)
- Fix: TS/JS member calls on a builtin-typed receiver no longer collapse onto a same-named user symbol (#1726).
_resolve_typescript_member_callsmatched a receiver's type to a definition by casefolded label, sox: Date; x.getTime()bound the caller to a userclass DATE/const DATEin another file — inventing hundreds of phantomreferencesedges and a false god node. Builtin-global receiver types (Date,Promise,Map, ...) are now skipped, mirroring the cross-file call guard; genuine user types are unaffected. - Fix: never bind a cross-file
callsedge to a definition in a different language family (#1718, thanks @edinaldoof). Name-only matching resolved a TSX callback passed by name to a same-named Kotlin method (and a Python call to a Kotlin fun) — phantom edges the spec forbids. Candidates are now filtered by interop family (JVM, native C-family, JS/TS module graph, ...); unknown families stay permissive. - Fix: an ambiguous legacy-stem alias in
build_mergeno longer silently merges two unrelated files (#1713, thanks @mallyskies). The#1504old-stem alias (ping.h/ping.php→ bareping) resolved by hash-order, riding a dangling edge onto an arbitrary same-named file. Aliases are now committed only when exactly one file claims them; a salted.h/.cppfile node is recognized as its own claimant so a genuine collision stays ambiguous (and dropped) instead of picking a wrong winner. - Fix: inline base-class stubs are tagged with
origin_file(#1707, thanks @mallyskies). Five inheritance handlers built cross-file base-class stubs withoutorigin_file, so same-named bases across files collapsed onto one shared stub that could then merge with an unrelated real class (218 wronginheritsedges observed). They now route throughensure_named_node, which sets the tag. - Fix: Java enum constants are extracted as nodes with
case_ofedges to their enum (#1719, thanks @ivanzhl). Closes the Java half of #1700;affected ErrorCode/ "where is ErrorCode.X used" now works for Java. - Fix:
graphifyrebuilds recover from a deleted hook working directory instead of crashing (#1703, thanks @FranciscoJSBarragan). A detached git hook can inherit a CWD that no longer exists; the rebuild now recovers viaGRAPHIFY_REPO_ROOTor fails cleanly instead of raisingFileNotFoundError. - Feat: the semantic cache is checkpointed per chunk so an interrupted extraction resumes instead of restarting (#1715, thanks @A-Levin). Each completed chunk is unioned into the cache immediately (opt out with
GRAPHIFY_NO_INCREMENTAL_CACHE); the final write still overwrites authoritatively. - Docs:
SECURITY.mdno longer claims stdio-only now that an opt-in--transport http(binds127.0.0.1by default) exists (#1714, thanks @Thizeidler); added tests forGRAPHIFY_MAX_GRAPH_BYTESparsing and corrected its unit docstring to binary MiB/GiB (#1722, thanks @Cekaru).
0.9.9 (2026-07-07)
- Fix:
graphify explainresolves an exactly-typed punctuated label symmetrically againstnorm_label(#1704). The search term tokenized on\w+("blockStream.ts" -> "blockstream ts", space where the '.' was) while a node's storednorm_labelkeeps punctuation ("blockstream.ts"). The verbatim case was already rescued by the tokenized-label tier, but that broke if a node'slabelandnorm_labeldiverged; a punctuation-preservingnorm_queryis now matched againstnorm_labelacross the exact/prefix/substring tiers (and fed to the trigram prefilter), so it is robust by construction. - Fix: code files with no AST extractor are surfaced instead of silently dropped (#1689, thanks for the precise root-cause).
.r/.R(also.ejs,.ets) are inCODE_EXTENSIONSso they are counted as code, but there is no extractor for them, so they produced zero nodes with no warning.extractnow prints a grouped warning ("N file(s) are classified as code but graphify has no AST extractor ...: .r (17)"). Adding a realtree-sitter-rextractor remains a follow-up. - Fix: the AST-extraction progress line keeps a consistent denominator to the end (#1693). Intermediate lines counted against
len(uncached_work)but the final line switched tototal_files(which includes cached hits and no-extractor files), so on a large corpus the count appeared to jump upward right after 99%. Both the parallel and sequential final lines now use theuncached_workdenominator. - Fix:
GRAPH_REPORT.mdno longer emits dangling[[_COMMUNITY_*]]Obsidian wikilinks by default (#1712). The_COMMUNITY_*.mdnotes those links target are only created by the opt-in--obsidianexport, and the report is written at build time before any export, so on a default run every link dangled (spawning phantom nodes in a vault's graph view, literal brackets elsewhere). The Community Hubs section now renders as plain text by default; the wikilink form is behind anobsidian=Trueopt-in. - Fix:
.mfiles are no longer force-parsed by the Objective-C grammar when they are MATLAB (#1702, thanks @catalystdream for the diagnosis)..mis shared by Objective-C and MATLAB, but the dispatch routed every.mtoextract_objc, which turned real MATLAB into garbage nodes/edges..mis now content-sniffed like.h: a genuine Objective-C.m(with@implementation/@interface/@import/#import) still routes toextract_objc; a MATLAB.mgets no extractor and is surfaced by the #1689 warning rather than mis-parsed..mmis unchanged (unambiguously Objective-C++). A realtree-sitter-matlabextractor remains a follow-up. - Fix: the
/graphifyusage comment in the skill files no longer claims a bare/graphifyproduces an Obsidian vault by default (#1681, thanks for the audit). It now reads "full pipeline on current directory (HTML viz; add--obsidianfor a vault)", matching Step 6. Fixed at the skillgen source so every generatedskill-*.mdvariant carries the corrected comment. - Feat: files graphify sees but cannot classify are surfaced instead of vanishing (#1692). Extensionless, non-shebang project files (Dockerfile, Gemfile, Makefile, Rakefile, LICENSE, ...) and unsupported extensions previously left no trace at all.
detectnow collects them into anunclassifiedlist, andgraphify extractreports "N file(s) not classified (no supported extension or shebang), skipped: ...". Actually extracting Dockerfile/Makefile-style content remains a follow-up.
0.9.8 (2026-07-06)
- Fix: the Claude Code / Codebuddy
PreToolUseand Gemini CLIBeforeToolgraph-nudge hooks now work on Windows (#522). The hooks were inline POSIX bash (case/esac,[ -f ], single-quotedecho), which Windows cmd.exe/PowerShell cannot parse — so on Windows the hook failed silently, no "rungraphify querybefore grepping/reading raw files" context was injected, and users had to invoke/graphifyby hand. The detection logic (grep-command match, source-file extension match, skip-if-under-output-dir, graph-exists check) moved into a shell-agnosticgraphify hook-guard <search|read>subcommand invoked via the absolute exe path (the same pattern the codex hook already uses), so the hook parses and runs identically on Windows, macOS, and Linux. Behavior on macOS/Linux is unchanged (byte-identical nudge payload); the graph path now also honorsGRAPHIFY_OUT. The GeminiBeforeToolhook got the same treatment (graphify hook-guard gemini), which also removes its dependency on a barepythonbeing on PATH. Codex stays a no-op there because Codex Desktop rejectsadditionalContext. - Fix:
--update-style section writes toCLAUDE.md/AGENTS.mdno longer corrupt or drop content (#1688, thanks @bdfinst)._replace_or_append_sectionlocated its managed block by substring (marker in content) andnext(... if marker in line), so a heading that appeared as a substring of another line (or duplicate headings) matched the wrong offset and the rewrite could truncate the file. It now matches the section heading exactly (line.strip() == marker), appends when absent, and prefers the last exact match when several exist, so unrelated content is preserved. - Fix: token estimation no longer crashes on files containing tiktoken special-token text like
<|endoftext|>(#1685, thanks @Kyzcreig)._TOKENIZER.encode(content)raisesValueErrorby default when the text contains a special token, which aborted packing on docs/corpora that merely mention these strings. Bothencodesites now passdisallowed_special=()so such text is tokenized as ordinary bytes. - Fix: the Ollama backend no longer multiplies a hang by the retry count (#1686, thanks @Kyzcreig). A stalled local model would wedge for
timeout * (max_retries + 1), which with the default 6 retries turned one long stall into a very long one. Ollama now defaults to zero client-side retries (a local model that stalls will not un-stall on retry); setGRAPHIFY_MAX_RETRIESto opt back in. Other backends are unchanged. Note: the underlying stall is non-deterministic and driven by the model server, so this bounds the wait rather than eliminating the hang. - Fix: a truncated or slightly malformed community-labeling reply no longer discards the whole batch (#1690, thanks @vdgbcrypto).
_parse_label_responsenow salvages the complete"id": "name"pairs from a reply that failed a strictjson.loads(e.g. a reply truncated mid-object), raising only when no pairs can be recovered. The per-batch token budget was also raised (256 + 48*n, was64 + 24*n) to give models that prepend a short preamble enough headroom to finish the JSON. The exact provider truncation in the report could not be reproduced without a live key; the parser and budget fixes address the mechanism. - Fix: cluster-only mode now reports the real token cost of community labeling instead of a hardcoded zero (#1694, thanks @sub4biz). The labeling LLM calls were never accounted for, so
GRAPH_REPORT.md's "Token cost" line always read0 input · 0 outputin cluster-only runs._call_llmnow accumulates per-response usage into an optional accumulator that is threaded through the labeling path and surfaced in the report. Backends that do not return usage (the Claude Code CLI) still contribute nothing, which is honest rather than estimated. - Docs/Feat:
deepseek-v4-flash(andv4-pro) have thinking ENABLED by default; graphify no longer implies otherwise and adds an opt-inGRAPHIFY_DISABLE_THINKING=1toggle (#1621, thanks @sub4biz for the empirical testing). Disabling thinking removes a rare reasoning-leak failure mode (which the adaptive extraction/labeling retry already recovers from) but, measured on real corpora, trades it for more frequent benign truncation and measurably lower extraction quality and file coverage — so it stays a documented user choice rather than a forced default. The stale "non-thinking" comment on the built-in deepseek config is corrected. The moonshot (kimi) branch is unchanged (it must disable thinking or content comes back empty). - Fix: source files are no longer silently dropped during discovery by two over-broad filters (#1666, thanks @krishnateja7 for the precise root-cause). (a) A bare
snapshots/directory was pruned as a Jest/Vitest artifact, which killed legitimate code namespaces like a Railsapp/services/snapshots/; it is now pruned only when it actually contains.snapfiles or sits directly under a JS test root (__snapshots__stays unconditionally pruned). (b)_is_sensitivedropped files on a bare name-keyword hit (device_token.rb,passwords_controller.rb) even whenclassify_filehad already resolved them to source code; a genuine programming-language source file is now exempt from the weak keyword heuristic, while real secret stores in data/config formats (credentials.json,secrets.yaml,.env,.pem, ...) are still caught. This is the discovery-layer fix; the 0.9.7 no-cache-on-empty change could not surface these because the files never reached extraction.
0.9.7 (2026-07-06)
- Fix: Java standard-library types are no longer emitted as
referencesnoise (#1603, thanks @NydiaChung). A_JAVA_BUILTIN_TYPESskip list now suppresses ubiquitousjava.lang/java.util/java.io/java.time/java.math/java.nio.filetype names (String,List,Map,Optional,Integer,Exception, ...) at the type-ref walker; they never resolve to a project node, so edges to them were pure noise (mirrors_GO_PREDECLARED_TYPES/_PYTHON_ANNOTATION_NOISE). Nested user-type generic arguments still resolve:List<Item>drops theListedge but keepsItem. - Feat: added a
pascaloptional extra for AST-quality Pascal/Delphi extraction (#1616, thanks @vinicius-l-machado).extract_pascalalready used tree-sitter-pascal when present (with a regex fallback), but the grammar was never declared in the package metadata, so the AST path never ran out of the box.uv tool install "graphifyy[pascal]"now opts into it (also included in[all]); tree-sitter-pascal ships prebuilt wheels for every platform, so no C toolchain is needed. On a mid-size Delphi codebase the AST path yields notably more accuratecalls/inheritsedges than the regex fallback. - Feat: JS/TS rationale comments and ADR/RFC citations are now extracted (#1599, thanks @niltonmourafilho-arch). Python already turned
# NOTE:/# WHY:/# HACK:comments and docstrings intorationalenodes, but JS/TS comments were discarded.extract_jsnow runs the same post-pass:// NOTE:-style and block-comment rationale becomerationalenodes withrationale_foredges, andADR-NNNN/RFC NNNNcitations becomedoc_refnodes withcitesedges from the file, closing the code-to-design-doc gap in mixed corpora at zero LLM cost (pure line scan). Files with no such comments are unaffected. - Fix: extensionless executables with a shebang (CLI entry points like
devctl,manage) are now extracted (#1683, thanks @Stashub).detectalready classified a#!/usr/bin/env bash/python/node/... file as code, but_get_extractordispatched on the suffix alone and returned nothing, so the file was silently dropped from the graph and its doc-referenced symbols stayed dangling stubs. Extensionless files now resolve their extractor from the shebang interpreter (_SHEBANG_DISPATCH), mirroring detection. Only interpreters with a real extractor are mapped (python, bash-family, node, ruby, lua, php, julia); others (perl, fish, Rscript) stay skipped rather than mis-parsed by a wrong grammar. - Feat: Ruby
include/extend/prepend <Module>now emits amixes_inedge to the module (#1668, thanks @krishnateja7). Concerns/mixins are the composition mechanism in Rails, but they produced no edges, so the blast radius of editing a shared concern was invisible toaffected. A constant-argument mixin inside a class or module body now resolves to the module node (reusing the #1634 candidate logic and the #1640 module nodes, under the single-owner guard) and emitsClass --mixes_in--> Module, whichaffectedalready traverses.extend selfand non-constant arguments are skipped; an ambiguous or undefined module produces no edge. - Feat:
affected <Class>now reaches callers that bind to the class's method nodes (#1669, thanks @krishnateja7). Since #1634 bindsService.callprecisely to thedef self.callmethod node, a class-levelaffectedquery missed those callers becausemethod/containsare (correctly) not general-traversal relations. The reverse walk now seeds from the root's own member nodes (onemethod/containshop outward) so method-bound callers are reachable from the class, with no change to the general traversal (no forward noise) and the member nodes themselves are not reported as hits. - Fix: capitalized/mixed-case file extensions are no longer silently skipped (#1671, thanks @raman118).
collect_filesand_get_extractormatched suffixes case-sensitively, soApp.PY,script.JS,Lib.Ts, etc. fell through and were never extracted. Suffix matching now falls back to the lowercased form for both file discovery and extractor dispatch (including.blade.php); an unsupported extension like.xyzis still skipped. - Fix: the virtual PostgreSQL
source_fileURI no longer gets backslash-mangled on Windows (#1672, thanks @raman118).introspect_postgresbuilt the syntheticpostgresql://host/dbpath withPath, which rewrites/to\on Windows; it now usesPurePosixPathso the URI stays forward-slashed on every platform. - Fix: a deferred
import(...)no longer manufactures a phantom file cycle (#1241, thanks @Synvoya). Dynamic imports are real dependencies but not static ones, so two files that reference each other via one static import plus one dynamic import were reported as a circular dependency. The dynamic-import edge stays in the graph (markeddeferred) but is excluded fromfind_import_cycles. - Fix: an extractable source file that produces zero nodes is no longer cached, and is surfaced with a warning (#1666, thanks @krishnateja7). Every supported file yields at least a file node, so a zero-node result is anomalous (a transient batch/parallel hiccup). Caching it made the empty byte-stable across runs and silently blinded
affected/explainto and through the file. The cache write is now skipped for a zero-node result so a rerun self-heals, andextractwarns when an accepted source file lands in the graph with no nodes. This addresses the persistence and the silent blindness; if the underlying zero-node extraction still reproduces on a specific corpus, the warning now makes it visible to report. - Fix: the Windows skill variant now declares
name: graphifyinstead ofname: graphify-windows(#1635, thanks @ray8875).graphify install --platform windowswrites the variant to~/.claude/skills/graphify/SKILL.md, but Claude Code requires the skill folder name to equal the frontmattername, so the-windowssuffix broke discovery/validation. The variant suffix is a packaging detail, not part of the skill's identity. - Fix: the OpenCode plugin joins its reminder to the user's command with
;instead of&&(#1646, thanks @gonaik). Windows PowerShell 5.1 rejects&&as a statement separator (not a valid statement separator), so the first bash command of every OpenCode session on Windows failed.;works in PowerShell 5.1, Bash, and POSIX shells. (Both the OpenCode and Kilo plugin templates are fixed.) - Fix: the
GRAPH_REPORT.md"Import Cycles" section is now emitted only when the graph contains code (#1657, thanks @Ns2384-star). On a documents-only corpus there are no imports, so the section was pure noise ("None detected") on every run; it is now conditioned on code nodes or import edges being present. (The same report also confirms the mojibake and stdout-encoding items in that issue are already addressed on the current branch: manifest.json andGRAPH_REPORT.mdare written UTF-8, and the CLI reconfigures stdout/stderr to UTF-8 witherrors="replace".) - Fix: a modified
.docx/.xlsxnow re-enters--update(#1649, thanks @Ns2384-star).detect_incrementaltracks the converted markdown sidecar, andconvert_office_fileearly-returned whenever the sidecar already existed — so an Office source edited after its first conversion never updated its sidecar and was reported "unchanged" forever, freezing the graph on a living docs corpus. The sidecar is now re-converted when the source is newer than it (which bumps the sidecar's mtime/content so the incremental hash check picks it up); an unchanged source still skips the rewrite so it never churns (#1226). - Fix: files whose absolute path exceeds Windows' 260-char limit are now hashed (#1655, thanks @Ns2384-star).
_md5_file/save_manifest/count_wordsused plainopen()/stat(), which the Windows file APIs reject for long paths unless prefixed with the extended-length marker\\?\— so deeply-nested files (accented, deep folders) never hashed, their manifest entry never stabilized, anddetect_incrementalre-flagged them as changed on every run. Change-detection I/O now prefixes long absolute paths on win32 (mirroring the normalizationcache.pyalready applied to cache keys). No-op on other platforms. - Perf: word counts are cached against each file's stat signature (#1656, thanks @Ns2384-star).
detect()counted words in every PDF/docx/text file to size the corpus, re-opening and re-parsing every binary on each run — minutes on a large docs corpus even when only a few files changed. Counts are now memoized in the existing content-hash stat index (keyed by size + mtime), so an unchanged file is parsed once and read from the index thereafter; incremental detection drops from O(corpus) parsing to O(changed). - Fix: a JS/TS call with no local definition and no import no longer binds to a same-named export in an unrelated package (#1659, thanks @leonaburime-ucla). When a callee had exactly one same-named definition repo-wide, the cross-file resolver emitted a
callsedge at INFERRED/0.8 even with no import path between the two files. On a monorepo this fabricated dependencies: a 14-package repo showedplatformandsidecardepending onregistry-protocolpurely because it exported generically-named symbols (*Schema, etc.) that unresolved calls collapsed onto. JS/TS modules have no implicit cross-module scope, so a cross-file call is real only if the caller imported it — direct JS/TS cross-filecallsattribution is now gated on import evidence and left unresolved otherwise. Other languages keep the single-candidate resolution (C/C++ headers, Ruby autoload, same-package implicit scope legitimately call across files without an explicit import), and theindirect_callpath (already INFERRED and callable-gated) is unchanged. As part of the fix, caller→file mapping for import-evidence now uses the raw call'ssource_filestring, so a path-resolution/symlink mismatch can no longer spuriously fail evidence and mislabel a real cross-file call.
0.9.6 (2026-07-04)
-
Fix: Ruby plain modules and
Struct.new/Class.new/Data.defineconstant assignments now get container nodes (#1640, thanks @krishnateja7). The extractor only created nodes forclass Foo, somodule Foo(utility/module_functionmodules),Foo = Struct.new(...) do ... end,Foo = Class.new(StandardError), andResult = Data.define(...)produced no node at all — their methods hung off the file viacontainswith dot-less labels, and no edge could ever target them.moduleis now a container type (methods attach viamethodlike a class, nested modules included), and a constant assignment whose RHS is one of those factories synthesizes a class node named after the constant, attaches block-defined methods to it, and emits aninheritsedge forClass.new(Super). Plain constant assignments (MAX = 100,X = Foo.new) are untouched. -
Fix: Ruby constant-receiver singleton calls now resolve cross-file (#1634, thanks @krishnateja7).
Service.call,Model.where,SomeJob.perform_async— the dominant Rails idiom — emitted nocallsedge, so with Zeitwerk autoloading (norequires) a Rails app had essentially no cross-file edges andaffected/pathcame up empty.resolve_ruby_member_callsnow handles a capitalized (constant) receiver with any callee: it binds to the class's singleton/instance method when one is owned (def self.call, which the extractor indexes), else to the class node itself so inherited/dynamic class methods (ActiveRecordwhere/find_by) still give correct blast-radius. Namespaced receivers (Billing::Processor.call) resolve by the bare class name. The single-owning-class god-node guard is kept throughout — an ambiguous receiver resolves to nothing rather than a wrong edge. -
Fix: Apex
interface X extends A, Bnow emits anextendsedge per parent (#1645, thanks @Synvoya). The interface regex captured the parent list in group 2, but the handler only read the interface name (group 1), so multiple-inheritance parents were dropped and only thecontainsedge survived. The interface branch now iterates the parent list and resolves each the same way the class branch already does. -
Fix: Kotlin interface delegation (
class Foo : Bar by baz) now emits theimplementsedge (#1644, thanks @Synvoya). Thebyform wraps the delegated interface in anexplicit_delegationnode, so neither theconstructor_invocationnor the bareuser_typebranch fired and the edge was silently dropped. The delegation-specifier loop now unwrapsexplicit_delegationto itsuser_type(generic-argument recovery still runs), so idiomatic Kotlin delegation shows up in the graph. -
Fix: a malformed semantic chunk no longer crashes
extractand discards every successful chunk (#1631, thanks @ssazy). When an LLM returned a well-formed object whoseedges(ornodes/hyperedges) array carried a stray non-dict entry — a nested list where an edge object belongs — the AST+semantic merge and the semantic-cache write both called.get()per entry and raisedAttributeError: 'list' object has no attribute 'get'. On a 34-chunk run where 33 succeeded, that meant nograph.jsonwas written and the cache write failed too, so a re-run re-extracted everything._parse_llm_jsonnow sanitizes each fragment at the single parse chokepoint (keeping only dict entries and coercing a non-list value to[]), so the cache writer, the adaptive-retry merge, and the CLI merge are all protected in one place. -
Fix: an unresolved bare npm import no longer aliases onto an unrelated same-named local file (#1638, thanks @EveX1).
import colors from "tailwindcss/colors"in a.tsxfile emitted animports_fromedge to the bare idcolors, and build.py's pre-migration alias index (which registers every local file's bare stem) then remapped it onto an unrelatedbackend/utils/colors.py— a confident (EXTRACTED) cross-language phantom edge, and one per.tsxfile sharing the import. In a real monorepo eight unrelated.tsxfiles all landed on a single Python module. Common package subpaths (colors,utils,types,config,client) collide this way constantly. The external-import fallback now namespaces its target with therefprefix (the same J-4 convention used for tsconfigextends/$refexternals), so it can never collapse to a local file/symbol id; the ref-namespaced target has no node, so build drops it as an external reference — the correct outcome for a third-party import. -
Fix:
graph.jsonnode/edge ordering is now stable run-to-run for document/semantic corpora (#1632, thanks @umeshpsatwe). With a parallel LLM backend,extract_corpus_parallelmerged chunk results in completion order, so which network call happened to return first reordered the nodes and edges even when the model returned identical content — churninggraph.jsonbetween otherwise-identical runs. Chunks are now merged in deterministic submission order after the pool drains (matching the serial path); the progress callback still fires in completion order so long local runs aren't silent. Note: the semantic content the LLM extracts is itself nondeterministic run-to-run — this fix removes the pipeline's own ordering churn, not the model's variance. -
Fix:
graphify export obsidianno longer crashes into_canvason a dangling community member (#1236 follow-up, thanks @swells808). The original #1236 fix guardedto_obsidianbut notto_canvas, so a community member id with no backing node in the graph still raisedKeyErrorwhile writinggraph.canvas— after the notes had exported, leaving a partial mirror.to_canvasnow applies the same dangling-member filter (m in G and m in node_filenames) in both the box-sizing and card-layout loops. -
Feat: TS/JS member calls on a local
newbinding or a type-annotated parameter now resolve (#1630, thanks @DanielC000).const s = new Svc(); s.doThing()and a call on a typed param — including inside a returned closure ((svc: Svc) => () => svc.doThing()) — now emitcallsedges to the receiver type's method, soaffectedno longer silently under-reports. Extends the #1316this.fieldresolver: the per-file type table now also learns localnewbindings and bare-typed parameters, andwalk_callsdescends into inline/returned closures (attributing their calls to the enclosing function) instead of stopping at the arrow boundary. Resolution keeps the single-definition guard; an untyped or non-bare-typed (array/union/generic) receiver produces no edge. -
Fix: the
queryreference doc's inline vocab/fallback snippets now read and write files withencoding="utf-8"(#1619 A2, thanks @edtrackai). On Windows (default cp1252) the bareread_text()/write_text()calls crashed on exactly the cross-language corpora the doc demonstrates (e.g. Cyrillic labels likeобработчик). Fixed across all generated skill variants. -
Fix:
graphify update/watchno longer leaves stale sources after a deletion or a destination-only rename (#1623 / #1622, thanks @oleksii-tumanov). When the last supported file was deleted, or a rename reported only its destination inchanged_paths, the removed source's nodes lingered ingraph.json. The rebuild now reconciles extractor-backed sources against the files still present (code and document sources, subdirectory roots, legacy markers, symlinks, hyperedges) while preserving semantic and out-of-scope records. -
Fix:
graphify queryguarantees per-term BFS seed diversity (#1596 / #1445, thanks @nokternol). A multi-term natural-language query could collapse to one seed when a single term hit an exact label match on an otherwise-unrelated node (_EXACT_MATCH_BONUSoutscores substring matches ~1000×), and the 20%-gap seed cutoff then discarded every other term's seeds — so BFS explored only the incidental match's neighborhood._pick_seedsnow also seeds the best match for each distinct query term (ties broken by graph degree), so one term's incidental collision can't starve out the others. Partially addresses the seed-hijack in #1602. -
Fix:
extractno longer crashes during final graph assembly when a node'ssource_fileequals the scan root (#1618, thanks @sub4biz). Such a node (e.g. a project-level semantic concept the LLM attributed to the whole repo) relativized toPath('.'), and_file_stem'spath.with_suffix("")raisedValueError: '.' has an empty name— crashing after all LLM extraction cost was spent and writing nograph.jsonat all._file_stemnow returns""for a name-less path, and_semantic_id_remapskips the root-equal node (it has no per-file identity to remap, so its id is left untouched). Not a 0.9.5 regression — the latent code was hit only when dedup happened to produce a root-source_filenode. -
Feat: C# receiver-typed member-call resolution (#1609, thanks @JensD-git).
recv.Method()whererecvis a typed field, property, parameter, or local now resolves to the receiver type's method. C# previously had no member-call resolver, so the bare method name matched any same-named method in the corpus —_server.Save()silently mis-bound to an unrelatedCache.Save()(a wrong edge, not just a missing one), leaving delegation-heavy call graphs blind across typed boundaries. The receiver is now typed from a per-file field/property/param/local table (incl.var v = new T()) and resolved with the single-definition god-node guard;this.M()binds to the enclosing class andType.M()to the named type. An untypable receiver (e.g.dynamic) or a method absent on the type produces no edge — precision over recall, matching the Swift/C++/Python resolvers. -
Fix:
graphify cluster-onlynow writes.graphify_analysis.jsonalongsidegraph.json(#1617 / #1610, thanks @sanmaxdev). Without it, a re-cluster left a stale/absent sidecar and a laterexport htmlsilently reported "Single community". The sidecar now carries communities/cohesion/gods/surprises/questions, matching the full extract path. -
Fix:
.mts/.cts(TypeScript module extensions) are now treated as TypeScript (#1607, thanks @ashmitg). They were missing from the code-extension set and the JS/TS language maps, so.mts/.ctssources were detected as non-code and silently skipped. -
Fix: four TS/JS extractor gaps (#1615, thanks @papinto). Generator functions (
function*) now register as callables;namespace/module/declare modulecontainers become queryable nodes; and the TS import-equals form (import x = require("./m")) now emits an import edge (its module string nests in animport_require_clausethe direct-child scan missed). -
Fix: symlinked extraction inputs are contained to the scan root (#1613, thanks @Tok6Flow0). Symlink-directory following is now explicit opt-in, and resolved corpus paths must stay under the scan root before detection, AST collection, and LLM/image reads — an in-corpus symlink pointing outside the selected root is skipped rather than silently indexed. In-root symlinked sub-trees still work.
-
Fix: the
claude-clibackend no longer stalls on an infinite chunk bisection under newer Claude Code CLIs. The extraction schema was delivered via--system-promptwith only the raw file dump in the user turn, on the assumption that a replacement system prompt is the model's sole authority. Claude Code >= ~2.1 (verified on 2.1.197) does not honour that: it still layers in the local coding-agent context (CLAUDE.md/AGENTS.md in cwd, skills, MCP) and, given a user turn that is just a file with no request, replies conversationally ("I see the file, but there's no actual request attached — what would you like me to do with it?"). That prose parses to zero nodes/edges, so_response_is_hollowflagged it as truncation and the adaptive-retry path bisected the chunk indefinitely (94 → 47 → 23 → …), never converging and never writinggraph.json. The full extraction schema plus an explicit imperative now ride in the user turn and--system-promptis dropped, so the CLI emits the JSON object directly; the<untrusted_source>prompt-injection guardrails are carried verbatim and unchanged. Other_call_claude_clibehaviour (model override,--add-dirimage handling, timeout, token accounting) is untouched.
0.9.5 (2026-07-02)
- Feat: the MCP server can serve many projects from one process via an optional
project_pathon every tool (#1594, thanks @joanfgarcia). Omit it and nothing changes — the server answers against the graph it was started with. Pass an absoluteproject_pathand that call is routed to<project_path>/<GRAPHIFY_OUT>/graph.jsoninstead, with its own mtime+size hot-reload, so one stdio/HTTP server backs a whole workspace of repos. Graphs load lazily and cache per resolved path; a missing/corrupt project graph is a tool error, not a process exit, and the server starts even when its default graph is absent. Backward-compatible and additive. - Fix: Swift singleton cached into a local var now resolves later calls (#1604, thanks @jerryliurui).
let x = NetworkManager.sharedfollowed byx.fetchData()on a subsequent line produced zero call edges — locallet/varbindings inside method bodies weren't typed (only class-level properties and params were), and a static-member init (Type.shared, a navigation expression) wasn't recognized even where locals were typed. Method-body locals are now typed from both constructor (Type()) and static-member (Type.shared) initializers, sox.method()resolves to the receiver type via the existing single-definition guard. This singleton-into-local idiom is one of the most common Swift call patterns. - Fix: the skill's Python-interpreter detection now accepts Homebrew
python@3.xpaths (#1586, thanks @SUDARSHANCHAUDHARI). The shebang allowlist rejected any path with a character outside[a-zA-Z0-9/_.-], but Homebrew installs versioned Python underpython@3.13, so a valid interpreter containing@was skipped and detection fell through to a barepython3that lacked graphify (every step then failed withModuleNotFoundError).@is now allowed across all skill variants (matching the #473 hooks.py fix); injection characters are still rejected. - Fix:
graphify merge-graphsno longer crashes on inputs that disagree on graph type (#1606, thanks @AdrianRusan). Per-repograph.jsonfiles don't always share the samedirected/multigraphflags, andcomposerequires one uniform type, so a mixed set raised an unhandledNetworkXError. All inputs are now normalized to a plain undirected graph (which the cross-repo merged view already is) before composing. - Fix: type-reference / inheritance edge gaps closed across seven languages (all thanks @Synvoya):
- Scala:
varfield declarations now emit typereferenceslikeval(#1587). - PowerShell: class base types after
:now emitinherits(first) /implements(rest), matching the C# convention (#1588). - Objective-C: protocol-to-protocol adoption (
@protocol Derived <Base>) now emits animplementsedge (#1589). - PHP: promoted constructor properties (
__construct(private Repo $r)) now emit typereferences(method + class field) (#1590). - C#: auto-properties (
public Widget Main { get; set; }) now emit typereferenceslike fields, including generic args (#1591). - C++: base-class template arguments (
class Car : Base<Dep>) now emitgeneric_argreferences, matching the Java behavior (#1592). - Swift: enum associated-value types (
case started(Session)) now emitreferences(#1593).
- Scala:
- Fix: cross-file name resolution now respects case in case-sensitive languages (#1581, thanks @sheik-hiiobd). Resolution matched identifiers case-insensitively for every language, so in Python/Rust/Go/Java/etc.
from pathlib import Pathresolved to an unrelated shell-scriptexport PATH=...node — a single variable becoming the corpus's #1 god-node (266 false incoming edges on one real repo), inflating god-node rankings,affectedblast-radius, and community assignment. Both the cross-file call resolver and the type-reference stub-rewire now match by exact case; only genuinely case-insensitive languages (PHP functions/classes, SQL, Nim) still fold. For case-sensitive languages this only ever removes false edges. - Fix: Julia qualified / relative / scoped-selected imports now emit edges (#1580, thanks @Synvoya). Only bare
using Foowas handled;using Base.Threads(scoped),using ..Parent(relative import_path), and the scoped package ofimport Base.Threads: nthreadswere dropped. - Fix: Rust tuple-struct field types now emit
referencesedges (#1582, thanks @Synvoya).struct Wrapper(Logger, Vec<Config>);referenced nothing — positional fields nest underordered_field_declaration_listwith nofield_declarationwrapper, the same shape as tuple enum variants (#1579); that path wasn't traversed for structs. - Fix: SystemVerilog class properties with leading qualifiers now emit field
references(#1583, thanks @Synvoya). The field regex only matched unqualified<type> <name>;, sorand Config x;/protected Base b;(qualifier + type + name) failed to match and their type references were dropped. - Fix: Elixir multi-alias brace form now emits imports edges (#1577, thanks @Synvoya).
alias Foo.{Bar, Baz}produced no imports (the handler only matched a bare single alias); it now expands to one edge per member module. Singlealias/import/require/useunchanged. - Fix: Fortran function invocations now emit
callsedges (#1578, thanks @Synvoya). Onlycall sub(...)(subroutine) calls were captured;y = f(x)function calls (acall_expression) were dropped. Resolved against procedures defined in the file so array indexing (arr(i), samename(...)syntax) can't fabricate a spurious call. - Fix: Rust enum variant payload types now emit
referencesedges (#1579, thanks @Synvoya).Click(Logger)/Resize { size: Dim }referenced nothing —enum_itemhad no type-reference handler (struct/trait did). Both tuple and struct variant field types now resolve. - Fix:
graphify cluster-onlyno longer reuses stale community labels after the graph changed. When a repo was re-scoped/re-clustered, the saved.graphify_labels.jsonwas applied wholesale to the new community set — so a community id that now covered a different community wore the old (LLM) name, silently. cluster-only now writes a per-community membership signature beside the labels and, on reuse, keeps a saved label only for communities whose membership is unchanged; any community that changed (or, for pre-signature label files, when the community count no longer matches) is renamed by its deterministic hub, with a warning to rungraphify labelfor fresh LLM names. - Fix: cross-file
indirect_calledges were dropped bygraphify extracton the CLI (a 0.9.4 regression). The callable-target guard for cross-file indirect dispatch was keyed on node ids collected before the id-relativization/disambiguation passes; when the scan root relativizes ids (the CLI's default,cache_root == project root), those ids went stale and every cross-file indirect edge was silently dropped — only same-file ones survived. Callable-ness is now read from a node marker that rides through the remaps, sosubmit(imported_fn), imported dispatch tables, assignment/getattr aliases across files resolve on the CLI as they already did via theextract()API.
0.9.4 (2026-07-01)
- Fix: Ruby class inheritance now emits an
inheritsedge (#1535, thanks @Synvoya).class Dog < Animalproducedcontains/method/call edges but noinheritsedge — the inheritance handler had branches for Java/Kotlin/C#/Scala/C++/PHP/Swift/Python but none for Ruby, so thesuperclassfield was never read. Handles both bare (< Animal) and qualified (< M::Base) superclasses. - Fix: Groovy
extends/implementsnow emitinherits/implementsedges (#1534, thanks @Synvoya). tree-sitter-groovy exposes inheritance through the same grammar shape as tree-sitter-java, but the handler was gated to Java only, so every Groovy inheritance relationship was dropped. - Fix: corrupt
graph.jsonnow raises a clear, actionable error instead of a raw traceback (#1537 / #1536, thanks @guyoron1). The three graph-loading paths —build_merge(--update),load_graph(graphify prs), and diagnostics (graphify diagnose) — wrapjson.loadsand raise aRuntimeErrorwith recovery guidance on a truncated/invalid file (incomplete write, power loss, manual edit). - Fix: cross-chunk node-ID collisions now warn instead of silently dropping a node (#1508 / #1504, thanks @nuthalapativarun). When two nodes share an ID but come from different source files (two same-named files in different directories), dedup keeps the first and now prints a warning naming both files and how to avoid the loss (
graphify extractper subfolder +merge-graphs). - Fix: git hooks on Windows/MSYS default to sequential rebuilds (#1554, thanks @matiasduartee). Hook-triggered rebuilds now export
GRAPHIFY_MAX_WORKERS=1on Windows/MSYS (explicit user value still wins), avoiding fragile inherited pipe handles; and the Windows-path hooks guard is a no-op on native Windows, where such paths are legitimate. - Docs: correct the
deduplicate_by_labeldocstring — it is dormant, not auto-called bybuild()(#1514, thanks @TPAteeq). The active dedup path isdeduplicate_entities; the note thatdeduplicate_by_labelruns automatically was never true, and it must not be enabled for code nodes (it merges by label with no file_type guard, conflating same-named symbols across files). - Feat: deterministic hub community labels, readable without an LLM (#1576, thanks @sheik-hiiobd). When no LLM backend is configured, community labels used to fall back to
Community 70, making the report and its Suggested Questions unreadable. Each community is now named after its highest-degree member (the structural hub, ties broken by node id for run-to-run stability) — so a plaingraphifyrun readsauth/log_actionat zero token cost. A configured LLM naming pass still overrides these with richer names;--no-labelstill yields bareCommunity N. - Feat: extend
indirect_calltogetattr(obj, "name")reflective dispatch (#1575, #1566 slice 3, thanks @sheik-hiiobd). A callable looked up by a string literal —fn = getattr(obj, "handler")— now emits anindirect_calledge (contextgetattr, INFERRED) soaffectedreaches it. Only a plain string literal resolves; a variable, f-string, or concatenation is dynamic and emits nothing. Unlike the identifier paths, a getattr string names an attribute, not a binding, so it is never shadowed by a param/local —def via(handler): getattr(x, "handler")still resolves to the modulehandler. Function and module scope; cross-file handled by the shared resolver. Python only for now. - Fix:
graphify --updateno longer drops hyperedges from unchanged files (#1574, thanks @socar-tender).build_mergeread only nodes and edges from the existinggraph.json, never hyperedges — so every incremental update collapsed the graph's hyperedge set (the semantic domain-flow groupings) down to just the re-extracted files'. Existing hyperedges are now carried forward: re-extracted files' prior hyperedges are replaced by their new version (bysource_file), deleted files' are pruned, and the rest are preserved with id-dedup — mirroring howwatchalready handled it. - Fix:
graphify --updateno longer leaves ghost nodes for deleted files whenbuild_mergeis called withoutroot(#1571, thanks @goodjira). Absoluteprune_sourcespaths (fromdetect_incremental) never relativized to match the stored relativesource_filekeys, so deleted files' nodes survived the prune.build_mergenow infers a fallback root when none is passed — the committedgraphify-out/.graphify_rootmarker, else the output dir's parent — so pruning (and re-extract replacement) work regardless of the caller. The shipped--updaterunbooks already passroot; this hardens the library for any caller that doesn't. - Feat: extend
indirect_callto assignment and return references (#1569, #1566 slice 2, thanks @sheik-hiiobd). A function bound to a name (cb = handler), returned from a factory (def make(): return handler), or aliased at module level (CALLBACK = handler) now emits anindirect_calledge, soaffectedreaches it. Captures the value side only (a bare name or a bare unpacka, b = f, g); a collection literal on the RHS stays with the dispatch-table scan. Reuses the shared guard, so the inverted-shadow trap is handled by construction — a param/local named on the RHS still hits the shadow guard and emits nothing (no return of #1565's false edges). Function and module scope; Python only for now. - Fix: the skill-version mismatch warning is now direction-aware (#1568, thanks @TPAteeq). It used to advise
Run 'graphify install' to updateon ANY version difference, butinstallwrites the package's own bundled skill and re-stamps the version — so when the skill on disk was NEWER than the package (a staleuv toolCLI, or a contributor's dev checkout), following that advice silently DOWNGRADED the skill to make the warning go away. Now when the skill is newer, the warning recommends upgrading the package (uv tool upgrade graphifyy/pip install -U graphifyy) instead; the older-skill case still recommendsinstall. Versions compare numerically (so0.10>0.9). - Feat: extend
indirect_callcapture to JS/TS (#1566). The same model now applies to JavaScript and TypeScript: a callback passed by name (arr.map(fn),setTimeout(fn), Express-styleapp.get("/", handler), event wiringemitter.on("e", handler)) and functions listed in object/array dispatch tables (const ROUTES = { create: handler },const HOOKS = [onStart, onStop]). Arrow-const functions (const cb = () => {}) count as callable targets; object shorthand ({ handler }) is a reference; inline arrows/function expressions are direct definitions and are not captured; object KEYS and non-callable values are excluded. Same guards as Python: callable-target-only, not shadowed by a param/local/module reassignment, single-definition god-node guard cross-file. Cross-file resolution is import-aware — aimport { onEvent }edge to the symbol no longer suppresses theindirect_callto it. Module-level call-argument registration (idiomatic in JS) is captured in addition to the function-scoped capture Python has. - Feat: extend
indirect_callto dispatch tables (#1566). A function listed as a VALUE in a dict/list/set/tuple literal — a route/handler registry likeROUTES = {"create": create_user, "delete": delete_user}orHOOKS = [on_start, on_stop]— now emits anindirect_calledge soaffectedreaches those handlers too. Works at module level (attributed to the file) and inside a function (attributed to the function), same-file and cross-file. Same guards as the call-argument case: callable-target-only, not shadowed by a param/local/module-level reassignment, dict KEYS excluded (only values are references). - Feat: capture indirect dispatch as
indirect_calledges sographify affected(blast radius) catches callers that pass a function by name as a call argument —executor.submit(fn),Thread(target=fn),map(fn, xs), callbacks (#1565, thanks @sheik-hiiobd). Kept as a distinct INFERRED relation separate fromcalls(strict call-graph queries stay precise) and added to the affected relation set. Hardened against false edges: the argument name must resolve to a callable definition and must NOT be shadowed by a parameter or local binding in the enclosing function — so the idiomaticdef via(pool, handler): pool.submit(handler)(handler is the param) and a data variable sharing a function's name produce no edge. Now also resolves cross-file: a callback imported from another module (from .handlers import on_event; pool.submit(on_event)) routes through the same cross-file resolver as direct calls — single-definition god-node guard, callable-target-only, staying INFERRED — closing the gap where #1565 saw only same-file callbacks (the common real-world shape is cross-module). Python only for now.
0.9.3 (2026-06-30)
- Feat: cross-file member-call resolution for C++ and Objective-C (#1547, #1556). A class declared in a header and defined in its
.cpp/.mno longer fragments into two nodes (a decl/def merge pass collapses the sibling header/impl pair, gated to same-directory same-name so unrelated classes never merge), and a member call now resolves across files by the receiver's inferred type: C++Foo f; f.bar()/Foo::bar()/this->bar()and ObjCFoo *f = [[Foo alloc] init]; [f doThing]/[self render]link to the owning class's method. Resolution is by receiver type, never bare name, with the single-definition god-node guard — an uninferable or ambiguous receiver produces no edge (high precision over recall, grounded in how compiler-free indexers like ctags/Doxygen mis-resolve by name). Also routes C++ headers to the C++ extractor and ObjC#importbridging headers to the ObjC extractor. Reported by @c0dezer019 and @JabberYQ. (Residual cross-file#includeedge resolution under symlinked roots and ObjC dynamic-dispatch receivers remain follow-ups.) - Feat: namespace-aware C# cross-file type resolution (#1562, thanks @TheFedaikin). The namespace is folded into the C# node id (so same-named types in different namespaces stay distinct),
usingdirectives are honored with lexical per-block scope, and qualified references (Namespace.Type,usingaliases) resolve — disambiguating a bare reference to the one in-scope namespace that provides it, and refusing (no edge) when ambiguous. Advances the #1318 shadow-node umbrella for C#. - Fix: test mocks no longer erase the real cross-file call graph (#1553, thanks @Schweinehund). When a bare callee name had 2+ definitions without unique import evidence, the god-node guard dropped the edge entirely — so a single same-named test mock wiped the real call graph (a 76-stub Pester suite erased everything). The guard now applies tie-breakers — non-test preference (a shared, segment-aware path classifier) then path proximity — and resolves only when exactly one candidate survives, else still bails. A real def plus a test mock resolves to the real def; two genuine non-test defs still bail (no fan-out).
- Fix: hyperedge member lists keyed
membersornode_idsare now accepted, not silently dropped (#1561, thanks @askalot-io). Normalized to the canonicalnodesat ingest (in build_from_json and semantic_cleanup), deduped, with a warning — mirroring the existing from/to edge-endpoint aliasing. - Feat: work-memory overlay —
graphify reflectnow projects the verdicts it distills (preferred / tentative / contested, recency-weighted) into a.graphify_learning.jsonsidecar next to graph.json, andgraphify explain/query/GRAPH_REPORT.md/ the HTML viewer surface them where you look (aLesson:hint, a colored node ring). Builds on the idea in #1441/#1542 (thanks @TPAteeq), implemented as a sidecar rather than stamping graph.json: structural truth stays separate (nolearning_*in graph.json or GraphML exports, no rebuild churn). Each verdict carries the source questions that produced it (provenance) and a content fingerprint of the cited code, so a verdict on a file that has changed since is flagged "code changed — re-verify" instead of shown as still-authoritative. Dead-ends stay query-scoped (a report section, never a node attribute). Letting verdicts influence query traversal is deliberately deferred (it needs propensity correction + exploration to avoid a self-reinforcing feedback loop). - Feat: type-aware
this.field.method()resolution for TypeScript/JS (#1316, thanks @guyoron1). A member call through a constructor-injected dependency (constructor(private db: Database)thenthis.db.query()) now produces acallsedge to the field type's method, resolved by the field's declared type and gated by the single-definition god-node guard (an ambiguous or untyped field produces no edge — no global name-match fan-out). EXTRACTED confidence; constructor parameter-property injection scope. - Feat: resolve TypeScript wildcard path aliases (#1544, thanks @oleksii-tumanov). A
compilerOptions.pathspattern like@app/*or@*/interfacesnow captures the matched segment and substitutes it into each target in order, honoring tsc's longest-prefix / exact-wins specificity, baseUrl, and the first-existing-target fallback. Extends the #1531 resolver. - Feat: resolve JS namespace re-export bindings (#1552, thanks @oleksii-tumanov).
export * as ns from './mod'now creates a real symbol node forns, registers it as a named export (so a downstreamimport { ns }resolves to it), and emits a file-levelre_exportsedge — treated as a single opaque binding, sons.memberaccesses don't fan out into false per-symbol edges. Includes cycle and deep-chain guards. - Feat: Objective-C dot-syntax property accesses and
@selector()call edges (#1475, #1543, thanks @guyoron1).self.product.namenow emits anaccessesedge and@selector(method)acallsedge, each resolved only to an unambiguous in-scope definition by exact method-id match (a sibling of the same class for dot-syntax; exactly one method by exact selector name for@selector) — soself.namecan't mis-resolve to a-surnamesibling and same-named methods across classes don't fan out. Completes the #1475 ObjC follow-ups.
0.9.2 (2026-06-29)
- Feat: type-aware Ruby member-call resolution (#1499, thanks @vamsipavanmahesh).
p.runis now resolved by the inferred type of the receiver (p = Processor.new⇒Processor#run) instead of by globally-unique method name, so the edge survives name collisions (an unrelatedWorker#runno longer makes it ambiguous) and never points at the wrong method. Introduces a small resolver-registry framework that the existing Swift (#1356) and Python (#1446) cross-file passes register into. Receiver types are inferred only from unambiguous localvar = ClassName.newbindings; a call whose receiver type can't be proven resolves to nothing rather than to a guess — a deliberate precision-over-recall change for Ruby member calls. - Feat: resolve workspace imports through the package's
exportsmap (#1308, thanks @guyoron1). A subpath import likeimport { x } from "@scope/pkg/browser"now resolves through the package.jsonexportsmap (string values, condition objects, nested conditions, and./*wildcard patterns) instead of falling back to a bare path string, falling back to the existing bare-path/index resolution when there's no exports map or no match.defaultis consulted last (Node's catch-all), and an export target that escapes the package directory is rejected. - Fix: import edges silently dropped on codebases using tsconfig path aliases or workspace packages (#1529), a regression from the 0.9.0 full-repo-relative node-ID change. Relative imports resolve to repo-relative paths and matched fine, but alias (
@/lib/utils) and workspace imports resolve to absolute paths, so the import-target ID baked in the on-disk prefix and no longer matched the repo-relative definition node — the edge was dropped at build (common on Next.js/SvelteKit). The id-remap post-pass now also registers the absolute-resolved form, so alias/workspace import targets land on the real node again. - Fix: tsconfig
compilerOptions.pathsfallback targets are now honored (#1531, thanks @oleksii-tumanov). Apathsvalue is an ordered list ("@app/*": ["src/app/*", "lib/app/*"]) thattsctries in turn; graphify kept only the first entry, so an import whose file lived at a later target was dropped or misresolved. Each target is now tried in order and the first that resolves to a real file wins (no false edge when none exist). - Fix: the semantic (LLM) extraction cache is now pruned (#1527, thanks @mwolter805). The AST cache was version-swept but the content-hash-keyed semantic cache had no cleanup, so every content change or file deletion left an orphan entry and
graphify-out/cache/semantic/grew unbounded. Orphan entries are now removed at the end ofextract, computed against the full live document set (not the incremental changed subset, which would have evicted still-valid entries) and only touchingcache/semantic/; the cache stays unversioned so releases never re-bill LLM extraction. - Fix: three Objective-C extractor bugs (#1475, thanks @JabberYQ for the detailed report and test repo). (1)
.hheaders usingNS_ASSUME_NONNULL_BEGINbefore@interfaceproduced no class node — tree-sitter-objc can't expand the argument-less macro and fails to emit aclass_interfacenode at all, so the macro is now blanked (offset-preserving) before parsing. (2) Quoted#import "X.h"edges dangled once a.h/.mpair existed (the bare-stem target was salted away during id-disambiguation); imports now resolve to the real header file node, fixing the equivalent latent C#includebug too. (3)[[Foo alloc] init]now emits areferencesedge to the allocated class, resolved only to an unambiguous class (no false edges). Dot-syntax property accesses and@selector(...)target-action edges remain follow-ups. - Fix: Swift type-qualified static calls now resolve as EXTRACTED rather than INFERRED (#1533, thanks @JabberYQ).
SessionType.staticMethod()/Singleton.shared.method()name the receiver type explicitly in source, so the resolved edge is an exact reference, matching the Python qualified-class-method pass; instance calls typed via local inference (obj.method()) stay INFERRED. - Fix: enforce the API timeout in the secondary LLM dispatch path (#1442, thanks @DhruvTilva).
_call_llm(used by the dedup LLM tiebreaker) built its Anthropic/OpenAI clients withouttimeout, so requests there ignoredGRAPHIFY_API_TIMEOUTand could hang — it now passes the timeout like the primary extraction paths. - Fix:
to_graphmlno longer raisesValueErroron a node/edge with aNoneattribute value — null fields are coerced to""before writing (#1502, thanks @antonioscarinci). - Feat:
graphify save-resultaccepts--answer-fileas an alternative to--answer, so a long or multi-line answer can be read from a file instead of an inline shell argument (#1502, thanks @antonioscarinci). - Fix: generated install/skill guidance is now host-generic (#1530, thanks @ari-mitophane). The wording no longer tells agents to invoke a literal
skilltool withskill: "graphify"(host-specific and invalid in many environments); it now points to the installed graphify skill or instructions. - Security: bump
msgpackto 1.2.1 (GHSA-6v7p-g79w-8964) andpydantic-settingsto 2.14.2 (GHSA-4xgf-cpjx-pc3j), and drop the unusedsafetydev dependency, which only pulled innltk(an unpatched HIGH advisory). All transitive; the two HIGH-severity ones were dev-tooling only and never in the published wheel.pip-audit(already run in CI) continues to provide dependency-CVE scanning.
0.9.1 (2026-06-28)
-
Fix: rate-limited (HTTP 429) extraction chunks are now retried instead of dropped (#1523, thanks @bercedev). The provider SDKs back off and honor
Retry-After, but the SDK default of 2 retries was too low for strict per-org concurrency/RPM caps (e.g. Moonshot/kimi), so a parallelextract429'd, each chunk loggedchunk N failed, and was silently lost (incomplete graph + console spam). The OpenAI-compatible, Azure, and Anthropic clients are now built with a highermax_retries(default 6, override viaGRAPHIFY_MAX_RETRIES). For very tight accounts,--max-concurrency 1further reduces the concurrency that triggers org-level limits. -
Fix:
graphify updatenow prunes the edges a re-extracted file no longer produces (#1521, thanks @UltronOfSpace). Old edges were preserved by endpoint-node membership alone, so a deleted import's edge survived forever as long as both endpoints still existed — driving phantom circular-dependency findings (and--forcedidn't help). Edges owned by a re-extracted file (source_file) are dropped before merging the fresh extraction; cross-file edges that merely point at the file are untouched. -
Fix: residual node-ID collisions after the 0.9.0 full-path change (#1522, thanks @sub4biz).
normalize_idcollapses every separator to_, so distinct paths that differ only by a separator-vs-punctuation swap (foo/bar_baz.pyvsfoo_bar/baz.py) still merged. Colliders are now salted with a short stable path hash so they stay distinct; non-colliding IDs are byte-identical to 0.9.0 (no re-migration). -
Fix: Java record component types now emit
referencesedges (#1519, thanks @oleksii-tumanov) — a record's data dependencies (record Order(Payload p, List<Item> items, …)) were invisible; primitives and the record's own type parameters are skipped. -
Fix: same-label cross-file imported-type stubs now stay distinct in the six dedicated extractors too — Julia, Fortran, Go, Rust, PowerShell, ObjC (#1515, thanks @TPAteeq). The #1462 disambiguation previously only covered the generic extractor, so e.g. two Go files importing the same
ext.Widgetcollapsed into one conflated node; they're now kept distinct (whilesource_filestays empty so the #1402 rewire onto a real definition is unchanged). -
Fix: Java type parameters no longer emit spurious
referencesedges (#1518, thanks @oleksii-tumanov). The generic-parent support (#1511) created a stray edge/stub for the bareTinclass Box<T> extends Container<T>; the extractor now collects in-scope type-parameter names (class/interface/record/method/constructor, incl. bounded/multiple) and skips them, while keeping every real type and theinherits/implementsedge to the base. -
Fix: the internal
origin_filedisambiguation field (#1462) is no longer serialized into graph.json, where it had shipped (in 0.9.0) as an absolute, machine-specific path — it is dropped once the colliding-id pass consumes it, keeping output portable (#1516, thanks @TPAteeq; cf. #555, #932)._originstays (the incremental watcher needs it, #1116).
0.9.0 (2026-06-28)
- Breaking — node IDs now include the full repo-relative path (#1504, #1509). The node-ID stem was the immediate parent dir + filename, so same-named files in different directories collided into one last-writer-wins node and silently dropped graph content (
docs/v1/api/README.mdanddocs/v2/api/README.mdboth →api_readme). The stem is now the full repo-relative path (docs_v1_api_readmevsdocs_v2_api_readme); top-level files are unchanged (setup.py→setup). The AST extractor, the LLM system prompt, the extraction-spec, and the two hand-copied stem helpers are all aligned to this one rule (fixing the #1509 AST↔LLM divergence that produced ghost duplicates), andbuild_from_jsondeterministically re-keys any cached/older semantic fragment onto the new IDs from itssource_fileso the unversioned semantic cache survives without ghosts or a re-bill. Existing graphs migrate to the new ID format automatically on the nextbuild/update(no re-bill). Note: same-named files in different directories that previously collided into one node are only recovered as distinct nodes by a fresh extraction — rungraphify extract --forceto rebuild and gain them (migrating an already-collided graph/cache can't resurrect the nodes that were already dropped). If you push to a persisted Neo4j store, re-import after upgrading (re-exported IDs change); saved Gephi/yEd (GraphML) layouts go stale; MCP/cypher consumers should query by label rather than persisting node IDs across rebuilds. - Feat:
--timingflag ongraphify extractandgraphify cluster-onlyprints per-stage wall-clock timings to stderr (#1490). Shows how long each pipeline stage takes —extract: detect → AST → semantic → build → cluster → analyze → export;cluster-only: load → cluster → analyze → label → report → export — plus a final total, so slow stages are visible on large corpora. Off by default (monotonicperf_counter, stderr-only); machine-read stdout /graph.jsonare unchanged.
0.8.51 (2026-06-28)
- Fix: the Obsidian export (
--obsidian/to_obsidian) no longer overwrites a user's own notes or.obsidian/config when pointed at an existing vault (#1506). It wrote one note per node straight into the target dir and unconditionally replaced.obsidian/graph.json, so--obsidian-dir ~/my-vaultcould clobber a same-named note (Database.md) and the user's graph-view settings — silently, no backup. graphify now records the files it owns in a.graphify_obsidian_manifest.jsonand refuses to overwrite any pre-existing file it didn't create (skipping it with one aggregated warning); a re-run still updates graphify's own notes. The defaultgraphify-out/obsidianoutput is unchanged. - Fix: Java enum and annotation (
@interface) declarations are now emitted as type nodes (#1512, thanks @oleksii-tumanov), so a field typed as an enum or a class annotated with a project annotation resolves to a real node instead of a dangling reference. - Fix: Java generic parent relationships are no longer dropped (#1510, thanks @oleksii-tumanov) —
class Foo extends Bar<T>/implements List<T>now emit theinherits/implementsedge to the base type, with the type arguments asgeneric_argreferences. - Fix: the
claude-clibackend no longer crashes withUnicodeDecodeErroron Windows systems whereclaude.cmdemits GBK/cp936 bytes (#1505, thanks @nuthalapativarun) — both subprocess calls decode witherrors="replace". - Fix:
graphify explainandgraphify affectednow resolve a query given as a source-file path even when the graph has multiple nodes from that file (#1503, thanks @behavio1). A path likeapp/api/route.tstokenized to terms that matched no node, so explain returned "No node matching"; source-file paths are now indexed and matched exactly, and when several nodes share the file the lookup prefers the file-level node (theL1node whose name matches the file). Trailing-separator handling is aligned between the two commands. - Docs: clearer install/PATH guidance for
uv tool install graphifyyon macOS (#1471, thanks @Patsch36). Two expected uv behaviors read as bugs: (1) afteruv tool install, thegraphifycommand lands in uv's tool bin dir (~/.local/bin), which a fresh macOS/zsh shell often doesn't have onPATH— the README now points touv tool update-shellinstead of implying uv always wiresPATH; (2)uvx graphify …/uv tool run graphify …resolve the first word as a package and fail, because the package isgraphifyyandgraphifyis only its console script — the docs now showuvx --from graphifyy graphify install. README install note + Troubleshooting only; no code change. - Fix: imported type stubs with the same label no longer falsely merge across files when there is no project definition to rewire onto (#1462, thanks @jiangyq9). Two files that both
from pathlib import Pathand usePathas a type previously collapsed into one node; the referencing file is now kept as an internal disambiguator (origin_file) used only when splitting colliding ids, whilesource_filestays empty so a real project definition can still be rewired onto (the #1402 path is unaffected). - Feat: resolve C# cross-file type references and extract
enum/struct/recorddeclarations (#1466, thanks @TheFedaikin). A new_resolve_csharp_type_references(the C# counterpart to the Java resolver) re-points danglinginherits/implements/referencesedges from no-source "shadow" stubs to their real definitions, disambiguating same-named types in different namespaces via the referencing file'susingdirectives and enclosing namespace; ambiguous matches are refused rather than guessed.enum/struct/recordtypes are now extracted as definitions so those references resolve too. Advances #1318 for C#. - Fix: the Go AST extractor no longer creates phantom duplicate nodes for cross-file type references — the Go copy of
ensure_named_nodestill used the older sourced-stub fallback; it now emits a sourceless stub like the other extractors, extending the #1402 fix to Go (#1500, thanks @TPAteeq). - Fix: cross-file references to a same-named type now stay distinct across the six dedicated AST extractors (Go, Rust, Julia, Fortran, PowerShell, ObjC) instead of conflating into one shared node — #1462's
origin_filestub-disambiguation had only been applied to the generic extractor; it now covers all seven.
0.8.50 (2026-06-27)
- Feat:
graphify label --missing-onlyrelabels only communities that are unnamed or still hold aCommunity Nplaceholder, preserving existing non-placeholder labels from.graphify_labels.json(#1481, thanks @jiangyq9; supersedes #1421 by @matiasduartee, who proposed the same flag). Lets a large graph be relabeled incrementally without re-naming (and paying for) communities that already have good names. - Feat: index Metal (
.metal) shader files — Metal Shading Language is C++14, so.metalis classified as code and routed through the existing C++ extractor, mirroring the CUDA.cu/.cuhreuse (#1480, thanks @jiangyq9; supersedes #1450 by @GoodOlClint). Also adds.cu/.cuh/.metalto the cross-language edge-filter family map (they were missing), so phantom cross-languagecallsedges between these and C++ are correctly suppressed. - Fix: pass
stream: Falseexplicitly on OpenAI-compatible chat-completion calls (#1223, thanks @jiangyq9). Some gateways default to SSE streaming whenstreamis omitted, but graphify always reads the result as a single response, so the call failed against those gateways. Applied to both the extraction dispatch path and the--dedup-llmtiebreaker path. - Fix: emit
referencesedges for Java field types (#1485) and for type-level annotations on Java classes/interfaces/records (#1487, both thanks @oleksii-tumanov). Field types (including thegeneric_argelement ofList<Handler>) and class annotations (@Service,@Entity) were missing from the graph even though parameter/return types and method annotations were already captured; primitives are still skipped. - Fix: the Objective-C extractor was silently dropping most code-level relationships (#1475, thanks @JabberYQ for the detailed report). Five fixes: (1) ObjC
.hheaders were parsed by the C extractor (1 node, 0 edges, losing every@interface/@protocol/@property/method) — a.his now routed to the ObjC extractor when it contains an ObjC-only directive (@interface/@protocol/@implementation/@import), which never hijacks a real C/C++ header; (2)[receiver selector]calls produced nocallsedges at all because the method-body pass looked forselector/keyword_argument_listnodes, but the grammar tags selector parts with the field namemethod(typeidentifier) — the selector is now read from themethodfields, skipping the receiver, which also makes compound sends like[self a:x b:y]resolve; (3) generic property types (NSArray<Product *> *) were invisible because the type was wrapped in ageneric_specifier— the element and container types are now both referenced; (4) class methods (+foo) were mislabeled-foo; (5)@import Foundation;now produces animportsedge. Property/dot-syntaxaccessesand@selector(...)target-action edges remain follow-ups. - Feat: link WPF/XAML views to their ViewModels and extract richer binding references (#1473, thanks @MikeKatsoulakis). Builds on the initial XAML support (#1460). Resolves a view to its ViewModel from an explicit
<Window.DataContext><vm:MainViewModel/>, a design-timed:DataContext="{d:DesignInstance Type=…}", theView→ViewModelnaming convention, or PrismViewModelLocator.AutoWireViewModel="True"— always against an actually-extracted C# class, so a name with no matching class (or an ambiguous one) emits no edge (explicit DataContext is EXTRACTED, conventions are INFERRED). Also extracts binding paths ({Binding User.Name},Path=Order.Total), commands (Command="{Binding SaveCommand}"), converters, and CommunityToolkit[ObservableProperty]/[RelayCommand]generated members. The event-handler resolution stays gated on the .NET handler signature (no spurious event edges), and ViewModel discovery is bounded to the extraction root. - Fix:
.vueSingle File Components now extract their<script>with the right grammar (#1468, thanks @papinto)..vuewas dispatched toextract_js, which selects a tree-sitter grammar by suffix;.vueis neither.tsnor.tsx, so the whole SFC —<template>markup,<script>, and<style>— was parsed as JavaScript, producing a top-level ERROR node and recovering no imports, symbols, or type references. A dedicatedextract_vuenow masks everything outside<script>(replacing it with spaces so line numbers stay accurate) and parses just the script with the grammar named bylang(tsdefault,tsx/js/jsxhonored). The open-tag scan tolerates>inside quoted attributes, so Vue 3.3+ generic components (generic="T extends Record<string, unknown>") parse correctly. - Fix:
graphify reflect --if-stalenow also checks the.graphify_analysis.jsonand.graphify_labels.jsonsidecars (and any custom--analysis/--labelspaths) when deciding whetherLESSONS.mdis up to date (#1470, thanks @oleksii-tumanov). It previously only stat'd the memory docs andgraph.json, so lessons could stay stale after community analysis or labels changed without the graph changing. A missing sidecar is treated as not-an-input, so no-cluster builds are unaffected. - Fix: the
Read|GlobPreToolUse hook (the "run graphify first" nudge installed for Claude Code and CodeBuddy) now matches the file's real trailing extension instead of substring-scanning the path (#1463, thanks @marketechniks). The old check askedany(ext in path), which had two opposite failures:.jsonfiles (package.json,tsconfig.json) spuriously fired because.jsis a substring of.json, and.astro/.vue/.sveltenever fired because they weren't in the set — so on Astro/Vue/Svelte projects, where those are the primary source type, reads and globs never surfaced the graph. The hook now compares the segment after the last/then after the last.against the extension set (with.astro/.vue/.svelteadded), sopackage.jsonstays silent,data.geojsonstays silent,**/*.astrofires, and an extension sitting on a directory component (my.ts/file) correctly doesn't. Thegraphify-out/suppression and fail-open behavior are unchanged. - Fix: make it unambiguous in the skill that graphify needs no API key, so terminal-style hosts stop looping on a missing one (#1461). Hermes (and the other AGENTS.md hosts: Codex, Aider, OpenClaw, Droid, Trae, …) run the
graphifyCLI directly and don't dispatch subagents, but the Step 3 extraction guidance framed the no-key path only as "fall through to subagent dispatch" — so on/graphify .those agents would spin for minutes insisting they needed an API key before eventually proceeding. Step 3 now opens with an explicit, hoisted "graphify needs no API key — never ask the user for one, never block on one" statement (code is AST-only; a code-only corpus skips semantic extraction entirely), and the fallback now spells out a non-subagent path for terminal hosts instead of assuming subagent dispatch. Applied across every generated skill body, including the aider/devin monoliths, with a regression test that pins the wording in place. - Feat: extract WPF/XAML structure from
.xamlfiles (#1460, thanks @MikeKatsoulakis). No new parser dependency (stdlib XML, with the same DOCTYPE/ENTITY and size guards as the.csprojextractor). Captures the root element, named controls (x:Name/Name) and their control types,{Binding ...}references, andx:Class, and bridges the view to its.xaml.cscode-behind by resolving event-handler attributes to the matching methods on the partial class. Event resolution is gated on the .NET handler signature(object sender, …EventArgs e)and skips free-form attributes (Content,Text,Tag, …), so a property value that merely matches a method name (e.g.Content="Save"next to a business methodSave()) can't fabricate a spurious event edge. - Fix:
to_canvas(Obsidian Canvas export) now lays out each community's node cards in the sameceil(sqrt(n))-column grid the group box is sized for. The box width assumed a roughly-squaresqrt(n)-column layout, but the placement loop hardcoded 3 columns, so any community larger than ~9 members rendered as a cramped 3-wide strip in an over-wide, mostly-empty box. The column count is now computed once per community and reused for the box width, box height, and card placement, so the cards fill the box. Cosmetic, no data change (#1452, thanks @TPAteeq). - Fix:
to_obsidian/to_canvas/to_wikino longer silently overwrite notes whose labels differ only by case (e.g. a classReferencesand a prose headingreferences). The filename dedup was keyed on the exact-case name, so two such labels counted as non-colliding and the second write clobbered the first on case-insensitive filesystems (macOS/APFS, Windows/NTFS) — no suffix, no warning. Dedup now folds case (keyed on the lowercased name) while still emitting the original-case filename, so any pair that would collide on disk gets a numeric suffix. The obsidian/canvas dedup is shared in one helper so they can't drift,wiki's slug dedup gets the matching fix, the_COMMUNITY_*.mdoverview notes (which had no dedup) are covered, and a generatedbase_1is itself re-checked so it can't overwrite a node literally labelledbase_1(#1453, thanks @TPAteeq). - Feat: the
kimi,gemini, anddeepseeksemantic-extraction backends now honorKIMI_BASE_URL,GEMINI_BASE_URL, andDEEPSEEK_BASE_URLto point at any OpenAI-compatible endpoint (a proxy, gateway, or self-hosted relay), matching the existingOLLAMA_BASE_URL/OPENAI_BASE_URLoverrides. Each falls back to its hardcoded official default when the variable is unset, so behavior is unchanged for everyone who doesn't set it (#1458, thanks @jc2shile). - Fix:
to_wiki(Wikipedia-style wiki export) now emits portable relative markdown links instead of Obsidian[[wikilinks]], so navigation works in every renderer — VS Code preview, GitHub, GitLab, a plain browser — not just Obsidian. Two defects: (1)[[Title]]resolves by note title only inside Obsidian; everywhere else[[Domain Data Models]]points at a literalDomain Data Models.md, but the article file isDomain_Data_Models.md(the slug substitutes spaces and reserved characters), so nearly every community/god-node navigation link opened an empty page. (2) God-node articles linked every neighbor ([[AwsHelper.py]],[[.read_object_key()]]), but only communities and god nodes get article files, so those node-level links were dead even inside Obsidian. Links are now standard[display](slug.md)with the target URL-encoded, so spaces,&, parentheses, and#survive intact in CommonMark renderers and Obsidian alike; any link whose target has no article is downgraded to plain text instead of left dangling. Each article's slug is computed up front (alabel -> slugresolver built before any body is rendered) so a link to a community or god-node article points at the real on-disk filename, including the case-fold collision suffix (parser_2.md). Cosmetic, no graph/data change (#1444, thanks @restagner).
0.8.49 (2026-06-24)
- Fix: the
get_communityMCP tool now shows the community name in its header (Community 12 — Auth & Sessions (8 nodes)), matchingget_nodeand the query-traversal output, which already read thecommunity_nameattributeto_jsonwrites onto every node.get_communitywas the only graph tool still returning a bare numeric id. The name is read from the community's member nodes (they share it), sanitised like every other LLM-derived field, and skipped when it is just theCommunity Nplaceholder so the header never doubles toCommunity 12 — Community 12(#1448, thanks @rmart1308). - Security: floor
starletteat>=1.3.1to pick up the fixes for CVE-2026-48818 and CVE-2026-54283 (both resolved by 1.3.1). starlette underpins the HTTP MCP transport (graphify-mcpover HTTP /serve_http); the stdio transport and CLI are unaffected. It was an undeclared transitive dependency (viamcp) thatgraphify/serve.pyimports directly, so it is now declared in themcp(andall) extras and floored, which protects end users installinggraphifyy[mcp], not just the locked dev/CI environment. Lockfile bumped 1.0.0 -> 1.3.1; serve/MCP/HTTP tests pass on the new version (#1391, #1396, thanks @orbisai0security). - Refactor: begin splitting the monolithic
extract.pyinto per-language modules undergraphify/extractors/(#1212). Theblade,elixir,razor, andzigextractors plus the shared primitives (_make_id,_file_stem,_read_text,_LANGUAGE_BUILTIN_GLOBALS) move into their own files, withgraphify/extractors/base.pyholding the shared pieces and a strict one-way import direction (extract.py->extractors/, never the reverse).extract.pyre-exports the moved names, so everyfrom graphify.extract import ...caller and the dispatch table are unchanged. Behavior-neutral lift-and-shift (verified byte-identical), groundwork for moving the remaining languages out. Seegraphify/extractors/MIGRATION.md. - Feat: community labeling can now run in parallel (#1390).
graphify cluster-onlyandgraphify labelaccept--max-concurrency N(default 4) to fan labeling batches out across a thread pool, and--batch-size N(default 100) to tune communities per LLM call. A large graph that previously needed hundreds of sequential calls now runs them in rounds. Mirrors the existingextractparallelism, including the safety guards:ollamaandclaude-cliare forced serial (setGRAPHIFY_OLLAMA_PARALLEL=1/GRAPHIFY_CLAUDE_CLI_PARALLEL=1to override). Output is unchanged and deterministic regardless of concurrency, since results are keyed by community id and merged on the main thread. - Fix:
graphify reflectno longer duplicates lines in the "known dead ends" and "corrections" sections when the same Q&A is saved more than once. Those lists were appended per memory doc with no key (node scoring already dedups by node, but these two did not); they now collapse by question, keeping the most recent entry — so a re-corrected question shows its latest correction. Output stays deterministic (ordered by date then question). - Fix: the work-memory loop no longer depends on the git hook. The skill now tells the agent to run
graphify reflect --if-staleitself at the start of graph work (cheap, deterministic, a no-op when no outcomes have been saved), then readLESSONS.md. Previously a skill-only install (withoutgraphify hook install) would keep recording outcomes viasave-resultbut never regenerateLESSONS.md, so the lessons never surfaced. The post-commit hook is now an optimization for between-session freshness rather than a requirement. The new--if-staleflag skips the run whenLESSONS.mdis already newer than every input (the memory docs and the graph), so when the hook just refreshed it the agent's session-start run costs almost nothing.
0.8.47 (2026-06-24)
- Feat: the work-memory loop is now zero-config for agents (#1441). The skill's query reference instructs the agent to read
graphify-out/reflections/LESSONS.mdat the start of graph work (start from preferred sources, skip known dead ends) and to record an--outcome useful|dead_end|correctedonsave-result; the git post-commit/post-checkout hooks now auto-runreflectafter each rebuild — best-effort and only when saved outcomes exist — soLESSONS.mdstays current without a manualgraphify reflect. - Feat: a first deterministic slice of self-improving "work memory" (#1441).
graphify save-resultgains optional--outcome useful|dead_end|correctedand--correction TEXTflags that record how a saved Q&A turned out — written to the memory doc's frontmatter and an## Outcomebody section so the signal both stays machine-readable and round-trips into the graph on the next semantic re-extraction. A newgraphify reflectcommand then scansgraphify-out/memory/and writes a deterministicgraphify-out/reflections/LESSONS.mdan agent can load at the start of the next session — grouped by community when agraph.jsonis present, flat otherwise. Source nodes are scored, not counted: each citation is a signed, time-decayed value (usefulpositive,dead_end/correctednegative, configurable half-life via--half-life-days, default 30), so a fresh dead end outweighs a months-old useful. A node is only promoted to "preferred" once corroborated by ≥--min-corroborationdistinct results (default 2) — one save can't mint a trusted lesson; the rest render as "tentative", and nodes with both positive and negative signals render once as "contested" with a recency-wins verdict. Source nodes are matched to the graph by label or id, and citations whose node no longer exists are dropped so stale lessons don't linger. Deterministic, no LLM; baregraphify save-resultand all existing behavior are unchanged. - Fix:
graphify updatenow prunes a function/symbol removed from a still-present file without needing--force. The build already dropped the stale node (#1116), but the shrink-guard then refused to write the smaller graph ("new graph has N nodes but existing has M … Refusing to overwrite"), so the deletion silently never persisted unless you passed--force— leaving stale nodes (and the work-memory node-existence gate) lagging until a forced rebuild. The guard is now file-aware: a net shrink is allowed when every lost node belongs to a file re-extracted this run (or deleted), and still refused when a node disappears from a file that was not touched (the failed/partial-extraction case it exists to catch). - Fix:
validate_extractionandbuild_from_jsonno longer crash on a non-hashable nodeidor edgesource/target(e.g. a list emitted by a malformed LLM extraction) — previously a single bad node raisedTypeError: unhashable typeand aborted the entire build of an otherwise-complete corpus. The validator now reports the bad id/endpoint as an error string (its documented contract), and the build skips the malformed entry with a stderr warning while keeping every well-formed node/edge; non-dict nodes are still left to raise so shape diagnostics are unchanged (#1447, thanks @dschwartzi). - Fix: Python qualified class-method calls (
ClassName.method(...)) now produce an EXTRACTEDcallsedge to the class-qualified method node (#1446). Previously these cross-class static/qualified calls were dropped: the shared cross-file pass skips all member calls (the #543/#1219 god-node guard against bareobj.method()collisions), and when the called method shared its name with an in-file node — e.g. a viewset actionapprove()delegating to a serviceService.approve()— the bare-name lookup matched the caller's own node and silently dropped it. The Python extractor now captures a simple-identifier receiver, defers capitalized-receiver member calls to a new receiver-based resolver (_resolve_python_member_calls, mirroring the Swift pass), and emits the edge only when the receiver resolves to exactly one class that owns the method (single-definition god-node guard); instance/module calls (self.x(),obj.x(), lowercase receivers) are unaffected. - Feat: new first-class
agentsplatform installs the skill to the generic cross-framework Agent-Skills locations.graphify install --platform agents(alias--platform skills) writes the spec's user-global~/.agents/skills/graphify/SKILL.md— the directorynpx skillsand spec-compliant frameworks read — and--projectwrites./.agents/skills/graphify/SKILL.md;graphify uninstallremoves them. Previously that user-global location was only reachable as an accidental side effect of the gemini-on-Windows branch. The skill bundle re-homes amp's agents-md body (registered intools/skillgen/platforms.toml, rendered through the skillgen drift/coverage guards); the body is identical to amp's, and only the on-demand hooks reference differs — it points atgraphify agents install, which (as the amp-twin subcommand) wires the skill plus an AGENTS.md always-on section. Baregraphify installis unchanged — still single-platform (claude/windows) (#1432, closes #1405).
0.8.46 (2026-06-23)
- Perf: graph queries on large graphs are faster via a trigram candidate prefilter in the MCP/CLI query path. A trigram→node index (built once per graph and rebuilt on hot-reload) narrows the candidate set before the IDF-weighted scorer runs, cutting the previous O(N) scan. The prefilter is a strict superset of the exhaustive scorer (it indexes
norm_label,label_tokens,nid, andsource_file), so results and ranking are unchanged; short/CJK queries and low-selectivity terms fall back to the full scan (#1431; thanks @papinto). - Feat: the skill runbook adds a Step 4.5 graph-health gate that runs
diagnose_extractionand surfaces dangling/self-loop/collapsed-edge warnings before labeling, and anchors the semantic cache on the scan root (root='INPUT_PATH') so cache hits survive a non-cwd scan. Read-only — never aborts the build (#1437; thanks @bahcgscateringsa-design). - Fix:
graphify install --platform hermesnow installs to the right directory on Windows. Hermes scans%LOCALAPPDATA%\hermes\skills, but the installer always used the POSIX~/.hermes/skills(so on Windows the skill was never discovered)._platform_skill_destinationgained a hermes branch that targets%LOCALAPPDATA%\hermes\skillson Windows and keeps~/.hermes/skillselsewhere (#1403). - Fix: cross-file type-annotation references no longer create phantom duplicate nodes. A class defined once but referenced via type annotations in N other files (
def f(x: Thing) -> Thing) produced 1+N nodes — the extra ones with the referencing file's path baked into the id (pkg_a_py_thing).ensure_named_nodeminted a sourced stub for these cross-file refs, which_disambiguate_colliding_node_idsthen collided into per-file ids and_rewire_unique_stub_nodesrefused to collapse. The fallback now emits a sourceless stub (like the inheritance-base path), so the references resolve to the single canonical definition. Fixed uniformly across all six language extractors that share the helper (#1402). - Feat: CUDA (
.cu/.cuh) source files are now extracted. CUDA is a C++ superset, so these files route through the existing C++ (tree-sitter-cpp) extractor — no new grammar dependency.__global__/__device__kernels, host functions, structs and#includes are captured, host call edges are inferred, and<<<grid, block>>>kernel-launch syntax parses without error. Detection and file-watching follow automatically since both derive their extension sets from the dispatch table /CODE_EXTENSIONS(#1411). - Fix:
to_obsidian/to_canvasno longer emit punctuation-only filenames (e.g.@.mdfrom a@/*tsconfigpathskey). Such a file is valid on disk but empty once a downstream tool re-slugs on word characters (it crashesqmd update), so an all-punctuation label now falls back tounnamed(#1409; thanks @Mylock51). - Fix: the opencode plugin's search reminder no longer contains backticks. The hook prepends the reminder inside a double-quoted
echo, where bash performed command substitution on the backticks — silently runninggraphify query "<question>"on every search. The reminder is now plain text (#1413; thanks @WSHAPER). - Fix:
graphify extract --cargoexits with a clear error instead of a traceback whenCargo.tomlis missing or unreadable (the introspection now also catchesOSError) (#1428; thanks @DhruvTilva). - Chore: resolve an
F821(undefinednx) flagged inprs.pyby importingnetworkxunderTYPE_CHECKINGfor the quoted type annotation (#1429; thanks @DhruvTilva).
0.8.45 (2026-06-22)
- Fix: native-backend semantic extraction now produces hyperedges. The
graphify extract --backend <gemini|claude|claude-cli|openai|kimi|…>prompt (llm._EXTRACTION_SYSTEM) only ever showed"hyperedges":[]in its output schema and never explained what a hyperedge is, so every native backend silently emitted zero — while the agent/skill path (whoseextraction-spec.mdfully documents hyperedges) produced them. The two prompts had drifted. The native prompt now carries the same "3 or more nodes participate together" instruction and a populated schema example, so both extraction paths yield the same hyperedge behaviour for a given corpus. Verified end-to-end: a doc that previously produced 0 hyperedges now produces one (correctly relativized, per #1418). Guard tests assert the two prompts can't drift apart again. - Fix:
GRAPHIFY_OUTis now honoured end-to-end. The override (a custom output-dir name or absolute path, for worktrees/shared setups — #686) was only respected by some readers;graphify extractand several commands hardcodedgraphify-out/, so aGRAPHIFY_OUT=custom-out graphify extractstill wrote tographify-out/, and downstreamquery/serve/updatelooked in the wrong place. The output-dir name is now resolved throughgraphify.pathseverywhere it matters: theextractwrite dir,cluster-only/label,query/affected/benchmarkdefaults,save-result --memory-dir,uninstall --purge,cache-check, themanifest.json/transcripts/memory/convertedpaths indetect/transcribe, thebuild_merge/serve/benchmark/prsgraph-path defaults, and thedetectscan-exclude (so a renamed output dir is never re-ingested as source). Default behaviour is unchanged — without the env var everything still usesgraphify-out/(#1423). - Fix: the
GRAPH_REPORT.mdheader now shows the actual scan root instead of a literal.. The split-skill runbook passed'.'as therootargument toreport.generatein Steps 4 and 5, so a/graphify /some/pathrun produced a report titled# Graph Report - .. It now passes'INPUT_PATH'(matching the monoliths, which were already correct). Display-only — no path written tograph.json/manifest.jsonwas affected (#1419). - Fix: the skill runbooks now write a portable
manifest.json. Step 9 (full build) and the--updatereference calledsave_manifest(...)withoutroot=, so manifest keys were stored as absolute paths; cloning or moving the repo then brokegraphify --update— every cached file missed and the whole corpus re-extracted. All four runbook call sites (the lean-coreskill.md, the Aider/Devin monoliths, and the shared--updatereference) now passroot='INPUT_PATH', relativizing keys to the scan root to match the nativegraphify updatepath. The monolith change is registered as a new sanctioned change-class in the round-trip guard (#1417). - Fix: hyperedge
source_fileis now relativized to the scan root like nodes and edges.build_from_json(root=...)relativizedsource_fileonnodes[]andlinks[], but storedgraph.hyperedges[]verbatim, so a semantic subagent's absolute path (e.g./Users/.../CLAUDE.md) leaked intograph.json. The fix lives inbuild_from_json(notto_json, which has norootto relativize against) and mirrors the existing node/edge handling (#1418). - Fix: the
GRAPHIFY_OUToverride is now honoured everywhere instead of a hardcoded"graphify-out"literal. The name is consolidated into a singlegraphify.pathsmodule (was duplicated across__main__,cache, andwatch);security.validate_graph_path'sbase=Nonediscovery + fallback,callflow_html's project-root resolution, and the post-commit/post-checkout hook bodies (which now read the env var at hook-run time) all use it. Previously a renamed output dir validated against the wrong base or made the hook miss.graphify_root(#1423). - Fix: the Aider and Devin monolith skills now carry the #1392 runbook fixes that the split skill got in 0.8.44. These single-file skills are hand-maintained and frozen against a pinned pristine-v8 blob by a round-trip guard, so they had been excluded. The guard is now a multiset diff that classifies every added/removed line against documented sanctioned change-classes (rather than a positional zip that forbade any line-count change), which lets the multi-line fixes land while still failing on any unsanctioned drift. Both monoliths now propagate
directed=IS_DIRECTEDinto everybuild_from_jsoncall (a--directedrun no longer collapses reciprocal edges), scope semantic extraction to document/paper/image (code is covered by the AST pass), delete.graphify_cached.jsonon a cache miss, and run Step 4's zero-node guard before any write with the report/analysis gated onto_jsonactually persisting the graph (#1392).
0.8.44 (2026-06-19)
- Fix: generated Claude/agent skill, crash & data-loss bugs in the runbooks (#1392). (1) Semantic chunk files were written under the scanned dir (
.graphify_root) but the merge globs cwdgraphify-out/, so a non-cwd scan produced "no nodes"; chunk paths are now derived from cwd. (2) Code-only corpora skipped Part B but Part C reads.graphify_semantic.jsonunconditionally, raisingFileNotFoundError; the fast path now writes an empty semantic file first. (3)--cluster-onlytold the agent to re-run Steps 5-9, which read intermediate files a prior cleanup deleted (FileNotFoundError); it now relies on the self-containedgraphify cluster-onlyCLI. (4) Step 4's zero-node guard ran afterGRAPH_REPORT.md/graph.json/analysis were written, andGRAPH_REPORT.mdwas written beforeto_json's #479 shrink-guard; the guard now runs before any write and the report/analysis are written only whento_jsonactually persisted the graph. - Fix: generated Claude/agent skill, remaining correctness bugs in the runbooks (#1392).
--directedis now propagated asdirected=IS_DIRECTEDintobuild_from_json(Step 4 + Step 5 rebuild) andbuild_merge(the--updatemerge + diff), so a--directed(and--directed --update) run no longer silently rebuilds undirected and collapses reciprocal A<->B edges. Semantic extraction flattens onlydocument/paper/image(code is already covered structurally by the AST pass) so subagents stop re-reading every source file..graphify_cached.jsonis deleted on a cache miss so Part C never merges a stale cache from a prior run.--updatenow transcribes changed video files and moves the transcripts into documents before the semantic pipeline. Transcription writes viawrite_text(no shell redirect), honoursGRAPHIFY_WHISPER_MODEL/GRAPHIFY_WHISPER_PROMPT, and prints status to stderr.add-watchandexportsuse the resolved interpreter explicitly, and the MCP Desktop config documents the absolute interpreter path. Extraction-spec example id is namespaced; query term split keeps tokens of 3+ chars. - Fix: the semantic extract entry points no longer crash on
FileSliceunits. The 0.8.43#1386fix coerced every item with[Path(f) for f in files], which raisedTypeErroron theFileSliceobjects produced by the oversized-text slicing path (#1369), so a corpus containing a document large enough to be sliced crashed on extract. Items are now coerced only when they are not already aPathorFileSlice(#1397, #1399).
0.8.43 (2026-06-19)
- Feat: package manifests are now parsed deterministically into a dependency graph.
apm.yml,pyproject.toml,go.mod, andpom.xmleach yield ONE canonical package node per package (keyed by name) plusdepends_onedges, routed to the AST path so the LLM never sees them. Previouslyapm.ymlwas an LLM-handled document, so the same package got a different file-anchored id from its own manifest than from each dependent's dependency reference and split into duplicate nodes; a package referenced from N manifests is now a single hub node (#1377). - Feat: markdown links now become graph edges.
extract_markdownonly emitted heading nodes +containsedges and never parsed link syntax, so a doc full of[text](./other.md)links (e.g.index.md,table-of-contents.md) had no edges to what it links and never became a hub. Inline links, reference-style links, and[[wikilinks]]are resolved relative to the source file (external URLs / in-page anchors / images skipped) and emitted asreferencesedges, with targets resolved via the same node-id recipe so they merge onto the real doc node (#1376). - Security: bumped vulnerable dependencies to patched versions —
pypdf6.11.0→6.13.3 (CVE-2026-48155/48156),yt-dlp2026.3.17→2026.6.9,pyjwt2.12.1→2.13.0,cryptography48.0.0→49.0.0,python-multipart0.0.28→0.0.32 — with lower-bound floors for the direct deps (pypdf,yt-dlp) so installs get the patched versions (#1375; thanks @hypnwtykvmpr). - Fix: the semantic extract entry points (
extract_corpus_parallel,extract_files_direct) crashed withAttributeErrorwhen passedstrpaths instead ofpathlib.Path. Both now coercefiles = [Path(f) for f in files]at entry (#1386). - Fix: community labeling now recovers from a malformed-JSON batch by splitting it at the midpoint and retrying each half (mirroring the extract path), instead of logging-and-skipping it — which silently lost ~100 community names per failed batch on large graphs (#1280, #1278; thanks @CJdev232).
- Fix:
graphify hook installno longer creates a literal backslash-named junk directory and reports false success whencore.hooksPath(orgit rev-parse --git-path hooks) is a Windows-style path under WSL. Drive-letter / embedded-backslash hooks paths are now rejected with a clear error (#1385). - Refactor: node-ID normalization is unified into a single
graphify.idsmodule.extract._make_id,build._normalize_id,mcp_ingest._make_id, andsymbol_resolution._bash_make_idwere four hand-synced copies of the same NFKC/casefold recipe — the root of the recurring ghost-node bug class (#811/#550/#1033/#1104). All four now delegate to one implementation guarded by contract + hypothesis property tests (#1378; thanks @danielnguyenfinhub).
0.8.42 (2026-06-18)
- Fix: large text documents are no longer silently truncated during semantic extraction.
_read_filescapped every file at 20,000 characters, so a Markdown/text/rST document longer than that had everything past the cap dropped — the model never saw it, and the packer/adaptive-retry path couldn't recover ("packing can't shrink one big file"). Oversized splittable-text files are now sliced at heading/paragraph boundaries into units that each fit the cap and together cover the whole file; every slice reports its parent file assource_file, so the graph is not fragmented per-slice. A single slice that still overflows the model's output is bisected and retried. Code files and PDFs are never sliced (they keep whole-symbol / page handling). (#1369) - Fix:
/graphify --updateno longer deletes a changed file's freshly re-extracted nodes. The0.8.41root=fix (#1361) madebuild_merge's prune actually match relativesource_filevalues — which then matched the just-re-extracted nodes of changed files (still listed inprune_sources) and removed them, so an--updateon a changed file could wipe its nodes. The update runbook now prunes only genuinely deleted files; changed files are reconciled bybuild_merge's replace-on-re-extract (#1344). The full build also now passesroot=tobuild_from_json, and the extraction-specsource_fileis pinned to the verbatim path, so the full build and incremental updates never drift on node-key base. (#1366; thanks @RelywOo) - Fix: Java
recorddeclarations are now modeled as first-class type nodes (they shareclass_declaration's name/body/interfaces fields), andnew Foo(...)constructor calls now produce acallsedge to the constructed type. Previously a record appeared only as its file node (degree 0) with no incoming edges, and body-levelnewusages were dropped becauseobject_creation_expressionwasn't a recognized call type and its callee lives in thetypefield rather thanname. (#1373) - Security fix:
.graphifyignoreand.gitignoreare now merged per directory instead of.graphifyignoresilently replacing that directory's.gitignore. Previously, adding a.graphifyignore(e.g. to exclude media) disabled the dir's.gitignoreentirely, so a file excluded only by.gitignore— including neutrally-named secrets likeprod-dump.sqlorcustomer-data.jsonthat the sensitive-file heuristic doesn't catch — got indexed into the graph, whose artifacts embed file contents and are routinely committed..gitignoreis read first and.graphifyignorelast, so.graphifyignorepatterns (including!negations) still win on conflict; adding one can only ever exclude more, never re-include a.gitignore-excluded file. (#1363)
0.8.41 (2026-06-17)
- Fix: OpenAI-compatible backends (
ollama,openai,deepseek,kimi) now honour their configured16384output-token cap instead of silently falling back to8192. The dispatch read amax_completion_tokensconfig key that onlygeminidefines; the others setmax_tokens, so their advertised cap was dead and deep-mode JSON truncated mid-string (recovered by the adaptive bisect, but noisy and slower). The dispatch now reads either key, and theopenaiconfig gained an explicit cap.GRAPHIFY_MAX_OUTPUT_TOKENSstill overrides. (#1365) - Fix: fuzzy dedup no longer over-merges distinct nodes in three cases. (1) Numbered/versioned siblings whose embedded digit runs differ as zero-padding-insensitive multisets (
ADR 0011vsADR 0013,3.1 Product Goalsvs1.1 Product Goals,40%+ …vs<20% …) never merge. (2)rationale/documentnodes are file-anchored like code (#1205's reasoning): near-identical docstring/heading boilerplate in parallel files no longer collapses across files, while same-file duplicates still merge. (3) Cross-file labels that share a long prefix but diverge in a distinguishing token (testing-library jest-nativevsreact-native) are scored on plain Jaro instead of Jaro-Winkler, so the leading-prefix bonus can no longer fabricate a merge; genuine cross-file duplicates still clear the bar on Jaro alone, and same-file near-duplicates keep Jaro-Winkler. Guards are mirrored into the--dedup-llmambiguous-pair collection. (#1284 thanks @van4oza, #1243) - Fix: Swift cross-file class relationships expressed through member calls and constructors now resolve to the receiver's real definition. A per-file type table (built from property/parameter declarations and constructor inference) types the receiver of
recv.method()/Type.staticMethod()/Singleton.shared.method()/self.prop.method(), and property/field initializers (let vm = VM()) are now walked for constructor calls. Edges are emitted only when the receiver's type resolves to exactly one definition (preserving the #543/#1219 god-node guards) and are taggedINFERRED; the blanket member-call skip in the shared call pass is untouched (#1356). - Fix:
/graphify <path> --updatenow prunes stale nodes correctly. The update runbook calledbuild_merge(prune_sources=...)withoutroot=, so the absolute prune paths were never relativized to match the graph's relativesource_filevalues — nothing was pruned and changed/deleted files left ghost nodes that compounded on every incremental run. The shared skill fragment now passesroot(the nativegraphify updateCLI was already correct) (#1361). - Fix:
export obsidianno longer writes an empty 32-bytegraph.canvason a populated graph.to_canvasbuilt cards solely by iterating communities, so a graph with no community data (--no-clusterbuilds, or a missing analysis sidecar) produced the empty{"nodes": [], "edges": []}shell while the markdown notes rendered fine. It now falls back to one synthetic community covering every node (#1324). - Fix: edges missing a
source_filefield (occasionally emitted by the semantic/LLM extractor, whichbuildonly normalized when the field was already present) are now backfilled from the edge's endpoint nodes inbuild_from_jsonand the--no-clusterraw-write path, so they no longer reachgraph.jsonwithout a file reference or trip validation (#1279). - Fix: every platform's query skill now ships both the vocab/IDF query-expansion step and the inline NetworkX fallback. Previously the two capabilities were split across
cli.md/cli-inline.mdso no platform got both — Claude had the superior expansion but no CLI-down fallback, while all other platforms had the fallback but the weaker raw-question matcher. The two fragments are merged into one unifiedqueryreference (and stub) shipped to all hosts; thequery_variantenum and its coverage-audit exemption are removed (#1325; thanks @LeanderBlume). - Fix: cross-file Java
implements/inherits/importsedges no longer orphan onto bare "shadow" nodes when two packages define a same-named type. The referencing file'simportstatement now disambiguates by exact package (FQN) and re-points the edge to the real definition, dropping the orphan stub. Previously_rewire_unique_stub_nodescould only repair the globally-unique case, so same-named interfaces (common in large Java codebases —Handler,Service, interface+impl pairs) left the real definition isolated in its own community (#1318). - Fix: Swift imports of the same module from multiple files now collapse to a single shared
type=modulenode instead of N path-qualified duplicates. The import target is taggedtype=moduleand exempted from id-disambiguation, so reverse traversal ("what imports CoreKit?") works; the--no-clusterwriter also now dedupes nodes by id (and edges) to match the clusteredbuild_from_jsonpath. Builds on the v0.8.40 Swift-import fix (#1327, #1330; thanks @duncan-daydream).
0.8.40 (2026-06-16)
-
Feat: custom OpenAI- and Anthropic-compatible endpoints via
OPENAI_BASE_URL/OPENAI_MODELandANTHROPIC_BASE_URL/ANTHROPIC_MODEL. Point either backend at a self-hosted or proxy server (vLLM, llama.cpp, LM Studio, LiteLLM, gateways); defaults still resolve toapi.openai.com/api.anthropic.com, andGRAPHIFY_OPENAI_MODELkeeps precedence overOPENAI_MODEL. Wired through both the extraction path (_call_claude) and community labeling (#1273). -
Feat: PowerShell
.psm1modules are now indexed..psm1was absent fromCODE_EXTENSIONSand the extractor dispatch table, so modules — and their dependents — were silently missing from the graph; they parse cleanly with the existing PowerShell grammar (#1315). (.psd1manifests andImport-Module/ dot-source import edges remain a follow-up.) -
Fix: Swift
importedges are no longer silently dropped._import_swiftemitted an edge to a bare module id with no backing node, sobuild.pypruned 100% of Swift imports. The target module node is now synthesized (new opt-inLanguageConfig.synthesize_import_module_nodes) so the edge survives the build (#1327). -
Fix:
--no-clusterand incrementalgraphify updateno longer accumulate duplicate edges. These paths bypass the NetworkXDiGraphthat collapses parallel edges, so repeatedupdategrew the edge count every run and counts diverged across build modes. Edges are now deduped by(source, target, relation)before writing — deterministic and idempotent; the no-cluster rebuild log now reports the written (deduped) edge count instead of the raw pre-merge count (#1317). -
Perf:
save_manifestfile hashing parallelized with aThreadPoolExecutor(#1295). -
Perf:
_walk_js_treeconverted from a recursive generator to an iterative walk, reducing overhead on large JS/TS trees (#1294). -
Feat: JS/TS AST now extracts function symbols defined via
this.X = () => {}/this.X = function(){}(constructor-assigned methods),exports.X = fn/module.exports.X = fn,Foo.prototype.X = fn, class arrow/function fields (class C { onClick = (e) => {} }), andconst f = function(){}function expressions. Previously only top-levelfunctiondeclarations, top-levelconst x = () =>arrows, classes, and method shorthand were captured, so the majority of callable symbols in constructor-style and CommonJS codebases (DAOs, route handlers, services) never became nodes and could not be call-edge endpoints. Arbitraryobj.x = fnis deliberately not captured, preserving the #1077 phantom-god-node guard (#1322). -
Fix:
graphify query,graphify explain, and MCPquery_graph/get_nodenow show the human-readable community name (e.g. "FlashAttention Paper") instead of a blank or numeric ID after runningcluster-only.to_jsonnow acceptscommunity_labelsand embedscommunity_nameon each node; read paths fall back to the numericcommunityfield for backward compatibility with old graphs (#1305). -
Fix:
graphify-mcpandpython -m graphify.servenow accept--graph <path>as an alias for the positional argument, consistent with every other graphify subcommand. Previously--graphraised "unrecognized arguments" (#1304). -
CI: bandit (MEDIUM+ severity) and pip-audit security scans added as a non-blocking
security-scanjob. Both run withcontinue-on-error: trueso they never break CI — advisory signal only, with the intent to remove the gate once pre-existing findings are triaged. -
Docs: RFC for file-level node summaries added (
docs/node-summaries-rfc.md). Proposes inlinegraph.jsonattribute vs sidecar storage options with pros/cons, phased implementation plan, and open questions for maintainer decision. -
Fix: AST extraction no longer crashes on Windows machines with >61 logical cores.
ProcessPoolExecutoron Windows is hard-capped at 61 workers viaWaitForMultipleObjects; the clamp now applies to all three input paths (auto-compute,GRAPHIFY_MAX_WORKERS,--max-workers) (#1298). -
Fix: ghost-merge skips ambiguous
(basename, label)collisions where two AST nodes share the same key. When same-named symbols appear in same-named files across different directories (e.g. tworender()in twoindex.ts), the previous last-writer-wins produced an arbitrary canonical node and mis-pointed all edges. Ambiguous keys are now tracked and skipped (#1257). -
Fix: startup no longer crashes on unreadable
.graphify_versionfiles. On restricted-permission installs or network mounts,.exists()/.read_text()raisedPermissionErrorand crashed everygraphify query/explain/pathcall. All three FS probes now wrapped intry/except OSError: return(#1299). -
Fix:
prs.pyclaude-cli backend resolvesclaude.cmdon Windows. The_call_llmand_call_claude_cliextraction paths were already fixed;prs.pyhad the same bare["claude", ...]subprocess call that fails on Windows npm installs with WinError 2 (#1288).
0.8.39 (2026-06-12)
-
Perf: O(n²)→O(n) LSH neighbor lookup in
deduplicate_entities. The inner scannext(n for n in candidates if n["id"]==neighbor_id)was O(n) per neighbor; replaced with acandidates_by_iddict built once per pass. Also adds anorm_cacheto avoid re-normalising labels on every comparison. -
Fix:
graphify merge-chunkssummary now prints the node count instead of the raw list object.global_graph.pyprintedmerged['nodes'](the list) instead oflen(merged['nodes']). -
Fix: manifest data-loss on corrupt
~/.graphify/manifest.json. A parse error previously triggeredexcept Exception: pass, silently returning an empty manifest and overwriting the file — wiping all tracked repos. The corrupt file is now renamed to a timestamped.corrupt.<ts>backup with a stderr warning before starting fresh. -
Fix: tree-sitter grammar packages now have pinned upper-bound version ranges in
pyproject.toml. Grammar packages routinely break node-type and field APIs across minor bumps; ceilings prevent silent breakage on future upgrades. -
Feat: FalkorDB export backend.
graphify export falkordb --push redis://localhost:6379pushes the graph to a FalkorDB instance. Optional dep (uv tool install "graphifyy[falkordb]"); lazy import; idempotent (MERGE semantics); Cypher injection guarded. -
Fix:
affectedandgraphify querynow handle graph files that use"edges"as the top-level key instead of"links". Graphs produced by nativegraphify extracton some corpus layouts used"edges"; loading them inaffected.pyraisedKeyError: 'links'. Normalised using the same established pattern already in__main__.pyandserve.py. -
Fix: a single
!negation rule in.graphifyignoreno longer disables all directory pruning. Previously any negation pattern causedcollect_filesto descend every ignored directory to look for re-included files. Since gitignore semantics cannot rescue files beneath an excluded parent, this descent was always wasted — the per-file filter still excluded them. Pruning now proceeds unconditionally; only the final per-file_is_ignoredcheck is consulted for negation. -
Feat:
--modelflag added tographify label-communitiesandgraphify cluster-only. Routes throughgenerate_community_labels→label_communities→_call_llm; defaults toNone(keeps existing backend default). Also fixes a latent arg-parsing bug where--backend gemini(space-separated) was mis-parsed as the positional path argument. -
Docs: Persian (فارسی) README translation added (
docs/translations/README.fa-IR.md).
0.8.38 (2026-06-11)
- Fix: LLM-generated
callsedges now have correct direction. The extraction prompt previously never stated thatsource= caller andtarget= callee; the LLM systematically emitted callee→caller edges. An explicit direction rule was added to the prompt. Separately, ghost-node merge was extended to collapse LLM duplicate nodes (bare-stem IDs) onto AST canonical nodes (parent-qualified IDs) even when the LLM node carries asource_location— the old check only caughtsource_location=Noneghosts. Post-fix annotation:callsprecision 100% (n=6), overall INFERRED precision 94% (n=16). - Fix: default imports/exports now produce symbol-level edges. JS/TS symbol resolution only handled named imports, so a
export default class Fooimported asimport Foo from './foo'got just a file→fileimports_fromedge — the class node received no incoming symbol edge. On codebases that default-export most classes (NestJS services/helpers/models, etc.) this left those symbols looking like isolated leaf nodes and madegraphify affected "<Class>"/explainreport no callers. Default imports are now recorded withimported_name="default",export default <class|function|identifier>registers a"default"export, and the existing resolver wires theimportsedge (and resolves calls through the local binding, even when renamed). Anonymous defaults (export default class {}) remain file-level only. - Fix: tsconfig
pathsaliases now resolved relative tobaseUrl. Previously all@/*→src/*aliases were resolved from the config file's directory regardless ofbaseUrl, breaking path alias import resolution for NestJS, monorepo, and similar layouts that setbaseUrl: "./src". - Fix: ghost-merge skips ambiguous
(basename, label)keys where multiple AST nodes share the same pair. Previously the last-writer-wins pass silently mis-merged one of two same-named symbols in different files (e.g. tworenderfunctions across separate modules), re-pointing edges to the wrong canonical node. - Fix:
resolve_seednow matches bare query terms against callable-decorated node labels. A query for"render"failed to seed nodes whose label was stored as".render()"because the string comparison was exact. Bare names are now tried against stripped labels as a fallback after exact and prefix matches. - Fix: AST cache is now namespaced by graphify version. Stale AST cache entries from a previous release no longer silently produce wrong extraction output after an upgrade — each version writes to its own subdirectory under
graphify-out/cache/ast/<version>/. Semantic cache is deliberately unversioned (LLM calls are expensive to re-run). - Fix: global-graph edges are now rewired to deduplicated external nodes. When two repos shared an external dependency node (e.g. both reference
requests), one copy was pruned but edges still pointed to the removed node ID, creating dangling references. Edges are now remapped through the dedup remap table before insertion. - Fix: dedup pass 2 now picks the winner only from the verified
(node, neighbor)pair. The previous code unioned both normalised-label groups before calling_pick_winner, allowing an unrelated same-named node from a different file to be dragged into the merge and supplant the correct winner. - Fix: extraction cache is anchored at the
--outdirectory root instead of leaking agraphify-out/into the scanned project. Usinggraphify extract ./src --out /tmp/outpreviously wrote cache files into./src/graphify-out/cache/alongside source files. Cache now writes exclusively under the--outpath. - Fix:
collect_filesrewritten as a single prunedos.walkinstead of onerglobper extension. On large repos this eliminated ~85 redundant filesystem traversals; noise directories (node_modules,.git,__pycache__, etc.) are now pruned before descent, preventing those subtrees from being scanned at all. - Fix: frontmatter delimiter detection now requires a whole
---line (regex^---[ \t]*\r?$). Thematic break lines (----) and YAML documents that open with--- title: foowere incorrectly parsed as frontmatter delimiters, causing cache hash instability on Markdown files with those constructs. - Fix:
claude-clibackend now spawnsclaude.cmdon Windows headless installs.npm-installed Claude Code ships a.cmdshim on Windows;CreateProcesscannot run it without the explicit extension.shutil.which("claude.cmd")is now tried first on win32, mirroring the fix already applied to the extraction path.CREATE_NO_WINDOWflag added to both subprocess spawn sites to prevent console windows flashing during headless runs. - Fix:
claude-clibackend handles JSON-array envelope from Claude Code CLI ≥ 2.1. Older CLI versions returned a single JSON object; 2.1+ wraps the response in a streaming array of events. The envelope parser now accepts both shapes, preferring the last{"type":"result"}event from an array. - Feat: Cargo workspace dependency extraction.
graphify extract ./my-workspace --cargointrospectsCargo.tomlfiles across a Rust workspace and emitscrate:<name>nodes withcrate_depends_onedges for workspace-internal dependencies. Registry dependencies are excluded. Handles virtual workspaces, root-package workspaces, glob members, and{workspace = true}inherited deps. - Fix: SystemVerilog class-level extraction improved. Classes, interfaces, enums, parameters, and their inheritance/implementation relationships are now extracted correctly from
.sv/.svhfiles. Dartwith MyMixinclauses now emitmixes_inedges (was incorrectlyimplements), consistent with PHP and Scala. - Docs: README grammar count updated from 28 to 36, reflecting all currently supported tree-sitter language grammars.
0.8.37 (2026-06-10)
- Security: SSRF guard rewritten to eliminate thread-safety race. The global
socket.getaddrinfomonkey-patch is replaced with per-connection_SSRFGuardedHTTPConnection/_SSRFGuardedHTTPSConnectionsubclasses that resolve DNS once, validate the IP, and connect to that exact address — closing both the concurrent-thread race window and the underlying TOCTOU gap. No global state is mutated, so sibling threads (MCP server, PR triage pool) are unaffected. - Security: Prompt injection mitigation for LLM semantic extraction. Untrusted source file content is now wrapped in
<untrusted_source path="..." sha256="...">XML delimiters; jailbreak sentinel tokens (<|im_start|>,[INST],<<SYS>>, forged closing tags) are neutralised with a zero-width space; the extraction system prompt includes an explicit SECURITY block stating that content inside the wrapper is inert data. - Fix:
export obsidianandexport canvasno longer crash withKeyErrorwhen a community contains a node ID absent from the graph (stale community index, merge artifacts). Dangling members are silently skipped. - Fix:
--updateon macOS no longer re-extracts all Office files on every run.convert_office_file()now NFC-normalises the source path before hashing the sidecar filename, so NFD paths returned byos.walk(HFS+/APFS) produce the same sidecar as NFC-constructed paths. An early-return when the sidecar exists prevents mtime bumps causing spurious re-detection. - Fix: Data
.jsonfiles no longer explode into hundreds of orphan key-nodes. The JSON extractor now only processes config/manifest JSON (detected by filename —package.json,tsconfig.json,.eslintrc.json,deno.json, etc. — or by top-level keys such asdependencies,extends,$ref,compilerOptions). Data JSON (top-level arrays, generic key/value files) is skipped by the AST pass and left for the LLM semantic pass. - Fix: OpenAI-compatible backends no longer send
temperature=0to reasoning models._resolve_temperature()auto-detects o1/o3/o4 and gpt-5 series and omits temperature from the request. Override withGRAPHIFY_LLM_TEMPERATURE=<value>(ornoneto omit explicitly for any model). - Fix: EDR / corporate Windows hang eliminated.
datasketch(which transitively importsscipy→numpy.testing→platform.machine()subprocess at import time) is replaced by a self-contained pure-numpy MinHash/MinHashLSH implementation with byte-identical hash math. Removesdatasketchandscipyfrom the dependency tree. - Perf:
detect()ignore-pattern checks memoized per scan. Each ancestor directory is now evaluated once across all sibling files, eliminating ~42M redundantfnmatchcalls on large repos (~34% whole-run speedup on 2k-file corpora). - Fix:
dedup.pylabel-based merge passes now skip code nodes entirely. Distinct same-named symbols in different files (e.g. twoConfigclasses) were being merged by the exact-label and MinHash/LSH passes. Code nodes are now deduplicated by ID only, which is correct. - Feat:
GRAPHIFY_MAX_GRAPH_BYTESenv var to override the 512 MiBgraph.jsonsize cap. Accepts plain bytes,<N>MB, or<N>GB. The cap error message now cites this env var.graphify export htmlauto-falls back to the community-aggregation view when over cap instead of hard-failing. - Feat:
CLAUDE.mdtemplate now uses mandatory language for the graphify-first rule — "MANDATORY: Before using Read/Grep/Glob/Bash to explore the codebase, you MUST run graphify first" — and explicitly requires forwarding the rule to subagent prompts. PreToolUse hook message hardened to match. - CI: Release workflow added. Every GitHub release now ships
graphify-self-graph.tar.gzas a downloadable asset —graph.json+graph.html+GRAPH_REPORT.mdfrom running Graphify on its own source. Opengraph.htmllocally with no install required to see what Graphify produces.
0.8.36 (2026-06-08)
- Feat:
extra_bodyfield inproviders.jsonforwarded to OpenAI-compat calls at extraction and labeling. Lets vLLM/Qwen3/Llama endpoints pass model-specific request shapes (e.g.{"chat_template_kwargs": {"enable_thinking": false}}). Explicitextra_bodyalso bypasses Ollamanum_ctxauto-derive. Thanks to @EirikWolf (#1197). - Feat:
label_communitiesmulti-batch for 16k-context models. Chunks of 100 communities per call (configurablebatch_size=);max_communitiesdefaults toNone(label all); partial batch failures no longer drop the whole pass. Thanks to @EirikWolf (#1197). - Feat:
.slnxVisual Studio solution file support. Extractscontains(project references) andimports(build dependencies) edges from the modern XML solution format (VS 2022 17.13+). Thanks to @bakgaard (#1189). - Feat:
graphify-mcpconsole script. MCP stdio server now directly invocable asgraphify-mcpfromuv tool install/pipx. Thanks to @jr2804 (#1190). - Fix:
label_communitiestoken budget raised andGRAPHIFY_MAX_OUTPUT_TOKENSnow honoured. Hardcodedmin(40+16n, 4096)undershooted (~16 tok/community); raised tomin(64+24n, 8192)and wrapped in_resolve_max_tokens()(#1200). - Fix:
find_import_cyclesno longer hangs on large graphs.nx.simple_cycles()now receiveslength_bound=max_cycle_length, pruning during enumeration rather than post-filtering — drops from never-returns to ~0.1s on dense graphs (#1196). - Fix: fuzzy dedup no longer merges prefix-extension symbol pairs.
getActiveSession/getActiveSessions,parseConfig/parseConfigFileetc. scored ~98-99 JW and were auto-merged. A prefix-extension guard now prevents merge when one normalised label is a strict prefix of the other, in both Pass 2 and the LLM tiebreaker (#1201). - Fix:
_norm,_norm_label,_strip_diacriticsguard againstNonenode labels, preventingTypeErrorcrash on corpora with explicitnulllabel fields (#1194). Thanks to @freiit (#1195). - Fix: skill frontmatter
trigger:field removed from all 14 skill variants — not part of Agent Skills spec, flagged byagentskills validateCI (#1180).
0.8.35 (2026-06-07)
- Feat: CodeBuddy platform support.
graphify codebuddy installinstalls the graphify skill to~/.codebuddy/skills/graphify/SKILL.md, writes aCODEBUDDY.mdalways-on section, and registers Bash + Read|Glob PreToolUse hooks in.codebuddy/settings.jsonthat nudge the agent towardgraphify queryinstead of grepping raw files when a graph exists.graphify install --platform codebuddyandgraphify codebuddy uninstallalso supported. Thanks to @studyzy (#1136). - Fix:
graphify --updateno longer destructively collapses distinct same-named symbols across files. The skill's--updatemerge now passes re-extracted (changed) files toprune_sourcesalongside deleted files, so old nodes for changed files are pruned before fresh AST is inserted — no fuzzy reconciliation needed. Separately,dedup.pyPass 1 now skips nodes with an emptysource_fileso label-only merging across no-source-file nodes is prevented. The anti-shrink guard message now names fuzzy dedup as a possible cause rather than only blaming missing chunk files (#1178).
0.8.34 (2026-06-07)
- Feat: Streamable HTTP transport for the MCP server.
python -m graphify.serve graph.json --transport http --port 8080 --api-key $SECRETserves the graph over the MCP Streamable HTTP transport (spec 2025-03-26) so a single shared process can serve the whole team. Flags:--host,--port,--api-key(envGRAPHIFY_API_KEY),--path,--json-response,--stateless,--session-timeout. Docker image included. stdio remains the default (#1143). - Feat: Salesforce Apex extractor.
.clsand.triggerfiles are now AST-extracted via regex (no tree-sitter grammar exists for Apex). Extracts classes, interfaces, enums, methods, triggers, and SOQL/DML edges (#1159). - Feat: Azure OpenAI Service backend.
--backend azurereadsAZURE_OPENAI_API_KEY+AZURE_OPENAI_ENDPOINTand auto-detects both. Uses the existingopenaipackage — no new dependency (#1107). - Feat: live PostgreSQL introspection.
graphify extract --postgres "postgresql://..."connects directly to a running database and maps tables, views, routines, and FK relations viainformation_schemain aSERIALIZABLE READ ONLYtransaction. Newgraphify[postgres]extra (psycopg3). Credentials are sanitized from error messages (#1103). - Feat: vision and PDF support in headless extract. Images now route through per-backend vision payloads (base64/data-URI for claude/openai, file path for claude-cli, bytes for bedrock) instead of producing garbage binary data. Non-vision backends get a text reference via
_strip_pixels. PDFs reuse pypdf. 5MB cap, 20-image chunk limit (#1110). - Fix:
graphify updatenow prunes symbols removed from files that still exist on disk. Previously, deleting a function left a ghost node in the graph until the source file itself was deleted. Every AST node is now stamped with_origin="ast"; on a full rebuild any stamped node absent from the fresh output is dropped (#1118). - Fix:
graphify pathandshortest_pathnow fire the exact-match bonus for multi-word queries. The per-token comparison never equalled a full multi-word label, so the exact bonus was silently skipped for queries like"AuthService"when the label contained punctuation or spaces. The full normalized query is now compared alongside each token (#1165). - Fix:
_is_sensitiveno longer flags topic-mentioning filenames as secrets.token-economics-of-recall.mdandpassword-policy-discussion.mdwere silently dropped. Generic keywords (token/secret/password) now only fire when the keyword ends the filename stem or the stem is ≤2 words; specific patterns (.env,.pem,id_rsa, etc.) remain unconditional (#1169). - Fix: git hooks no longer use
nohupto background the rebuild. Git for Windows' MSYS shell has nonohup, causing the post-commit/post-checkout hook to fail silently and the graph to go stale. Replaced with a cross-platform Python launcher usingDETACHED_PROCESS | CREATE_NEW_PROCESS_GROUPon Windows andstart_new_session=Trueon POSIX (#1161 / #1170). - Fix: post-commit and post-checkout hooks now respect an existing
.graphify_root. A scoped build (graphify src/) was silently expanded to the full repo on the next commit because the hook hardcodedPath('.'). The hook body now readsgraphify-out/.graphify_rootfirst (#1173). - Fix:
graphify affectednow forces a directed graph on load, matching the identical fix already applied inserve.pyand__main__.py. On undirected graphs ("directed": falsein graph.json) the traversal was direction-blind — missing true callers and reporting callees as affected (#1174). - Fix: Step 9 skill cleanup no longer aborts under fish/zsh on pure-code corpora. The
rm -f ... .graphify_chunk_*.jsonglob errored with "no matches found" when no chunk files existed, leaving other temp files on disk. Split intorm -ffor fixed filenames andfind -maxdepth 1 -deletefor the chunk glob (#1172). - Fix:
detect_incrementalno longer crashes on schema-drifted manifest files. A dict-valuedmtimeentry (from an older richer schema) is now coerced toNoneand the file is treated as new rather than raising a comparison error (#1163). - Fix: numpy pinned to
>=2.0only on Python 3.13+ in thesvgandallextras. numpy 1.26.4 ships nocp313wheel souv syncfell back to a source build requiring a C compiler (#1153 / #1154). - Fix: Codex platform skill now installs to
.codex/skills/graphify/(was.agents/skills/graphify/), aligning with where the hook already lives (#1160).
0.8.33 (2026-06-06)
- Feat: FalkorDB export backend — sibling to Neo4j, selected via
graphify export falkordb [--push falkordb://localhost:6379]. FalkorDB is OpenCypher-compatible, so the MERGE/SET upsert queries match the Neo4j path; auth is optional and the target graph defaults tographify. Install withuv tool install "graphifyy[falkordb]"(#1175). - Feat: install banner —
graphify installnow prints an amber knowledge-graph brain in the terminal (TTY-only, silent in CI/pipes, never raises). - Fix: Python
from pkg import submodpackage-form imports now resolve to a file-levelimports_fromedge to the submodule file when it exists on disk. Previously these imports produced zero edges, leaving test files as disconnected islands in the graph (up to 66% of test nodes in some corpora). The fix lives in the symbol-resolution post-pass which has filesystem access (#1146). - Fix: builtin type-annotation nodes (
str,int,bool,float,bytes,MagicMock,Mock,AsyncMock, etc.) no longer appear as graph nodes or accumulate edges. They were being created via the annotation walker whenever used as parameter or return types, inflating degree counts ~25% and displacing real abstractions from god-node rankings. A new_PYTHON_ANNOTATION_NOISEfilter suppresses them at extraction time;god_nodesalso filters them as a defense for pre-existing graphs (#1147). - Fix: AST/semantic ghost-duplicate nodes are now auto-merged at build time. When AST and semantic extraction produce different IDs for the same symbol (one with
source_location=L<n>, one without),build_from_jsondetects the pair by(source_file basename, label)and collapses the semantic ghost into the AST node, re-pointing all edges. Graphs built before this release can be cleaned up withgraphify extract . --force(#1145).
0.8.32 (2026-06-05)
- Feat: Terraform/HCL support.
.tf,.tfvars, and.hclfiles are now AST-extracted viatree-sitter-hclinto a structured infrastructure dependency graph. Nodes: resources, data sources, modules, variables, outputs, providers, and locals. Edges:contains,references(interpolation), anddepends_on. Node IDs are directory-scoped for cross-file resolution. Requiresuv tool install "graphifyy[terraform]"(#1129). - Fix:
graphify extractno longer requires an LLM API key for code-only corpora. Backend resolution is now deferred until after file detection — a corpus with only code files (pure tree-sitter AST, zero LLM calls) runs fully offline. The key is only enforced when docs, PDFs, or images are present, or when--dedup-llmis passed (#1122). - Fix:
graphify kiro installnow correctly installs thereferences/sidecar and.graphify_versionstamp. The install was using a barewrite_textthat bypassed the shared helper, shippingSKILL.mdwith 8 deadreferences/*.mdpointers. Re-rungraphify kiro installto pick up the fix (#1142). - Fix:
GRAPHIFY_API_TIMEOUTnow applies toclaude-clisubprocess and Anthropic SDK backend, not just the HTTP client. Both subprocess paths previously hardcodedtimeout=600and ignored the env var and--api-timeoutflag (#1112). - Build: version floors added for
networkx>=3.4,datasketch>=1.6, andrapidfuzz>=3.0to prevent silent breakage from old installs resolving incompatible versions.
0.8.31 (2026-06-03)
- Fix:
graphify hook installnow embeds the current interpreter (sys.executable) directly into the generated hook scripts. Previously, uv tool and pipx installs silently no-oped on git commit in GUI clients and CI runners where~/.local/binis not on PATH — the hook could not find the graphify launcher, fell through all detection probes, and exited 0 without rebuilding. The embedded path is sanitized through a filesystem-safe allowlist before substitution. If you already have hooks installed, re-rungraphify hook installto pick up the fix (#1127). - Fix: hook scripts now also probe
graphify-out/.graphify_pythonas a fallback interpreter source, covering Windows/Git Bash installs where the launcher is a binary with no parseable shebang, and the case where the pinned path goes stale after a reinstall. - Security: hook script hardening — the
_PINNED=assignment uses single quotes to prevent shell injection from a path containing metacharacters;nohup "$GRAPHIFY_PYTHON" -cis properly quoted to handle spaces; the fallback emits a loud stderr diagnostic instead of a bare silentexit 0. - Feat: query logging. Every
graphify query,graphify path,graphify explain, and MCPquery_graphcall is now appended to~/.cache/graphify-queries.login JSON Lines format (timestamp, kind, question, corpus path, nodes returned, result size, duration). Full subgraph responses are not stored by default. Control withGRAPHIFY_QUERY_LOG(path override),GRAPHIFY_QUERY_LOG_DISABLE=1(opt out),GRAPHIFY_QUERY_LOG_RESPONSES=1(store full response text) (#1128).
0.8.30 (2026-06-03)
- Fix:
graphify install --project --platform antigravitynow writes Antigravity's always-on layer (.agents/rules/graphify.md+.agents/workflows/graphify.md), not just the skill. The project-scoped path went through the skill-only branch and skipped them, even though the project uninstall removes them. - Feat: close the Read-tool graph bypass. The
PreToolUsenudge previously only fired on Bash search (grep/rg/find); an agent answering a question by reading many source files through the nativeReadtool (orGlob) slipped past it. A newRead|Globhook nudges towardgraphify querywhengraphify-out/graph.jsonexists, only for a source/doc file outsidegraphify-out/, and never blocks (#1114). - Feat: add an
anthropicoptional extra (and include it in[all]) so theclaudebackend is installable like every other one:uv tool install "graphifyy[anthropic]". Previously it was the only backend with no extra, so a user withANTHROPIC_API_KEYset could not satisfy it without--with anthropic. The backend package-missing errors now point atuv tool install "graphifyy[<extra>]"(the isolated-venv path) rather than onlypip install.
0.8.29 (2026-06-02)
- Feat: progressive-disclosure skill files. The per-host
SKILL.mdis now a lean core (~615 lines, down from the ~1156-line monolith, about 47% less always-loaded context) that carries the full default code-build pipeline inline and links to an on-demandreferences/sidecar (extraction-spec, query, update, exports, transcribe, github-and-merge, add-watch, hooks); an agent reads a reference only when that path is actually taken, so a normal build needs none. 18 hosts go progressive (claude, codex, opencode, kilo, copilot, claw, droid, trae, trae-cn, hermes, kiro, pi, antigravity, antigravity-windows, windows, kimi, amp, gemini); aider and devin stay monolithic by design. All 15 skill bodies + sidecars are generated from one source undertools/skillgen/, with CI guards (--check,--audit-coverage,--monolith-roundtrip,--always-on-roundtrip) proving the references are byte-identical slices of the old monolith so nothing is lost (#1121). - Fix:
graphify install --platform geminishipped aSKILL.mdwith 8 deadreferences/pointers. gemini installs claude's lean progressive core but the installer never copied claude's references sidecar; it now does, so every on-demand reference resolves (regression from the progressive-disclosure split). - Security (F1): a project-local
./.graphify/providers.json(which travels with a cloned or shared repo) is no longer loaded automatically, since a custom provider'sbase_urlis where your corpus and API key are sent. SetGRAPHIFY_ALLOW_LOCAL_PROVIDERS=1to opt in; the user's own~/.graphify/providers.jsonis still trusted. Non-http(s)base_urls are rejected on load and onprovider add, and plaintext-http egress warns. Behavior change: if you relied on an auto-loaded project-local providers file, set the opt-in env var. - Security (F2): untrusted office/PDF files are screened before parsing (on-disk size cap, plus a bounded streaming-decompression ceiling for
.docx/.xlsxzip containers) so a zip-bomb in a scanned corpus can no longer exhaust memory. - Security (F3):
OLLAMA_BASE_URLpointing at a link-local or cloud-metadata address (169.254.x,metadata.google.*, or any host that resolves to one) now fails closed with a clean error instead of sending the corpus there. Trusted LAN hosts still warn-and-allow. - Security (F5): the Fortran C-preprocessor step passes an absolute path so an attacker-named corpus file cannot be interpreted as a
cppoption.
0.8.28 (2026-06-01)
- Feat: Kilo Code support —
graphify install --platform kiloinstalls a native skill (~/.config/kilo/skills/graphify/SKILL.md) and/graphifycommand, plus a.kilotool.execute.beforeplugin (mirroring the OpenCode integration). Existing.kilo/kilo.jsoncconfig is read but never rewritten — plugin registration goes tokilo.jsonso user comments are preserved (#512) - Feat: modernized Dart extractor — comment stripping,
part ofredirection, nested-generic-awareextends/with/implementsparsing, generic type-argument mapping, and generic call detection (#1098) - Fix:
uv tool install graphifyy/pip install graphifyyno longer fails to build on Linux/macOS —tree-sitter-dm(BYOND DreamMaker) ships only a Windows wheel, so on other platforms it compiled from source and aborted the entire install when a C toolchain orpython3-devheaders were missing. It is now an optional extra (graphifyy[dm], also in[all]) instead of a core dependency, so the default install needs no compiler (#1104).- Upgrade note: DreamMaker
.dm/.dmeusers must reinstall withgraphifyy[dm](or[all]) to keep AST extraction — onuv tool upgradethe now-optional grammar is removed..dmi/.dmm/.dmfparsing is unaffected (no tree-sitter dependency).
- Upgrade note: DreamMaker
- Fix: community IDs are now assigned by a total order (
(-size, sorted node IDs)) so an identical grouping always gets identical IDs across runs — previously the equal-sized small communities that dominate a sparse graph were numbered by the partitioner's (not seed-stable) enumeration order, making a per-node community diff report large spurious "churn" even though the actual grouping was reproducible (#1090 follow-up) - Fix:
graphify amp installnow writes the skill where Amp actually looks for it. It was landing in.amp/skills/graphify(project) and~/.amp/skills/graphify(user), neither of which Amp searches, so the skill never loaded. User-scope installs now go to~/.config/agents/skills/graphifyand project installs to.agents/skills/graphify, and a stale~/.amp/skills/graphifyfrom an older install is cleaned up on the next run.
0.8.27 (2026-05-31)
- Feat: standalone CLI now auto-names communities with the configured backend instead of leaving
Community Nplaceholders — community labeling was previously an agent-only step (skill.md Step 5), so bare-CLI runs never got semantic names;cluster-onlynow auto-labels when no.graphify_labels.jsonexists, newgraphify label <path>subcommand (re)generates names on demand,--no-labelopts out,--backend=<name>overrides auto-detection; one batched LLM call with per-community placeholder fallback and graceful degradation on missing backend/API error; works with all built-in and custom OpenAI-compatible backends (#1097) - Fix: AST file-level node IDs now match the skill.md
{parent_dir}_{stem}spec — they were derived from the full relative path plus extension (match_script_pipeline_step_py) while semantic subagents usescript_pipeline_step, splitting every file into two disconnected ghost nodes; fixed at the single relative-path remap chokepoint so file nodes and all import/dependency edge endpoints (Python, TS, Lua, C, bash) convert together (#1033) - Fix: symbol-level node IDs for root-level files now match the spec too — the #1033 remap relativized file nodes but symbols still embedded the absolute parent-dir name (
<rootdir>_main_runvs specmain_run), splitting every top-level file's symbols into AST/semantic ghost pairs; the remap now canonicalizes symbol stems andraw_callscaller IDs, gated bysource_file(#1096) - Fix: TypeScript
interface A extends Band same-fileclass X extends Ynow produceinherits/implementsedges — the walker only inspectedclass_heritage(missing the interfaceextends_type_clausenode) and the resolver only consulted the import table (missing same-file bases); both gaps closed (#1095) - Fix:
graphify export obsidianno longer crashes withOSError ENAMETOOLONGon long node labels —to_obsidian/to_canvasnow cap filenames on UTF-8 bytes (not chars, so multibyte/CJK labels are handled) with an 8-char hash suffix on truncation to keep distinct long-prefix labels from colliding; also fixes the previously-uncapped_COMMUNITY_notes (#1094) - Fix:
graph.jsonis now deterministic across runs —detect()sorts file traversal lexicographically (os.walkorder is filesystem-dependent), which had made first-writer-wins node-ID decisions and Leiden community counts vary between identical runs (#1090) - Fix: Windows consoles no longer crash with
UnicodeEncodeErroron non-UTF-8 code pages —main()reconfigures stdout/stderr to UTF-8 at startup and→/—in print statements replaced with ASCII (#992)
0.8.26 (2026-05-30)
- Feat:
find_import_cycles(G)inanalyze.pydetects file-level circular import dependencies — collapses symbol graph to file-level directed import graph, finds simple cycles via Johnson's algorithm, deduplicates rotations, renders## Import Cyclessection inGRAPH_REPORT.md(#961) - Feat: custom LLM provider registry —
graphify provider add/list/show/removeregisters any OpenAI-compatible endpoint (NVIDIA NIM, vLLM, OpenRouter, Together, LiteLLM) via~/.graphify/providers.json; custom providers auto-detected after built-ins indetect_backend()priority (#1084) - Fix:
extract_files_direct()no longer silently defaults to kimi (Moonshot AI) —backend=Nonenow callsdetect_backend()and raises a clearValueErrorif no key is configured, matching CLI behavior; README Privacy section updated with data-residency notes (#1086) - Fix:
pnpm-workspace.yamlwithpackages: - '.'no longer crashes withIndexError: tuple index out of rangeon Python 3.10 —Path.glob('.')replaced with[root]guard in_load_workspace_packages;GRAPHIFY_DEBUG=1env var added to_safe_extractfor full traceback on extraction errors (#1083) - Fix: anchored
.graphifyignorepatterns (leading/) no longer match the same directory name anywhere in the tree —_matches()in both_is_ignoredand_is_includednow gates basename/segment shortcuts onnot anchored; anchored patterns do exact anchor-relative path match only (#1087) - Docs: Filipino (fil-PH) README translation added (#1080)
0.8.25 (2026-05-29)
- Fix: JS/TS
const/letinside arrow-function callbacks no longer emit phantom god-nodes — scope guard restricts_js_extra_walknode emission to program-level declarations only; applies uniformly to JS, TS, and TSX (#1077) - Fix: fenced code blocks in Markdown no longer emit orphan
codeblock_Nnodes — they had onlycontainsedges and no semantic meaning; fence-toggle still prevents inner content from being mis-parsed as headings (#1077) - Fix: Lua
require("pkg.sub")now resolves to the correct file node ID — dots converted to path separators, probes filesystem for.lua/.luau/init.luavariants up the directory tree (#1075) - Fix: Windows
claude-clibackend no longer raisesWinError 2— prefersclaude.cmdover bareclaudeto avoid PATHEXT.ps1resolution failure (#1072) - Fix: post-commit hook no longer silently drops
changed_pathswhen another rebuild holds the lock — lock-losers queue paths to a pending file; the lock-holder drains and merges on acquire (#1059) - Fix:
graphify install antigravityglobal install now writes to~/.gemini/config/skills/(per Antigravity docs) instead of the wrong~/.agents/; uninstall, version-stamp refresh, and project-scope install all updated to match (#1079) - Docs: README warns against
pip installon Mac/Windows due to Python env mismatch causingModuleNotFoundError;uv tool installrecommended as primary method (#1074)
0.8.24 (2026-05-29)
- Feat: type-reference edges for ObjC, Julia, C, C++, Scala, Fortran, and PowerShell — extends cross-language semantic context work from #1015 to a second wave of languages; CI matrix now covers Python 3.10 with
faster-whisperversion guard (#1071) - Fix: claude-cli backend no longer loops on hollow streamed responses — handles all four documented failure modes (empty stream, no JSON, missing
result, emptyresult) with tests (#1063) - Fix:
callsedges no longer flip caller/callee when the same node pair appears in both directions in an undirected build — first-seen direction preserved on bidirectional collision (#1061) - Fix:
graphify-out/.graphify_pythonpath prefix was missing in 8 skill files (256 instances) causingcat: .graphify_python: No such file or directoryon every non-Claude-Code platform - Chore: all skill files now use uv-aware interpreter detection —
uv tool run graphifyy pythonpreferred over shebang parsing when uv is available
0.8.23 (2026-05-28)
- Feat: type-reference edges for Swift, Kotlin, PHP, Rust, and Go —
referencesedges withparameter_type,return_type,generic_arg,field, andattributecontexts; inheritance split intoinherits(superclass) vsimplements(protocol/interface/trait) for all five languages (#1015) - Chore: CI switched from pip to uv (
astral-sh/setup-uv,uv sync,uv run pytest);uv.lockcommitted for reproducible installs; dev setup docs updated (#885)
0.8.22 (2026-05-28)
- Feat: BYOND DreamMaker support —
.dm/.dmefiles extracted via tree-sitter-dm (type definitions, proc declarations,#includeedges, in-file call resolution,new /type()instantiation edges);.dmiPNG icon files parsed for icon-state nodes;.dmmmap files parsed for type-pathusesedges from the tile dictionary section;.dmfinterface files parsed for window/elem/control-type hierarchy (#884) - Feat:
graphify extract --mode deepflag enables richer semantic extraction using an extended system prompt; flag propagated through all four LLM backends (#1030)
0.8.21 (2026-05-27)
- Fix:
graphify update(no--changedflag) no longer leaves ghost nodes from files deleted between runs — full re-extraction path now reconciles the existing graph against current disk state and evicts any node whosesource_fileno longer exists;_norm_source_fileused on both sides to guarantee path format consistency (#1007) - Fix:
graphify install --platform opencode --projectnow writesSKILL.mdto.opencode/skills/graphify/SKILL.md(discoverable by OpenCode) instead of the incorrect.config/opencode/skills/path; git-add hint updated accordingly (#1040) - Fix: post-commit hook no longer triggers rebuild when only
graphify-out/files were committed (avoids infinite dirty-tree loop when graph outputs are tracked in git);GRAPHIFY_SKIP_HOOK=1env var added for one-off skip; hook rebuild log now appends (>>) instead of overwriting (>) (#1018, #1037) - Fix: graph output is now byte-for-byte deterministic across runs — edges sorted by
(source, target, relation)inbuild_from_json;PYTHONHASHSEED=0exported in hook scripts to stabilize Louvain community ordering (#1010) - Feat: Amp (ampcode.com) platform support —
graphify amp install/uninstallinstalls the skill into.amp/skills/graphify/SKILL.md(#948) - Fix: query punctuation no longer breaks node matching —
"what calls extract?"correctly finds theextractnode;_search_tokenshelper strips punctuation from search terms in_query_terms,_score_nodes, and_find_node(#994, #978) - Fix: language built-in globals (
String,Number,Boolean,Object,Array, etc.) no longer accumulate spurious call edges — filtered at same-file and cross-file resolution in the AST extractor, eliminating god-node pollution from constructor-style calls (#916, #726) - Feat: SystemVerilog header files (
.svh) now extracted using the Verilog parser alongside.vand.sv(#1042) - Fix:
@property,@staticmethod,@classmethodmethods no longer produce orphaned nodes without a class-qualified ID —decorated_definitionis now treated as a transparent wrapper in the Python AST walker, preservingparent_class_nidthrough the decorator layer (#1050) - Fix: Pass 2 dedup no longer merges nodes with identical labels that live in different files — same-file partition enforced for the identical-label subcase so
foo()ina.pyandfoo()inb.pyare not collapsed into one node (#1046) - Fix:
graphify-out/memory/files are no longer silently excluded by.gitignorepattern matching — memory dir files now bypass the gitignore filter indetect.py, ensuring knowledge accumulated viagraphify rememberis always scanned (#1047)
0.8.20 (2026-05-26)
- Fix: stale nodes persist after
graphify updatewhen files are deleted on Windows —deleted_pathsandevict_sourcesin_rebuild_codenow use.as_posix()for consistent forward-slash paths;_relativize_source_filescalled on the existing graph before eviction (not after);_relativize_source_filesitself now produces forward slashes (#1007) - Fix:
graphify extractstale-node pruning now also handles symlinked scan roots —prune_setexpansion usesPath(root).resolve()beforerelative_to()so symlinked roots produce correct relative paths (#1007) - Feat: MCP config extractor —
.mcp.json,mcp.json,mcp_servers.json,claude_desktop_config.jsonnow extracted into the knowledge graph; captures server nodes, npm/pip package refs, env var requirements; env values discarded to prevent secret leakage (#1034) - Fix:
cluster-onlyno longer drops community label alignment after re-clustering —remap_communities_to_previousnow applied in thecluster-onlypath, matching the behaviour ofgraphify update(#1028) - Fix: Dart child node IDs no longer embed absolute paths — switched from
_make_id(str(path), name)to_make_id(_file_stem(path), name), consistent with all other extractors; existing Dart graphs should be rebuilt with--force(#999) - Security: XML parsing in
extract_csprojandextract_lazarus_packagenow pre-screens for<!DOCTYPE/<!ENTITYdeclarations before callingET.fromstring, blocking billion-laughs DoS on malicious project files;extract_lpkalso gains the missing 2 MiB size cap
0.8.19 (2026-05-26)
- Feat: .NET project file support —
.sln,.csproj,.fsproj,.vbproj,.razor,.cshtmlnow extracted; captures NuGet package refs, project-to-project dependencies, target frameworks, SDK attributes, Blazor/Razor directives (@using,@inject,@inherits,@model,@page), component refs, and@codeblock methods (#1025) - Feat: Chinese query segmentation — compound Chinese tokens (e.g.
页面路由) are split into meaningful words using jieba when installed, with character bigram fallback; original compound preserved alongside segments for exact-match; newpip install "graphifyy[chinese]"extra (#1026) - Fix: Wiki TypeError when
source_fileisNone—G.nodes[n].get("source_file") or ""replaces.get("source_file", ""), which did not handle explicitNonevalues (#1016) - Fix: Nested
.claude/worktrees/no longer indexed —_is_noise_dirnow accepts an optionalparentparam and skipsworktrees/directories nested inside dotted dirs like.claude/(#1023) - Fix:
backup_if_protectedno longer accumulates one folder per run — uses content-hash comparison to skip identical backups and overwrite in-place when content changes; one folder per day maximum - Feat: Devin CLI support —
graphify devin install/uninstallinstalls the skill into Devin's.devin/rules/directory (#1020) - Fix: TypeScript 5.0 array-form
extendsintsconfig.jsonnow handled —_read_tsconfig_aliasesnormalizesextendsto a list before iteration (#1017)
0.8.18 (2026-05-24)
- Fix: post-commit hook now updates graph after delete-only commits — shrink-guard is bypassed when
changed_pathscontains explicit deletions, preventing stale nodes from accumulating indefinitely (#1000) - Fix:
graphify export(html/obsidian/wiki/svg/graphml/neo4j) no longer collapses to "Single community" when.graphify_analysis.jsonis absent — falls back to per-nodecommunityattribute already present ingraph.json(#1001) - Fix: Ukrainian README translation updated to v8 — all new sections, correct badges, 31 languages (#995)
- Feat: semantic context tags on
referencesedges for Python/JS/TS/C#/Java —parameter_type,return_type,generic_arg,attribute,field; C#/Java splitinherits/implements; dedup key now includes context (#996)- Breaking: Java
extendsedges are now emitted asinherits— queries filtering onrelation="extends"for Java nodes must be updated torelation="inherits"
- Breaking: Java
- Feat: constrained query expansion in skill — Step 0 extracts actual graph vocab and forces LLM to pick expansion tokens only from that set, preventing hallucinated expansions; Unicode regex fix captures Cyrillic/CJK labels (#998)
- Docs: Ukrainian README updated to v8 with all new sections, correct badges, YC badge, 31 language count (#995)
0.8.17 (2026-05-23)
- Fix: Case-sensitive call resolution for Go, Rust, and Elixir — resolvers previously lowercased both the label index and the callee name, causing
Authorizeto matchauthorizeand produce phantom edges; Ruby/C#/Java/Kotlin/Scala/PHP use the same generic resolver which now splits into case-sensitive (all languages) and case-insensitive (PHP only, where function/class names are genuinely case-insensitive) dicts (#993) - Fix: Cross-language phantom
callsedges from semantic extraction dropped at graph-build time — INFERREDcallsedges whose source and target nodes belong to different language families (py/js/go/rs/jvm/c/cpp/rb/php/cs/swift/lua) are now discarded; skill.md prompt updated with an explicit anti-rule (#991)
0.8.16 (2026-05-22)
- Fix: CJK/Unicode labels no longer silently stripped during dedup —
_norm()and_norm_label()now use Unicode-aware[\W_]+regex withcasefold()and NFKC normalization; previously道具処理クラスand any non-ASCII label collapsed to empty string and got falsely merged (#937) - Fix:
.ets(ArkTS/HarmonyOS) files now recognized as code and extracted via the TypeScript parser (#926) - Fix:
graphifynow exits non-zero when all semantic-extraction chunks fail — previously a silent empty graph was written with exit code 0, masking backend failures (#889) - Feat:
graphify install --projectinstalls the skill into the current repository (.claude/skills/,.agents/skills/, etc.) instead of the user home directory; per-platform subcommands support the same flag (#931) - Docs: Uzbek (uz-UZ) README translation (#982)
0.8.15 (2026-05-22)
- Fix:
cluster-onlysubcommand crashed withFileNotFoundErrorwhengraphify-out/did not yet exist — output directory is now created before any write (#934) - Fix:
GRAPHIFY_MAX_OUTPUT_TOKENSenv var now respected for all OpenAI-compatible backends — previously the token limit was hardcoded, causing truncated responses on high-context queries (#973) - Fix: Swift extension nodes no longer duplicated across files —
_merge_swift_extensionsdeduplicates by canonical name before graph insertion (#969) - Fix: Non-Latin query terms (CJK, Arabic, Cyrillic, etc.) now preserved through query preprocessing — previous normalization stripped non-ASCII chars, making multi-lingual codebases unsearchable (#964)
- Feat: Multigraph runtime compatibility probe — emits a warning if a
MultiDiGraphis passed where aGraphis expected by any downstream consumer (analyze, cluster, wiki, export, report) (#956) - Feat: JS/TS barrel re-exports tracked as explicit
re_exportsgraph edges —export { X } from './mod'emits typed edges withcontext="re-export"andconfidence=EXTRACTED; file-levelimports_fromedges also emitted (#960) - Feat:
--affectedand--import-resolutionflags for thev8subcommand — impact analysis and cross-file import resolution exposed as first-class CLI options
0.8.14 (2026-05-20)
- Fix:
--wikicrash when community node IDs are stale after dedup or re-extract — stale IDs are now silently dropped with a stderr warning; raises a clear error only if every ID is stale (#936) - Fix:
.gitignorepatterns now respected when no.graphifyignoreexists — previous behaviour silently ignored the project's gitignore, causing expected exclusions to be skipped (#945) - Feat:
--exclude <pattern>CLI flag to pass extra gitignore-style exclusion patterns at runtime without modifying.graphifyignore(#947) - Fix:
.worktrees/directory now skipped during scan — git worktree sibling checkouts inside.worktrees/were previously indexed as duplicate source (#947) - Security: NAT64 IPv6 addresses (
64:ff9b::/96) no longer false-positive as blocked reserved IPs — affects hosts likearxiv.orgon IPv6-only networks where the ISP uses RFC 6052 NAT64
0.8.13 (2026-05-18)
- Fix: node ID collisions across same-named files in different directories — SQL extractor and Python import resolver now use directory-qualified stems (
dir_file_entity) instead of bare filename stems, preventing silent node merging on repos with duplicate filenames (#1A, #1B) - Perf: stat-based mtime fastpath for
file_hash— skips full SHA256 read when file size+mtime_ns unchanged, same trade-off as make; index flushed atomically via atexit - Fix: absolute
source_filepaths from semantic subagents no longer stored in graph —build_from_json,build, andbuild_mergeaccept arootparam and relativize paths at build time (#932) - Fix: failed semantic chunks no longer permanently freeze their files in the manifest — only files that appear in extraction output get
semantic_hashstamped; failed-chunk files keep emptysemantic_hashand are re-queued on next run (#933) - Feat:
graphify cache-check,graphify merge-chunks,graphify merge-semanticCLI subcommands expose cache and merge logic as library-callable commands for skill pipelines
0.8.12 (2026-05-18)
- Security:
_is_sensitivenow correctly flags underscore-prefixed secret filenames (api_token.txt,oauth_token.json) —\bword boundary was treating_as a word char, so names likeapi_tokennever matched (#920) - Security:
_is_sensitivenow checks parent directories against a_SENSITIVE_DIRSblocklist (.ssh,.aws,.gcloud,secrets, etc.) so any file inside those dirs is skipped regardless of name; root-level files namedcredentialsorsecretsare no longer falsely flagged (#920) - Fix:
--wikiRelationships section was always empty —_cross_community_linksreadcommunityfrom node attributes (always None) instead of thecommunitiesdict;_god_node_articlehad the same bug and never linked to the owning community (#925) - Fix:
--watchnow respects.graphifyignore— the event handler was checking extensions before the ignore filter, so paths insidenode_modules/,.venv/, etc. triggered rebuilds (#928) - Fix:
graphify <path>now correctly dispatches tographify extract <path>— previously a bare path argument returned "unknown command" instead of starting extraction - Fix: skill fast path — if
graphify-out/graph.jsonalready exists and the request is a natural-language question, extraction steps are skipped entirely andgraphify queryruns immediately; previously the skill re-ran detect and hit the corpus-size gate on every question - Fix: large-corpus gate raised from 200 to 500 files;
detect()now returnsscan_rootso the skill correctly computes relative subdirectory breakdowns instead of showing absolute paths; flat repos with no subdirectories no longer ask the user to pick a subfolder that doesn't exist - Docs: clarify that code-only corpora skip the LLM semantic extraction pass entirely — AST handles code, Pass 3 is reserved for docs, papers, images, and transcripts (#836)
0.8.11 (2026-05-18)
- Fix: LLM empty choices / None message guard — Gemini and other providers return
choices=[]on content-filtered HTTP 200 responses; now raises a clean error instead of crashing with IndexError (#924) - Fix: OpenCode skill removed invalid
general-purposeagent reference and headless-incompatible interactive halt (#911, closes #825) - Fix: Codex skill now uses graphify query/explain/path even when graph artifacts are dirty in worktree (#913, closes #860)
- Perf: precompute degrees once in surprise scoring — ~11x speedup per lookup on large graphs (#914)
0.8.10 (2026-05-17)
- Fix: git hooks phantom directory on git < 2.31 — drop
--path-format=absolute, validate path contains no newlines, anchor relative paths on repo root (#907) - Fix:
save_manifestincremental data loss — seed from existing manifest before loop so untouched files aren't erased on partial runs (#917) - Fix: C++ class/struct inheritance edges missing — extract
base_class_clauseforclass_specifierandstruct_specifier(#915) - Fix: cohesion split threshold unreachable due to rounding —
cohesion_scorenow returns raw float, display rounds to 2dp (#919) - Fix: Rust cross-crate spurious INFERRED edges — skip
Type::method()scoped calls and common trait-method names from cross-file resolver (#908) - Feat:
--resolution Nforextractandcluster-only— control Leiden/Louvain community granularity (>1 = more smaller, <1 = fewer larger) (#919) - Feat:
--exclude-hubs Pforextractandcluster-only— exclude degree-percentile super-hubs from partitioning, reattach by majority-vote neighbour community (#919)
0.8.9 (2026-05-17)
- Feat: DeepSeek backend support — set
DEEPSEEK_API_KEYand use--backend deepseek; default modeldeepseek-v4-flash
0.8.8 (2026-05-16)
- Feat:
graphify prs— graph-aware PR dashboard: CI state, review decision, worktree mapping, and graph blast radius per PR;--triageranks your queue via any configured LLM backend (claude, kimi, openai, gemini, claude-cli, ollama — auto-detected);--conflictsshows PRs sharing graph communities with node labels;--worktreesmaps worktree paths to branches to open PRs; MCP toolslist_prs,get_pr_impact,triage_prsfor agent access
0.8.7 (2026-05-16)
- Fix: query seed selection now uses IDF weighting — common terms like
errororhandlethat match dozens of nodes are down-weighted so a rare identifier likeFooBarServiceranks first and BFS expands from the right node (#897) - Fix: seed count is now dynamic — a dominant match (score gap >80% vs next candidate) gets one seed rather than always picking three, preventing noise nodes from consuming BFS slots alongside the target (#897)
- Fix: truncation message in
query_graphnow tells Claude what to do (callget_nodeor add acontext_filter) rather than just saying "truncated" (#897) - Fix: C++ class data members (
int x;,static const int MAX = 100;) now extracted as nodes withdefinesedges from the parent class — previously the field_declaration branch was a no-op due to a wrong child type guard (#898) - Fix: dedup Pass 1 now partitions same-label groups by source_file before merging — nodes with generic labels (
handle,init,run) from different files no longer collapse into artificial god nodes; cross-file matches are routed to Pass 2 fuzzy (#895) - Fix: C/C++
#include "path/to/file.h"edges now resolve the include path relative to the including file and use the full resolved path as the target node ID, matching what extraction creates for the included file — previously all include edges dangled with a basename-only ID (#899) - Fix:
exact_mergescounter in dedup now reports only merges actually performed rather than counting all same-label nodes across files (#895)
0.8.6 (2026-05-16)
- Fix: cross-language INFERRED
calls/usesedges (e.g. Python → TypeScript) are suppressed in Surprising Connections — label-matching across language boundaries in monorepos is resolver pollution, not structural insight; all structural bonuses zeroed for these edges - Fix: code-to-doc INFERRED
calls/usesedges suppressed in Surprising Connections — the LLM seeing a symbol name in a README and emitting acallsedge is documentation cross-reference noise, not a real architectural connection (#890) - Fix: generic JSON key nodes (
name,id,type,start,end,key,value,data,items,title,description,version,properties) filtered from god_nodes — their degree is positional (every sibling record in the same JSON file references them), not architectural (#890) - Fix: Alembic migrations, Django migrations, and protobuf-generated files now have their module-level docstrings suppressed from rationale extraction — these are boilerplate headers, not design intent; function docstrings inside migration files are still captured
- Feat:
--follow-symlinksis now auto-detected — if symlinked children are present in the target directory, follow-symlinks is enabled automatically without requiring an explicit flag (#887) - Fix: install guidance now directs users to run
/graphify queryinteractively rather than readingGRAPH_REPORT.mdfirst; the report is a summary, not a starting point (#891)
0.8.5 (2026-05-15)
- Fix:
.graphifyignoreparent-exclusion rule now correctly blocks files under an excluded directory even when a!negation exists elsewhere in the file — previously any negation pattern disabled directory pruning entirely (#882) - Fix: dedup no longer false-merges chip/model SKU variants like
ASR1603/ASR1605orM1/M1 Pro— Jaro-Winkler prefix bonus is now gated by_is_variant_pairand_short_label_blockedguards; real typos on short labels still merge (#878) - Docs: added
worked/rsl-siege-manager/— case study on a real-world Python + TypeScript monorepo (FastAPI backend, React/Vite frontend, Discord bot); covers god node behaviour with tests included, cross-language INFERRED edges, community cohesion, and Alembic migration noise (#881)
0.8.4 (2026-05-15)
- Feat: Firebird SQL — trigger and stored procedure extraction via
CREATE TRIGGERand regex fallback; FK detection via global regex coveringREFERENCESandFOREIGN KEYclauses (#875) - Fix: SQL extraction regex fallback now decodes source as UTF-8 instead of latin-1, preventing non-ASCII identifier hash mismatches (#875)
- Fix:
--updatedeletion pruning now matches on full source file paths instead of basenames, preventing false node removal when different directories contain files with the same name (#876) - Fix:
--updatenow also prunes edges whosesource_fileattr points to deleted files, not just nodes (#876) - Fix: community label keys from
graph.json(stored as strings) are now coerced to int before lookup, fixing blank community names in GRAPH_REPORT.md and graph.html (#877)
0.8.3 (2026-05-15)
- Fix: Windows skill temp files (chunk JSONs,
.graphify_python,.graphify_root) no longer pollute the project root — all written undergraphify-out/(#831) - Fix:
--updatewith deletions-only no longer errors when.graphify_extract.jsondoes not yet exist — creates an empty extraction file before merging (#876)
0.8.2 (2026-05-15)
- Fix: Python interpreter detection for
uv toolandpipxinstalls on Windows —graphify installand all skill steps now find the correct executable (#831) - Fix: antigravity Windows skill path resolution (#831)
- Fix: dot directories (e.g.
.github/,.vscode/) are now indexed when explicitly included via.graphifyignore(#873) - Fix: MCP server hot-reloads the graph when
graph.jsonchanges on disk (#874)
0.8.1 (2026-05-15)
- Feat: Bash extractor —
.shand.bashfiles now indexed via tree-sitter; extracts functions, cross-function calls,source/.imports resolved to real file paths, andexport/declarevariable declarations (#866) - Feat: JSON extractor —
.jsonfiles now indexed via tree-sitter; extracts key/valuecontainstree,dependencies/devDependenciesblocks asimportsedges,extendsedges (tsconfig, eslintrc), and$refreferences (#866) - Feat:
.sh,.bash,.jsonadded toCODE_EXTENSIONSindetect.pyso files are picked up during corpus scan (#866) - Feat: Mermaid callflow HTML auto-regenerates on every graph rebuild when
*-callflow.htmlexists ingraphify-out/— works with--watchandgraphify hook install - Fix:
coverage/,lcov-report/,visual-tests/,visual-test/,__snapshots__/,snapshots/,storybook-static/,dist-protected/added to_SKIP_DIRS— generated artefact dirs no longer appear in the corpus (#869, #870) - Fix:
graphify hook installnow works in git linked worktrees — usesgit rev-parse --git-path hooksinstead of constructing.git/hooks/directly (#865) - Fix: office sidecar files in
graphify-out/converted/are now checked against.graphifyignorebefore being added to the file list (#861) - Fix:
save_manifest()accepts akindparameter (ast,semantic,both) — incremental AST-onlygraphify updateno longer overwritessemantic_hashentries, preventing spurious full re-extracts on the next run (#857) - Fix: five paths in
skill-windows.mdStep B3 were missing thegraphify-out/prefix, causing chunk files to be written to the wrong directory (#862)
0.7.19 (2026-05-14)
- Feat:
.astrofiles now extracted as code — frontmatter static imports, dynamic imports, and<script>block imports all produce edges; tsconfig path aliases resolved (#850, PR #852) - Fix:
.rebuild.lockno longer accumulates PIDs across rebuilds — now contains a single owning PID while running and is unlinked on release so downstream tooling polling for its absence unblocks promptly (#858, PR #859) - Docs: skill.md now clarifies that graphify does not read
ANTHROPIC_API_KEYor other provider keys during/graphifyskill runs — the host IDE session provides the LLM (PR #864)
0.7.18 (2026-05-14)
- Fix:
graphify updateis now idempotent — graph.json and GRAPH_REPORT.md are only rewritten when content actually changes; topology comparison short-circuits clustering entirely on unchanged graphs, eliminating residual community-count drift (#824) - Fix: community IDs are now stable across rebuilds — Leiden/Louvain receive deterministically sorted input and a fixed random seed; greedy overlap remapper preserves existing IDs so hand-edited
.graphify_labels.jsonlabels don't drift onto wrong communities (#824) - Fix:
--no-clusterflag added tographify update— writes raw AST graph without clustering, consistent withgraphify extract --no-cluster(#824) - Fix:
graphify update --no-clusternow writes"links"key matching the schema of the full clustered path; previously wrote"edges", causing schema toggle on every mode switch - Fix:
.graphify_labels.jsonwas rewritten on every rebuild even when nothing changed; now only written when outputs actually change - Fix: shrink-check (refuse overwrite when new graph has fewer nodes) was duplicated across two code paths; unified into a single
_check_shrink()helper - Fix: node ID format in skill.md corrected to
{parent_dir}_{filename_stem}_{entity}— the old filename-only format caused ghost-duplicate nodes when AST and semantic extractors disagreed on the stem; top-level files use just the filename stem; existing graphs with ghost duplicates can be cleaned up withgraphify extract --force - Fix: safer JSON serialization in clustering sort keys (
default=str) prevents crashes when edge attributes contain non-serializable values - Docs: added Prerequisites, optional extras table, environment variables reference, troubleshooting, and dev setup to README (#833)
0.7.17 (2026-05-13)
- Fix:
graphify pathandgraphify explainnow render arrow direction correctly —-->for caller→callee,<--for callee←caller; previously the graph was loaded undirected so every hop printed-->regardless of stored direction (#849, #853) - Fix: MCP
shortest_pathandget_neighborstools had the same reversed-arrow bug; now fixed inserve.pyalongside the CLI commands (#849, #853) - Fix:
graphify extract --backend bedrockwas rejected by the CLI guard even whenAWS_PROFILE/AWS_REGION/AWS_DEFAULT_REGION/AWS_ACCESS_KEY_IDwere set — boto3 session auth was never reached (#846) - Fix: BFS/DFS query traversal now skips expanding high-degree hub nodes (threshold:
max(50, p99_degree)) as transit — hubs can still be destinations but no longer produce semantically meaningless 2-hop paths likeClassA → View → ClassBin Android/Spring corpora (#830) - Fix:
--updatemanifest shrink — after an incremental run,manifest.jsonwas overwritten with only the changed-file subset, causing the next--updateto re-flag the entire unchanged corpus as new; Step 9 now persists the full corpus viaall_filesfallback (#837) - Fix:
file_typeenum aligned acrossskill.mdandllm.py(both now enumerate all six values:code,document,paper,image,rationale,concept); synonym mapper inbuild.pysilently coerces known LLM-emitted synonyms (pattern→concept,markdown→document,tool→code, etc.) before validation (#840) - Fix: Fortran test fixture renamed
sample.F90→sample_preprocessed.F90to avoid case-collision withsample.f90on macOS case-insensitive filesystems (credit: @FatahChan, #823)
0.7.16 (2026-05-12)
- Fix: all
read_text()/write_text()calls inskill.mdandskill-windows.mdnow specifyencoding="utf-8"— bare calls defaulted to the system codepage on Chinese-locale Windows, silently mojibaking node labels and Markdown content on--update(#832) - Fix:
json.dumpsin skill pipeline now usesensure_ascii=Falseso Chinese/CJK characters are stored as-is rather than\uXXXXescaped (#832) - Fix: Step 1 install fallback in skill now prefers
uv tool install --upgrade graphifyyoverpipwhen uv is on PATH — pip was installing to the wrong environment when graphify was originally installed viauv tool(#831) - Fix:
_score_nodesinserve.pynow uses three-tier precedence (exact 1000 / prefix 100 / substring 1) instead of flat substring scoring —graphify path "Foo" "FooBar"no longer returns 0 hops when both labels substring-match the same node (#828) - Fix:
graphify pathand MCP_tool_shortest_pathnow emit a clear error when source and target resolve to the same node, instead of silently returning 0 hops (#828) - Fix:
file_hashincache.pynow normalises path keys via.as_posix().lower()— Windows junction/case variants of the same file now hash identically, fixingsave_semantic_cachealways reporting "Cached 0 files" on subsequent--updateruns (#826) - Fix:
check_semantic_cachenow applies the same absolute-path normalization assave_semantic_cacheso relativesource_filepaths resolve consistently on both sides (#826) - Fix:
_AGENTS_MD_SECTIONnow includes the/graphifyskill trigger instruction — all 7 AGENTS.md platforms (OpenCode, Codex, Aider, Trae, Hermes, OpenClaw, Factory Droid) now correctly invoke the skill tool when the user types/graphify(#827)
0.7.15 (2026-05-11)
- Fix:
-h/--help/-?in any position now stops execution — previouslygraphify cursor install --helpsilently installed into Cursor;graphify benchmark --helpcrashed with FileNotFoundError (#821) - Fix:
--version,-v, andgraphify versionnow print the installed version and exit (#818) - Fix:
GRAPHIFY_OLLAMA_NUM_CTX=<invalid>no longer falls back to hardcoded 131072 (which exhausted VRAM) — it now falls through to the auto-derived value and prints a warning (#820) - Fix: when
GRAPHIFY_OLLAMA_NUM_CTXis set smaller than the estimated chunk size, graphify now warns explicitly that Ollama will silently truncate the prompt and suggests a corrected--token-budget(#820)
0.7.14 (2026-05-11)
- Fix:
_make_idand_normalize_idnow apply NFKC Unicode normalization before ID generation -- composed/decomposed forms of the same character (e.g.étyped vs pasted from a PDF) now produce the same node ID; switched from.lower()to.casefold()for correct Turkish/German/Greek case folding; both functions are now byte-for-byte equivalent (#811) - Fix: non-ASCII identifiers (CJK, Cyrillic, Arabic, accented Latin) are no longer collapsed to a bare file stem --
[^\w]+withre.UNICODEreplaces the old[^a-zA-Z0-9]+so Unicode word chars are preserved as part of the ID (#811) - Fix: dedup edge remap uses explicit key-presence check instead of
orso empty-stringsourceis not silently swapped forfrom; stalefrom/tokeys are now popped before the edge is emitted so they can't leak intograph.jsonedge attributes (#803) - Fix:
--updatemerge now callsbuild_merge()directly instead of an inline NetworkX round-trip that re-introduced the direction-flip bug from #760; dict merge ordering fixed so explicitsource/targetalways win over stale attrs; hyperedges pulled fromG.graph(merged) rather than just the new extraction (#801) - Fix: subagent chunk files are now written to an absolute path (
CHUNK_PATHinjected at dispatch time fromgraphify-out/.graphify_root) so the Write tool doesn't lose chunks to an undefined working directory (#808) - Fix: skill version mismatch warning is now suppressed during
hook-check(runs on every editor tool use and must be silent) and routed to stderr for all other commands
0.7.13 (2026-05-09)
- Fix: Ollama
num_ctxnow derived from actual chunk size instead of hardcoded 131072 -- over-allocating 128k KV-cache slots for small chunks exhausted VRAM by chunk 4 on large models; formula ismin(input_tokens + output_cap + 2000, 131072)so--token-budget 8192gets ~26k instead of 131072 (#798) - Fix: hollow-response warning now mentions VRAM pressure and
GRAPHIFY_OLLAMA_NUM_CTX/GRAPHIFY_OLLAMA_KEEP_ALIVEenv vars as tuning knobs (#798) - Feat:
graphify export callflow-html-- generates a self-contained Mermaid architecture/call-flow HTML page fromgraphify-out/graph.json, grouped by community with interactive zoom/pan diagrams, call detail tables, and graph report highlights (#797) - Feat: callflow HTML auto-regenerates on every
--watchrebuild and post-commit hook if the file already exists -- opt-in by existence, zero config (#800)
0.7.12 (2026-05-09)
- Fix:
graphify explainandgraphify pathno longer crash onMultiGraphinputs -- newedge_data()/edge_datas()helpers inbuild.pyhandle both simple and multi-graphs; all 8 production call sites and 30 skill-file inline heredocs updated (#796) - Fix: hollow Ollama responses (0 tokens / empty string) now trigger adaptive retry bisection instead of silently dropping the chunk --
_response_is_hollow()detects empty/null/whitespace content and parsed results with no nodes/edges, then rewritesfinish_reason="length"to route into the existing bisection path (#792) - Fix: post-commit hook no longer spawns unbounded parallel rebuilds -- per-repo
fcntl.flocknon-blocking lock in_rebuild_code;changed_pathswired from hook through to AST extractor; stale nodes evicted on deletion;GRAPHIFY_REBUILD_TIMEOUTwatchdog; Darwin-aware memory cap (#791) - Fix: Antigravity install now writes to
.agents/(plural) -- corrected in platform config, paths, workflow body, and help text (#453) - Fix: Antigravity rules file now includes
trigger: always_onYAML frontmatter so Antigravity recognises it (#785) - Feat:
graphify extractgains--max-workers,--token-budget,--max-concurrency,--api-timeoutflags; hard 8-worker AST cap removed; explicit HTTP timeout on OpenAI client (default 600s,GRAPHIFY_API_TIMEOUT); ollama API key gate skipped for loopback URLs (#792) - Feat: Pascal/Delphi extraction now works without
tree-sitter-pascal-- regex fallback covers unit/program/library headers, uses clauses, class/interface inheritance, method declarations, and intra-file calls (#781) - Feat:
/graphify --helpnow prints the Usage block and stops without running pipeline steps (all 12 skill files) (#795)
0.7.11 (2026-05-09)
- Fix: context-window-exceeded API errors now trigger automatic retry with bisected file chunks -- exponential bisection up to 6 levels deep; covers
"context_length_exceeded","maximum context length", and"too_large"across OpenAI-compat backends (#789) - Fix: Windows pipeline unblocked --
print_benchmark()falls back to ASCII box-drawing on cp1252 consoles;ProcessPoolExecutorBrokenProcessPoolcaught and falls back to sequential extraction when caller lacksif __name__ == "__main__":guard; Windows skill file (skill-windows.md) rewrites allpython -c "..."blocks as PowerShell heredocs to fix quote-escaping failures (#788) - Fix: reversed
callsedges after--update--build_merge()now reads the saved JSON directly instead of round-tripping through NetworkXnode_link_graph(), which was silently reversing edge direction on reload (#760) - Fix: atomic SKILL.md install -- temp-file +
os.replace()pattern prevents half-installed empty skill directories that looked valid but contained no file; version-stamp guard and warning added for missing installs (#725) - Feat:
graphify uninstalltop-level command -- removes graphify skill files from all platforms in one shot;--purgeflag also deletesgraphify-out/ - Feat: SQL
ALTER TABLEFK extraction --ADD CONSTRAINT ... FOREIGN KEYandADD FOREIGN KEYDDL statements now emitreferencesedges; schema-qualified table names (schema.table) correctly resolved (#779)
0.7.10 (2026-05-07)
- Fix:
.tsxfiles now uselanguage_tsxgrammar for JSX-aware parsing -- previouslylanguage_typescriptwas used, silently dropping all JSX-specific nodes (#766) - Fix:
edgeskey in saved graph JSON now normalised tolinksbefore loading -- preventsKeyError: 'links'on graphs written by older NetworkX versions inquery,path,explain, and serve (#768) - Fix: Google Workspace
gws exportdrops unsupportedresourceKeyquery param -- Drive API requires it as an HTTP header; sending it as a query param was a silent no-op (#772) - Security: eleven hardening fixes -- Cypher escape strips C0 control chars and
\n/\r; YAML frontmatter escapes U+2028, U+2029, tabs, and C0; MCPsanitize_labelapplied to all LLM-derived fields; C preprocessor blocked from#includeexfiltration via-nostdinc -I /dev/null; merge-driver 50 MB file size cap and 100k node cap;detect_backend()places Ollama last so paid API keys take precedence over ambientOLLAMA_BASE_URL; Neo4j--passwordreads fromNEO4J_PASSWORDenv var by default; hooks exception handling narrowed to(configparser.Error, OSError) - Refactor: skill YAML descriptions rewritten to be trigger-oriented (#774)
- Refactor: generated
CLAUDE.md/AGENTS.md/GEMINI.mdtemplates strengthened withALWAYS/NEVER/IF ... EXISTSgraph-first directives (#775)
0.7.9 (2026-05-07)
- Feat: TypeScript extraction parity -- interface, enum, type alias, and module-level const nodes extracted; new_expression emits calls edges; parity with Java/C# class_types (#708)
- Feat: Quarto (
.qmd) file support -- routed through existing Markdown extractor; Quarto executable code blocks (```{python}) extracted as code nodes (#761) - Feat: optional Google Workspace shortcut export for headless extraction --
graphify extract ./docs --google-workspaceconverts.gdoc,.gsheet, and.gslidesfiles into Markdown sidecars with thegwsCLI before semantic extraction; account email pseudonymized via SHA256 hash;[google]extra adds Sheets table rendering support (#752) - Fix: Google Workspace exports now run
gwsfrom the sidecar output directory with a relative-opath, matchinggwspath validation and avoiding failures when extracting a corpus outside the current working directory. - Feat: AWS Bedrock backend --
graphify extract ./docs --backend bedrock; credentials via standard AWS provider chain (AWS_PROFILE, AWS_REGION, IAM roles, SSO); model via GRAPHIFY_BEDROCK_MODEL (default anthropic.claude-3-5-sonnet-20241022-v2:0);[bedrock]extra adds boto3 (#757)
0.7.8 (2026-05-06)
- Fix: CommonJS
require()imports now extracted from JS/TS --const { foo } = require('./mod'),const m = require('./mod'), andconst x = require('./mod').yall emit EXTRACTEDimports_from(and per-symbolimports) edges. Previously CJS-only Node.js codebases produced AST graphs missing every import edge, which downgraded all cross-file calls to INFERRED. - Fix: cross-file
callsedges are now promoted from INFERRED to EXTRACTED when the caller's file has an explicitimportsorimports_fromedge to the callee. Previously every cross-file call was unconditionally INFERRED, even when a top-of-fileimport/requireproved the binding. On a 92-file CJS Node.js corpus this promoted 88% of cross-file calls (104 of 118) to EXTRACTED. - Feat: Gemini and OpenAI backends --
graphify extract ./docs --backend gemini(GEMINI_API_KEY / GOOGLE_API_KEY) or--backend openai(OPENAI_API_KEY);[gemini]and[openai]extras added (#735) - Feat: Groovy and Spock support --
.groovyand.gradleextracted via tree-sitter-groovy; Spock spec files (def "feature"()syntax) handled via regex fallback (#732) - Feat: Luau support --
.luau(Roblox Luau) added to code extraction using the Lua tree-sitter parser (#745) - Feat: Markdown structural extraction -- headings, fenced code blocks, and nesting hierarchy extracted as graph nodes from
.mdand.mdxfiles with zero new dependencies (#711) - Fix:
collect_files()extension set now auto-syncs with_DISPATCH-- previously 18 extensions (.sql,.vue,.svelte,.jsx,.ex,.jl, etc.) were silently skipped in skill-mode extraction (#711) - Fix:
detect_incrementalnow forwardsfollow_symlinkstodetect()-- symlinked subtrees no longer vanish on--updateruns (#736) - Fix: TS bare-path /
.svelte.ts/.svelte.js/index.tsdirectory / multi-dot imports now resolve correctly -- previously these produced phantom edges dropped at merge time (#717, #716) - Fix:
cluster-onlynow loads and saves.graphify_labels.json-- human-readable community labels survive re-clustering instead of resetting to "Community N" (#744) - Fix:
graphify export wikinow fails fast with exit 1 if.graphify_analysis.jsonis missing -- prevents silent deletion of existing wiki articles (#746) - Fix:
to_wiki()now raises before the cleanup loop whencommunitiesis empty -- second safety layer against wiki data loss (#746) - Fix: Ollama import error message now says "Ollama" not "Kimi" and points to
pip install openai;[ollama]extras group added (#750) - Security: hooks.py path execution now validates scripts are within the repo root -- closes supply-chain attack vector where a malicious commit could redirect hook execution (#747)
0.7.7 (2026-05-05)
- Feat: Ollama backend for headless extraction --
graphify extract ./docs --backend ollama; auto-detected whenOLLAMA_BASE_URLis set; defaults toqwen2.5-coder:7b; zero cost ($0.00); sentinel API key handles OpenAI client auth requirement (#729) - Feat: Cross-project global graph at
~/.graphify/global.json--graphify global add/remove/list/pathto register multiple project graphs with<repo>::<id>prefixed node IDs, preventing silent collisions; hash-based skip avoids re-ingesting unchanged graphs (#729) - Feat:
graphify extract --global --as <tag>flag -- after building a project graph, auto-registers it into the global graph in one step (#729) - Feat:
merge-graphsnow prefix-relabels each input graph before composing, preventing silent node ID collisions when two projects share entity names (#729) - Fix:
deduplicate_entitiesraisesValueErrorif called with nodes spanning multiple repos (cross-project dedup disabled by design -- per-project graphs are deduplicated in isolation) (#729) - Fix:
detect_incremental()now accepts and forwardsfollow_symlinkstodetect(). Without this,--updateruns silently miss any files reached through a symlinked sub-tree (e.g.state_of_truth/symlinking to a directory outside the corpus root), even when the original full run had detected them. Previously the flag was ondetect()andcollect_files()only. (#736)
0.7.6 (2026-05-05)
- Fix:
cluster-onlynow accepts--graph <path>to specify a non-default graph.json location; positional path and flags can appear in any order (#724) - Fix:
_is_sensitive()no longer drops legitimate source files — word boundaries on the keyword pattern prevent false positives liketokenizer.py,password_verification.py,SecretManager.java(#718) - Fix:
graphify extract --backend claude/kimiraises defaultmax_tokensfrom 8192 → 16384, eliminating the truncation-then-recursive-split cascade on dense doc corpora; respectsGRAPHIFY_MAX_OUTPUT_TOKENSenv var (#730) - Fix:
--updateprune message now clearly distinguishes "N nodes pruned from M deleted files" from "M deletions detected but graph already clean — no drift" (#539) - Fix:
extract_svelte()stub nodes now carry the resolved import path assource_fileinstead of the importer's path, preventing metadata corruption after merge (#712) - Fix:
extract_svelte()now catches staticimport X from './foo.svelte'via a dedicated regex pass over<script>block content — previously tree-sitter's JS parser silently dropped all static imports in.sveltefiles (#713) - Fix:
graphify extract(full rebuild path) now savesmanifest.jsonon every successful run, not only on--update; prevents stale-manifest drift on subsequent incremental runs (#538) - Fix:
graphify antigravity installnow writes to.agent/(no trailing s) matching Antigravity's actual config paths (#704) - Fix: Pi skill YAML frontmatter description simplified to avoid "nested mappings" parse error on Pi startup (#737)
- Fix:
--dedup-llmflag now correctly threads LLM backend through todeduplicate_entitiesin both fresh and incremental extract paths; fresh extract path now also runs dedup (previously calledbuild_from_jsondirectly, bypassing dedup entirely)
0.7.5 (2026-05-04)
- Feat:
graphify extractnow runs incrementally - auto-detects priormanifest.jsonand re-extracts only changed/new files; semantic results cached by content hash so unchanged docs cost zero LLM tokens on repeat runs (#698) - Feat: Entity deduplication pipeline runs on every build - entropy gate + MinHash/LSH blocking + Jaro-Winkler verification + same-community boost collapses near-duplicate entities (typos, spacing, plurals) before clustering
- Feat:
--dedup-llmflag forgraphify extract- optional LLM tiebreaker for ambiguous entity pairs (~$0.01 for 10k-node graphs), off by default - Fix:
graphify hook installrebuild now preserves human-readable community labels from.graphify_labels.jsoninstead of resetting to generic "Community N" names on every commit (#705) - Fix:
graphify install --platform gemininow works correctly (#706) - Deps:
datasketchandrapidfuzzadded as base dependencies
0.7.4 (2026-05-04)
- Fix:
_read_tsconfig_aliases()now parses JSONC — handles//line comments,/* */block comments, and trailing commas that every TypeScript framework starter generates; warns to stderr on parse failure instead of silently returning{}(#700) - Fix:
extract_svelte()regex fallback now captures aliased dynamic imports ($lib/...,$partials/...,@/...) and uses correct_make_id(str(path))scheme so edges survive intograph.jsoninstead of being dropped as phantom nodes (#701)
0.7.3 (2026-05-04)
- Feat:
graphify extract <path>— headless full-pipeline extraction for CI; runs AST extraction on code files and semantic LLM extraction on docs/papers/images without Claude Code in the loop; supports--backend kimi|claude,--out DIR,--no-cluster; auto-detects backend fromMOONSHOT_API_KEY/ANTHROPIC_API_KEY; docs-only corpora (issue #698) work cleanly - Fix: export/query/path/explain CLI subcommands added in 0.7.2 now ship with integration tests
- Fix: skill.md reduced from 63KB to 47KB by replacing Python heredocs with CLI calls (#696)
0.7.2 (2026-05-04)
- Feat: Fortran support - extracts modules, subroutines, functions, programs,
useimports, andcalledges from.f,.F,.f90,.F90,.f95,.F95,.f03,.F03,.f08,.F08files; names are lowercased for case-insensitive matching (#694)
0.7.1 (2026-05-04)
- Fix: Obsidian export - community labels with
.,&,(,)now produce valid Obsidian tags; only[a-zA-Z0-9_\-/]characters survive, preventing broken Dataview queries (#690) - Fix:
_load_tsconfig_aliases()now follows tsconfigextendschains - SvelteKit, Nuxt, and NestJS path aliases defined in extended configs are no longer silently dropped (#691) - Fix:
.sveltefiles now get a regex pass over the template layer after JS AST extraction -{#await import('./X.svelte')}markup-level dynamic imports are captured as edges (#692) - Fix: recursion limit raised to 10,000 at extract entry points (main process + each worker) with a
_safe_extractwrapper that skips pathological files with a clear warning instead of crashing the whole run (#695)
0.7.0 (2026-05-03)
Multi-dev busy-repo support: four gaps that caused merge conflicts, stale graphs, and silent cache misses in team workflows.
- Feat:
graphify hook installnow also configures a git merge driver forgraphify-out/graph.json— union-merges two graph.json files so git never produces conflict markers in the knowledge graph; writes.gitattributesand registersgraphify merge-driverin.git/config - Feat:
graphify merge-driver <base> <current> <other>subcommand — takes two graph.json variants and writes their node/edge union back to<current>; always exits 0 so merge never blocks - Feat: Leiden community detection now seeded (
seed=42when supported) for deterministic community IDs across parallel rebuilds — reduces JSON diff churn in multi-dev repos - Feat:
graph.jsonnow embedsbuilt_at_commit(git HEAD) at write time;GRAPH_REPORT.mdsurfaces the commit hash and a freshness check hint - Fix:
file_hashis now content-only (path removed from hash) — renamed files reuse their cache entry instead of re-extracting; cachedsource_filefields are updated to the new path on load - Fix: watch mode mixed-batch handling — commits with both code and non-code files now rebuild code immediately AND write
needs_updateflag; previously code changes were silently dropped in mixed batches
0.6.9 (2026-05-03)
- Fix:
source_filepath separators normalized to forward slashes at graph ingestion — same physical file emitted with backslashes (Windows AST extractor) and forward slashes (semantic subagents) now merges into one node instead of splitting into two disconnected components (#683) - Fix: two-phase cohesion re-clustering — communities with cohesion < 0.05 and ≥ 50 nodes are re-split, preventing doc-hub nodes (e.g.
CLAUDE.md) from merging unrelated subsystems into one giant community (#683) - Fix: VS Code Copilot instructions rewritten to be prescriptive — agent's first tool call must read
GRAPH_REPORT.md, explicit trigger list, narrow allowlist for raw source reads (#688) - Feat:
GRAPHIFY_OUTenv var overrides the output directory — accepts a relative name or absolute path, wires throughcache.py,watch.py, and the CLI; useful for sharing one graph across multiple git worktrees (#686) - Fix:
graphify antigravity installnow auto-updates stale rules and workflow files on re-run instead of silently skipping them (#652) - Docs: README simplified — less dense, plain language; technical pipeline details moved to
docs/how-it-works.md
0.6.8 (2026-05-03)
- Fix:
.graphifyignorenegation patterns (!src/**) now work correctly — when any!pattern is present, directory pruning is deferred to per-file checks so negated files inside ignored directories are reached (#676) - Fix: Antigravity slash command
/graphifynow appears in the command dropdown — workflow file now includes YAML frontmatter withname: graphifyrequired for Antigravity discovery (#678) - Fix: Gemini CLI BeforeTool hook replaced
[ -f ... ] && echo(bash-only) with cross-platformpython -cusingjson.dumps— fixes hook failure on Windows CMD and Git Bash (#681) - Fix: Codex hook-check exits silently — resolves
additionalContextrejection on Codex Desktop PreToolUse (#651) - Fix:
graphify install --platform codexnow writes absolute path tographifyexecutable — fixes PATH resolution in VS Code extension on Windows (#651) - Fix: thin communities (fewer than 3 concept nodes) are now omitted from the Communities section in
GRAPH_REPORT.mdby default; report header shows(N total, M thin omitted)and Knowledge Gaps collapses thin communities to one summary line (#664)
0.6.7 (2026-05-02)
- Feat:
graphify tree— self-contained D3 v7 collapsible-tree HTML view ofgraph.json; expand/collapse controls, depth-based colours, hover inspector; XSS-safe (#557) - Feat: token-aware chunking with split-and-retry on truncation (#625)
- Feat: cross-language edge context filters in MCP
query_graphtool (#573) - Feat: dynamic
import()extraction for JS/TS (#579) - Fix:
save_semantic_cachecrashed withIsADirectoryErrorwhen a node'ssource_filewas a directory path —p.exists()→p.is_file()(#655) - Fix:
sanitize_label(None)raisedTypeErrorcrashingto_htmlon graphs with nullsource_filerationale nodes — return""early (#656) - Fix: chunk-extraction prompt omitted
rationalefrom validfile_typevalues — model hallucinatedconcepton every doc/paper run; explicit merge step added to all skill variants (#657) - Fix:
cost.jsonalways reported 0 tokens — chunk JSONs have placeholder zeros; orchestrator now globs and sums real token counts before merging (#658)
0.6.6 (2026-05-02)
- Fix:
skill-windows.mdrewritten from PowerShell to bash — Claude Code on Windows uses git-bash so PowerShell syntax ($null,$LASTEXITCODE,Select-Object,& (Get-Content ...),Remove-Item) caused exit code 49 failures; now mirrorsskill.mdstructure withpythonadded as fallback afterpython3for Windows Conda (#39) - Fix: wiki
to_wiki()now clears stale articles before regenerating, preventing orphan .md accumulation (#558) - Fix:
_safe_filename()in wiki.py now strips Windows-reserved characters (< > : " / \ | ? *) and caps length at 200 chars (#594) - Fix: rationale-node leakage in cross-file INFERRED call resolution — rationale nodes now excluded from name lookup; edge direction (
calls,rationale_for) preserved correctly at JSON export (#576) - Feat:
.graphifyincludehidden path allowlist — opt specific hidden dirs into traversal (e.g..hermes/plans/**/*.md) (#583) - Feat:
--no-vizflag wired incluster-only;GRAPHIFY_VIZ_NODE_LIMITenv var overrides 5000-node HTML threshold (#565) - Fix: stray colon SyntaxError in
skill-trae.md--cluster-onlyblock (#603) - Docs: skill INFERRED confidence score guidance changed to discrete rubric (0.55/0.65/0.75/0.85/0.95) backed by calibration data (#546)
- Docs: skill
--updateprune output clarified — splits no-drift vs drift cases (#544) - Docs: skill
--updatemerge step now callssave_manifestto prevent deleted files reappearing (#545) - Feat:
graphify tree— self-contained D3 v7 collapsible-tree HTML view ofgraph.json; expand/collapse controls, depth-based colours, hover inspector; XSS-safe viahtml.escape()and_js_safe()(#557)
0.6.5 (2026-05-02)
- Fix: Kotlin call-walker now accepts both
simple_identifierandidentifiernode types — PyPI'stree_sitter_kotlingrammar usesidentifierwhile older forks usesimple_identifier, causing zerocallsedges to be emitted (#659) - Feat: community sidebar now uses checkbox-based multi-select instead of show/hide buttons — supports indeterminate "select all" state (#647)
- Feat:
graphify update --forceandGRAPHIFY_FORCE=1env var — bypass the node-count safety check after refactors that legitimately shrink the graph (#639) - Fix: Codex PreToolUse hook on Windows — replaced
python3 -c "..."inline command (fails on Conda where onlypythonexists, and breaks PowerShell JSON parsing) withgraphify hook-check, a new shell-agnostic subcommand. Re-rungraphify codex installto regenerate the hook (#651, #522)
0.6.4 (2026-05-02)
- Fix: Codex PreToolUse hook failed on Windows —
[ -f ]is bash-only and crashes oncmd.exe; replaced with a cross-platform Python one-liner (pathlib.Path.exists()) (#651)
0.6.3 (2026-05-02)
- Fix: incremental rebuild (
graphify update, post-commit hook) dropped INFERRED/AMBIGUOUS semantic nodes extracted from code files — node preservation now filters by ID membership in the new AST output instead offile_type, so LLM-extracted call/data-flow edges survive code-only rebuilds (#653) - Fix: post-commit and post-checkout hooks blocked
git commitfor the full rebuild duration (hours on large repos) — rebuilds now detach vianohup & disown, git returns in ~100ms, log written to~/.cache/graphify-rebuild.log(#650) - Fix: cross-file INFERRED
callsresolution used a last-write-wins name map, causing common short names (log,execute,find) to accumulate hundreds of spurious edges and dominate god_nodes ranking — resolution now skips any callee name that matches 2+ candidates (ambiguous, no import evidence to pick the right target) (#543) - Fix:
cluster-onlycommand crashed on graphs with >5000 nodes due to unguardedto_htmlcall — now wrapped in try/except ValueError matching the watch/hook path (#541)
0.6.2 (2026-05-01)
- Fix: Kimi K2.6 reasoning mode consumed entire token budget leaving
contentempty — thinking now disabled on Moonshot calls so graphs actually populate (#623) - Fix:
graphify update/graphify watchnever persisted the manifest, so every subsequent--updatere-extracted all files — manifest now saved after each rebuild (#621) - Fix: inline comments in
.graphifyignore(e.g.vendor/ # legacy) now stripped correctly — whitespace +#suffix is treated as a comment,path#hash.pypreserved (#605) - Fix:
graphify query "FunctionName"now returns the exact matching node first instead of high-degree hub modules hijacking the output — 100-point exact-match bonus + seeds render before BFS expansion (#638) - Fix: concurrent AST extractors raced on a shared
.tmpcache file — each writer now gets a unique tempfile viamkstemp, eliminating cache corruption under parallel extraction (#589) - Fix:
_clone_repobranch names starting with-could be interpreted as git flags — validation added,--separator inserted before positional args (#589) - Fix: replaced
html2text(GPL-3.0) withmarkdownify(MIT) — removes the only copyleft dependency from a MIT project (#586) - Fix:
--updatere-extracted files whose mtime was bumped by sync tools (Obsidian, Nextcloud) without content changes — manifest now stores content hash alongside mtime; mtime bump triggers an MD5 check before re-extraction (#593) - Feat: R language support —
.rfiles classified as code and processed via LLM semantic extraction (#617) - Feat: extensionless shell scripts now detected via shebang (
#!/bin/bash,#!/usr/bin/env python3, etc.) and included as code (#619) - Fix: cross-language INFERRED
callsedges (e.g. Python→TypeScript name collision) no longer appear as top surprising connections in GRAPH_REPORT.md (#630) - Fix:
cluster-onlyCLI silently flipped directed graphs to undirected —directedflag now read from graph.json and preserved through re-clustering (#590) - Fix: Windows UNC / extended-length paths (
\\?\C:\...) now normalize to consistent cache keys (#629) - Fix:
.graphifyignorenegation patterns (!src/lib/secrets.ts) now work — full last-match-wins evaluation with!un-ignore support (#628)
0.6.1 (2026-05-01)
- Fix:
.graphifyignorediscovery now uses correct gitignore semantics — outer rules are loaded first so inner (closer) rules always win via last-match-wins, matching standard gitignore behavior (#643) - Fix: without a VCS root,
.graphifyignorediscovery is now hermetic to the scan folder — no leakage across sibling projects in a shared workspace (#643) - Fix: anchored patterns (leading
/) in a parent.graphifyignorenow correctly apply only relative to their own directory, not the scan root (#643) - Fix: trailing spaces in patterns are now handled per gitignore spec — unescaped trailing spaces are stripped,
vendor\(escaped) is preserved (#643)
0.6.0 (2026-05-01)
- Feat: SQL AST extractor —
.sqlfiles now processed deterministically via tree-sitter. Extracts tables, views, functions/procedures, foreign key references, and FROM/JOIN reads_from edges. No LLM needed. Requirespip install 'graphifyy[sql]'(#349) - Feat:
xlsx_extract_structure()utility — extracts sheet names, named tables, and column headers from .xlsx files as structural nodes
0.5.7 (2026-04-30)
- Feat: YAML/YML files now indexed for semantic extraction — Kubernetes, Kustomize, Helm, and any YAML corpus now picked up automatically (#633)
0.5.6 (2026-04-30)
- Fix:
NameError: name '_os' is not definedcrash aftergraphify update— this was fixed in v5 branch but not released to PyPI (#618, #612)
0.5.5 (2026-04-29)
- Feat: Kimi K2.6 backend —
pip install 'graphifyy[kimi]'+MOONSHOT_API_KEYroutes semantic extraction through Kimi K2.6. 3-6x richer relation extraction at ~3x lower cost. Claude remains default; Kimi is opt-in. - Fix: phantom god nodes (#598) — member-call callees (
this.logger.log()→log) no longer cross-file resolved. Go package-qualified calls (pkg.Func()) correctly preserved. Affects JS/TS, Go, Rust, Swift, Kotlin, Scala, PHP, C++, C#, Zig, Elixir. - Fix:
conceptfile_type no longer triggers validation warnings (#601) - Fix:
graphify updateremembers scan root viagraphify-out/.graphify_root— no path argument needed on subsequent runs - Fix: Kimi K2.6 temperature 400 error — temperature param is now skipped for Kimi backends (model enforces its own fixed value) (#610)
- Fix: community labels deleted in Step 9 cleanup —
.graphify_labels.jsonis now preserved so wiki/obsidian/HTML retain human-readable names after re-cluster (#608) - Fix:
NameError: name '_os' is not definedingraphify updateKimi tip (#612) - Fix:
SyntaxWarningin__main__.pyfor shell glob pattern with backslash escapes - Fix: Python upper bound removed —
requires-python = ">=3.10"now supports Python 3.14+ (#607)
0.5.4 (2026-04-28)
- Fix: SSRF DNS rebinding —
safe_fetchnow patchessocket.getaddrinfofor the full request duration (#591) - Fix: yt-dlp SSRF bypass —
download_audionow callsvalidate_urlbefore handing URL to yt-dlp (#592)
0.5.3 (2026-04-27)
- Fix: cache namespace — AST and semantic entries now live in
cache/ast/andcache/semantic/subdirectories; flat entries read as migration fallback
0.5.2 (2026-04-26)
- Fix: PreToolUse hook now matches on
Bashinstead ofGlob|Grepfor Claude Code v2.1.117+
0.5.1 (2026-04-25)
- Fix: node ID collision for same-named files in different directories
- Fix:
source_filepaths relativized before return sograph.jsonis portable - Fix: desync guard —
to_json()returns bool; report only written on successful JSON write - Feat: TypeScript
@/path aliases resolved viatsconfig.json - Feat: Show All / Hide All buttons in HTML community panel
0.5.0 (2026-04-24)
- Feat:
graphify clone <github-url>— clone and graph any public repo - Feat:
graphify merge-graphs— combine multiplegraph.jsonoutputs into one cross-repo graph - Feat:
CLAUDE_CONFIG_DIRsupport ingraphify install - Feat: shrink guard —
to_json()refuses to overwrite with a smaller graph - Feat:
build_merge()for safe incremental updates - Feat: duplicate node deduplication via
deduplicate_by_label() - Fix:
graphify-out/excluded from source scanning
0.4.23 (2026-04-18)
- Fix: stale skill version warning persists after running
graphify installwhen multiple platforms were previously installed —graphify installnow refreshes.graphify_versionin all other known skill directories so the warning clears across the board (#178) - Fix:
.htmlfiles silently skipped during detection — added.htmltoDOC_EXTENSIONS; HTML pages, docs, and web project content now indexed correctly (#260) - Fix:
_rebuild_code(watch/update/hook) fails entirely on graphs > 5000 nodes becauseto_htmlraisesValueError— wrapped in its own try/except sograph.jsonandGRAPH_REPORT.mdalways land; stalegraph.htmlfrom a previous smaller run is removed (#432) - Fix: Go stdlib imports (e.g.
"context") producedimports_fromedges pointing at local files of the same basename — Go import node IDs now prefixedgo_pkg_using the full import path, eliminating false cycle-dependency pairs (#431)
0.4.22 (2026-04-18)
- Fix: AST cache written to
src/graphify-out/cache/instead of project root when all code files share a common prefix likesrc/—extract()now called with explicitcache_root=watch_pathin_rebuild_codeandcache_root=Path('.')in the Codex skill AST step (#429) - Fix:
.mdxfiles silently skipped during detection — added.mdxtoDOC_EXTENSIONSindetect.py; MDX-based corpora (Next.js, Docusaurus, Astro) now indexed correctly (#428)
0.4.21 (2026-04-17)
- Fix:
graphify cluster-onlycrashed withKeyError: 'total_files'inreport.py— cluster-only skips detection so the stats dict was empty; now passes awarningkey so the report skips the file-stats section (#422) - Fix:
/graphify --updatedropped all existing graph nodes — the merge block built a correct in-memoryG_existingbut never wrote it back to.graphify_extract.json, so Step 4 rebuilt from the new-extraction-only file; merged result is now serialized back before Step 4 runs (#423)
0.4.20 (2026-04-17)
- Fix: JS/MJS
imports_fromedges were silently dropped for files that use../subdir/file.mjsstyle imports —Path.parent / rawleft..segments unnormalized, so the generated target ID didn't match the actual file node ID. Fixed withos.path.normpath(#414) - Fix:
graphify update .andgraphify cluster-onlynow generategraph.htmlalongsidegraph.jsonandGRAPH_REPORT.md— previously only the skill generated the interactive HTML (#418)
0.4.19 (2026-04-17)
- Fix: AST and semantic extraction no longer produce mismatched node IDs —
build_from_jsonnow normalises IDs before dropping edges, so edges survive when the LLM generates slightly different casing or punctuation than the AST extractor (#390) - Fix: cross-file call resolution extended to Go, Rust, Zig, PowerShell, and Elixir — unresolved callees are now saved as
raw_callsand resolved globally in a post-pass, matching existing behaviour for Python, Swift, Java, C#, Kotlin, Scala, Ruby, and PHP (#298) - Fix: Windows
graphify-out/graphify-outnesting bug —cache_dirand_rebuild_codein watch.py now call.resolve()on the root path, preventing a nested output directory when graphify is run from a subdirectory (#410) - Fix:
graphify hook installnow respectscore.hooksPathgit config (used by Husky and similar tools) — hooks are written to the configured path instead of always.git/hooks(#401) - Fix: Kiro skill YAML frontmatter —
descriptionvalue is now quoted and colons replaced with dashes, preventing a parse error in Kiro's YAML loader (#385) - Docs: added Windows PATH tip (
%APPDATA%\Python\PythonXY\Scripts) and macOS pipx tip (pipx ensurepath) to the install section (#413) - Docs: added team workflow section — committing
graphify-out/,.graphifyignoreusage, and recommended.gitignoreadditions (#369)
0.4.16 (2026-04-16)
- Fix: graphify watch crashed on all platforms with NameError because import sys was missing from watch.py (#386, #394)
- Fix: .mjs files were detected but produced 0 nodes — added .mjs to the AST extractor dispatch table (#387)
- Fix: llm.py excluded from the published wheel (local benchmarking file, not part of the public API) (#391)
0.4.15 (2026-04-15)
- Feat: VS Code Copilot Chat support —
graphify vscode installinstalls a Python-only skill (works on Windows PowerShell) and writes.github/copilot-instructions.mdfor always-on graph context (#206) - Fix: OpenCode plugin path used backslashes on Windows causing duplicate entries in
opencode.json— now uses forward slashes via.as_posix()(#378) - Fix: Gemini CLI on Windows now installs skill to
~/.agents/skills/(higher priority) instead of~/.gemini/skills/(#368) - Fix:
.mjsand.ejsfiles now recognised by the AST extractor as JavaScript (#365, #372) - Fix:
god_nodes()field renamed fromedgestodegreefor clarity — updated in report, wiki, serve, and all tests (#375) - Fix: macOS
graphify watchnow usesPollingObserverby default to avoid missed events with FSEvents (#373)
0.4.14 (2026-04-15)
- Fix: cross-file call edges now emitted for all languages (Swift, Go, Rust, Java, C#, Kotlin, Scala, Ruby, PHP, and others) — previously only Python had cross-file resolution; unresolved call sites are now saved per file and resolved against a global label map in a post-pass (#348)
- Fix: PHP extractor now handles
scoped_call_expression(static method calls likeHelper::format()) andclass_constant_access_expression(enum/constant references likeStatus::ACTIVE) — both were silently dropped before (#230, #232) - Fix:
--wikiflag now runsto_wiki()as Step 6b in the skill pipeline before the cleanup step — community labels are available and the wiki is written tographify-out/wiki/(#229, #354) - Fix:
graphify install --platform opencodenow also installs the.opencode/plugins/graphify.jsplugin, matching whatgraphify opencode installdoes (#356) - Fix:
extract()accepts explicitcache_rootparameter so subdirectory runs no longer write cache to<subdir>/graphify-out/cache/(#350) - Fix:
os.replacein cache writer falls back toshutil.copy2onPermissionError(Windows WinError 5) (#287) - Fix:
graphify updateexits with code 1 on rebuild failure instead of silently returning (#287) - Fix:
CLAUDE.md, Cursor, and Antigravity templates now usegraphify update .instead of hardcodedpython3 -cinvocation (#287) - Fix:
skill-kiro.mdadded topyproject.tomlpackage-data —graphify kiro installwas failing on fresh pip installs (#352) - Fix:
betweenness_centralityinsuggest_questionsusesk=100approximate sampling for graphs over 1000 nodes;edge_betweenness_centralityreturns early for graphs over 5000 nodes (#341)
0.4.13 (2026-04-14)
- Add: Verilog/SystemVerilog support —
.vand.svfiles extracted via tree-sitter-verilog (modules, functions, tasks, package imports, module instantiations withinstantiatesedges) (#325) - Fix: hyperedge polygons render correctly on HiDPI/Retina displays —
afterDrawingcallback ctx is now used directly (already in network coordinate space), removing the double-applied transform and incorrectcanvas.width/2DPR anchor (#334) - Fix: AGENTS.md and GEMINI.md rebuild rule now uses
graphify update .instead of hardcodedpython3 -c "..."— correct Python is resolved through the graphify binary, no more interpreter mismatches in Nix/pipx/uv environments (#324) - Fix:
graphify queryandgraphify explainno longer crash withAttributeErrorwhen a node haslabel: null— all.get("label", "")calls guarded withor ""to handle explicit null values (#323)
0.4.12 (2026-04-13)
- Add: Kiro IDE/CLI support —
graphify kiro installwrites.kiro/skills/graphify/SKILL.md(invoked via/graphify) and.kiro/steering/graphify.md(inclusion: always— always-on context before every conversation) (#319, #321) - Fix: cache
file_hash()now uses the path relative to project root instead of the resolved absolute path — cache entries are now portable across machines, CI runners, and different checkout directories (#311)
0.4.11 (2026-04-13)
- Fix:
graphify queryno longer crashes withValueErroron MultiGraph graphs —G.edges[u, v]replaced withG[u][v]+ MultiGraph guard (#305) - Fix:
graphify queryno longer crashes withAttributeError: 'NoneType' has no attribute 'lower'when a node has a nullsource_file(#307) - Fix: MCP server launched from a different directory now correctly derives the
graphify-outbase from the absolute path provided, instead of CWD (#309) - Fix:
.graphifyignorepatterns from a parent directory now fire correctly when graphify is run on a subfolder — patterns are matched against paths relative to both the scan root and the.graphifyignore's anchor directory (#303)
0.4.10 (2026-04-13)
- Fix:
graphify install --platform cursorno longer crashes — passesPath(".")to_cursor_install(#281) - Fix:
_agents_uninstallnow only removes the OpenCode plugin when uninstalling theopencodeplatform — other platforms were incorrectly having their OpenCode plugin stripped (#276) - Fix: misleading comment in query
--graphpath handler removed (#278) - Fix:
skill-codex.md—wait→wait_agent(correct Codex tool name) (#273) - Add:
svg = ["matplotlib"]optional extra in pyproject.toml;matplotlibadded to[all]extra (#288) - Fix:
graspologicdependency now haspython_version < '3.13'env marker inleidenandallextras — prevents install failures on Python 3.13+ (#290) - Add: Dart/Flutter support —
.dartfiles extracted via regex (classes, mixins, functions, imports); added toCODE_EXTENSIONS(#292) - Add:
norm_labelfield written at build time into_json()for diacritic-insensitive search;_score_nodesand_find_nodeinserve.pyusenorm_labelwith Unicode NFKD normalization fallback (#293) - Add: Hermes Agent platform support —
graphify hermes installwrites skill to~/.hermes/skills/graphify/SKILL.mdand AGENTS.md (#251) - Add: PHP extractor now captures static property access (
Foo::$bar) asuses_static_propedges (#234) - Add: PHP extractor now captures
config()helper calls asuses_configedges pointing to the first config key segment (#236) - Add: PHP extractor now captures service container bindings (
bind,singleton,scoped,instance) asbound_toedges (#238) - Add: PHP extractor now captures
$listen/$subscribeevent listener arrays aslistened_byedges (#240) - Add:
prune_dangling_edges()utility inexport.py— removes edges whose source/target is not in the node set (#294) - Fix: Antigravity install injects YAML frontmatter into skill file for native tool discovery; rules now include MCP navigation hint; prints MCP config snippet (#268)
- Fix: Windows hook tests now use platform-aware assertions instead of POSIX executable bit checks (#279)
- Add: CLI commands
path,explain,add,watch,update,cluster-onlynow work as bare terminal commands (not just AI skill invocations) — documented in--helpoutput (#277)
0.4.8 (2026-04-12)
- Fix: platform skill files (aider, codex, opencode, claw, droid, copilot, windows) no longer contain Claude-specific language — references to "Claude" as the AI model replaced with platform-agnostic wording (#272)
0.4.7 (2026-04-12)
- Fix:
watchsemantic edge preservation was always empty —graph.jsonuseslinkskey but code readedges(#269) - Fix:
graphify claw installnow writes to.openclaw/(correct OpenClaw directory) instead of.claw/(#208) - Add: Blade template support —
@include,<livewire:>components, andwire:clickbindings extracted from.blade.phpfiles (#242) - Docs: WSL/Linux MCP setup note — package name is
graphifyy, use.venv/bin/python3in.mcp.json(#250)
0.4.6 (2026-04-12)
- Add: Google Antigravity support —
graphify antigravity installwrites.agent/rules/graphify.md(always-on rules) and.agent/workflows/graphify.md(/graphifyslash command) (#203, #199, #53)
0.4.5 (2026-04-12)
- Fix: MCP server no longer crashes with
ValidationErroron blank lines sent between JSON messages by some clients (#201)
0.4.4 (2026-04-12)
- Fix:
watchnow preserves INFERRED/AMBIGUOUS edges (code↔doc rationale links) across rebuilds — previously all cross-type edges were dropped (#261) - Fix: Codex hook no longer emits
permissionDecision:allowwhich codex-cli 0.120.0 rejects (#249) - Fix: Common lockfiles (
package-lock.json,yarn.lock,Cargo.lock, etc.) are now skipped during detection, preventing token drain on large JS/Rust/Python projects (#266)
0.4.3 (2026-04-12)
- Fix: JS/TS relative imports now resolve to full-path node IDs — previously all
imports_fromedges were silently dropped on large TypeScript codebases (#256) - Fix: Python relative imports (
from .foo import bar) now resolve correctly to full-path node IDs (#256) - Fix:
watch --rebuild_codenow merges fresh AST with existing semantic nodes from docs/papers instead of overwriting them (#253) - Fix: Windows hooks now fall back to
pythonifpython3is not found; exits cleanly if neither has graphify installed (#244) - Fix:
surprising_connections/suggest_questionsno longer crash withKeyErroron stale_src/_tgtedge hints after node merges (#226) - Add:
.vueand.sveltefiles now recognized as code and included in extraction (#254)
0.4.2 (2026-04-11)
- Fix: same-basename files in different directories produced colliding node IDs — now uses full path (#211)
- Fix: edges using
from/tokeys instead ofsource/targetwere silently dropped (#216) - Fix: empty graphs (no edges) crashed
to_htmlwithZeroDivisionError(#217) - Fix: post-commit hook skipped
.tsx,.jsx, and other valid code extensions due to stale allowlist (#222) - Fix: NetworkX ≤3.1 serialises edges as
links— now accepted alongsideedges(#212) - Fix: version warning fired during
install/uninstalland duplicated on shared paths (#220) - Fix: all file IO now uses
encoding="utf-8"— prevents crashes on Windows with CJK or emoji labels; hook writes usenewline="\n"to prevent CRLF shebang breakage (#204) - Fix: Obsidian export — node labels ending in
.mdproduced.md.mdfilenames;GRAPH_REPORT.mdnow links to community hub files so vault stays in one connected component (#221)
0.4.1 (2026-04-10)
- Fix:
collect_files()inextract.pynow respects.graphifyignore— previously ignored patterns, causing thousands of unwanted files (e.g.node_modules/) to be scanned (#188) - Fix: skill.md Step B2 now explicitly requires
subagent_type="general-purpose"— usingExploretype silently dropped extraction results since it is read-only and cannot write chunk files (#195) - Fix: Step B3 now warns when chunk files are missing from disk instead of silently skipping them
0.4.0 (2026-04-10)
- Branch: v4 — video and audio corpus support
- Add: drop
.mp4,.mp3,.wav,.mov,.webm,.m4a,.ogg,.mkv,.avi,.m4vfiles into any corpus and graphify transcribes them locally with faster-whisper before extraction - Add: YouTube and URL download via yt-dlp —
/graphify add https://youtube.com/...downloads audio-only and feeds it through the same Whisper pipeline - Add: domain-aware Whisper prompts — the coding agent reads god nodes from the corpus and writes a one-sentence domain hint for Whisper itself, no separate API call
- Add:
graphify-out/transcripts/cache — transcripts cached by filename; YouTube URLs cached by hash so re-runs skip already-transcribed files - Requires:
pip install 'graphifyy[video]'for faster-whisper and yt-dlp
0.3.29 (2026-04-10)
- Add: video and audio corpus support — drop
.mp4,.mp3,.wav,.mov,.webm,.m4a,.ogg,.mkv,.avi,.m4vfiles into any corpus and graphify transcribes them with faster-whisper before extraction - Add: YouTube and URL video download — pass a YouTube link (or any video URL) to
/graphify add <url>and yt-dlp downloads audio-only, which is then transcribed and added to the corpus automatically - Add: domain-aware Whisper prompts — god nodes from non-video files are used to build a one-sentence domain hint for Whisper via a cheap Haiku call, improving transcript accuracy on technical content
- Add:
graphify-out/transcripts/cache — transcripts are cached by filename so re-runs skip already-transcribed files; URLs cached by hash - Requires:
pip install 'graphifyy[video]'for faster-whisper + yt-dlp
0.3.28 (2026-04-10)
- Fix: hook installers (Claude Code, Codex, Gemini CLI) now always remove and reinstall the hook on re-run — users upgrading from old versions no longer get stuck with a broken hook format (#182)
- Fix: rationale node labels no longer contain bare
\rcharacters on Windows/WSL CRLF files — breaks Obsidian export was silently producing invalid filenames (#176) - Fix:
skill-windows.mdnow includes--wiki,--obsidian-dir, and--directedwhich were missing vs the main skill (#177)
0.3.27 (2026-04-10)
- Fix: graphify install --platform gemini now also copies the skill file to ~/.gemini/skills/graphify/SKILL.md so the /graphify trigger works in Gemini CLI (#174)
0.3.26 (2026-04-10)
- Fix: MCP server no longer uses a circular path validation when loading a graph outside cwd — now validates the path exists and ends in
.jsoninstead of checking containment within its own parent directory (security fix)
0.3.25 (2026-04-09)
- Fix:
graphify install --platform gemininow routes togemini_install()instead of erroring —geminiwas missing from_PLATFORM_CONFIG(#171) - Fix:
graphify install --platform cursornow routes to_cursor_install()the same way (#171) - Fix:
serve.pyvalidate_graph_pathnow passesbase=Path(graph_path).resolve().parentso MCP server works when graph is outside cwd (#170) - Fix: MCP
call_tool()handler now wraps dispatch in try/except — exceptions in tool handlers return graceful error strings instead of crashing the stdio loop (#163) - Fix:
_load_graphifyignorenow walks parent directories up to the.gitboundary, matching.gitignorediscovery behavior — subdirectory scans now inherit root ignore patterns (#168) - Add: Aider platform support —
graphify install --platform aidercopies skill to~/.aider/graphify/SKILL.md;graphify aider install/uninstallwrites AGENTS.md rules (#74) - Add: GitHub Copilot CLI platform support —
graphify install --platform copilotcopies skill to~/.copilot/skills/graphify/SKILL.md;graphify copilot install/uninstallfor skill management (#134) - Add:
--directedflag —build_from_json()andbuild()now acceptdirected=Trueto produce aDiGraphpreserving edge direction (source→target);cluster()converts to undirected internally for Leiden;graph_diffedge key handles directed graphs correctly (#125) - Add: Frontmatter-aware cache for Markdown files —
.mdfiles hash only the body below YAML frontmatter, so metadata-only changes (reviewed, status, tags) no longer invalidate the cache (#131)
0.3.24 (2026-04-09)
- Fix:
graphify codex install(and opencode) no longer exits early whenAGENTS.mdalready has the graphify section — partial installs with a missing.codex/hooks.jsoncan now recover on re-run (#153)
0.3.23 (2026-04-09)
- Add: Gemini CLI support —
graphify gemini installwrites aGEMINI.mdsection and aBeforeToolhook in.gemini/settings.jsonthat fires before file-read tool calls (#105) - Add: sponsor nudge at pipeline completion — all skill files now print a one-line sponsor link after a fresh build, not on
--updateruns
0.3.22 (2026-04-09)
- Add: Cursor support —
graphify cursor installwrites.cursor/rules/graphify.mdcwithalwaysApply: trueso the graph context is always included;graphify cursor uninstallremoves it (#137) - Fix:
_rebuild_code()KeyError —detected[FileType.CODE]corrected todetected['files']['code']matchingdetect()'s actual return shape; was silently breaking git hooks on every commit (#148) - Fix:
to_json()crash on NetworkX 3.2.x —node_link_data(G, edges="links")now falls back tonode_link_data(G)on older NetworkX, same shim already used fornode_link_graph(#149) - Fix: README clarifies
graphifyyis the only official PyPI package — othergraphify*packages are not affiliated (#129)
0.3.21 (2026-04-09)
- Fix: Codex PreToolUse hook now places
systemMessageat the top level of the output JSON instead of insidehookSpecificOutput— matches the strict schema enforced by codex-cli 0.118.0+ which usesadditionalProperties: false(#138) - Fix: git hooks now use
#!/bin/shinstead of#!/bin/bash— Git for Windows shipssh.exenotbash, so hooks were silently skipped on Windows (#140)
0.3.20 (2026-04-09)
- Fix: XSS in interactive HTML graph — node labels, file types, community names, source files, and edge relations now HTML-escaped before
innerHTMLinjection; neighbor linkonclickusesJSON.stringifyinstead of raw string interpolation - Add: OpenCode
tool.execute.beforeplugin —graphify opencode installnow writes.opencode/plugins/graphify.jsand registers it inopencode.json, firing the graph reminder before bash calls (equivalent to Claude Code's PreToolUse hook) (#71) - Fix: AST-resolved call edges now carry
confidence=EXTRACTED, weight=1.0instead of INFERRED/0.8 — tree-sitter call resolution is deterministic, not probabilistic (#127) - Fix:
tree-sitter>=0.23.0now pinned in dependencies and_check_tree_sitter_version()guard added — stale environments now get a clearRuntimeErrorwith upgrade instructions instead of a crypticTypeErrordeep in the AST pipeline (#89)
0.3.19 (2026-04-09)
- Fix: install step now tries plain
pip installbefore falling back to--break-system-packages— Homebrew and PEP 668 managed environments no longer risk environment corruption (#126)
0.3.18 (2026-04-09)
- Fix:
--watchmode now respects.graphifyignore—_rebuild_codewas callingcollect_files()directly instead ofdetect(), bypassing ignore patterns (#120) - Fix: Codex PreToolUse hook now uses
systemMessageinstead ofadditionalContext— Codex does not supportadditionalContextand was returning an error (#121) - Fix: Trae link corrected from
trae.comtotrae.aiin README, README.zh-CN.md, README.ja-JP.md, README.ko-KR.md (#122) - Docs: Korean README added (README.ko-KR.md) (#112)
- Refactor:
save_query_resultinline Python blocks in all 6 skill files replaced withgraphify save-resultCLI command — shorter, maintainable, less tokens for LLM (#114) - Add:
graphify save-resultCLI subcommand — saves Q&A results to memory dir without inline Python - Fix: HTML graph click detection now uses hover-tracking (
hoveredNodeId) — more reliable than vis.js click params on small/dense nodes (#82) - Fix:
mkdir -p graphify-outnow runs before writing.graphify_pythoninskill.md— prevents write failure on first run;.graphify_pythonno longer deleted in Step 9 cleanup across all skill files so follow-up commands keep their interpreter (#93) - Fix:
skill-trae.mdadded topyproject.tomlpackage-data — Trae users no longer hitModuleNotFoundErrorafterpip install(#102) - Fix:
analyze.pyandwatch.pynow import extension sets fromdetect.pyinstead of local copies — Swift, Lua, Zig, PowerShell, Elixir, JSX, Julia, Objective-C files no longer misclassified as documents (#109) - Refactor: dead
build_graph()function removed fromcluster.py(#109)
0.3.17 (2026-04-08)
- Add: Julia (.jl) support — modules, structs, abstract types, functions, short functions, using/import, call edges, inherits edges via tree-sitter-julia (#98)
- Fix: Semantic extraction chunks now group files by directory so related artifacts land in the same chunk, reducing missed cross-chunk relationships (#65)
- Fix:
tree-sitter>=0.21now pinned in dependencies — prevents silent empty AST output when older tree-sitter is installed with newer language bindings (#52) - Add: Progress output every 100 files during AST extraction so large projects don't appear to hang (#52)
0.3.16 (2026-04-08)
- Fix:
graphify query,serve, andbenchmarknow work on NetworkX < 3.4 — version-safe shim fornode_link_graph()at all call sites (#95) - Fix:
.jsxfiles now detected and extracted via the JS extractor — added toCODE_EXTENSIONSand_DISPATCH(#94) - Fix:
.graphify_pythonno longer deleted in Step 9 cleanup across all 6 skill files — pipx users no longer hitModuleNotFoundErroron follow-up commands (#92)
0.3.15 (2026-04-08)
- Feat: Trae and Trae CN platform support (
graphify install --platform trae/trae-cn) - Fix:
skill-droid.mdwas missing from PyPI package data — Factory Droid users couldn't install the skill - Fix: XSS in HTML legend — community labels now HTML-escaped before
innerHTMLinjection - Fix: Shebang allowlist validation in
hooks.pyand all 6 skill files — prevents metacharacter injection from malicious binaries - Fix:
louvain_communities()kwargs now inspected at runtime for cross-version NetworkX compatibility - Fix: pipx installs now detected correctly in git hooks (reads shebang from graphify binary)
- Fix: graspologic ANSI escape codes no longer corrupt PowerShell 5.1 scroll buffer
- Docs: Japanese README added
- Docs:
graph.json+ LLM workflow example added to README - Docs: Codex PreToolUse hook now documented in platform table
0.3.14 (2026-04-08)
- Fix:
graphify codex installnow also writes a PreToolUse hook to.codex/hooks.jsonso the graph reminder fires before every Bash tool call (#86) - Fix:
--updatenow prunes ghost nodes from deleted files before merging new extraction (#51)
0.3.13 (2026-04-08)
- Fix: PreToolUse hook now outputs
additionalContextJSON so Claude actually sees the graph reminder before Glob/Grep calls (#83) - Fix: Go AST method receivers and type declarations now use package directory scope, eliminating disconnected duplicate type nodes across files in the same package (#85)
- Fix: PDFs inside Xcode asset catalogs (
.imageset,.xcassets) are no longer misclassified as academic papers (#52) - Fix:
_resolve_cross_file_importsis now guarded withif py_pathsand wrapped in try/except so a Python parser crash can't abort extraction for non-Python files (#52) - Fix: Skill intermediate files (
.graphify_*.json) now live ingraphify-out/instead of project root, preventing git pollution (#81)
0.3.12 (2026-04-07)
- Fix:
sanitize_labelwas double-encoding HTML entities in the interactive graph (&lt;instead of<) — removedhtml.escape()fromsanitize_label; callers that inject directly into HTML now callhtml.escape()themselves (#66) - Fix:
--wikiflag missing fromskill.mdusage table (#55)
0.3.11 (2026-04-07)
- Fix: Louvain fallback hangs indefinitely on large sparse graphs — added
max_level=10, threshold=1e-4to prevent infinite loops while preserving community quality (#48)
0.3.10 (2026-04-07)
- Fix: Windows UnicodeEncodeError during
graphify install— replaced arrow character with->in all print statements (#47) - Add: skill version staleness check — warns when installed skill is older than the current package, across all platforms (#46)
0.3.9 (2026-04-07)
- Add:
follow_symlinksparameter todetect()andcollect_files()— opt-in symlink following with circular symlink cycle detection (#33) - Fix:
watch.pynow usescollect_files()instead of manual rglob loop for consistency - Docs: Codex uses
$graphify .not/graphify .(#36) - Test: 5 new symlink tests (367 total)
0.3.8 (2026-04-07)
- Add: C# inheritance and interface implementation extraction —
base_listnow emitsinheritsedges for both simple (identifier) and generic (generic_name) base types (#45) - Add:
graphify query "<question>"CLI command — BFS/DFS traversal ofgraph.jsonwithout needing Claude Code skill (--dfs,--budget N,--graph <path>flags) - Test: 2 new C# inheritance tests (362 total)
0.3.7 (2026-04-07)
- Add: Objective-C support (
.m,.mm) —@interface,@implementation,@protocol, method declarations,#importdirectives, message-expression call edges - Add:
--obsidian-dir <path>flag — write Obsidian vault to a custom directory instead ofgraphify-out/obsidian - Fix: semantic cache was only saving 4/17 files — relative paths from subagents now resolved against corpus root before existence check
- Fix: 75 validation warnings per run for
file_type: "rationale"— added"rationale"toVALID_FILE_TYPES - Test: 6 Objective-C tests;
.m/.mmadded totest_collect_files_from_dirsupported set (360 total)
0.3.0 (2026-04-06)
- Add: multi-platform support — Codex (
skill-codex.md), OpenCode (skill-opencode.md), OpenClaw (skill-claw.md) - Add:
graphify install --platform <codex|opencode|claw>routes skill to correct config directory - Add:
graphify codex install/opencode install/claw install— writes AGENTS.md for always-on graph-first behaviour - Add:
graphify claude uninstall/codex uninstall/opencode uninstall/claw uninstall - Add: MIT license
- Fix:
build()was silently dropping hyperedges when merging multiple extractions - Refactor:
extract.py2527 → 1588 lines — replaced 12 copy-pasted language extractors withLanguageConfigdataclass +_extract_generic() - Docs: clustering is graph-topology-based (no embeddings) — explained in README
- Docs: all missing flags documented (
--cluster-only,--no-viz,--neo4j-push,query --dfs,query --budget,add --author,add --contributor)
0.2.2 (2026-04-06)
- Add:
graphify claude install— writes graphify section to local CLAUDE.md + PreToolUse hook in.claude/settings.json - Add:
graphify claude uninstall— removes section and hook - Add:
graphify hook install— installs post-commit and post-checkout git hooks (platform-agnostic) - Add:
graphify hook uninstall/hook status - Add:
graphify benchmarkCLI command - Fix: node deduplication documented at all three layers
0.1.8 (2026-04-05)
- Fix: follow-up questions now check for wiki first (graphify-out/wiki/index.md) before falling back to graph.json
- Fix: --update now auto-regenerates wiki if graphify-out/wiki/ exists
- Fix: community articles show truncation notice ("... and N more nodes") when > 25 nodes
- UX: pipeline completion message now lists all available flags and commands so users know what graphify can do
0.1.7 (2026-04-05)
- Add:
--wikiflag — generates Wikipedia-style agent-crawlable wiki from the graph (index.md + community articles + god node articles) - Add:
graphify/wiki.pymodule withto_wiki()— cross-community wikilinks, cohesion scores, audit trail, navigation footer - Add: 14 wiki tests (245 total)
- Fix: follow-up question example code now correctly splits node labels by
_to extract verb prefixes (previous version useddef/fnprefix matching which always returned zero results)
0.1.6 (2026-04-05)
- Fix: follow-up questions after pipeline now answered from graph.json, not by re-exploring the directory (was 25 tool calls / 1m30s; now instant)
- Skill: added "Answering Follow-up Questions" section with graph query patterns
0.1.5 (2026-04-05)
- Perf: semantic extraction chunks 12-15 → 20-25 files (fewer subagent round trips)
- Perf: code-only corpora skip semantic dispatch entirely (AST handles it)
- Perf: print timing estimate before extraction so the wait feels intentional
- Fix: 5 skill gaps - --graphml in Usage table, --update manifest timing, query/path/explain graph existence check, --no-viz clarity
- Refactor: dead imports removed (shutil, sys, inline os); _node_community_map() helper replaces 8 copy-pasted dict comprehensions; to_html() split into _html_styles() + _html_script(); serve.py call_tool() if/elif chain replaced with dispatch table
- Test: end-to-end pipeline integration test (detect → extract → build → cluster → analyze → report → export)
0.1.4 (2026-04-05)
- Replace pyvis with custom vis.js HTML renderer - node size by degree, click-to-inspect panel with clickable neighbors, search box, community filter, physics clustering
- HTML graph generated by default on every run (no flag needed)
- Token reduction benchmark auto-runs after every pipeline on corpora over 5,000 words
- Fix: 292 edge warnings per run eliminated - stdlib/external edges now silently skipped
- Fix:
build()cross-extraction edges were silently dropped - now merged before assembly - Fix:
pip install graphify→pip install graphifyyin skill Step 1 (critical install bug) - Add:
--graphmlflag implemented in skill pipeline (was documented but not wired up) - Remove: pyvis dependency, dead lib/ folder, misplaced eval reports from tests/
- Add: 5 HTML renderer tests (223 total)
0.1.3 (2026-04-04)
- Fix:
pyproject.tomlstructure -requires-pythonanddependencieswere incorrectly placed under[project.urls] - Add: GitHub repository and issues URLs to PyPI page
- Add:
keywordsfor PyPI search discoverability - Docs: README clarifies Claude Code requirement, temporary PyPI name, worked examples footnote
0.1.1 (2026-04-04)
- Add: CI badge to README (GitHub Actions, Python 3.10 + 3.12)
- Add: ARCHITECTURE.md - pipeline overview, module table, extraction schema, how to add a language
- Add: SECURITY.md - threat model, mitigations, vulnerability reporting
- Add:
worked/directory with eval reports (karpathy-repos 71.5x benchmark, httpx, mixed-corpus) - Fix: pytest not found in CI - added explicit
pip install pyteststep - Fix: README test count (163 → 212), language table, worked examples links
- Docs: README reframed as Claude Code skill; Karpathy problem → graphify answer framing
0.1.0 (2026-04-03)
Initial release.
- 13-language AST extraction via tree-sitter (Python, JS, TS, Go, Rust, Java, C, C++, Ruby, C#, Kotlin, Scala, PHP)
- Leiden community detection via graspologic with oversized community splitting
- SHA256 semantic cache - warm re-runs skip unchanged files
- MCP stdio server -
query_graph,get_node,get_neighbors,shortest_path,god_nodes - Memory feedback loop - Q&A results saved to
graphify-out/memory/, extracted on--update - Obsidian vault export with wikilinks, community tags, Canvas layout
- Security module - URL validation, safe fetch with size cap, path guards, label sanitisation
graphify installCLI - copies skill to~/.claude/skills/and registers inCLAUDE.md- Parallel subagent extraction for docs, papers, and images