From d570f86177c514ae888fb63fc0bb0da7dd4d5097 Mon Sep 17 00:00:00 2001 From: Agando Date: Fri, 29 May 2026 18:01:19 +0200 Subject: auto: 2026-05-29_18:01 changes --- main.html | 70 +++++++++++++++++ modules/core/module-aiassist.js | 106 +++++++++++++++++++++++++- modules/core/ollama-manager.js | 25 ++++++ modules/core/terminal.js | 130 +++++++++++++++++++++++++++++++- skills/agent-optimization-framework.md | 31 ++++++++ skills/index.json | 134 +-------------------------------- skills/macro-engine-debug.md | 10 +++ skills/macro-engine-onboarding.md | 10 +++ skills/project-profile-manager.md | 25 ++++++ 9 files changed, 404 insertions(+), 137 deletions(-) create mode 100644 skills/agent-optimization-framework.md create mode 100644 skills/macro-engine-debug.md create mode 100644 skills/macro-engine-onboarding.md create mode 100644 skills/project-profile-manager.md diff --git a/main.html b/main.html index 16a189d..a8fa9c9 100644 --- a/main.html +++ b/main.html @@ -315,6 +315,26 @@ } .ollama-status.connected { background: rgba(0, 255, 0, 0.1); border: 1px solid var(--success-color); } .ollama-status.disconnected { background: rgba(255, 85, 85, 0.1); border: 1px solid var(--error-color); } + /* Toggle slider styles */ + #ollama-optimization-slider::before, #ollama-validator-slider::before { + content: ""; + position: absolute; + height: 20px; + width: 20px; + left: 2px; + bottom: 2px; + background: var(--text-color); + border-radius: 50%; + transition: 0.3s; + } + #ollama-optimization-toggle:checked + #ollama-optimization-slider::before, + #ollama-validator-toggle:checked + #ollama-validator-slider::before { + transform: translateX(22px); + } + #ollama-optimization-toggle:checked + #ollama-optimization-slider, + #ollama-validator-toggle:checked + #ollama-validator-slider { + border-color: var(--success-color); + } .copy-btn { position: absolute; top: 5px; @@ -635,6 +655,56 @@ +
+

⚡ AI Agent Optimization

+
+ Agent Loop Optimizations: + + Enabled +
+
+ ⚡ Tool def caching, trivial query skip, parallel safe tools, debounced reflection
+ Disable for debugging or if model behaves unexpectedly. Reload after toggle. +
+
+

🔍 Validator Agent (Future)

+
+ A separate lightweight AI that validates the main agent's tool results. Has its own + endpoint and model — independent from your active AI model. +
+
+ Enable Validator: + + Disabled +
+
+ + + +
+
+
+ + + +
+
+ ⚠️ Connection Notes
+ • Cloud models (deepseek-v4*, gemma4:*b-cloud) via Ollama proxy often ignore tool calls + and answer from training data instead. Use local models for tool calling.
+ • To connect to local Ollama from a web page: set OLLAMA_ORIGINS on the server: + export OLLAMA_ORIGINS="https://webx11.duckdns.org" then restart Ollama.
+ • Test local connection: open a terminal and run curl http://localhost:11434/api/tags
+ • If you see 403 errors in console: the OLLAMA_ORIGINS env var isn't matching your page URL. +