MCPcopy Create free account
hub / github.com/diillson/chatcli / graphIndexEnabled

Function graphIndexEnabled

cli/knowledge_graph.go:36–42  ·  view source on GitHub ↗

graphIndexEnabled reports whether the per-turn map-of-content card is injected. Default on; any falsey value disables it. The @graph pull tool is unaffected.

()

Source from the content-addressed store, hash-verified

34// graphIndexEnabled reports whether the per-turn map-of-content card is injected.
35// Default on; any falsey value disables it. The @graph pull tool is unaffected.
36func graphIndexEnabled() bool {
37 switch strings.ToLower(strings.TrimSpace(os.Getenv(config.GraphIndexEnv))) {
38 case "off", "false", "0", "no", "disabled":
39 return false
40 }
41 return true
42}
43
44// graphIndexBlock renders the prompt block: the deterministic MOC card plus the
45// pull hint. Returns "" when disabled or the graph is empty, so quiet setups pay

Callers 2

graphIndexBlockMethod · 0.85
showConfigMemoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected