{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["AGENTS.md"],
  "watcher": {
    "ignore": [".ipynb_checkpoints/**", "__pycache__/**", "*.pyc"]
  },
  "agent": {
    "build": {
      "mode": "primary",
      "permission": {
        "edit": "allow",
        "bash": "allow"
      }
    },
    "plan": {
      "mode": "primary",
      "permission": {
        "edit": "deny",
        "bash": "deny"
      }
    },
    "db-review": {
      "description": "Reviews database operations, SQL queries, and schema design for the MOEX candle loader",
      "mode": "subagent",
      "permission": {
        "edit": "deny",
        "bash": "deny",
        "grep": "allow",
        "skill": {
          "db-schema-reference": "allow",
          "error-handling": "allow"
        }
      }
    },
    "moex-debug": {
      "description": "Debugs MOEX ISS API interactions, pagination, retries, and data parsing",
      "mode": "subagent",
      "permission": {
        "edit": "deny",
        "bash": "deny",
        "grep": "allow",
        "skill": {
          "moex-api-reference": "allow",
          "error-handling": "allow"
        }
      }
    },
    "scheduler-review": {
      "description": "Reviews scheduler logic, sync timing, and candle lifecycle management",
      "mode": "subagent",
      "permission": {
        "edit": "deny",
        "bash": "deny",
        "grep": "allow",
        "skill": {
          "scheduler-patterns": "allow",
          "error-handling": "allow"
        }
      }
    },
    "tbank-api": {
      "description": "Specialist for Tbank (T-Bank) API - design and integration of financial data",
      "mode": "subagent",
      "permission": {
        "edit": "deny",
        "bash": "deny",
        "grep": "allow",
        "skill": {
          "tbank-api-reference": "allow",
          "error-handling": "allow"
        }
      }
    },
    "python-dev": {
      "description": "Writes professional Python code for the MOEX candle loader project",
      "mode": "subagent",
      "permission": {
        "edit": "allow",
        "bash": {
          "*": "deny",
          "python *": "allow",
          "pip *": "allow",
          "grep *": "allow"
        },
        "skill": {
          "*": "allow"
        }
      }
    }
  }
}