{
  "schemaVersion": "0.1",
  "id": "f_example_agent_task",
  "name": "agent-task",
  "description": "Run a read-only Codex task in a selected working directory.",
  "createdAt": "2026-07-21T00:00:00+00:00",
  "modifiedAt": "2026-07-21T00:00:00+00:00",
  "variables": {},
  "nodes": [
    {
      "id": "agent_runner",
      "typeId": "agent.cli",
      "parameters": {
        "customCommand": "",
        "customPromptMode": "arg",
        "env": null,
        "errorMarker": "__AGENT_ERROR__",
        "errorOutput": "false",
        "errorOutputMode": "port",
        "errorTailChars": "2000",
        "executablePath": null,
        "extraArgs": "--sandbox\nread-only",
        "failOnError": "true",
        "failOnNonZeroExit": "true",
        "model": "",
        "secretEnv": null,
        "task": null,
        "timeoutSeconds": "600",
        "tool": "codex",
        "workingDirectory": null
      },
      "ui": {
        "x": 400,
        "y": 160
      }
    },
    {
      "id": "result",
      "typeId": "output.preview",
      "parameters": {},
      "ui": {
        "x": 740,
        "y": 160
      }
    },
    {
      "id": "task",
      "typeId": "input.manual",
      "parameters": {
        "label": "Task",
        "value": null
      },
      "ui": {
        "x": 80,
        "y": 80
      }
    },
    {
      "id": "working_dir",
      "typeId": "input.manual",
      "parameters": {
        "label": "Working directory",
        "value": null
      },
      "ui": {
        "x": 80,
        "y": 250
      }
    }
  ],
  "connections": [
    {
      "id": "c_agent_stdout_result",
      "fromNode": "agent_runner",
      "fromPort": "stdout",
      "toNode": "result",
      "toPort": "value"
    },
    {
      "id": "c_task_agent",
      "fromNode": "task",
      "fromPort": "value",
      "toNode": "agent_runner",
      "toPort": "task"
    },
    {
      "id": "c_working_dir_agent",
      "fromNode": "working_dir",
      "fromPort": "value",
      "toNode": "agent_runner",
      "toPort": "workingDirectory"
    }
  ]
}
