How many routines does the trading agent use and what do they do?
The setup uses five scheduled remote routines: pre-market research, market-open execution, a midday scan/management routine, an end-of-day summary, and a Friday weekly review. Each routine runs on cron (weekdays) and handles research, trade placement, risk management, journaling, or portfolio review.
Which AI model and tooling power the automated trader?
Claude Opus 4.7 is the AI model (designed for agentic workflows and self-verifying outputs). Cloud Code routines act as the scheduler/orchestrator, Alpaca handles trade execution, Perplexity is used for market research (or native web fetch as an alternative), and ClickUp is used for daily notifications.
Where does the agent store memory and how does it learn over time?
Memory is stored as markdown files (e.g., sold.mmd, agents.mmd) on the GitHub main branch. Each routine reads and writes these files so the agent retains context, journals decisions, and iteratively improves strategies across runs.
What safety and testing precautions are recommended?
Use Alpaca's paper trading account to test without real funds, run routines multiple times to validate behavior, keep API keys in environment variables (not in chats or committed files), and limit strategy risk (the tutorial focuses on swing/long-term strategies, not high-risk day trading).
How are API keys and environment configuration handled?
API keys for Alpaca, Perplexity, and ClickUp are retrieved from each platform's settings and added to the Cloud Code environment as environment variables. Correct spelling and matching variable names are critical to avoid runtime errors.