Skip navigation
Quick demo of how I use Pi to offload tasks to Codex CLI with the pi-interactive-shell extension.
0:00 / 1:27

Quick demo of how I use Pi to offload tasks to Codex CLI with the pi-interactive-shell extension.

Nico Bailon

@nicopreme9.2K followers

Visit on X
422 likesDownloadOriginal post

36,323 views

Quick demo of how I use Pi to offload tasks to Codex CLI with the pi-interactive-shell extension. Codex is notoriously tricky to prompt well so Pi reads the Codex prompting guide to generate a tailored meta-prompt, then launches Codex CLI in an overlay. pi install npm:pi-interactive-shell

16 Comments

Comments from the original post on X (Twitter)

  • Jean-Patrick Smith's profile picture

    @jp_aidev

    i really like this idea of a small orchestrator i can customize and shell out to whatever else, and stay in the flow

    4 likes

  • bertø's profile picture

    @graffioh

    do you mean that it’s better to use codex in its CLI other than pi?

    3 likes

  • Michał Deja's profile picture

    @MichalDeja

    codex posting guide where 😭

    2 likes

  • Nico Bailon's profile picture

    @nicopreme

    Skill for Codex CLI /w pi-interactive-shell: Codex prompting guide:

    24 likes

  • J L's profile picture

    @jael_is_here

    Ok…. Darnit. Tomorrow, I’ll play with this…

    1 like

  • dotta 📎's profile picture

    @dotta

    any chance you want to share the prompt templates for the codex-* commands?

    1 like

  • tryingEveryThing's profile picture

    @tryingET

    why do you even delegate to codex in the first place? why not use pi instead?

    1 like

  • Nico Bailon's profile picture

    @nicopreme

    True. Pi works great with codex nowadays.

  • getbygenius's profile picture

    @crtwithintent

    y delegate to codex?

    1 like

  • tharshan's profile picture

    @tharshan_09

    What do you decide to use with opus and what to offload to codex?

  • Bryan Bryce – e/tacos's profile picture

    @BryanJBryce

    This is how Warp works eh?

  • Gary Basin's profile picture

    @garybasin

    Oh clever

  • i miss the sun's profile picture

    @1_missthesun

    Yes! Image and video generators often have auto prompt enhancers but no one ever does the same for agents

  • Shay's profile picture

    @adore840

    Would you mind sharing your global .pi?

  • 2cents's profile picture

    @obeserverji

    Would you recommend pi to vibe coders?

  • voe.lo's profile picture

    @LignoL23

    Would be nice to use codex /review command this way. Do you share your /codex-xxx commands somewhere?