Benjamin Swerdlow

Codex Exec

Component

About

A Codex action/exec line with a status dot and expandable output, as a real <details> disclosure.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Codex Exec to your project and fits it to your theme.

Code

How Codex Exec is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

import { CodexExec } from "@/components/ui/brainless-codex-exec";

export default function CodexExecDemo() {
  return (
    <div className="w-full max-w-3xl overflow-x-auto border border-[#2b2b2b] bg-[#1a1a1a] p-5 text-[#c0caf5]">
                <div className="space-y-1">
                  <CodexExec command="Read app/(marketing)/page.tsx" />
                  <CodexExec command="Edited components/pricing.tsx" result="(+22 −0)" />
                  <CodexExec command="Ran pnpm build" result="→ passed">
                    {`pnpm build
        ✓ compiled successfully`}
                  </CodexExec>
                </div>
    </div>
  );
}

More by Benjamin Swerdlow

View all
  • Pied Piper Onboarding

    Pied Piper Onboarding

  • Grok Session

    Grok Session

  • Grok Session Active

    Grok Session Active

  • Grok Plan

    Grok Plan

  • Codex Session

    Codex Session

  • Claude Session

    Claude Session

  • Grok Slash Menu

    Grok Slash Menu

  • Codex Slash Menu

    Codex Slash Menu