Mattie/cataclysm
A Python library that intercepts undefined function calls and uses GPT-4 to generate code implementations on the fly.

Velocity · 7d
+0.3
★ / day
Trend
→steady
star history
Cataclysm is a code generation library that leverages OpenAI’s GPT-4 to automatically write function implementations based on descriptive names, arguments, and optional comments. When initialized with consume(globals()), the library intercepts any unrecognized function call and queries the LLM to generate working Python code in real time. It requires an OpenAI API key and supports configuration via environment variables or an init command.