Repository navigation
feat(skills): recall skills per session through the uteke index - #616
Merged
Merged
Conversation
Sessions opt in with TOLE_SKILL_INDEX=uteke (TOLE_SKILLS_PINNED, TOLE_SKILL_RECALL_K, TOLE_SKILL_FLOOR; invalid values fail startup). run lists the pinned core plus the skills recalled for its prompt; chat, resume and the TUI list the pinned core; all get skill_search. The default local keeps the full listing, and uteke without the binary falls back to it with a note. New tole skills index|retire|search maintains the index; index sends name, description, status and hash, never the body. The active --profile name scopes the recall. Every query sent to the index (the recall brief, a skill_search query, a tole skills search query) is redacted against the process secrets first, because uteke may forward it to a cloud store. Closes #590.
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
This was referenced Nov 11, 2026
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.
What
Part 2 of #590: sessions can now use the skill index that #613 added. With
TOLE_SKILL_INDEX=uteke,tole runlists a pinned core plus the skills recalled for its prompt, every session gets theskill_searchtool, and a newtole skills index|retire|searchcommand maintains the uteke index. The default (local) is unchanged.Why
Closes #590 (epic #589). #613 added the
SkillIndexseam, the uteke adapter and the selection logic, but no session used them. This PR connects them to sessions, as decided indocs/skills-registry-design.md§4 and §7.Changes
crates/tole-cli/src/skill_recall.rs(new):TOLE_SKILL_INDEXislocal(the default) oruteke.TOLE_SKILLS_PINNEDis a comma-separated list, at most 5.TOLE_SKILL_RECALL_Kis 0 to 10 (default 5).TOLE_SKILL_FLOORis 0.0 to 1.0 (default 0.35). That default is a documented starting value, not a calibrated one.skills_section: builds the skills part of the system prompt.localkeeps today's full listing exactly.utekeshows the pinned core plus the top K recalled for the brief, and registersskill_search.utekewithout the binary falls back tolocalwith a note.--profilename (feat(config): profiles with model tiers, allowlist, memory room and skills #584) is theSkillFilterscope, so skills indexed for other profiles are not recalled. Profiles have no role field yet, so the recall query's role isNone.RedactingIndex: every query is redacted against the process secrets (provider_chain::process_secrets) before it reaches the index, becauseuteke doc searchmay send it to a cloud store. That covers the recall brief, a model-writtenskill_searchquery and atole skills searchquery. Upsert and retire pass through unchanged.tole skills(shell-tools builds):indexupserts every discovered skill with its name, description, statusapprovedand the SKILL.md content hash. The body is never sent.retire <name>keeps the skill on disk but stops it being recalled.search <query>shows what a brief would recall. It uses the floor,--profile(default: the active profile), and descriptions read from the local files.main.rs:runpasses its prompt as the brief.chat,resume, the TUI and the server faces passNone, so they get the pinned core plusskill_search.Skillssubcommand (the config trust gate is skipped for it, like other maintenance commands).config_apply.rs:ProviderFill.profile_name, set byfill_with_profile, with aprofile_name()accessor.Testing
All run locally on head 997bdfa (one commit on develop ae21fc6):
cargo test --workspacepasses: 1420 passed, 0 failed (79 suites).cargo test -p tole-cli --no-default-featurespasses: 420 passed, 0 failed. The e2e file is gated onshell-tools, because without it there is no uteke adapter.cargo test -p tole-core --no-default-featurespasses: 481 passed, 0 failed.cargo fmt --all -- --checkpasses.cargo clippy --workspace --all-targets -- -D warningspasses, and so doescargo clippy -p tole-cli --no-default-features --features shell-tools -- -D warnings.cora review --no-llm --base origin/develop(cora v0.20.0): "No issues found". The LLM review is CI Cora Review.tests/skill_index_e2e.rsruns the realtolebinary with a fakeutekeon PATH and a mock provider that echoes the system message back. No real uteke store is available here; the 0.35 floor still needs checking withtole skills searchon a real store.New tests:
skill_recall::tests:settings_default_to_local_and_reject_bad_valueslocal_mode_lists_everything_like_beforeuteke_mode_shows_pinned_plus_recalled_and_registers_skill_searchindex_all_upserts_each_discovered_skill_with_its_file_hashqueries_reach_the_index_redacted_and_profile_scopeduteke_mode_without_the_binary_falls_back_with_a_notetests/skill_index_e2e.rs:uteke_index_lists_pinned_plus_recalled_for_the_run_promptdefault_index_lists_every_skill_and_never_calls_uteke_for_skillsan_invalid_setting_fails_startupconfig_apply_tests::fill_with_profile_carries_the_profile_model_and_personanow also checksprofile_name.Red/green: each behavior was broken on purpose, the named test was seen failing, the file was restored, and the test passed again. All 8 mutants were killed:
local_mode_lists_everything…uteke_mode_shows_pinned…settings_default_to_local…rundoes not pass its promptuteke_index_lists_pinned_plus_recalled…(e2e)index_all_upserts…queries_reach_the_index_redacted…queries_reach_the_index_redacted…fill_with_profile_carries…Related Issues
Closes #590. Epic #589. Follows #613 (part 1). Next: #591 (approved-hash loading). A follow-up will add a
[skills]config table and per-profile pinned skills.Checklist
feat/skill-recall-wiring)develop