Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

AI-OS Examples

Examples organized by difficulty level. Start with beginner/ and work your way up!

Beginner

Simple examples to get started:

  • hello_world.py - Basic standalone script using ai_os DSL
  • hello_macro.py - Simple macro that runs in the REPL
  • basic_macro_demo.py - Interactive demo with user input
  • dummy_broken_macro.py - Example of error handling

Run: aios then /macro examples/beginner/hello_macro.py

Intermediate

More complex workflows:

  • tdd_macro.py - Test-driven development loop (generates test, implements code)
  • chart_judge_macro.py - Agentic loop with quality evaluation
  • tree_of_thought.py - Implements inference-time search strategy
  • chart_gen.py - Generate charts with LLM

Run: aios then /macro examples/intermediate/tdd_macro.py test_goal='....'

Advanced

Expert-level techniques:

  • shader_evolution.py - Complex multi-iteration shader optimization
  • ultra_dense_chart_judge.py - Advanced quality evaluation and iteration
  • openrouter_image_chat.py - Multi-modal image analysis

Run: See comments in each file for specific instructions

Outputs

Generated outputs from examples (charts, etc.)