Skip to content

Node-based terminal manager for AI coding agents — tmux-backed terminals and parallel agent sessions as draggable nodes on an infinite pan/zoom canvas. macOS, Linux, and a browser Server Edition.

4.6 KB
Raw Blame
{
  "info": {
    "id": "ses_0a1b2c3d4ffeSynthetic000001",
    "slug": "quiet-harbor",
    "projectID": "prj_fixture",
    "directory": "/srv/demo",
    "path": "",
    "title": "Fixture session",
    "agent": "build",
    "model": {
      "id": "demo-model",
      "providerID": "opencode"
    },
    "version": "1.18.25",
    "summary": {
      "additions": 0,
      "deletions": 0,
      "files": 0
    },
    "cost": 0,
    "tokens": {
      "input": 0,
      "output": 0,
      "reasoning": 0,
      "cache": {
        "read": 0,
        "write": 0
      }
    },
    "time": {
      "created": 1780000000000,
      "updated": 1780000000000
    }
  },
  "messages": [
    {
      "info": {
        "role": "user",
        "time": {
          "created": 1780000001000
        },
        "agent": "build",
        "model": {
          "providerID": "opencode",
          "modelID": "demo-model"
        },
        "summary": {
          "diffs": []
        },
        "id": "msg_1",
        "sessionID": "ses_0a1b2c3d4ffeSynthetic000001"
      },
      "parts": [
        {
          "type": "compaction",
          "auto": true,
          "id": "prt_fixture0044",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        }
      ]
    },
    {
      "info": {
        "parentID": "msg_parent",
        "role": "assistant",
        "mode": "compaction",
        "agent": "compaction",
        "path": {
          "cwd": "/srv/demo",
          "root": "/srv/demo"
        },
        "cost": 0,
        "tokens": {
          "total": 20,
          "input": 12,
          "output": 8,
          "reasoning": 0,
          "cache": {
            "write": 0,
            "read": 0
          }
        },
        "modelID": "demo-model",
        "providerID": "opencode",
        "time": {
          "created": 1780000002000,
          "completed": 1780000002500
        },
        "finish": "stop",
        "id": "msg_2",
        "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
        "summary": true
      },
      "parts": [
        {
          "type": "step-start",
          "snapshot": "4b825dc642cb6eb9a060e54bf8d69288fbee4904",
          "id": "prt_fixture0045",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        },
        {
          "type": "text",
          "text": "## Summary\n\nWe fixed the retry policy.",
          "id": "prt_fixture0046",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        },
        {
          "type": "step-finish",
          "reason": "stop",
          "snapshot": "4b825dc642cb6eb9a060e54bf8d69288fbee4904",
          "cost": 0,
          "tokens": {
            "total": 20,
            "input": 12,
            "output": 8,
            "reasoning": 0,
            "cache": {
              "write": 0,
              "read": 0
            }
          },
          "id": "prt_fixture0047",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        }
      ]
    },
    {
      "info": {
        "role": "user",
        "time": {
          "created": 1780000003000
        },
        "agent": "build",
        "model": {
          "providerID": "opencode",
          "modelID": "demo-model"
        },
        "summary": {
          "diffs": []
        },
        "id": "msg_3",
        "sessionID": "ses_0a1b2c3d4ffeSynthetic000001"
      },
      "parts": [
        {
          "type": "compaction",
          "auto": false,
          "overflow": true,
          "id": "prt_fixture0048",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        }
      ]
    },
    {
      "info": {
        "role": "user",
        "time": {
          "created": 1780000004000
        },
        "agent": "build",
        "model": {
          "providerID": "opencode",
          "modelID": "demo-model"
        },
        "summary": {
          "diffs": []
        },
        "id": "msg_4",
        "sessionID": "ses_0a1b2c3d4ffeSynthetic000001"
      },
      "parts": [
        {
          "type": "text",
          "text": "/review",
          "id": "prt_fixture0049",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        },
        {
          "type": "subtask",
          "prompt": "Review the staged changes in full.",
          "description": "Review staged changes",
          "agent": "general",
          "command": "review",
          "id": "prt_fixture0050",
          "sessionID": "ses_0a1b2c3d4ffeSynthetic000001",
          "messageID": "msg_fixture"
        }
      ]
    }
  ]
}