Cloud Agents

Guide · Prompt template

A useful DeepSeek V4.1 Flash cloud-agent prompt

The agent can only act on the context it receives. A short, structured prompt is usually more useful than a long, vague one.

Use this task outline

Goal:
Starting point:
Constraints:
Definition of done:
Checks to run:
Final report:

Fill every line you can. If a detail is unknown, say so instead of forcing the agent to guess. The point is not to write a perfect specification; it is to give the run an outcome it can test.

Describe the starting point

Say where the relevant code, data, or instructions are. Name a file, a command, an expected behavior, or a known failure. If the task involves creating something new, say what must exist when the run ends.

Make the definition of done observable

“Make it better” is hard to evaluate. “Add a parser for this input, keep the existing command working, and run these tests” gives the agent a finish line. A good final check lets you review the result from the job log.

Keep constraints explicit

List things the agent must not change, any preferred tools, required output format, and time-sensitive limits. Clear constraints prevent a cloud agent from spending a run on work you did not want.

Read the output, then rerun if needed

Cloud Agents keeps a dedicated log page for each run. Review the result, download the workspace archive when it is available, and rerun the task with a sharper prompt if the first pass exposes a missing detail.

Related guides

Start a cloud agent ↗How agent runs work · Logs and reruns