NEWCloud agents are live.See how

Prompts

System prompt

The standing instructions a tool sends ahead of your message: who the model is acting as, which tools exist, how to format replies, and what it must never do. You do not usually see it, and it explains most of the behavioural difference between two products calling the same model.

At a glance

Written by
The tool or app author
Sent
Ahead of every request
Usually visible to you
No
Costs
Context tokens on each turn
Not
A security boundary

How it works

Chat APIs separate input by role. The system prompt carries instructions that sit before the conversation and frame every turn. In a coding tool it typically holds a role description, tone and formatting rules, the tools with their parameter schemas, rules about destructive commands, and environment details such as the operating system, working directory, and date.

Coding tools often append project material too: the contents of an agents file, enabled skills, or memory notes. That is why editing a CLAUDE.md or AGENTS.md changes behavior without you saying anything new in the chat.

Why it matters

When two products call the same model and one feels careful while the other rushes to edit, the system prompt and tool design account for most of the gap. They decide whether the agent plans first, whether it asks before acting, and how terse it is.

It also spends context. A long system prompt with many tool definitions is resent on every request and occupies a fixed slice of the window before you type anything, which is one reason providers offer prompt caching for stable prefixes.

For anyone building on a model API, the system prompt is the main lever on behavior that does not require fine-tuning. Write it as plain, specific rules with reasons, keep it free of contradictions, and test changes against real tasks, because a single added sentence can change how often the model asks questions, calls tools, or stops early.

System prompt vs. user prompt vs. agents file

The user prompt is your message for this turn: the task. The system prompt is the standing frame the tool author wrote, applied to every task. An agents file sits between them: you write it, it lives in the repo, and the tool loads it into the frame, so it acts as a project-specific extension of the system prompt. A rule you want applied every time belongs in the agents file, not repeated in each message.

Example

Roles in a chat API request
{
  "system": "You are a coding assistant in a git repo. Prefer small diffs. Never push to main.",
  "messages": [
    { "role": "user", "content": "Add input validation to the signup form." }
  ]
}

Common mistakes

  1. Treating instructions like "never run rm" as enforcement, when only permissions and sandboxes actually block an action.
  2. Writing project rules that contradict the tool's own system prompt, which tends to produce erratic behavior rather than a clean override.
  3. Packing in every possible rule, so the prompt costs tokens on every turn while each instruction gets less attention.

Frequently asked questions

Can I see the system prompt of my coding tool?

Sometimes. Some tools publish theirs or let you inspect requests, while others keep it internal. You can always see the parts you contribute, such as an agents file.

Does a longer system prompt make the model better?

Not by itself. Every extra line costs tokens on each request and competes for attention, so a short, specific prompt often beats a long one.

Sources

Know the words. Run the work.