AI agent

Agent plánuje. WarriorFit přehrává.

WarriorFit zatím nemá MCP. Potřebuješ agenta, který umí číst instrukce ze souboru a provádět HTTP požadavky nebo spouštět kód.

Co funguje

Například OpenClaw, Hermes Agent, Agent Zero, Claude Code nebo Codex. Běžný chat bez nástrojů API sám obsluhovat neumí.

  1. 1Vytvoř API tokenToken je heslo pro agenta. Neukládej ho do repozitáře ani do AGENTS.md.
  2. 2Přidej AGENTS.mdSoubor ulož do pracovní složky agenta. Pro Claude Code přidej také CLAUDE.md s řádkem @AGENTS.md.
  3. 3Řekni, co chceš cvičitAgent si načte profil, vybavení a historii a připraví plán přes API.

Jednoduché AGENTS.md

Zkopíruj tento obsah do souboru AGENTS.md:

# WarriorFit

- Use the WarriorFit REST API at https://warriorfit.cz/api/v1.
- Read the API docs at https://warriorfit.cz/api/v1/docs before using an endpoint.
- Read the API token from the WARRIORFIT_API_TOKEN environment variable.
- Send it as: Authorization: Bearer $WARRIORFIT_API_TOKEN
- Never print, log, or commit the token.
- Before planning, read the user's profile, available equipment, and recent workout history.
- Create or change a planned workout only after the user asks.
- Preserve completed workout sessions and their event history.
- Explain the proposed workout briefly in plain language.

Claude Code: vedle souboru vytvoř CLAUDE.md s jediným řádkem @AGENTS.md.