1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# The decider of hooks/ask-decider (a Go program): every message it receives
# is a question the user asked the Go assistant; it answers three typed
# questions about it in one forward pass, and writes no text.
#
# mm -config agent.decider.yaml -p "How do I wait for 10 goroutines to finish? Show me the code."
#
# Change, add or remove questions here: the hook passes every answer on to the
# chat model, whatever its name and type. Then say in agent.yaml's `system`
# what the chat model should do with it.
#
# Pull the model once: llmman pull hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
provider: llmman
model: hf.co/LiquidAI/d1-3B-GGUF:Q4_K_M
baseUrl: http://127.0.0.1:17434/v1
fallback: http://host.docker.internal:17434/v1
decision:
# The first call loads the model (2 to 13 s); a warm one takes 0.2–0.5 s.
timeout: 60s
questions:
level:
type: choice
instructions: How familiar is the person with Go?
criteria:
beginner: Learning Go, asks about the basics of the language
intermediate: Writes Go programs, asks how to do something precise
expert: Knows Go well, asks about a subtle behaviour of the language or the runtime
topic:
type: choice
instructions: What is the question about?
criteria:
basics: Syntax, types, slices, maps, structs, interfaces or methods
concurrency: Goroutines, channels, sync, select or context
errors: Error values, wrapping, errors.Is, errors.As or panics
testing: Tests, table-driven tests, benchmarks or go test
modules: go.mod, dependencies, versions or building
wants_code:
type: noul
instructions: The message asks for code, an example, a function or a snippet.
# A decider gets no tool: mm turns bash, the file tools, plan, ask_user and
# skills off by itself (no `…: false` lines needed).
agentsMd:
enabled: false
|