Skip to content

Missing 'context' CLI command breaks Memorix 1.8.1 integration (Context Builder exists in package but is not registered) #1611

Description

@scursel

Summary

The codegraph context CLI command is not registered in v1.5.0, even though a Context Builder implementation exists in the package (lib/dist/context/index.js). This breaks the Memorix 1.8.1 external-CodeGraph integration, which invokes codegraph context --path <project-root> --format json --max-nodes 8 --no-code <task> and falls back to its Lite heuristic index when the command is missing.

Repro

codegraph context --path <any-project> "trace the auth flow"
# error: unknown command 'context'  (exit 1)

Also visible via codegraph --help: 22 registered commands — init, uninit, index, sync, status, query, explore, prompt-hook, node, files, daemon, serve, unlock, callers, callees, impact, affected, install, uninstall, telemetry, upgrade, version — none of them is context.

Evidence

  • lib/dist/context/index.js (65,711 bytes) exists and implements the Context Builder ("Builds rich context for tasks by combining FTS search with graph traversal. Outputs structured context ready to inject into Claude."). Help text "codegraph context — Build context for a task" also appears in bin/codegraph.js help/usage strings, but the command is never registered via .command('context ...') in bin/codegraph.js.
  • codegraph status --json works fine (used by Memorix for health checks → reports ready), only context is missing.

Environment

  • codegraph v1.5.0 (package @colbymchenry/codegraph, bundle @colbymchenry/codegraph-win32-x64) on Windows
  • memorix v1.8.1 (npm global), which documents the expected contract in its docs: codegraph context --path <project-root> --format json --max-nodes 8 --no-code <task> (see Memorix docs/1.2.0-PROVIDER-QUALITY.md)

Impact on Memorix

Memorix codegraph status reports "External semantic CodeGraph: ready", but memorix codegraph context-pack --task ... fails with "External semantic CodeGraph is unavailable; using Lite structural evidence for this brief" because the context invocation errors out. Cautation text changes from "timed-out" to "unavailable" depending on the failure path.

Request

Please register the existing context command in bin/codegraph.js (it appears implemented in lib/dist/context/index.js), or document the correct replacement command/flag shape so the Memorix contract can be updated/vendored.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions