- 7 min read
- 4 sources cited
- For Developers, AI makers, Businesses, AI enthusiasts
Overview
The Dify project released version 1.18.0 with changes concentrated in agent routing, app portability, nested workflow inspection, knowledge management, and command-line app management. The release notes describe released capabilities and deployment requirements; they are the project's own account, not an independent assessment.
The update lands between v1.19.0 and v1.20.0, which extend nested tracing, package format v2, OpenTelemetry export, personal access tokens, and new human-in-the-loop channels. Those later releases also tell adopters of v1.18.0 what changed next: v1.19.0 required Docker Compose 2.35.0 or later, upgraded App packages to format v2, and warned that new packages need a compatible destination importer.
One item outside the release notes concerns security. A media headline reports an Amazon-discovered AI agent campaign targeting Dify and other applications for API keys, but the available report gives no affected versions, technique, or remediation guidance.
Why it matters
For builders. Output Routes let an agent select a workflow branch through conditions attached to each route, with a read-only switch output exposing the chosen route. Plain Agent v2 nodes stream text during generation, while structured results, routed results, and nodes using default-value error handling stay buffered. Together, these give a concrete branching mechanism without requiring all routing logic to live in model output.
For teams moving applications. Workflow and Chatflow apps can be exported and imported as one .ifpkg package that carries inline Agents, Skills, and their files. Imports recreate those resources in the destination workspace and remap references; file and URL imports accept packages and YAML, and explicit YAML export remains available. That makes a package a plausible unit for environment handoff, though no adoption figures or independent accounts of portability appear in the release material.
For operators. A Workflow Tool invocation can be opened from run history to inspect individual steps of the child workflow. Nested tools run as child graphs with coordinated pause, resume, stop, and file outputs, and access checks protect the source app's details. The opt-in Agent Knowledge Base adds document processing, metadata, retrieval traces, and quality evaluations in one place, using access-controlled KnowledgeFS spaces while keeping classic Knowledge available.
For automation teams. OpenAPI and difyctl extend command-line management to Workflow and Chatflow creation, DSL import and export, settings, environment variables, publishing, and version restoration. The CLI discovers commands from the server's operation catalog, offers searchable help, and uses draft hashes to protect concurrent edits. The new client requires a fresh sign-in.
Context
Dify is an open-source platform for building agentic workflows and retrieval-augmented applications, with deployment options that include cloud, VPC, and self-hosted setups.
The v1.18.0 feature set addresses several common problems in that stack. Agents needed a way to select among workflow branches using explicit conditions rather than relying only on prose. Teams moving applications between workspaces or environments needed a package that carried dependent resources. Debugging a workflow that called another workflow required visibility into the child's individual steps. And app management largely happened in the Console, limiting what scripts could automate.
The release also changes the Agent runtime's execution model. The Agent Backend adopts composition v2 on /runs, session snapshots are converted on read and stored as v2, and the old Agent-specific AskHuman tool and deferred resume path are removed. These changes place the release in the middle of a multi-version runtime migration rather than presenting it as a standalone feature drop.
Known, claimed, inferred
The release notes present v1.18.0 as a set of released capabilities, so the feature descriptions are facts about what shipped according to the project, while the release title's framing of "Smarter Agent Routing" is the maintainer's characterization rather than a measured outcome.
A reasonable reading is that v1.18.0 consolidates several agent-and-workflow functions into one stack: explicit branch selection, portable packaging, nested inspection, and a knowledge surface with retrieval tooling. This is an inference about product direction, not evidence of a market shift or a change in user experience.
The upgrade requirements suggest the Agent runtime was changing substantially rather than receiving isolated additions. Composition v2, snapshot format conversion, the removal of the Agent-specific AskHuman tool and deferred resume path, and coordinated image requirements all point to a migration that self-hosted operators need to schedule carefully.
For self-hosted deployments, the maintenance window in the release notes is the operative instruction: back up the database, vector-store data, uploaded files, Agent snapshot and workspace storage, deployment secrets, and environment files, then upgrade the stack as a unit.
Opportunities
Builders could structure an agent around a small set of explicit branches, such as resolving a request directly or handing it to a specialist, rather than expressing all branching in prose. The read-only switch output could support logging or downstream checks, although the release material does not describe how that route value is consumed elsewhere.
A team could treat .ifpkg as a repeatable deployment unit between development, staging, and operations, because imports remap references and recreate missing resources. This is a reasoned possibility rather than a demonstrated practice, and later package format changes mean a package created in one version may not import cleanly into another.
The bundled skill for agents building Dify apps, installed with difyctl install skills <dir>, can be combined with the CLI's publishing and version-restoration commands to form a repeatable release routine. Credential setup has to account for the fresh sign-in the new client requires.
The Knowledge Retrieval node and Agent integrations provide retrieval traces and quality evaluations inside Dify, which could support an internal evaluation loop. The release notes report no evaluation results from that loop.
Because the CLI reads its commands from the server's operation catalog, teams could expose app operations to scripts, CI jobs, or personal agents while relying on draft hashes to reduce accidental concurrent-edit conflicts.
Risks
Protocol and compatibility breaks. /runs accepts composition v2 and rejects v1 requests. Direct Agent Backend integrations must update their request format, and old runtimes cannot read newly saved v2 snapshots. The old Agent-specific AskHuman tool and deferred resume path are removed, so historical Agent forms no longer resume execution, while shared Workflow Human Input nodes remain supported.
Coordinated deployment. The API, workers, Agent Backend, and Agent runtime images must be upgraded together. The 1.17.1 runtime image does not support the new --require-auth-token flag, so the matching 1.18.0 Agent Backend and Local sandbox images are required, and Local Agent sandboxes need a non-empty authentication token. Source installations require Python 3.13.
Credential handling. Existing installations without a pepper should leave PASSWORD_PEPPER empty. Introducing a new pepper during an upgrade is not a transparent migration and requires an explicit password-reset plan; a configured pepper must stay unchanged across all instances.
Network boundary. Bundled Nginx replaces X-Forwarded-For with its resolved client address and Compose enables forwarded-header handling, so direct API access should be restricted to trusted callers. If a load balancer or Cloudflare sits before Nginx, trusted real-IP handling must be configured there, otherwise visitors may share the proxy's rate-limit bucket.
Metrics accuracy. Nested usage and step totals can be approximate, particularly after a pause or stop, and Console drilldown and external trace export have different scopes. Teams that build billing, capacity, or audit logic on those totals would be relying on incomplete data.
Added infrastructure. The Agent Knowledge Base is an opt-in integration with a separate service and database, and default Compose installations keep KnowledgeFS off. The release material does not quantify the resource cost of those components.
Limitations & uncertainties
All feature and upgrade details here come from a single official source, the project's v1.18.0 release notes. There is no independent test report, benchmark, or third-party deployment account for this version, and no figures for latency, cost, throughput, resource use, or adoption of any feature.
The excerpt of the release notes is truncated before the full deployment requirements for enabling KnowledgeFS are stated, so the complete setup requirements for the opt-in Agent Knowledge Base are not visible.
The notes state that nested usage and step totals can be approximate and that Console drilldown and external trace export have different scopes, but the excerpt does not detail the precise difference in scope.
The phrase "external trace export" appears without its corresponding configuration details in this excerpt, so no specific trace provider or configuration can be confirmed for v1.18.0. The OpenTelemetry provider export is documented in v1.20.0 instead.
The release material does not compare Output Routes with routing approaches in other agent frameworks, so its relative accuracy and behavior are unknown.
On the API key campaign, only a headline is available. The specifics, affected versions, and remediation guidance are not established.
Evidence & sources
- 1langgenius/dify v1.18.0 — Smarter Agent Routing, Portable Apps, Deeper Workflow Visibility●github.comretrieved Nov 24, 2026
- 2langgenius/dify v1.19.0 - Trace Your Workflows, Layer by Layer●github.comretrieved Nov 24, 2026
- 3langgenius/dify v1.20.0●github.comretrieved Nov 24, 2026
- 4Amazon Uncovers AI Agent Campaign Targeting LiteLLM, Dify, and Other Apps for API Keysthehackernews.comretrieved Nov 18, 2026
Updates & corrections
- First published
Found an error? Report it.