{
  "repo": "tidbcloud/topsql-agent",
  "binary": "topsql-agent",
  "binary_path": "main.go",
  "services": [
    {
      "name": "TopSQLAgentCLI",
      "package": "github.com/tidbcloud/topsql-agent/cmd",
      "methods": [
        {
          "name": "agent",
          "input": "cobra subcommand + instance metadata + TiDB store settings",
          "output": "long-running TopSQL gRPC agent runtime",
          "type": "grpc"
        },
        {
          "name": "supervisor",
          "input": "cobra subcommand + reconcile interval + metrics address",
          "output": "long-running supervisor with Prometheus metrics",
          "type": "http"
        }
      ]
    }
  ],
  "total_methods": 2,
  "notes": [
    "The repository builds a single binary whose Cobra subcommands choose between the gRPC agent runtime and the supervisor runtime.",
    "The agent and supervisor are not separate compiled binaries, but they are distinct long-lived execution modes."
  ]
}
