# System prompt

> The instructions the harness prepends to every model provider request — the agent's standing brief. Usually stable across a session.

The instructions the [harness](https://ai9k.vercel.app/en/harness) prepends to every [model provider request](https://ai9k.vercel.app/en/model-provider-request) — the [agent](https://ai9k.vercel.app/en/agent)'s standing brief: who it is, how to behave, which [tools](https://ai9k.vercel.app/en/tool) it can call, what conventions to follow. Usually stable across a [session](https://ai9k.vercel.app/en/session).

The system prompt is written by the harness vendor, not by you, and in coding harnesses it's big — often tens of thousands of [tokens](https://ai9k.vercel.app/en/token) of behavioural rules, tool descriptions, and edge-case handling, all paid as [input tokens](https://ai9k.vercel.app/en/input-tokens) on every [turn](https://ai9k.vercel.app/en/turn). Your own standing instructions ride along with it: files like [AGENTS.md](https://ai9k.vercel.app/en/agentsmd) are loaded next to the system prompt at the start of the session, so the [model](https://ai9k.vercel.app/en/model) reads the vendor's brief and yours together before it ever sees your message.

Because it's identical on every request, it forms the start of the [prefix cache](https://ai9k.vercel.app/en/prefix-cache) — which is part of why harnesses keep it fixed for a whole session rather than editing it as they go.

Models are trained to prioritise the system prompt over user messages. So when an agent insists on a convention you never asked for, or formats output in a way you can't shake, it's usually obeying its system prompt — and your message is losing the argument. Some harnesses are customisable: they give you full access to the system prompt, so you can read what the agent is actually being told and change it.

**Usage**

"Two harnesses, same model, totally different behavior on the same prompt."

"Different system prompts. One's tuned for terse code edits, the other for explaining — that's where the divergence lives, before your message even arrives."

---

- Section 2 — Sessions, Context Windows & Turns · Term 22 of 72
- Page: https://ai9k.vercel.app/en/system-prompt
- Learn step by step: https://ai9k.vercel.app/en/learn#/system-prompt
- On the map: https://ai9k.vercel.app/en?term=system-prompt
- JSON: https://ai9k.vercel.app/data/terms/system-prompt.json
- Mentioned in: [Model](https://ai9k.vercel.app/en/model.md), [Harness](https://ai9k.vercel.app/en/harness.md), [Model provider request](https://ai9k.vercel.app/en/model-provider-request.md), [Input tokens](https://ai9k.vercel.app/en/input-tokens.md), [Prefix cache](https://ai9k.vercel.app/en/prefix-cache.md), [Cache tokens](https://ai9k.vercel.app/en/cache-tokens.md), [Context window](https://ai9k.vercel.app/en/context-window.md), [Agent](https://ai9k.vercel.app/en/agent.md), [Tool call](https://ai9k.vercel.app/en/tool-call.md), [Agent mode](https://ai9k.vercel.app/en/agent-mode.md), [Automated review](https://ai9k.vercel.app/en/automated-review.md)
- Previous: [Agent](https://ai9k.vercel.app/en/agent.md)
- Next: [Session](https://ai9k.vercel.app/en/session.md)

Every term page has a markdown copy: add .md to its address.
