TOOL_ARTIFACTS
Agent*(optional, if `tool_artifacts.enabled && tool_artifacts.resolve_handles_in_args`, default on)* Resolves `art_xxxxxxxx` artifact…
Host and sandbox outputs share a filename helper whose fixed-length SHA-256 suffix hashes the raw call ID and UTF-8 content with an explicit ID-length boundary. Repeating the same call ID and content reuses one path; changed content or distinct raw IDs use distinct paths,
Claude Code
$ npx -y skills add bytedance/deer-flow --agent claude-code
Cursor
Cursor also loads subagents from .claude/agents, so copy this file there to use it in Cursor.
Host and sandbox outputs share a filename helper whose fixed-length SHA-256 suffix hashes the raw call ID and UTF-8 content with an explicit ID-length boundary. Repeating the same call ID and content reuses one path; changed content or distinct raw IDs use distinct paths, including missing IDs and IDs that would collide after sanitization. Provider IDs never appear directly in filenames.
For host storage and non-mounted sandboxes, filename hashing stays inside the write failure boundary. Invalid UTF-8 text or call IDs return `None` before file publication, allowing the tool wrappers to use the configured inline fallback.
`_externalize` creates a unique sibling `.tool-output-*.tmp` with exclusive creation (`open(..., "x")`) requesting mode `0o666`. Effective permissions follow the process umask and any filesystem default ACL; without a default ACL the mode is `0o666 & ~umask`. The writer never reads or changes the process-wide umask. This matters when a mounted sandbox reads the output under a different UID. It also passes `newline=""`, so the file holds exactly the bytes of the stamped blob ref on every platform; Windows text mode would write CRLF, and restore discards a file whose size or digest does not match.
Blob recovery uses the same exclusive sibling creation in binary mode, subject to the recovering Gateway's umask and filesystem default ACL. It flushes, fsyncs and closes the complete file before replacement. A missing or mismatched local copy therefore does not become fixed-mode `0600` solely because it was restored; the same ordinary creation policy applies. Digest-matching local files are reused without changing their permissions.
The writer closes its file before atomically replacing the deterministic final path. Concurrent publishers of identical output can safely reuse that path; different output retains its own path. Ownership starts only after exclusive creation succeeds: a collision or creation failure must not remove another writer's pending file. An observed `OSError` or `UnicodeEncodeError` cleans only this invocation's temp and leaves previously published content intact.
When blob storage is enabled, blob publication follows host publication. If the blob encoding or write fails, that message uses the safety-limited inline fallback and does not advertise the host path. It also must not unlink the deterministic final path: a concurrent publisher may already have replaced it and durably checkpointed that content. Remove published files only as part of inactive thread-data maintenance.
`type=json` payloads count toward the configured text budget, including results that also carry media or other non-text blocks. Externalization saves the full text/JSON rendering and replaces that portion with a synopsis; other blocks stay in the result for providers that support them. Historical results use the same configured fallback. Disabled budgets, raised limits and tool exemptions apply before provider normalization. Pure text/media results without JSON retain their existing pass-through behavior.
The subagent executor reads a bash result's exit status only from its end (`Exit Code: N`, or a whole-output `Command exited with code N`); with no marker it falls back to `deerflow_tool_meta`, which reports `success` for a nonzero exit. A model-visible rewrite of a `bash`/`bash_tool` result must therefore keep the original trailing marker last: the preview re-appends it after the `Access:` footer, and the storage-unavailable fallback reserves it from `max_chars` like sandbox truncation. The local marker regex mirrors `sandbox.tools._BASH_EXIT_MARKER_TAIL_RE` and a test pins them together. The persisted output is the original bytes; other tools are not rewritten.
SIGKILL, OOM termination, and host failure bypass exception cleanup and can leave unique temporary files. There is no automatic stale-temp sweeper. These internal files are excluded from workspace-change and delivery scans; `keep_recent_writes` elides model-visible messages and does not prune files.
Remove `.tool-output-*.tmp` leftovers during thread-data maintenance only when all Gateway processes writing the shared storage are stopped, or when deleting the corresponding inactive thread's data. Age alone cannot prove a writer is dead, especially across workers or shared mounts, so publication must not delete other writers' files based on a TTL.
`wrap_model_call` can elide successful `write_file` content only in model requests after a later successful same-path `read_file`, `write_file`, or `str_replace` (#5328); disk remains the reference. The optimization is disabled by default because applying it after a later action rewrites an earlier request prefix and reduces provider prompt-cache reuse (#7319). Explicitly enable `elide_superseded_writes` to accept that trade-off. `keep_recent_writes` preserves the newest writes. Use the shared `tool_call_args` helpers (`pair_tool_call_results` and argument rewriting). Controls: `elide_superseded_writes` and `superseded_write_min_chars`.
The placeholder is framework-owned text that the model can see in its own history, so it can be imitated. `write_file` therefore rejects a payload that *is* the placeholder rendered from `WRITE_ELISION_PLACEHOLDER_TEMPLATE` (`constants.py`), allowing only surrounding whitespace, instead of writing a deliverable that is ~200 bytes of placeholder (#7319). The match is whole-payload on purpose: a substring guard would block legitimate edits to this repository, whose `constants.py` and docs quote the template verbatim. Rendering and rejection derive from that one constant so they cannot drift. The character count must be an ASCII non-negative integer. A document beginning with the same prefix, including a quoted placeholder followed by more content, is allowed.
Both sync and async `write_file` calls reject the placehol
An open-source long-horizon SuperAgent harness that researches, codes, and creates. With the help of sandboxes, memories, tools, skill, subagents and message gateway, it handles different levels of tasks that could take minutes to hours.
*(optional, if `tool_artifacts.enabled && tool_artifacts.resolve_handles_in_args`, default on)* Resolves `art_xxxxxxxx` artifact…
Writes and translates abstracts in English and the target language to journal format standards
Email inbox search specialist, takes in appropriate context for the email and a goal of what to search for. Return the answer to…
CNKI Research Assistant - helps with literature search, journal lookup, and indexing queries on CNKI (中国知网). Use proactively when…