You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e3e2161
Browse filesBrowse the repository at this point in the historyBrowse files
# everything at once: shell access plus your own system prompt (replaces the built-in one)
1049
1072
mvn -q compile exec:java \
1050
-
-Dexec.args="--model /models/Qwen3-4B-Instruct-2507-Q4_K_M.gguf --ngl 99 --ctx-size 16384 --workspace /path/to/project --allow-shell --system 'You are a local assistant on this machine with full shell access. run_command executes any command line, including docker, git and build tools. When asked about the system, run a command instead of explaining it. Answer in the language of the user.'"
1073
+
-Dexec.args="--model models/Qwen3-4B-Instruct-2507-Q4_K_M.gguf --ngl 99 --ctx-size 16384 --workspace /path/to/project --allow-shell --system 'You are a local assistant on this machine with full shell access. run_command executes any command line, including docker, git and build tools. When asked about the system, run a command instead of explaining it. Answer in the language of the user.'"
1051
1074
```
1052
1075
1053
1076
The full streaming tool-calling loop (tools → `delta.tool_calls` → Java tool → `role:"tool"` result →
**Everything at once — shell access and your own system prompt:**
73
127
74
128
```bash
75
129
mvn -q compile exec:java \
76
-
-Dexec.args="--model /models/Qwen3-4B-Instruct-2507-Q4_K_M.gguf --ngl 99 --ctx-size 16384 --workspace /path/to/project --allow-shell --system 'You are a local assistant on this machine with full shell access. run_command executes any command line, including docker, git and build tools. When asked about the system, run a command instead of explaining it. Read a file before you edit it. Answer in the language of the user.'"
130
+
-Dexec.args="--model models/Qwen3-4B-Instruct-2507-Q4_K_M.gguf --ngl 99 --ctx-size 16384 --workspace /path/to/project --allow-shell --system 'You are a local assistant on this machine with full shell access. run_command executes any command line, including docker, git and build tools. When asked about the system, run a command instead of explaining it. Read a file before you edit it. Answer in the language of the user.'"
77
131
```
78
132
79
133
Then ask, for example, *"which docker images are available?"* or *"build the project and fix the
@@ -209,5 +263,11 @@ starter are the *deployment* layer on top of the same runtime — not needed for
209
263
- Tool rounds are not kept in the cross-turn history (only `user`/`assistant` text is replayed).
210
264
- No approval prompts for destructive tools yet (`ToolDefinition.requiresApproval` exists in Atmosphere).
211
265
- An engine error after the stream started ends the turn silently (see the table).
266
+
-**One in-process agent per machine at a time.** The core extracts its native library to a fixed
267
+
name (`jllama.dll` / `libjllama.so` in the temp directory); on Windows a second JVM cannot replace
268
+
the file while the first one has it loaded, so a second `--model` agent fails at startup with
269
+
`Failed to delete old native lib` followed by `No native library found`. Two in-process models
270
+
also share the GPU's memory — a second 4B model on an 8 GB card can stall instead of failing.
271
+
To run several agents, start one server (mode A) and point each agent at it with `--base-url`.
212
272
- The Spring Boot `@Agent` + WebSocket/SSE UI variant is untested here; it uses the same runtime and
213
273
the same `LLM_BASE_URL`, so it is expected to work but is not CI-covered.
0 commit comments