Skip to content
    ↑↓ select↵ openesc close
    English中文
    ggcr

    To Atif Traces

    v0.0.2Observability
    opencode-to-atif-traces

    OpenCode plugin to generate ATIF traces.

    GitHub stars

    0

    Monthly installs

    13

    5 in 7 days

    Composite scoreSCORE

    21.6

    Multi-signal model

    Last commit

    3 months ago

    2026-05-07

    Install and configure

    opencode.json

    Writes to this project's opencode.json — applies to this repository only.

    opencode.json

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

    opencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.

    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