Tool-use reinforcement learning
Train a model to investigate a codebase.
A search result is only a starting point. A useful code specialist follows dependencies, inspects the implementation and returns the evidence a developer needs.
Where is tenant access checked before a document is returned?
Target output: Relevant code locations, a supported explanation and an explicit gap when the evidence is incomplete.
Built forDeveloper tools and enterprise software teams
- Training environment
- Build tasks from permitted repositories and reviewed engineering questions. Give the model a read-only sandbox with hybrid search, file inspection and the same context limits it will have in the product.
- Learning signal
- Use reinforcement learning, such as GRPO, to compare search trajectories. Grade answer correctness and citation support against reviewed expectations; check graders against expert judgments. Optimize tool-call cost only after the answer meets the quality bar.
- Release test
- Hold out repositories and task families. Compare the trained policy with the starting model using identical tools. Measure supported answers, missed evidence, latency and cost per completed investigation.
- Deployment
- Serve the specialist beside a permission-aware code index in your infrastructure. Keep indexing, embeddings and traces within the agreed boundary; refresh the index as code changes.