Commit Graph

698 Commits

Author SHA1 Message Date
Levi Neely 03bb4fa6dc tools-cascade.md: use actual call_tool JSON schema in examples 2026-05-17 13:42:38 +02:00
Levi Neely 1c578191fa tools-cascade.md: fix calling convention to use call_tool 2026-05-17 13:41:46 +02:00
Levi Neely a8f63d17ff tools-cascade.md: simplify parallel example; clarify async consequence 2026-05-17 13:41:01 +02:00
Levi Neely f32f49c0a1 add tools-cascade.md prompt for orchestrator agents 2026-05-17 13:39:44 +02:00
Levi Neely e31d1abd1e u/cascade: add session name to results; sync schema with actual fields 2026-05-17 13:36:59 +02:00
Levi Neely 204e0e7a9d u/cascade: validate -retries; add attempts field to results
- Reject non-positive-integer -retries early
- Each worker records attempt count; results JSON includes
  'attempts' field for retry observability
2026-05-17 13:35:39 +02:00
Levi Neely 8895150f94 u/cascade: add -retries N for transient worker failure recovery
Workers retry with linear backoff (attempt*2s). Each retry uses a
unique session name suffix (-r2, -r3, ...) to avoid collisions.
Default: 1 (no retry).
2026-05-17 13:34:37 +02:00
Levi Neely 7f8421691f u/cascade: validate -max-workers; truncate large worker outputs
- Reject non-positive-integer -max-workers early
- Per-worker output capped at OLLIE_CASCADE_MAX_OUTPUT (default 8000 chars)
  to prevent synthesis prompt blowup
2026-05-17 13:33:25 +02:00
Levi Neely 42929b4c57 u/cascade: pass JSON results directly to planner synthesis prompt 2026-05-17 13:32:43 +02:00
Levi Neely 04bed6189f u/cascade: structured JSON results, worker throttling via -max-workers
- Results gathered as JSON array [{id, status, output}]
- Default output is pretty-printed JSON (no synthesis)
- -max-workers N (default 8) throttles concurrent workers
- Synthesis renders JSON to text for planner prompt
2026-05-17 13:31:23 +02:00
Levi Neely e4608b09aa cascade: fail fast without OLLIE_SESSION_ID; structured output record 2026-05-17 13:28:21 +02:00
Levi Neely 9ca6b9de8a u/cascade: strict plan schema validation; clarify exit code contract
- Validate all entries have non-empty string id and instruction
- No synthesis: exit 1 on worker failures (partial results)
- Synthesis: exit 0 — planner accounts for failures in its answer
2026-05-17 13:27:56 +02:00
Levi Neely 664b9e7f93 u/cascade: invert synthesis default — off unless -synthesize is passed 2026-05-17 13:25:17 +02:00
Levi Neely 77efded76d u/cascade: add -json-output flag for structured synthesis output
Schema: {summary, answer, worker_results[], errors[]}
2026-05-17 13:24:28 +02:00
Levi Neely 8d78c6a7bc u/cascade: validate plan schema (require .id and .instruction per entry) 2026-05-17 13:22:14 +02:00
Levi Neely c29cf7dcdc u/cascade: track per-worker failures, annotate status, exit non-zero 2026-05-17 13:22:00 +02:00
Levi Neely 87fb50f207 u/cascade: use private tmpdir for worker output isolation 2026-05-17 13:21:34 +02:00
Levi Neely 3d513790f9 u/cascade: add -no-synthesize flag to skip expensive synthesis step 2026-05-17 13:21:10 +02:00
Levi Neely c1857f8545 cascade: include hostname in session ID to avoid collisions on shared mounts 2026-05-17 13:20:24 +02:00
Levi Neely 033df45ef9 cascade: exponential backoff for session readiness poll 2026-05-17 13:19:50 +02:00
Levi Neely b4be3a01d9 add cascade tool and script-driven orchestrator
tools/cascade: fire-and-forget delegation to cheap model; worker
reports back to parent prompt when done. Parallelizable.

scripts/u/cascade: script-driven hub-and-spoke orchestrator for
terminal use — planner decomposes, workers execute in parallel,
planner synthesizes.
2026-05-17 13:16:18 +02:00
Levi Neely a80bb79e4f bump core 2026-05-17 13:02:39 +02:00
Levi Neely b78ea924e8 core: update submodule (truncation rework, per-step budgets, tier classification) 2026-05-17 12:53:47 +02:00
Levi Neely 7ae8b69ec9 tools: per-tool semantic truncation (file_grep 50, lsp_references 50, memory_recall 10/50, file_read 500) 2026-05-17 12:51:49 +02:00
Levi Neely bb83f4c523 prompt: prefer shell | for same-language chaining; pipe only across tool boundaries 2026-05-17 12:31:47 +02:00
Levi Neely dfc8718944 prompt: gate plan file write (3+ steps) and skill search (non-trivial tasks) 2026-05-17 12:31:21 +02:00
Levi Neely 032762117c prompt: bound dependency reads — stop at type signatures, not full import graph 2026-05-17 12:30:34 +02:00
Levi Neely 7f49377d41 prompts: fix calling convention — use call_tool not execute_code for named tools 2026-05-17 12:30:12 +02:00
Levi Neely 317eeb419b prompt: skip grep for small files (<200 lines) — read directly 2026-05-17 12:28:58 +02:00
Levi Neely ca0d250195 doc: add IDEAS_CONTROLLER.md — fit-for-purpose session controller design 2026-05-17 10:10:42 +00:00
Levi Neely c2f8eb29a6 tools: annotate file_read and memory_recall as cold-tier 2026-05-17 10:59:18 +02:00
Levi Neely e867904fa7 fix: use OLLIE_SESSION_ID in plan file path 2026-05-17 10:44:50 +02:00
Levi Neely 9e9d1a0778 prompt: instruct agent to persist plan to plan file 2026-05-17 10:44:25 +02:00
Levi Neely 5633af2d29 docs: parent must NEVER actively wait for subagent results 2026-05-17 10:38:38 +02:00
Levi Neely 3eb5152ded remove result_path — redundant with parent_session_id header 2026-05-17 10:34:35 +02:00
Levi Neely 4c37a46bd9 docs: clarify result_path is a convention hint, not enforced 2026-05-17 10:32:22 +02:00
Levi Neely d5b76c4c9b docs: update tools-subagent.md to match structured identity + parent plan 2026-05-17 10:30:54 +02:00
Levi Neely 9c0d22960b subagent_spawn: inject parent plan as context header 2026-05-17 10:26:57 +02:00
Levi Neely 5f0e25bd1d subagent_generate: structured identity envelope (role, roster, protocol, constraints) 2026-05-17 10:26:22 +02:00
Levi Neely 896de60c6e bump core, 9p 2026-05-17 00:23:00 +02:00
Levi Neely 5bec68107e move t/ into s/{sid}/t/; two-layer tool restriction (allowExecutors/allowTools) 2026-05-16 23:55:25 +02:00
Levi Neely 2a5725f84f bump core 2026-05-16 07:49:05 +02:00
Levi Neely 3125b02676 update 9p: show params in s/new template 2026-05-16 07:48:24 +02:00
Levi Neely 94d8923167 prompt: tighten narration rules; file_grep: default to content mode 2026-05-16 07:37:18 +02:00
Levi Neely 52d7b3e455 doc: document all generation parameters 2026-05-16 05:36:24 +00:00
Levi Neely 6fd52f6fe0 wire generation params into cfg and backend requests
Add top_p, top_k, min_p, top_a, repetition_penalty, max_completion_tokens,
response_format, reasoning_effort, include_reasoning, stop, and verbosity
to GenerationParams, config, cfg file, and backend request construction.
2026-05-16 05:36:24 +00:00
Levi Neely 1e1e36bf36 agents: add temperature/maxTokens; prompt: anti-oscillation instruction
- Set temperature=0.5 and maxTokens=16384 on default and coding agents
  to reduce confidence-oscillation loops in smaller models
- Add explicit instruction to act when information is sufficient,
  rather than re-verifying or hedging
2026-05-15 22:41:40 +02:00
Levi Neely 75e4d66384 core: update submodule (wire PlanFile, fix tests, fix regex) 2026-05-15 22:37:25 +02:00
Levi Neely e185496963 agents: add maxSteps: 50 to default and coding agents 2026-05-15 19:34:58 +00:00
Levi Neely 2150a27dc6 prompts: update tool descriptions to match execute_code/call_tool/pipe split 2026-05-15 19:17:45 +00:00