3.2 KiB
3.2 KiB
Workspace Rules & Instructions
Usage and Quota Commands (/usage-ai, /usage, /quota, or natural language)
- Whenever the user asks about AGY limits, 5-hour quota, 7-day quota, or sends commands like
/usage-ai,/usage,وضعیت مصرف,سهمیه:- Execute
agy --print "/usage"andagy --print "/credits". - Parse the quotas (Gemini, Claude, GPT limits, reset timestamps, credits).
- Analyze the results and report them clearly to the user (in Persian if user communicates in Persian).
- Execute
Project Directory Structure & Explicit Creation
- NEVER create, initialize, or add a new project on your own or without the user's explicit request. Projects must ONLY be created when the user explicitly asks to create a new project.
- When the user explicitly requests creating a new project:
All projects must be placed in the following directory pattern:
/root/projects/{user-telegram-id}/{project-name}
Telegram Bot Changes & Quality Assurance
- ALWAYS after any code modification, feature addition, or fix in
/root/telegram-agy-bot:- Review and verify all bot commands, handlers, callback buttons, and message formatting.
- If needed, update the bot structure, keyboard layouts, command lists, and help texts to match the changes.
- Compile and check syntax (
python -m py_compile ...). - NEVER run
systemctl restart agy-telegram-botsynchronously in bash commands during a turn (it kills the active turn immediately). Instead, ALWAYS include the[[RESTART_BOT]]tag in your final response so the bot restarts itself gracefully after fully delivering the response to the user.
Server Domain, Subdomains & Reverse Proxy (Caddy)
- The wildcard domain
*.msa.artacloud.ir(e.g.app.msa.artacloud.ir,api.msa.artacloud.ir,{project-name}.msa.artacloud.ir) points directly to this server (213.142.132.205). - ALWAYS use Caddy (
/etc/caddy/Caddyfileor system caddy) as the reverse proxy web server for all web projects, APIs, webhooks, and subdomains. - Caddy automatically manages free HTTPS / SSL certificates via Let's Encrypt / ZeroSSL for any
*.msa.artacloud.irsubdomains. Whenever exposing a service, configure Caddy and reload it (systemctl reload caddyorcaddy reload --config /etc/caddy/Caddyfile).
Flash Auto Reasoning & Global QA with Highest Model
- In Flash Auto Mode, whenever work/changes/edits are finished:
- The final prepared response and code changes MUST be thoroughly verified and audited by the highest available model/reasoning level (e.g., High Effort / Pro / Thinking) for bug detection and sanity checks.
- If no issues/bugs are detected: Proceed without additional modifications and send the clean final response to the user.
- If any bugs, inaccuracies, syntax/logic errors, or flaws are identified: The agent MUST automatically perform deep debugging and fixing using the highest available model, re-verify the resolution, and then deliver the complete, corrected response to the user.
Mandatory High Effort for Troubleshooting & Diagnostics
- ALWAYS and for all projects, initial bug analysis, troubleshooting, diagnosis, root-cause analysis, and system investigations MUST be performed with the highest level of reasoning effort (High Effort / High Thinking).