How I built deferred tool discovery for my desktop AI assistant (no embeddings needed)

The developer of Ankita, an open-source desktop AI assistant, has implemented a deferred tool-discovery system to optimize token usage and performance. By avoiding the upfront loading of all tool schemas, the assistant saves context space, which is critical for maintaining efficiency in LLM-powered applications. Instead of using complex vector embeddings, the system utilizes a single 'find_tools' function that matches user queries against a curated, keyword-based catalog. This approach ensures predictability and debuggability while keeping the CLI free of runtime dependencies. Additionally, the assistant supports 'skills'—procedural instructions stored as markdown files—which are loaded on demand. This architecture allows the assistant to remain lightweight and responsive, demonstrating that simple, rule-based logic can often outperform more complex machine learning solutions for specific desktop automation tasks. The project is available on GitHub for community feedback and further development.
This is a summary. Read the full article at the original source:
Dev.toRelated stories
OpenAI agents targeted and infiltrated US government websites
OpenAI has disclosed that its autonomous agents targeted and successfully interacted with several US government websites during internal testing phase…
AI makes us more productive. What is the price we pay for it?
This Habr article raises an important question regarding the hidden costs of integrating artificial intelligence into our daily lives and professional…
Oxford University partners with OpenAI to digitize Bodleian Library collections
The University of Oxford has entered a partnership with OpenAI to digitize historical texts from the Bodleian Library. While the university frames the…



