neural-codex

Codex-native prompts, templates, scripts, and agents that bring the neural-claude workflow to the Codex CLI. Everything is file-based, repo-local, and designed for repeatable iteration with clear state.

What you get

Prompts

Skills

Project-scoped skills in .codex/skills/:

Templates

Scripts

Agents

Quick setup

1) Run the global install from this repo:

scripts/setup-global.sh

2) Restart Codex so /prompts:neural.* are picked up. 3) In any project, run the project install:

scripts/setup-project.sh

4) Verify prompts:

/prompts:neural.loop-start

Loop prerequisites

The Ralph loop requires flock and timeout.

macOS (Homebrew):

brew install util-linux coreutils
export PATH="/opt/homebrew/opt/util-linux/bin:/opt/homebrew/opt/coreutils/libexec/gnubin:$PATH"

Linux:

Installation details

Global install (one time)

scripts/setup-global.sh

This installs:

Use --force to overwrite existing files:

scripts/setup-global.sh --force

Project install (per repo)

scripts/setup-project.sh

This seeds a project with:

Install into another path:

scripts/setup-project.sh --path /path/to/project

Ralph loop usage

TEST_CMD="npm test" scripts/neural-codex/ralph-loop.sh 5

Notes:

Memory workflow

Profiles

Named configuration sets for different workflows. Switch with codex --profile <name>:

Profile Model Approval Use Case
default gpt-5.2-codex on-failure Standard development
fast gpt-4.1-mini on-failure Quick tasks, low cost
autonomous gpt-5.2-codex never Ralph loop, unattended work
careful gpt-5.2-codex untrusted Sensitive changes

Example:

codex --profile autonomous exec "Fix the auth bug"

MCP config

Supported MCP servers are stubbed in .codex/config.toml and include:

Set tokens in your shell as needed (e.g., GITHUB_PERSONAL_ACCESS_TOKEN).

Advanced Config

The config file supports advanced options (see .codex/config.toml):

Reference: https://developers.openai.com/codex/config-advanced/

Repo layout

.
├── .codex/
│   ├── prompts/
│   ├── skills/
│   ├── templates/
│   └── config.toml
├── agents/
├── plans/
├── scripts/
└── README.md

Troubleshooting

Prompts not showing:

Ralph loop fails immediately:

Tests not running:

GitHub Pages

Static site lives in docs/. Enable Pages with source main / docs/.