Learning Timeline
Key Insights
Token Usage Alert
Using a multi-agent team is very token-hungry because each agent operates in parallel. Ensure your credit limit is sufficient before starting complex projects.
Mid-Stream Interaction
You can interrupt the AI generation process to ask questions or change instructions. This is very useful for fine-tuning the output without needing to wait for the entire process to finish.
Comparison: Opus vs Codeex
Codeex is typically faster for scaffolding the base engine (MVP), while Claude Opus is more thorough in producing comprehensive documentation and extensive test suites (up to 90+ tests).
Prompts
Multi-Agent Team Prompt (Opus)
Target:
Claude Opus
Build a competitor to Poly Market. Create an agent team to explore this from different angles: one teammate on technical architecture, one on understanding poly market and the ins and outs of prediction markets, one on UX, and one that just works on building really good tests to make sure everything works.
Design Persona Iteration Prompt
Target:
Claude Opus
I am looking for a major design refresh. Pretend you are Jack Dorsey (formerly of Twitter and Square/Block). I want a full visual rearchitect, not an incremental tweak: new layout, language, stronger typography, monochrome first pallet, and interaction driven cards. Seriously, take your time, go nuts.
Step by Step
Initial Setup & Multi-Agent Configuration
- Open the AI interface (Claude Opus or the Codeex platform).
- Type the `/model` command in the chat area to verify the model version being used (e.g., Claude Opus 4.6).
- Prepare a prompt that assigns tasks to a specific 'AI Agent Team' (Technical Architecture, Prediction Market Specialist, UX Designer, and QA/Test Engineer).
- Copy and paste the prompt into the chat and press 'Enter' to start the process.
- Monitor the process tab to watch agents performing 'web searches' in parallel to research 'order book matching engine' systems and 'market math'.
Code Verification & App Launch
- Wait for the AI to finish 'scaffolding' and writing the code for the core engine and trading API.
- Open a terminal in the generated project directory.
- Type and run the `npm test` command to verify code integrity through unit tests (e.g., LMSR math, engine behavior, and API integration).
- Ensure all tests (e.g., 10/10 or 96/96) pass before proceeding.
- Run the `npm start` command to launch the application on your local host.
- Open your browser and test basic functions like 'Create Market' or 'Buy Shares' to ensure the app is running without errors.
Design Iteration Using AI Personas
- Identify visual elements that need improvement on the MVP (typography, color scheme, or hierarchy).
- Enter a prompt for a 'Major Design Refresh' to drastically change the app's look and feel.
- Use 'Persona Prompting' techniques (e.g., 'Pretend you are Jack Dorsey') to give the design a more minimalist and interaction-focused identity.
- If the AI pauses to ask a question mid-stream, provide an answer or confirmation to let it resume work.
- Refresh your browser to see the new 'visual system' changes (such as dark mode, hover states, and the leaderboard).