{
  "subsystems": [
    {
      "name": "gateway",
      "kind": "domain",
      "files": [
        "gateway/server.ts",
        "gateway/session.ts",
        "gateway/middleware.ts",
        "gateway/types.ts",
        "gateway/utils.ts"
      ]
    },
    {
      "name": "agents",
      "kind": "domain",
      "files": [
        "agents/runner.ts",
        "agents/scope.ts",
        "agents/tools.ts",
        "agents/types.ts",
        "agents/defaults.ts"
      ]
    },
    {
      "name": "channels",
      "kind": "domain",
      "files": [
        "channels/telegram.ts",
        "channels/discord.ts"
      ]
    },
    {
      "name": "config",
      "kind": "cross-cutting",
      "files": [
        "config/config.ts",
        "config/types.ts",
        "config/schema.ts"
      ]
    },
    {
      "name": "utils",
      "kind": "cross-cutting",
      "files": [
        "utils/logger.ts",
        "utils/crypto.ts",
        "utils/fs-helpers.ts"
      ]
    }
  ]
}
