Commit Graph

1860 Commits

Author SHA1 Message Date
Ollie Agent d80a87eb86 clean up OLLIE_* env vars: replace with XDG conventions
- Remove all OLLIE_*_PATH vars (TOOLS_PATH, CFG_PATH, DATA_PATH, etc.)
  Use XDG_CONFIG_HOME/ollie/* and XDG_DATA_HOME/ollie/* instead
- Replace OLLIE_<TAG>_LOG per-component logging with single OLLIE_LOG={level}
- Replace OLLIE_USAGE_LOG with XDG_DATA_HOME-based path
- Replace OLLIE_OLLAMA_URL with standard OLLAMA_HOST (or omit entirely)
- Rename protocol markers: OLLIE_LISTEN_READY → ListenReady, OLLIE_9P_OPEN → Open
- Remove freeloader hooks from agent configs
- Update sandbox YAMLs to use XDG paths instead of OLLIE_*_PATH tokens
- Update shell tools to use $(dirname "$0") fallback instead of OLLIE_TOOLS_PATH
- Update docs and prompts accordingly
2026-08-07 07:11:53 +02:00
Ollie Agent e93affe2e2 pull.sh 2026-08-06 18:08:24 +02:00
Levi Neely 3344a93278 bump kde 2026-08-06 16:16:28 +02:00
Levi Neely 54c6bc3ed2 update kde submodule pointer; whitespace cleanup in data/scripts/o 2026-08-06 14:06:14 +02:00
Levi Neely 7e68c18303 agent: mtime-based cache validation for read-safe tool results
Replace the blanket cache invalidation (cleared on any file_write/edit)
with per-entry staleness detection based on file mtime and size. On cache
hit, stat the file and compare against the metadata stored at cache time.
If the file changed (user edited externally, git checkout, etc), the
stale entry is discarded and the tool re-executes.

This fixes the case where a user is coding alongside the agent — external
file changes are now detected instead of serving stale cached reads.
2026-08-06 14:04:49 +02:00
Levi Neely 44592065d8 fix: respect agent-provided timeout and sandbox params in callPromotedTool
callPromotedTool was hardcoding timeout=30 and sandbox="default" for all
promoted tool executions, ignoring the timeout and sandbox parameters
provided by the agent in tool call args. Extract these from the JSON args
map (same pattern as elevated) and pass them through to the execution
functions.
2026-08-06 11:17:10 +02:00
Ollie Agent fc0c368e91 Good idea fairy cleanup: ~960 lines removed
Phase 1:
- agent/hooks.go (entire hooks engine, 237 lines)
- backend/noop.go (unused test backend)
- backend/oneshot.go: Route/RouteRequest/RouteResult + /route 9P file
- cmd/ollie-9p/mount/ (FUSE mount, 336 lines)
- toolsrv/schema.go (ParseToolInfo, zero callers)
- toolsrv/discover.go: ToolPrompt/ReadTool (zero callers)
- agent/commands.go: CompactionSnapshot + history.go: PreCompactionSnapshot
- data/tools/route.meta + justfile route install

Phase 2:
- detach/process.go: stripped Signal(), Cmd field, unused imports
- SignalDetached reimplemented with syscall.Kill directly

24 files changed, 19 insertions, ~980 deletions
2026-08-05 21:51:55 +02:00
Ollie Agent b703dcf79c Prefix binary entries with / in .gitignore for consistency 2026-08-05 19:49:10 +02:00
Ollie Agent c72d1c76f5 Remove tracked binaries from repo, add to .gitignore 2026-08-05 19:48:44 +02:00
Ollie Agent 4ebcdf24b9 Remove dead data/tools/route (replaced by 9P /route file) 2026-08-05 19:45:58 +02:00
Ollie Agent 30dbe69d59 Remove OLLIE_TIER_* from env.sample 2026-08-05 19:45:45 +02:00
Ollie Agent 244f328a43 Remove dead OLLIE_ENABLED_BACKENDS from docs 2026-08-05 19:45:13 +02:00
Ollie Agent 0c7213a6a3 Remove OLLIE_ELEVATE_SOCKET from README env table 2026-08-05 19:44:16 +02:00
Ollie Agent 1372a6b55b Remove OLLIE_ELEVATE_SOCKET from config: derived from XDG_RUNTIME_DIR convention
- Removed from env.go managed list and defaults map
- main.go and shell.go derive path from XDG_RUNTIME_DIR directly
- main.go sets OLLIE_ELEVATE_SOCKET in process env for subprocesses
2026-08-05 19:43:52 +02:00
Ollie Agent 38efa3c985 Remove stale data/prompts/system_prompt.md (not embedded, not installed) 2026-08-05 19:41:52 +02:00
Ollie Agent 5584a24efb Remove tool_active/skill_active references from system prompts and core.md 2026-08-05 19:40:21 +02:00
Ollie Agent 2bd6d6f66a Remove OLLIE_*_PATH env vars: paths follow ~/.config/ollie/ convention
- Stripped OLLIE_TOOLS_PATH, OLLIE_AGENTS_PATH, OLLIE_SKILLS_PATH,
  OLLIE_PROMPTS_PATH, OLLIE_MEMORY_PATH, OLLIE_TMP_PATH from managed
  list and defaults in env.go
- ToolsPath(), SkillsPath(), PromptsDirs(), AgentsDirs(), ollieTmpDir()
  now derive from paths.CfgDir()/paths.DataDir() directly
- Removed shell-exec fallback from resolveExecPrompt() — only file
  resolution remains
- Cleaned up env_test.go to match reduced managed set
- Updated stale comments referencing /home/lkn/.config/ollie/tools
2026-08-05 19:37:13 +02:00
Ollie Agent 5206f26fc6 Simplify config: remove OLLIE_*_PATH, use ~/.config/ollie/ convention 2026-08-05 19:29:56 +02:00
Ollie Agent 2026c15b57 Show stdin pipe examples for generate, complete, route 2026-08-05 19:28:35 +02:00
Ollie Agent fb30cf9875 Fix: agent prompt lives in data/prompts/ 2026-08-05 19:27:13 +02:00
Ollie Agent c644a98f0d Fix: agent prompt, not system prompt 2026-08-05 19:26:47 +02:00
Ollie Agent 51d83217ca Mention system prompt in Agents row 2026-08-05 19:26:00 +02:00
Ollie Agent 24c78e65b8 Rename 'Custom agents' to 'Agents' 2026-08-05 19:25:32 +02:00
Ollie Agent 714d56e021 Merge Custom tools into Tools row 2026-08-05 19:24:25 +02:00
Ollie Agent dcb49a6ccf Add 'Tools' row above Domain skills 2026-08-05 19:23:49 +02:00
Ollie Agent 2e14d2e93b Add o complete and o route subcommands, update table 2026-08-05 19:20:52 +02:00
Ollie Agent 58cedd902b Replace remaining ollie-9p references with o CLI 2026-08-05 19:19:32 +02:00
Ollie Agent 6f64e44fe0 Fix complete/route back to ollie-9p rdwr (no o subcommand yet) 2026-08-05 19:18:42 +02:00
Ollie Agent 83da0550b2 Reorder 'What you can do': CLI first, use o command, remove multi-agent 2026-08-05 19:18:20 +02:00
Ollie Agent 5bcaa005e4 Reorder 'What you can do' table in logical dependency order 2026-08-05 19:16:22 +02:00
Ollie Agent a63328ad37 Fix 'Run an agent' to describe session+agent creation 2026-08-05 19:15:29 +02:00
Ollie Agent 8001aa8c6a Strip tool-specific entries from 'What you can do' 2026-08-05 19:14:15 +02:00
Ollie Agent 0b5e0b3c3e Update 'What you can do' with current capabilities 2026-08-05 19:13:29 +02:00
Ollie Agent 6e4a14de2d Move 'What you can do' below Configuration 2026-08-05 19:11:22 +02:00
Ollie Agent 0b9d5a9124 Remove tool registry section from README entirely 2026-08-05 19:10:36 +02:00
Ollie Agent 36822717a1 Move 'Tool registry: zero built-in tools' to doc/resources/tool-registry.md 2026-08-05 19:10:08 +02:00
Ollie Agent 1e0e532183 Fix all doc/*.md links: WRITING_TOOLS.md → resources/writing-tools.md 2026-08-05 19:09:16 +02:00
Ollie Agent 1a5ce7ab05 Fix link to doc/usage.md (was uppercase) 2026-08-05 19:08:15 +02:00
Ollie Agent 24515d2946 Rename 'Getting started' to 'Building' 2026-08-05 19:07:54 +02:00
Ollie Agent 86e09b1cd2 Remove '9P: everything is a file' section from README, link to doc/resources/9p.md instead 2026-08-05 19:07:18 +02:00
Ollie Agent 0d8bd9a56c Move '9P: Everything is a File' to doc/resources/9p.md 2026-08-05 19:05:49 +02:00
Ollie Agent 9659bfb3b9 Update kde submodule: remove D-Bus mentions 2026-08-05 19:01:37 +02:00
Ollie Agent 24d00ab8c0 Update kde submodule: fix close-to-tray comment 2026-08-05 18:59:53 +02:00
Ollie Agent 74a06de0cd Update kde submodule: fix architecture diagram 2026-08-05 18:58:39 +02:00
Ollie Agent 4e2d109bf0 Update kde submodule: remove stale build files 2026-08-05 18:57:38 +02:00
Ollie Agent 1a57c1f4ca Update kde submodule: remove plasmoid/tray references 2026-08-05 18:56:37 +02:00
Ollie Agent 51644639e5 Update kde submodule to latest
- Updated KDE README with accurate 9P-based architecture
- Removed all D-Bus dependencies
- Fixed ghost provider and dolphin scripts to use 9P
2026-08-05 18:53:49 +02:00
Levi Neely 0cefd03e9a update kde submodule; session/fs changes 2026-08-05 17:52:26 +02:00
Levi Neely 3febb30de8 update kde submodule 2026-08-05 09:06:52 +02:00
Levi Neely cfb30de060 session: remove persisted session on kill
Kill is unconditional — a killed session must not be restored
on daemon restart. Call RemovePersistedSession() to delete the
session file from ~/.config/ollie/sessions/active/.
2026-08-05 09:06:29 +02:00