The new Agent is in beta. It’s on by default on Docker Compose, with its runtime bundled in.For production, replace
DIFY_AGENT_SERVER_SECRET_KEY and DIFY_AGENT_API_TOKEN with your own random values.- It works in a sandbox of its own: it runs commands, installs programs, and reads and writes files, so it takes on open-ended work rather than just calling the tools you configured.
- You build it once and use it two ways: on its own as a chat app, or as a step inside a workflow.
Capability and Task
An Agent separates what it is from what you ask it to do:- Its capability (think of it as the agent’s soul) is who the agent is. The role and prompt you write, the model it runs on, and the skills, Dify tools, and files you give it. You shape it once and keep refining it as you learn what the agent needs.
- Its task is what you ask it to do on a given run. When the agent works on its own, the task is the message you send it. When it works inside a workflow, the task is the instruction you give the node.