Cogniscendo

Cogniscendo

AGI has been achieved: Prompt engineering edition

Codium.ai and their "flow engineering" solution

Prakash's avatar
Prakash
Jan 22, 2024
∙ Paid

The team at codium.ai introduces what they call a “flow engineering” solution to computer code generation, which in essence, uses up to 100 calls to GPT-4 per coding problem to:

  1. Reason about the goal, inputs, outputs and constraints of the problem

  2. Create tests, and reason why inputs leads to outputs in each test

  3. Generate 2-3 potential solutions in English and rank them in terms of correctness, simplicity and robustness

  4. Iteratively pick a solution, generate code and run tests. Repeating until all tests pass

This is exactly the Test Driven Development strategy taught to a generation of coders, and AlphaCodium achieved a 44% completion rate on the CodeContests evaluation, beating Google’s well funded fine tuned AlphaCode2 at 43%. Both would outrank more than 85% of all human competitors.

To reiterate, with some heavily structured prompting, your machine can beat (most) humans at writing computer code by deploying the exact same strategies humans use to write good code.

And no, it…

User's avatar

Continue reading this post for free, courtesy of Prakash.

Or purchase a paid subscription.
© 2026 8teapi · Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture