You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Connect wiki search tools from src/knowledge/search to the context manager in src/execution/context_manager. For a given problem, the context manager should find related knowledge in the wiki/KG and provide it as context to the coding agent.
Current state:
KGEnrichedContextManager already accepts a KnowledgeSearch backend
It queries knowledge via knowledge_search.search(query, context)
Wiki tools in src/knowledge/search need to implement this interface
Goal
When a coding agent is working on a problem:
Context manager receives the problem description
Queries wiki/KG for related knowledge (Principles, Implementations, Heuristics, etc.)
Returns relevant wiki content as additional context
Agent uses this knowledge to generate better solutions
Integration Points
Context Manager (src/execution/context_manager/):
Already accepts a KnowledgeSearch backend
Queries knowledge via search(query, context) method
Wiki Search (src/knowledge/search/):
Needs to implement KnowledgeSearch interface
search(query, context) → returns relevant wiki pages
Description
Connect wiki search tools from
src/knowledge/searchto the context manager insrc/execution/context_manager. For a given problem, the context manager should find related knowledge in the wiki/KG and provide it as context to the coding agent.Current state:
KGEnrichedContextManageralready accepts aKnowledgeSearchbackendknowledge_search.search(query, context)src/knowledge/searchneed to implement this interfaceGoal
When a coding agent is working on a problem:
Integration Points
Context Manager (
src/execution/context_manager/):KnowledgeSearchbackendsearch(query, context)methodWiki Search (
src/knowledge/search/):KnowledgeSearchinterfacesearch(query, context)→ returns relevant wiki pagesImplementation Steps
KnowledgeSearchbase classWhat Knowledge to Retrieve
For a given problem, find:
Deliverable
KnowledgeSearchinterfaceTest
expert.build(goal="Fine-tune a language model")References
src/execution/context_manager/- Context manager modulesrc/knowledge/search/base.py- KnowledgeSearch interfacesrc/knowledge/search/- Wiki tools (issue Sync Wiki Changes to Local Files #3, Wiki Indexer and Retriever #4)Dependencies