Skip to content

feat: add code context metadata foundation#353

Closed
raoabinav wants to merge 3 commits into
StarTrail-org:mainfrom
raoabinav:codex/p0-code-context-clean
Closed

feat: add code context metadata foundation#353
raoabinav wants to merge 3 commits into
StarTrail-org:mainfrom
raoabinav:codex/p0-code-context-clean

Conversation

@raoabinav
Copy link
Copy Markdown
Contributor

@raoabinav raoabinav commented Jun 3, 2026

Evaluator Summary

  • Abi added an AST-aware code-context metadata layer for Python chunks, capturing module paths, qualified symbols, definitions, imports, calls, and references so LEANN can reason over code structure instead of only raw text.
  • The design keeps extraction pure-Python and metadata-only in this PR: low-risk, serializable, and suitable as a stable contract for later related-code expansion and cross-file symbol traversal.
  • The implementation integrates at chunking time, so downstream search, MCP, and agent workflows can consume richer code metadata without changing the vector backend API.
  • Quality bar: focused tests cover code-context extraction, AST chunk integration, RAG app no-recompute behavior, and chat propagation; lint/format checks were run on the changed modules.

@raoabinav
Copy link
Copy Markdown
Contributor Author

Replaced by #354 from the neutral feature branch.

@raoabinav raoabinav closed this Jun 4, 2026
@raoabinav raoabinav deleted the codex/p0-code-context-clean branch June 4, 2026 03:19
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