Commit Graph

21 Commits

Author SHA1 Message Date
Levi Neely 92ba860644 doc: use ctl kill instead of rm -r for session teardown
rm -r is blocked by sandbox patterns. echo kill > s/{id}/ctl
achieves the same result safely.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 23:15:42 +02:00
Levi Neely 8ca905799b fix: error handling, sandbox env, file tool enforcement
- tools/file_*: hard-fail when OLLIE_SESSION_ID is unset; surface errors
  on all failure paths including dir checks, marker cleanup, and I/O
- tools/file_read: treat nonexistent path as new file (emit "(new file)",
  write empty marker) so file_write can create new files
- tools/file_write: colorize new-file lines with + (U+FF0B)
- tools/file_glob, file_grep, memory_*, task_*: consistent error handling
  and output to stdout so the model sees all failures
- tui/diffcolor.go: match +/− (U+FF0B/U+2212) lookalikes emitted by
  file_edit/file_write; fix +++ / --- header pattern
- prompts: prohibit execute_code for file creation/modification;
  enforce execute_tool with file_write/file_edit instead
- core submodule: surface isError from MCP responses; inject
  OLLIE_SESSION_ID into execute server at session creation

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 22:52:10 +02:00
Levi Neely 34ba25eb8a minor clarification 2026-04-14 20:03:46 +02:00
Levi Neely 36244bb72c system prompt component reordering 2026-04-14 20:02:44 +02:00
Levi Neely e1cff999ad prompts: move Skills → 06_skills.md, Tools → 07_tools.md
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:59:20 +02:00
Levi Neely 62826ab77f prompts: split session/filesystem into 01_ollie.md; shift 01-04 → 02-05; clean prompts dir on install
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:57:56 +02:00
Levi Neely 301744db97 prompts: replace ollie/ and $OLLIE with {{.OllieMountPath}}
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:44:54 +02:00
Levi Neely 881079116e update core submodule; prompts: use {{.OllieMountPath}} template variable
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:42:10 +02:00
Levi Neely 16462bde69 update submodules; document s/{id}/systemprompt in base prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:17:10 +02:00
Levi Neely 8a138f167c prompts: split SYSTEM_PROMPT.md into ordered p/ parts
- prompts/SYSTEM_PROMPT.md → prompts/00_base.md (remove conflicting tool-preferences bullet)
- prompts/01_reasoning.md — reasoning guidance
- prompts/02_memory.md — memory guidance
- prompts/03_task.md — task planning guidance
- prompts/04_edit-text.md — file_* tool guidance

These replace the hardcoded eager-loaded skills in core's systemPrompt().
Update core and skills submodule refs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 19:15:25 +02:00
Levi Neely 2b574e8f58 update submodules: embed reasoning/memory skills in system prompt
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 15:52:33 +02:00
Levi Neely 34b901233c prompts: make reasoning/memory skill loading an explicit first action
Previous wording was passive. Now gives an explicit command with a
concrete tool call to run before the first response.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 15:47:26 +02:00
Levi Neely cf9567ff5b prompts: eager-load reasoning and memory skills
Direct the model to read ollie/sk/reasoning.md and ollie/sk/memory.md
at session start. Both are behavioral primitives that must be active
before any task begins.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 15:44:44 +02:00
Levi Neely 01e20d5d53 update submodules: idx-based discovery, s/idx, session self-awareness
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 14:28:03 +02:00
Levi Neely 20c84a5778 prompt: use {{.Tools}} for dynamic tool injection; update core submodule ref
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 13:00:23 +02:00
Levi Neely 995d72a776 tools: add tools.sh discovery script; update prompt for schema-less tools
tools.sh reads # description/# Args headers from all scripts and prints
a summary — one call replaces the schema injection built-in tools get
for free. Prompt now directs the model to run it before using unfamiliar
tools.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 10:58:03 +02:00
Levi Neely df79fcb382 prompt: strengthen skills section — proactively search and load before acting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 09:05:19 +02:00
Levi Neely b810a73477 prompt: add filesystem layout section; document task_plan/task_complete tools
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-14 09:04:30 +02:00
Levi Neely fa5828b2d3 rename workdir to cwd throughout codebase
Completes the rename started with the 9P file change.

Go API: WorkDir→CWD, SetWorkDir→SetCWD, WorkDirSetter→CWDSetter.
Unexported: workdir→cwd in fields, params, locals.
Template: {{.WorkDir}}→{{.CWD}}.
Docs: ARCHITECTURE.md, PLANNING.md, README.md, IDEAS.md.
2026-04-13 18:02:54 +02:00
Levi Neely 5c5f11faa5 plan discipline: add backend-agnostic rules to system prompt
New 'Plan discipline' section enforces marking steps done as they
are completed. Update core and 9p submodules.
2026-04-13 13:05:18 +02:00
Levi Neely bb96f56d53 move agents/ and prompts/ from core to monorepo root
These are system-wide data files, not core-specific. Consolidate
install of agents, prompts, and skills into a single 'data' target.
2026-04-13 10:32:53 +02:00