Commit Graph

1354 Commits

Author SHA1 Message Date
Ollie Agent 74dfad30c0 update session persistence submodules 2026-07-26 12:10:11 +02:00
Ollie Agent 836201c280 service/autostart install manually 2026-07-26 11:41:58 +02:00
Ollie Agent b854bb7bf1 prompts: codify autonomous multi-repo handling in agent-coding.md
Three new Discipline rules: handle all repos/submodules when given a multi-repo task; diagnose and act, do not ask permission per sub-step; when sandbox-blocked, explain and move on.
2026-07-25 18:22:54 +02:00
Ollie Agent fd27166c12 ollie: remove daemon subcommands, centralize service file management
olliesrv no longer has start/fgstart/stop/status subcommands — it runs
in the foreground and relies on the supervisor (systemd, openrc, or
xdg-autostart) for lifecycle management. This simplifies the binary
and makes the single-process model explicit.

Changes:
- All docs: olliesrv start → olliesrv
- justfile: add install-services target, used by all install recipes;
  installs systemd user unit, openrc init script, xdg autostart entry;
  remove inline autostart installs from individual targets
- systemd unit: ExecStart drops "start" subcommand
- openrc init script: deleted (was for daemonized start; now managed
  via install-services)
- xdg-autostart: new desktop entry (moved from 9p/ submodule),
  Exec=olliesrv (no longer shells out to start + remount)
- contrib/ollie-remount: add debug echo for namespace/socket
- 9p submodule: remove daemon subcommands from Go code;
  delete old desktop file
- el submodule: update README for foreground-only olliesrv
2026-07-25 18:20:26 +02:00
Levi Neely 90b9990ae4 kde: update submodule (windowed chat rendering) 2026-07-24 14:45:42 +02:00
Ollie Agent ce30ba5bb5 services: update openrc init script, rename superpowerd to ollie service, remove elevate-adapter 2026-07-24 13:14:04 +02:00
Levi Neely c8dcb83a0e update kde submodule 2026-07-24 12:07:31 +02:00
Levi Neely da5f9d8112 update kde submodule (kf5 gui sync) 2026-07-24 12:05:43 +02:00
Levi Neely 6ed1d098ab fix CreateSession: add remote parameter to D-Bus method
The D-Bus adapter only exposed 4 parameters (cwd, backend, model, agent)
but the session manager supports 6 (+ system_prompt, remote). The remote
had already added system_prompt as the 5th; this adds remote as the 6th.

All frontends (KDE plasmoid, Kate, tray, dolphin, webui, httpgw) and
tool scripts now pass the correct 6 arguments.
2026-07-24 11:58:34 +02:00
Levi Neely 3fa357aebf update submodules 2026-07-23 14:53:32 +02:00
Levi Neely bbce915712 Update kde submodule: context menu actions 2026-07-23 14:30:40 +02:00
Ollie Agent 9eba9b0034 kde/9p: model combo populated from backend, ListModelsByBackend method 2026-07-21 15:33:11 +02:00
Ollie Agent e9ee0b94b6 kde: new session dialog with backend/model/cwd 2026-07-21 15:28:14 +02:00
Ollie Agent 730dac6724 kde: error dialog on session creation failure 2026-07-21 15:22:14 +02:00
Ollie Agent b21e3f4789 core: fail fast on missing API key for openai/openrouter 2026-07-21 15:08:20 +02:00
Ollie Agent 2f61f0ce3d file_write: ensure newline before closing diff fence 2026-07-21 15:03:52 +02:00
Ollie Agent ae37c322cb doc: add system prompt override and tool discovery sections to USAGE.md 2026-07-21 15:02:01 +02:00
Ollie Agent ec5de866d2 docs: document peer/ operations in help.md and session-9p.md 2026-07-21 14:57:30 +02:00
Ollie Agent cca4410b25 docs: update README, help.md with current filesystem, fix D-Bus examples 2026-07-21 14:51:33 +02:00
Ollie Agent 5e5cd8e689 prompts: remove tools-* files (now embedded in tool scripts), keep tools-core 2026-07-21 14:49:15 +02:00
Ollie Agent 5a990d6e4e doc: update help.md with current filesystem layout and request-response files 2026-07-21 14:47:27 +02:00
Ollie Agent 23e0288ebc prompts: sync 9P preferred, D-Bus fallback 2026-07-21 14:45:20 +02:00
Ollie Agent e5cefee048 update submodules: operational model rendering in restore/reload paths, test fixes 2026-07-21 14:41:39 +02:00
Ollie Agent 341b2df63c update 9p, httpgw, kde submodules 2026-07-21 14:28:27 +02:00
Ollie Agent c7e83f0fc8 agents: fix prompt paths, remove stale tool prompt references
Tool prompts (tools-file, tools-lsp, tools-reasoning, etc.) are now
embedded in code. Only tools-core.md and agent-*.md remain as external
prompt files. Use $OLLIE_CFG_PATH/prompts/ paths instead of bare
filenames that were being executed as commands.
2026-07-21 14:19:13 +02:00
Ollie Agent 8a6ff40bed prompts: sync D-Bus and 9P operational models 2026-07-21 14:10:43 +02:00
Ollie Agent 037a4c6208 prompts: sync 9P operational model 2026-07-21 14:04:24 +02:00
Ollie Agent a9074605c5 prompts: sync 9P operational model (dns-style endpoints, full file tree) 2026-07-21 13:59:43 +02:00
Ollie Agent 85023f5641 9p: update submodule (tools write→read dns pattern) 2026-07-21 13:56:06 +02:00
Ollie Agent 50a1b43904 9p: update submodule (add /tools to root dir listing) 2026-07-21 13:51:29 +02:00
Ollie Agent 62c9f5907d update submodule: core (fix tool schema validation) 2026-07-21 13:47:53 +02:00
Ollie Agent 6d8cbfd99b update submodules: core, 9p
core: layered preamble, tool discovery, debounced saves, cross-turn cache
9p: embedded system prompt, /tools file, -no9p mode
2026-07-21 13:40:47 +02:00
Ollie Agent dfa008a46b tools: add ollie:prompt blocks to all remaining scripts
Complete migration: process_*, route, subagent_*, env, grep,
image_read, gui_*, browser_screencap, denote_view.

Every tool script now self-documents its usage. BuildRuntime
automatically extracts and injects these into the system prompt.
2026-07-21 13:27:38 +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 fb09d0e366 file_read: add ollie:prompt block for auto-discovery
Usage documentation is now embedded in the script header and
automatically extracted into the system prompt by BuildRuntime.
This replaces the corresponding section in tools-file.md.
2026-07-21 13:18:57 +02:00
Ollie Agent f56398aeb1 prompts: extract tool interface and skill discovery into own files
SYSTEM_PROMPT.md now contains only behavioral directives (identity,
output protocol, accuracy, security). Tool Interface and Skill Discovery
are separate prompt files referenced by agent configs.

Agent configs use short names resolved via OLLIE_PROMPTS_PATH and no
longer reference SYSTEM_PROMPT.md or session.md (those are now embedded
in the binary and injected automatically).
2026-07-21 13:07:24 +02:00
Ollie Agent db616bcbf1 remove doc/PLANNING.md (unimplemented task_plan/task_complete)
These tools were never reliably used by agents. Planning is handled
via in-context plan files (s/{id}/plan) and the replan/stall detection
in the agent loop.
2026-07-21 12:33:40 +02:00
Ollie Agent 228e0c48d6 add service definitions for superpowerd + elevate adapter
openrc: single service (ollie.initd) manages both superpowerd and the
elevate adapter via start_post/stop_pre, since supervise-daemon only
supervises one process and openrc has no PartOf equivalent.

systemd: two user services with native dependency management.
superpowerd.service runs the daemon; ollie-elevate-adapter.service
depends on it via Requires+PartOf (auto-stops with superpowerd).
2026-07-21 12:30:01 +02:00
Ollie Agent 2803fb30f3 elevate-adapter: connection pooling to superpowerd
Reuse SEQPACKET connections across requests instead of
connect/close per command. Connections are returned to a
pool (max 4 idle) after successful use and discarded on error.

superpowerd HandleConn already loops for multiple requests
per connection, so this is safe. Each ExecuteCommandStreaming
still blocks its connection until the command exits, so
concurrent commands use separate pooled connections.
2026-07-21 11:55:13 +02:00
Ollie Agent 0fa24ef8c2 remove elevate-adapter-start script and agentSpawn hook
The adapter is now started by the system service manager, not
on-demand from inside the sandbox. ensureElevateAdapter was
removed from core in the previous commit.
2026-07-21 11:49:42 +02:00
Ollie Agent e2e1e95fd8 remove dbus submodule, update docs for -no9p mode
olliesrv now supports D-Bus-only operation via -no9p flag,
replacing the need for the standalone ollied daemon (archived).

- Remove dbus/ submodule
- Update README: three-mode table, remove ollied references
- Update doc/ARCHITECTURE.md: remove ollied section and references
2026-07-21 11:44:38 +02:00
Ollie Agent 058d7aed0d elevate-adapter: direct CreateSession for token refresh
Replace subprocess-based token refresh (superpowers run-session --child-session)
with direct SEQPACKET CreateSession RPC to superpowerd. This fixes:

1. Session PID mismatch: old approach registered session to short-lived sh
   subprocess PID, causing immediate pidAlive() failure on next use
2. Child session failure: --child-session fails when superpowerd restarts
   (parent session gone)
3. Gentoo python-exec2c exec chain: replace os.execvp startup with direct
   CreateSession call

The adapter now owns its session directly (peerPID = adapter PID), so the
session stays valid for the adapters entire lifetime.
2026-07-21 07:42:54 +02:00
Levi Neely a65178f936 elevate-adapter: retry on exit 255 with no output, add diagnostic logging
When superpowerd returns exit 255 with no output streamed, treat it as a
suspicious session failure (same as auth error) and retry with a refreshed
token. This addresses intermittent elevated command failures where the
session silently expires mid-conversation.

Also adds stderr logging at key decision points: token refresh attempts,
retry signals, RPC errors, and non-JSON responses from superpowerd.
2026-07-20 15:49:58 +02:00
Levi Neely 9b7832b134 acme: update submodule (fix Del passthrough bug) 2026-07-20 14:08:02 +02:00
Levi Neely cf6fe52fc4 update core, 9p submodules; agent configs and prime script 2026-07-20 13:37:22 +02:00
Levi Neely 160cf1a46b kf5 corrections, remote is broken 2026-07-20 10:25:43 +02:00
Ollie Agent 8929f10aa8 README: expand remote execution section with streaming, persistence, comparison 2026-07-19 21:57:56 +02:00
Ollie Agent b7217232a3 remote: session persistence across restarts 2026-07-19 21:53:01 +02:00
Ollie Agent be041cff1a doc: add Streaming section to REMOTE_EXECUTION 2026-07-19 21:41:24 +02:00
Ollie Agent 365be9ae32 streaming: tool output without duplication or new event roles 2026-07-19 21:36:55 +02:00