Commit Graph

9 Commits

Author SHA1 Message Date
Ollie Agent 8630d79116 add JSON schema output to all tool scripts on arg parse errors; remove env and grep tools
All tools in ./tools/ now output a JSON schema when arguments fail
to parse, instead of raw usage strings. Formats handled:
- echo/print usage replacement
- dollar-brace-var-colon-? usage expansion to if-statements
- die() function replacement
- argparse ArgumentParser subclass with error() override

Deleted env (use shell instead) and grep (use file_grep instead).
Removed root-level /tools from 9P filesystem listing.
2026-07-29 00:01:25 +02:00
Levi Neely 01bf124ec0 migrate from FUSE mounts to 9p client
- prompts/session-9p.md: all operations use `9p` commands
- LSP tools: sys.path from $OLLIE_TOOLS_PATH (no mount needed)
- 9p: removed auto-mount + OLLIE= env var from sessions

Agents now use the standalone 9p client binary for all 9P access.
Mounts remain available for human convenience but are not required.
2026-07-27 11:42:02 +02:00
Ollie Agent 71a3734ad0 tools: add ollie:prompt blocks to all core tool scripts
Migrate usage documentation from separate tools-*.md prompt files
into the tool scripts themselves via ollie:prompt...ollie:end blocks.
BuildRuntime automatically extracts and appends these to the preamble.

Migrated: file_read, file_write, file_edit, file_glob, file_grep,
lsp_definition, lsp_references, lsp_hover, lsp_rename, lsp_symbols,
lsp_diagnostics, lsp_completion, reasoning_think, memory_remember,
memory_recall.
2026-07-21 13:23:28 +02:00
Ollie Agent adea9cb627 add justfile, move tools/ to repo root
Replace Makefile/mkfile with justfile (just command runner).
Move tools from kde/tools to root (uses physical paths, not 9P).
Add process_*, env, grep tools that were missing from submodules.

just: 9P path (default), just dbus: D-Bus path.
2026-07-19 12:39:09 +02:00
Ollie Agent d3aa756544 move prompts/skills/tools into 9p/ and kde/ submodules
- prompts/, skills/, tools/ removed from monorepo root
- 9p/: gains prompts/skills/tools with 9P filesystem API (unchanged)
- kde/: gains prompts/skills/tools rewritten for D-Bus API
- mkfile: data target no longer installs prompts/skills/tools
- 9p/mkfile: install target now includes data (prompts/skills/tools)
- kde/Makefile: all target now includes data (prompts/skills/tools)
- SYSTEM_PROMPT_QWEN and SYSTEM_PROMPT_DEVSTRAL updated in both
  submodules to include the operational world model
2026-07-07 12:07:50 +02:00
Ollie Agent f4d49d2420 Add librarian agent; update LSP tools 2026-05-26 11:58:17 +02:00
Levi Neely f320979142 tools/lsp: fix _lib import path, add lsp_completion
All lsp_* scripts used OLLIE_TOOLS_PATH for sys.path which points to
the physical backing store where _lib does not exist. Changed to use
$OLLIE/t (the FUSE mount) where _lib actually lives.

Also added lsp_completion script and textDocument/completion support
in the LSP bridge.
2026-05-11 13:19:02 +02:00
Levi Neely 29ea11be22 lsp tool 2026-04-30 14:39:13 +02:00
Levi Neely 3fec18b780 tools: add LSP bridge and tool scripts
Adds a thin LSP bridge daemon (tools/_lib/lsp/) that manages LSP server
processes on demand, with adapters for gopls, clangd, and intelephense.

Tool scripts:
- lsp_definition: go to definition
- lsp_references: find all references
- lsp_hover: type/doc info
- lsp_rename: rename symbol (applies edits directly)
- lsp_symbols: document/workspace symbols
- lsp_diagnostics: errors and warnings
2026-04-30 11:12:31 +02:00