graphify icon indicating copy to clipboard operation
graphify copied to clipboard

Feature: per-project config for query defaults (budget, depth)

Open Ns2384-star opened this issue 4 months ago • 1 comments

Version: graphifyy 0.9.5.

Problem

Two hard-coded defaults that a project can't tune:

  • Query budget defaults to 2000 (__main__.py:2854). On our corpus, 71% of 289 real logged queries needed --budget 4000 because the default truncates before the specialized nodes appear. Every agent invocation has to remember the flag.
  • depth=2 is hard-coded in the CLI even though _query_graph_text accepts the parameter.

Proposal

A per-project graphify-out/config.json (or a section in the manifest) with default_budget, default_depth (room for future defaults), read by the CLI. CLI flags still override.

Ns2384-star avatar Jul 04 '26 16:07 Ns2384-star

Fixed in 0.9.102 (published to PyPI) via #4760. graphify query reads query_budget/query_depth from .graphifyrc (explicit CLI flags still win), and a --depth flag was added.

safishamsi avatar Nov 03 '26 22:11 safishamsi