feat: Agent-Loop mit Tools und Fehlerklassen

agent.rs: fünf Tools (read_file, write_file, list_dir, run_shell, done),
Pfadprüfung auf /work, Fehlerklassen nach SPEC 5, Schleifenerkennung,
Limits für Schritte und Zeit, Metriken. Ollama-Client über /api/chat.
31 Unit-Tests mit Mock-Modell grün; Werkzeuge gegen echte Sandbox grün.
Echter Modelllauf steht aus, weil Ollama nicht läuft und keine Modelle da sind.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-06 19:24:08 +01:00
parent 173be01279
commit a02f57b469
5 changed files with 1273 additions and 16 deletions

View File

@ -23,6 +23,8 @@ tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
toml = "0.8"
reqwest = { version = "0.12", features = ["blocking", "json"] }
base64 = "0.22"
# Read the optimization guideline for more details: https://tauri.app/concept/size/#cargo-configuration