Examples organized by difficulty level. Start with beginner/ and work your way up!
Simple examples to get started:
hello_world.py- Basic standalone script using ai_os DSLhello_macro.py- Simple macro that runs in the REPLbasic_macro_demo.py- Interactive demo with user inputdummy_broken_macro.py- Example of error handling
Run: aios then /macro examples/beginner/hello_macro.py
More complex workflows:
tdd_macro.py- Test-driven development loop (generates test, implements code)chart_judge_macro.py- Agentic loop with quality evaluationtree_of_thought.py- Implements inference-time search strategychart_gen.py- Generate charts with LLM
Run: aios then /macro examples/intermediate/tdd_macro.py test_goal='....'
Expert-level techniques:
shader_evolution.py- Complex multi-iteration shader optimizationultra_dense_chart_judge.py- Advanced quality evaluation and iterationopenrouter_image_chat.py- Multi-modal image analysis
Run: See comments in each file for specific instructions
Generated outputs from examples (charts, etc.)