跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    ggcr

    To Atif Traces

    v0.0.2可观测与分析
    opencode-to-atif-traces

    OpenCode plugin to generate ATIF traces.

    GitHub 星标

    0

    月装机量

    13

    近 7 天 5

    综合评分SCORE

    21.6

    生态多维模型

    最近提交

    3 个月前

    2026-05-07

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-to-atif-traces@0.0.2"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    npm version License

    OpenCode plugin to export Agent Trajectory Interchange Format (ATIF) traces.

    Usage

    Set the ATIF env var to the output path and run opencode as you normally would:

    ATIF=traces.json \
      opencode run "Refactor the XML parser to use a tree structure."
    

    Tracing happens in the background, so you still get the normal stdout / stderr output from opencode in your terminal. This is in contrast with OpenCode's native --format=json, which replaces stdout with the JSON event stream and makes the run much less pleasant to watch interactively.

    Status

    Work in progress, and not yet battle-tested. The plan is to add tests that mirror the Harbor team's implementation, and to keep the schema in sync as ATIF evolves.

    Contributions, issues, and feedback are very welcome. Please open an issue or PR if something is broken or could be better.

    Install

    Add the package to the plugin array in your opencode.json (see the OpenCode plugin docs):

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-to-atif-traces"]
    }
    

    OpenCode installs and caches plugin dependencies automatically on startup.

    Acknowledgements

    License

    MIT