> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# system

> Contract, placement, related fields and source examples for this Nika YAML field.

[Language reference](https://docs.nika.sh/reference/language/overview.md) / `system`

## Meaning and placement

### infer

System prompt · the standing instruction, sent ahead of `prompt:` and unchanged by it.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/$defs/infer/properties/system` |
| \$ref | `"#/$defs/promptText"` |

**In the same object:** [max\_tokens](https://docs.nika.sh/reference/language/words/max_tokens.md) · [model](https://docs.nika.sh/reference/language/words/model.md) · [prompt](https://docs.nika.sh/reference/language/words/prompt.md) · [schema](https://docs.nika.sh/reference/language/words/schema.md) · [temperature](https://docs.nika.sh/reference/language/words/temperature.md) · [thinking](https://docs.nika.sh/reference/language/words/thinking.md) · [vision](https://docs.nika.sh/reference/language/words/vision.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/schemas/workflow.schema.json)

### agent

System prompt · the standing instruction, sent ahead of `prompt:` and unchanged by any turn of the loop.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/$defs/agent/properties/system` |
| \$ref | `"#/$defs/promptText"` |

**In the same object:** [images](https://docs.nika.sh/reference/language/words/images.md) · [max\_tokens\_total](https://docs.nika.sh/reference/language/words/max_tokens_total.md) · [max\_turns](https://docs.nika.sh/reference/language/words/max_turns.md) · [model](https://docs.nika.sh/reference/language/words/model.md) · [prompt](https://docs.nika.sh/reference/language/words/prompt.md) · [schema](https://docs.nika.sh/reference/language/words/schema.md) · [skills](https://docs.nika.sh/reference/language/words/skills.md) · [temperature](https://docs.nika.sh/reference/language/words/temperature.md) · [tools](https://docs.nika.sh/reference/language/words/tools.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/schemas/workflow.schema.json)

## In a source template

Excerpt from `templates/agent-loop.nika`, source lines 82–91. This is a fragment, not a runnable workflow.

```yaml illustration theme={"system"}
      # repair within its configured retry allowance and task budgets.
      # A valid result shape does not prove the promised work was performed;
      # retain an independent check of the facts or artifacts you require.
      system: "You are a careful analyst. Work the plan step by step and report what you actually found."   # SLOT
      prompt: |
        Goal · ${{ with.goal }}
        Plan · ${{ with.steps }}
      tools:                        # SLOT: the MINIMUM grant for the job
        # Pure compute — this pair needs no filesystem, so the skeleton runs
        # anywhere. Granting the agent a tool here is only HALF a grant: every
```

### Templates containing this field

| Template | Source |
| - | - |
| `templates/agent-loop.nika` | [Line 85](https://github.com/supernovae-st/nika-spec/blob/5c40ba456c53a4ab663a949d44003078e161305d/templates/agent-loop.nika#L85) |

These are literal key occurrences in the source files, not an execution or conformance claim. [How to instantiate a template](https://docs.nika.sh/guides/templates.md).

## Contract and implementation

This page projects the named specification revision. Check [released engine status](https://docs.nika.sh/reference/status.md) and [the validation workflow](https://docs.nika.sh/guides/agent-authoring.md) before running a file. An optional field is not evidence that every engine supports every value.

Canonical identity: `language:word:system`. Spec revision: [`5c40ba456c53`](https://github.com/supernovae-st/nika-spec/tree/5c40ba456c53a4ab663a949d44003078e161305d).

[How documentation stays connected](https://docs.nika.sh/reference/knowledge-system.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.