Skip to content

refactor(engine): remove GitNexus integration + harden ask honesty - #88

Merged
study8677 merged 2 commits into
mainfrom
chore/remove-gitnexus-and-ask-honesty
Jun 4, 2026
Merged

refactor(engine): remove GitNexus integration + harden ask honesty#88
study8677 merged 2 commits into
mainfrom
chore/remove-gitnexus-and-ask-honesty

Conversation

@study8677

Copy link
Copy Markdown
Owner

What

Two cleanups in one pass.

1. Remove the optional GitNexus integration (zero dependency, zero mention)

  • ask_tools.py β€” drop _create_gitnexus_tools + the gitnexus CLI helpers (live code-inspection tools kept)
  • ask_pipeline.py β€” drop _query_graph_for_question and the needs_graph / GRAPH: router decision + graph_section prompt injection. Module routing and the project's own internal query_graph skill / knowledge_graph.json / .antigravity/graph are untouched (those are not GitNexus).
  • refresh_pipeline.py β€” drop the Step 9 gitnexus analyze stage + its status handling
  • README.md / README_CN.md / README_ES.md / mcp_servers.json / docs/assets/demo-mock.sh β€” remove GitNexus sections/server/links

2. Close two silent-failure holes on the ask path

  • Fallback knowledge served as fact β€” when a module's refresh analysis fails, _build_agent_md_fallback writes a bare file listing; the ask path previously read it as real knowledge. Now it's tagged (<!-- ag:status=fallback -->), detected at answer time, surfaced with a visible banner, and the answer is steered to live-source grounding. Regression test added (test_ask_fallback_detection.py).
  • Silent except: return None β€” added logger.warning before the previously silent degrade points on the ask hot path.

Also

  • Remove the broken README hero demo.gif reference (file didn't exist; before_after.png now leads)
  • Delete the stale mission.md "downstream project" template note
  • Scope the legacy-MCP-name packaging test to real source (skip generated/local dirs like .antigravity, .claude, artifacts, build)

Tests

219 passed (full engine suite).

πŸ€– Generated with Claude Code

study8677 and others added 2 commits June 4, 2026 11:43
… honesty

Remove the optional GitNexus code-graph integration end to end β€” docs, skills,
the MCP server entry, and engine code β€” so the project has zero GitNexus
dependency or mention. The project's own internal knowledge graph (query_graph
skill, knowledge_graph.json, .antigravity/graph) is unchanged.

GitNexus removal:
- ask_tools.py: drop _create_gitnexus_tools + the gitnexus CLI helpers
- ask_pipeline.py: drop _query_graph_for_question and the needs_graph / GRAPH
  router decision + graph_section prompt injection (module routing and the
  internal query_graph skill are untouched)
- refresh_pipeline.py: drop the Step 9 `gitnexus analyze` stage
- README*.md / mcp_servers.json / demo-mock.sh: remove GitNexus sections

Ask honesty (close two silent-failure holes):
- tag auto-generated fallback agent.md docs and detect them at answer time so a
  degraded module is never served as factual knowledge β€” prepend a visible
  banner and steer the answer to live-source grounding
- log before the previously silent `except: return None` sites on the ask path

Also: remove the broken README hero demo.gif reference, delete the stale
mission.md "downstream project" template note, and scope the legacy-MCP-name
packaging test to real source (skip generated/local dirs).

Tests: 219 passed.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
… build

`packages = ["src/ag_cli"]` already includes src/ag_cli/templates, so the extra
`force-include` re-added every template file at the same wheel path. Newer
hatchling rejects duplicate archive paths (ValueError: a second file is being
added ... `ag_cli/templates/.clinerules`), which failed `pip install ./cli` in
the cli-check CI job (all Python versions). Removing the redundant force-include
builds a clean wheel with all 12 templates present exactly once.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@study8677
study8677 merged commit fae1011 into main Jun 4, 2026
8 checks passed
@study8677
study8677 deleted the chore/remove-gitnexus-and-ask-honesty branch June 4, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant