{
  "$schema": "https://opencode.ai/config.json",
  "instructions": ["AGENTS.md"],
  "default_agent": "neural-dev",
  "agent": {
    "backtest-runner": {
      "description": "Runs backtests, analyzes neural network trading results, validates models"
    },
    "model-trainer": {
      "description": "Trains and tunes the neural network trading model (LSTM/Transformer/MLP)"
    },
    "neural-dev": {
      "description": "Develops and maintains the neural network trading pipeline (models, training, labeling, dataset)"
    },
    "vsa-dev": {
      "description": "VSA/Neural backtester developer — writes, refactors, and debugs code following project conventions"
    },
    "market-analyst": {
      "description": "Analyzes neural network signals and market data for MOEX tickers"
    },
    "parameter-tuner": {
      "description": "Tunes neural network hyperparameters, barrier configs, and architecture choices"
    },
    "bug-hunter": {
      "description": "Finds bugs and inconsistencies in the neural network backtester codebase"
    },
    "code-reviewer": {
      "description": "Reviews neural network code for quality, correctness, and adherence to project conventions"
    }
  },
  "command": {
    "train": {
      "template": "Train the neural network model. Use --tickers for specific tickers, --model for architecture (lstm/transformer/mlp), --epochs for duration.\n\nRun from moex_vsa_backtester/ with conda run -n tf_env.\n\nDefault: python scripts/train_neural_model.py --start 2023-01-01 --end 2024-01-01",
      "description": "Train the neural network model"
    },
    "backtest": {
      "template": "Run a backtest for a ticker. Use --ticker TICKER, --start/--end for period, --ai-threshold for entry confidence.\n\nRun from moex_vsa_backtester/ with conda run -n tf_env.\n\nDefault: python main.py --backtest --ticker SBER --start 2023-01-01 --end 2024-01-01",
      "description": "Run a backtest"
    },
    "batch-backtest": {
      "template": "Run batch backtest across all tickers. Use --tickers to filter, --start/--end for period.\n\nRun from moex_vsa_backtester/ with conda run -n tf_env.\n\nDefault: python scripts/batch_backtest.py --start 2023-01-01 --end 2024-01-01",
      "description": "Run batch backtest all tickers"
    },
    "test": {
      "template": "Run the test suite. Use -k for filter, specific file path for single file.\n\nRun from moex_vsa_backtester/ with conda run -n tf_env.\n\nDefault: conda run -n tf_env pytest -v",
      "description": "Run tests"
    },
    "state": {
      "template": "Read the current project state files:\n1. docs/reports/00-STATE.md\n2. docs/reports/01-BACKTEST-RESULTS.md\n3. docs/reports/02-BUGS.md\n4. docs/reports/03-PARAMETERS.md",
      "description": "Read project state"
    }
  }
}
