ollie/cmd/olliesrv/internal/agent
Levi Neely 07dcd60d19 skills: add embedding-based skill matching
Add semantic skill matching using all-MiniLM-L6-v2 sentence embeddings.
Skills are automatically injected into user turns based on relevance.

New packages:
- embedding: ONNX-based text embedding with MiniLM model
- skills: skill discovery, embedding cache, and semantic matching

Integration:
- InitSkillIndex called at startup in fs.NewRoot
- matchSkills called per-turn in executeTurn
- Matched skills injected in <context> block alongside user prompts

Makefile:
- install-models target downloads model and ONNX runtime
- Model files stored in ~/.local/share/ollie/models/

Config:
- Threshold: 0.2 cosine similarity
- Limit: 3 skills per turn
- Skill dirs: ~/.kiro/skills (user), ~/.config/ollie/skills (installed)
2026-08-20 15:54:43 +02:00
..
agent.go Support runtime backend switching via ctl 2026-08-19 20:06:20 +02:00
agent_config.go remove maxSteps and ResetsCounter entirely 2026-08-17 09:48:58 +02:00
agent_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
cancellation_test.go account for stripCold in cost 2026-08-15 12:37:13 +02:00
chatlog.go show agent reasoning output 2026-08-17 00:08:27 +02:00
commands.go Update architecture documentation and remove obsolete frontends 2026-08-16 19:21:26 +02:00
config_paths.go merge paths utilities into util 2026-08-16 18:37:03 +02:00
cost.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
feed.go feed: use BlockOnce for read side, dedup via base comparison 2026-08-13 20:05:46 +02:00
fifo.go Bound agent prompt queues 2026-08-18 06:58:38 +02:00
fifo_test.go refactor: move olliesrv and toolsrv packages to cmd/*/internal/ 2026-08-10 20:16:44 +02:00
history.go Honor cancellation during compaction streams 2026-08-18 06:59:35 +02:00
history_incremental_test.go incrementalize cold summaries 2026-08-15 13:13:22 +02:00
history_summary.go validate cold history summaries 2026-08-15 12:42:28 +02:00
history_summary_test.go normalize summary cache keys 2026-08-15 13:42:11 +02:00
history_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
history_trigger_test.go defer cold summaries until needed 2026-08-15 13:27:16 +02:00
local_summary.go reduce cold results locally 2026-08-15 13:33:26 +02:00
local_summary_test.go reduce cold results locally 2026-08-15 13:33:26 +02:00
loop.go quirks: reject shell calls to native tools 2026-08-20 14:08:53 +02:00
loop_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
prompt_resolver.go fix: XDG default fallback in prompt resolver; deduplicate tool headers 2026-08-13 15:45:35 +02:00
runtime.go remove maxSteps and ResetsCounter entirely 2026-08-17 09:48:58 +02:00
runtime_dispatch_test.go agent: add tests for dispatch flag injection and background helpers 2026-08-11 08:28:54 +02:00
runtime_test.go refactor toolsrv into client protocol and metadata packages 2026-08-16 17:22:59 +02:00
skill_match.go skills: add embedding-based skill matching 2026-08-20 15:54:43 +02:00
summary_cache_test.go include tool semantics in summary cache 2026-08-15 13:46:29 +02:00
text_parse.go cleanup: fix structural inconsistencies, remove dead code 2026-08-11 10:46:38 +02:00
turn.go skills: add embedding-based skill matching 2026-08-20 15:54:43 +02:00