Skip to content

feat(ci): graph change detection in MR pipeline + recall agent enhancement#47

Open
m0Nst3r873 wants to merge 5 commits into
Tencent:mainfrom
m0Nst3r873:feat/ci-graph-and-recall-agent
Open

feat(ci): graph change detection in MR pipeline + recall agent enhancement#47
m0Nst3r873 wants to merge 5 commits into
Tencent:mainfrom
m0Nst3r873:feat/ci-graph-and-recall-agent

Conversation

@m0Nst3r873

Copy link
Copy Markdown
Contributor

Summary

MR Pipeline

  • Detect graph changes on merge (shallow clone fallback)
  • Post graph change summary as PR comment
  • Reviewer reject via reaction
  • Strip markdown code fences from AI output

Recall Agent

  • Three-section output: knowledge + codebase context + gaps
  • Inline module deps + top components
  • Gaps relay to prevent hallucination

Test plan

  • tsc + vitest pass
  • Real CI pipeline test on TGit

Replace AI-generated docs/team-codebase/ with structured teamwiki/
knowledge graph. Vendor team-wiki's code-knowledge + core packages
(by @lurkacai) as the deterministic extraction engine.

New capabilities:
- `teamai codebase --extract`: code fact extraction (TS/Python/Go/Rust/Java/TOML/SQL)
- `teamai recall`: BM25 + graph-boost codebase retrieval
- `teamai codebase --lint`: graph health check
- `teamai codebase --upgrade-wiki`: migration from old format
- Module summaries with dependency direction and ranked components
- Knowledge gaps detection (IMPL_MISSING, LOW_CONNECTIVITY, etc.)
- Cross-repo edge detection via PascalCase label + config key matching
- AI overview.md generation (non-blocking on timeout)
- Pull protection: skip overwrite when local teamwiki/ is newer

Architecture:
- src/wiki-engine/: vendored core (graph schema, protocol) + code-knowledge
  (collector, extractors, graph builder, incremental detection)
- src/wiki-engine/adapters/: teamai-specific bridge + shared templates
- teamwiki/ directory (non-hidden) with router.md, hot.md, index.md,
  evidence/, .indices/, gaps/, modules/
@m0Nst3r873 m0Nst3r873 force-pushed the feat/ci-graph-and-recall-agent branch 2 times, most recently from 071d3a6 to 2edb6e9 Compare June 25, 2026 06:42
@m0Nst3r873 m0Nst3r873 force-pushed the feat/ci-graph-and-recall-agent branch from 2edb6e9 to b297e40 Compare June 25, 2026 07:10
Guide main agent to use a mid-tier model (not the default top-tier)
when invoking recall subagent, balancing cost/latency with capability.
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