Commit Graph

35 Commits

Author SHA1 Message Date
Levi Neely f7e084106c prompts: rewrite session_9p.md for agent/{aid} sublevel
Documents the new filesystem structure:
- session/{sid}/plan, env (session-level)
- session/{sid}/agent/{aid}/* (agent-level)
- Removed peer operations (deferred for redesign)
- All operations use ollie-9p CLI
2026-07-29 20:51:16 +02:00
Levi Neely 3833ba2860 ollie-9p: rename 'remove' command to 'rm'
Standard name. Updated prompt and usage accordingly.
2026-07-29 20:36:32 +02:00
Levi Neely 216a774477 prompts: rewrite session_9p.md to use ollie-9p CLI
Replace all raw filesystem operations (echo > file, cat file, exec fd<>)
with ollie-9p commands (read, write, rdwr, create, remove).
Remove /home/lkn/mnt/ollie prefix — ollie-9p handles server discovery.
2026-07-29 20:35:49 +02:00
Levi Neely 47c4890037 update prompts and scripts path: s/ → session/ 2026-07-29 20:34:42 +02:00
Levi Neely c19c8d0cb5 prompts/docs: replace execute_code with shell
- system_prompt.md: update output protocol reference
- README.md: update flag descriptions and example output
2026-07-29 14:44:18 +02:00
Levi Neely 0a9392e5fd system_prompt: add tool-first principle — prefer dedicated tools over shell 2026-07-29 09:48:23 +02:00
lkn bc9c8d5336 add Sandbox & Elevation section to system prompt with max-3-retry rule 2026-07-29 00:44:17 +02:00
lkn f1cbda64c7 add skills and autonomous loading behavior to system prompt 2026-07-29 00:17:58 +02:00
lkn 6b57fe1f77 move Tool Registry from session_9p.md to system_prompt.md (decoupled from 9P) 2026-07-28 23:27:32 +02:00
lkn 7bcaf7422c update session_9p.md: use tool_list/tool_load/tool_active instead of ollie-9p 2026-07-28 23:26:30 +02:00
lkn faaaf0f014 remove SYSTEM_PROMPT_QWEN.md and all references 2026-07-28 22:42:45 +02:00
lkn de8abb0b7a prompts: tool registry instructions using ollie-9p syntax 2026-07-28 22:15:41 +02:00
lkn b387b33593 tool registry: lazy-loading tool promotion via s/{sid}/tools 2026-07-28 14:57:43 +02:00
lkn f1f039da20 sync QWEN system prompt with default 2026-07-27 20:37:34 +02:00
lkn 77aabfbe04 ResolveSystemPrompt: expand env, fall back to embedded by filename 2026-07-27 20:31:50 +02:00
lkn 86880feb3a embed Qwen system prompt; remove Devstral 2026-07-27 20:23:58 +02:00
lkn f962f26451 update system prompt for categorized reaction format 2026-07-27 18:30:01 +02:00
Levi Neely d95313d682 add react file and reaction semantics in system prompt
New 9P file s/{id}/react: write an emoji to record a reaction to the
most recent assistant response. The reaction is passive feedback —
no model turn is triggered.

The system prompt now documents how agents should interpret emoji
reactions (positive/negative/confused) and silently adjust behavior.
2026-07-27 15:26:14 +02:00
Levi Neely af7363cb1d dbus: add remote parameter to CreateSession
The D-Bus method was missing the remote parameter that session.Manager
already supports. Add it as the 6th arg after system_prompt so frontends
can create remote execution sessions via D-Bus.
2026-07-24 11:58:01 +02:00
lkn 88a4119707 docs: document peer/ operations (touch/rm/write) 2026-07-21 14:57:30 +02:00
lkn c289f5c7fd prompts: mark 9P as preferred, D-Bus as fallback 2026-07-21 14:45:20 +02:00
lkn 17f28647b8 prompts: update D-Bus operational model with all methods, signals, and examples 2026-07-21 14:10:43 +02:00
lkn 590dbb5b4a prompts: rewrite 9P operational model with complete file tree and request-response examples 2026-07-21 14:04:24 +02:00
lkn 5dd0685c10 prompts: update 9P operational model with dns-style endpoints and full file tree 2026-07-21 13:59:38 +02:00
lkn 686fa5d0c8 embed layered system prompt: system + operational model + environment
The preamble is now composed as:
  system_prompt + operational_model + environment + agent_prompts

- Embed SYSTEM_PROMPT.md, session-9p.md, session-dbus.md in the binary
- Render environment block at runtime with live cwd/platform/date values
- Inject operational model based on server mode (Enable9P/EnableDBus)
- Accept system_prompt= override in session creation and D-Bus CreateSession
- Agent configs no longer need to reference system/session prompt files
2026-07-21 13:06:55 +02:00
Levi Neely f9a2e3249d move prompts/ and skills/ to parent repo
Prompts and skills are shared across frontends (9p, kde, dbus),
so they belong at the repo root rather than duplicated per frontend.
2026-07-19 12:07:18 +02:00
Levi Neely 6d0be8295e remove tier routing: drop route/cascade/escalate tools and prompts
/route now uses LLM-based capability classification with
OLLIE_ROUTE_MODEL_FAST and OLLIE_ROUTE_MODEL_POWER env vars.
OLLIE_TIER_* env vars are no longer used.
2026-07-18 16:55:19 +02:00
Levi Neely bb9b899e4e 9p: eliminate expensive API calls during readdir/stat
- Add CachedListModels() with 24h TTL to avoid repeated Models() API calls
- Cache readdir serialized bytes per-fid (rebuild only at offset=0)
- Skip all session file size computation in makeStat (report len=0)
- Short-circuit pathType() for session paths to avoid triggering Stat
- Remove e.Info() call from subdirectory readdir (unused mtime)
- Add monotonic timer to handle() for profiling 9p operations
- Add fcallTypeName() helper
- Fix stubCore for new Detach/SaveSession interface methods
- Add tools-process.md prompt

Before: ls inside a session dir took 1.38s (kiro) / 67ms (openrouter)
After: 182µs regardless of backend (7500x improvement)
2026-07-18 01:31:06 +02:00
Levi Neely d3d350efbb prompts: elevation requires proven failure first 2026-07-17 16:04:40 +02:00
Levi Neely b0f187aafb agent-copilot: aggressive no-questions format 2026-07-16 21:56:26 +02:00
Levi Neely aad89cddd9 agent-copilot: strict response format 2026-07-16 21:44:51 +02:00
Levi Neely c1b44f72d8 prompts: add agent-copilot.md 2026-07-16 21:42:01 +02:00
Levi Neely 2e4fdc38a2 prompts: clarify tools-elevate does NOT run as root 2026-07-16 21:08:04 +02:00
Levi Neely b82e4d857a prompts: add tools-image.md for image_read tool 2026-07-16 20:13:21 +02:00
Levi Neely 9ab0fe58b7 add prompts, skills, tools (moved from monorepo root) 2026-07-07 12:07:35 +02:00