Kodafile
Configure model behavior with a YAML config file.
A Kodafile is a YAML config file that defines a model's behavior — useful for project-specific assistants or repeatable setups.
Create a Kodafile
koda create # writes a Kodafile template in the current directory
koda run --kodafile KodafileFormat
base: llama3.2
system: You are a concise coding assistant. Respond in plain text, no markdown.
parameters:
n_ctx: 8192
temperature: 0.7
top_p: 0.9
repeat_penalty: 1.1Fields
| Field | Description | Default |
|---|---|---|
base | Model name (required) | — |
system | System prompt | "You are a helpful assistant." |
parameters.n_ctx | Context window size (tokens) | 4096 |
parameters.temperature | Sampling temperature | 0.8 |
parameters.top_p | Nucleus sampling | — |
parameters.top_k | Top-K sampling | — |
parameters.repeat_penalty | Repetition penalty | — |
parameters.max_tokens | Max tokens to generate (-1 = unlimited) | -1 |