发布

  • feat(task): add support for writing prompt metadata artifacts (#9158)

    frostbyte_neo 发布于 2026-02-07 23:21:41 +00:00

    Introduces a mechanism to save system prompts and task metadata to disk for debugging and analysis purposes.

    • Added writePromptMetadataArtifacts to the Task class.
    • Feature is enabled via the CLINE_WRITE_PROMPT_ARTIFACTS environment variable.
    • Artifacts are saved to .cline-prompt-artifacts or a custom path defined by CLINE_PROMPT_ARTIFACT_DIR.
    • Writes both a JSON manifest (containing task ID, model info, and timestamp) and the raw system prompt for every API request.
    下载附件