Repository navigation
feat(mcp): include the skill references a task needs, picked by Jev - #22
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
skillstool takes an optionaltask("add Klarna to my checkout"). TypeSafe's Jev (from #20) picks which references of the requested skills that task needs, and the tool includes them in the same call. Before, the agent got either no references (just their names) or all of them: 144k characters forpayments, 150k forcontent-model.How it works
#title, its intro paragraph and its##headings.>= 0.5, up to 3.References picked for your task: klarna (96%), and the other references are listed by name.referencesorincludeAllReferenceswin overtask. A blank task, a Jev failure, or nothing picked gives today's output.virtual:skills) is now injected through the container, so the tool can be tested; Bun can't load the Vite virtual module.Measured live (
bun run bin/eval-reference-selection.ts)Each call is about 1.7k input tokens (roughly $0.00007) and takes about 320ms.
Notes
content-model,mass-operations). Forpaymentsthe provider names already speak for themselves.bin/lib/jev-rest.ts, and both need no settings: the account comes fromwrangler.jsoncand the token fromwrangler login.bun testpasses (162/162), andbun type-check,bun lintandbun run buildare clean.