turbo-editors/configspublic Fork 0
a3c787d5a663a53653680e06a06138b0a1e64a2c
Commits
Clone
git clone https://git.rickub.com/turbo-editors/configs.git
git clone ssh://git@rickub.com/turbo-editors/configs.git

Host key fingerprint (ed25519): SHA256:iycHnxEyq0Q7uyVpB7JlznP0G7JrTPXLYRcAU5CSLhc — verify it before your first connect.

agent.mm-dmr-gemma.yaml · 108 lines · 3.7 KBYAML Blame HistoryRaw
🛟 Updated. cd4c4c7 k33g 14h ago1# Agent settings.
2#
3provider: dmr
4
5model: huggingface.co/unsloth/gemma-4-e2b-it-gguf:Q4_K_M
6baseUrl: http://localhost:12434/engines/v1
7fallback: http://host.docker.internal:12434/engines/v1
8
9bashTool: true
10# The built-in file tools: read_file, write_file, edit_file.
11editTools: true
12
13lsp:
14 servers:
15 - name: gopls
16 command: gopls
17 extensions: [".go"]
18
19# How many tokens the server actually serves.
20# 0 = ask the server (llama-server tells it on /props)
21contextWindow: 0
22
23# Max number of characters a tool returns to the model.
24# Context safeguard: beyond that, the output is truncated (beginning + end kept).
25maxOutput: 16000
26
27# Max number of model <-> tools round trips for a single question.
28# Raise it for tasks that need long chains of commands.
29maxTurns: 40
30
31# Persistent sessions, per project.
32# When enabled, every conversation is saved as one JSON file under `dir`.
33# `/sessions` lists them, `/resume` continues one; in an editor, "Reload Agent" replays the thread.
34sessions:
35 enabled: true
36 dir: .mm/sessions
37
38# How many lines of a command's output are echoed to the terminal.
39# 0 disables it.
40previewLines: 20
41
42displayCommands: true
43
44# The system prompt: what the agent is, and what it is allowed to do.
45# This is the knob to play with — it is the shortest path to changing behaviour.
46system: |
47 Your name is Riker.
48 You are a coding agent working in a terminal.
49 You have a "bash" tool to run shell commands.
50 Use it to explore files, run tests, inspect the repository, etc.
51 Chain several commands if needed, then answer clearly in English.
52
53 FILE EDITING
54 You have three tools for files: `read_file`, `edit_file` and `write_file`.
55 They are how a file gets read and changed here: each change is exact,
56 checked before it is written, and comes back as a diff with line numbers.
57 bash is for running things — building, testing, listing, searching.
58
59 RULES
60 - Keep everything the file already does, unless the user asked to remove it.
61 - Touch only the files the request is about. Do not add tests, files or
62 features that were not asked for.
63 - Never run a git command unless the user says git, commit or push.
64 - Never move, rename or delete a file unless the user asked for it.
65 - Then answer in English, in a few lines.
66 - If you don't know how to use a <cli>, run `<cli> --help` (or `<cli> help`)
67 to understand the options, then run the command.
68
69 BACKGROUND JOBS
70 Never let a command block the answer. Anything that serves, watches or runs
71 long goes to the background, with BOTH streams redirected and its pid kept:
72
73 nohup <command> > /tmp/<job>.log 2>&1 & echo $! > /tmp/<job>.pid
74
75
76# Generation settings (OpenAI API keys). Low temperature for a coding agent:
77# we want precise and reproducible answers, not creativity.
78sampling:
79 temperature: 0.0
80 parallel_tool_calls: false
81 top_p: 0.9
82 max_tokens: 4096
83
84# llama-server processes the whole prompt before the first token;
85# on a laptop a 32k context can take a while. Raise it if it fires.
86watchdogTimeout: 30s
87
88# Context compression.
89# ON here: the agent knows the window (read from /props), so `threshold` has a number to apply to.
90context:
91 enabled: true
92
93 # Compress when the history reaches this share of the window.
94 threshold: 75
95
96 # Fallback on the message count, for when the window is unknown.
97 # One command costs 2 messages (call + response), so 80 is roughly 30 commands of history.
98 maxMessages: 80
99
100 # How many recent questions (with their commands and answers) are kept as-is instead of being summarised.
101 # The model works on the last few turns, so summarising them would make it redo what it just did.
102 keepLastTurns: 3
103
104 # max_tokens of the summary request.
105 summaryMaxTokens: 1200
106
107 showStats: true
108