GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - lua-ai-global/codex-lua-plugin: Codex CLI plugin for building, testing, and deploying Lua AI agents (heylua.ai) — 14 skills, 5 specialised subagents, MCP-first integrations, safety gates. Sister to claude-code-lua-plugin and cursor-lua-agent-builder.

BranchesTags
Open more actions menu

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
.codex-plugin
.codex-plugin
 
 
.github/workflows
.github/workflows
 
 
agents
agents
 
 
docs
docs
 
 
hooks
hooks
 
 
lib
lib
 
 
mcp/lua-platform
mcp/lua-platform
 
 
rules
rules
 
 
scripts
scripts
 
 
skills
skills
 
 
test
test
 
 
.eslintignore
.eslintignore
 
 
.eslintrc.json
.eslintrc.json
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.mcp.json
.mcp.json
 
 
.npmrc
.npmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
jest.config.mjs
jest.config.mjs
 
 
logo.png
logo.png
 
 
marketplace.json
marketplace.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 

Repository files navigation

codex-lua-plugin

A Codex CLI plugin for building, testing, and deploying Lua AI agents directly from inside your Codex session.

This is the Codex port of claude-code-lua-plugin and cursor-lua-agent-builder, with the same architecture, the same MCP-first integration model, the same §3.3 deploy-safety gates, and the same 14-verb workflow — adapted to Codex CLI's plugin format (.codex-plugin/plugin.json, marketplace-based install).

Install

# 1. Clone (path is your dev location; install command tells Codex about it)
git clone https://github.com/lua-ai-global/codex-lua-plugin ~/codex-lua-plugin
cd ~/codex-lua-plugin

# 2. Build the bundled MCP server (gitignored — must exist before install)
cd mcp/lua-platform && npm ci && npm run build && cd ../..

# 3. Install — registers as a marketplace and triggers `codex plugin install`
node scripts/install.mjs

The script:

  • Pre-flights that codex CLI is on your PATH (install with npm install -g @openai/codex if not)
  • Pre-flights that the MCP server bundle was built
  • Runs codex plugin marketplace add ./ to register this repo as a Codex marketplace
  • Runs codex plugin install lua-agent-builder to install the plugin from it
  • Codex caches the plugin at ~/.codex/plugins/cache/lua-ai-marketplace/lua-agent-builder/<version>/

To uninstall: node scripts/install.mjs --uninstall (removes the plugin AND the marketplace registration).

To update: cd ~/codex-lua-plugin && git pull && node scripts/install.mjs — idempotent; Codex re-reads the manifest and updates components.

In Codex, type / to see the lua-* skills in autocomplete. Run /lua-doctor to verify the environment, then /lua-auth. A new login uses lua auth configure in a private terminal and requires lua-cli 3.28.0 or newer.

What's inside

Component Count Role
Skills (/lua-*) 14 One per verb: architect, init, new, test, push, deploy, sync, logs, chat, qa, doctor, auth, docs, update
Subagents 5 lua-architect, lua-skill-builder, lua-debug, lua-deploy-pilot, lua-qa (Codex TOML format)
Hooks 10 SessionStart × 3, UserPromptSubmit × 1, PreToolUse × 4 (incl. safety gate), PostToolUse × 2
Rules 3 @primitives, @integrations, @decision-trees — knowledge base for the architect
MCP server 1 lua-platform exposes 5 read-only tools (list_agents, get_agent, list_primitive_versions, get_deployment_status, tail_logs)
Lints 9 Catch known regression classes (CLI flag denylist, MCP refs, monorepo paths, etc.)
Tests 248 Jest suites against hook scripts + MCP tools + runtime adapters

Why a port?

Codex CLI's plugin model is genuinely close to Claude Code's:

  • Hook event names match — SessionStart, PreToolUse, PostToolUse, UserPromptSubmit, Stop (PascalCase, like Claude Code; not Cursor's camelCase). Same JSON output protocol ({hookSpecificOutput: {hookEventName, permissionDecision}} for blocks, exit code 2 for hard denial).
  • Skills format identical — skills/<name>/SKILL.md with name + description frontmatter. Anthropic's SKILL.md standard, adopted by both.
  • MCP via .mcp.json — same JSON schema as Claude Code (or ~/.codex/config.toml [mcp_servers] for user-scope).
  • Plugin manifest at .codex-plugin/plugin.json — same kebab-case name, similar field set as Cursor's .cursor-plugin/plugin.json.
  • Real local install — codex plugin marketplace add ./ is a first-class command; no symlink dance like the Cursor port needed.

The only meaningful adaptation is subagents — Codex uses TOML files at agents/*.toml with a different schema (name, description, developer_instructions, optional model / mcp_servers). The conversion is mechanical (frontmatter + body → TOML keys).

Layout

codex-lua-plugin/
├── .codex-plugin/
│   └── plugin.json             ← Codex plugin manifest
├── marketplace.json            ← Codex marketplace pointer (this repo IS a marketplace of 1)
├── skills/                     ← 14 verbs as skills (Anthropic SKILL.md format)
│   ├── lua-architect/SKILL.md
│   └── ... (13 more)
├── agents/                     ← 5 subagents in Codex TOML format
│   ├── lua-architect.toml
│   └── ... (4 more)
├── hooks/
│   ├── hooks.json              ← Claude-Code-shaped (matcher + hooks array)
│   ├── before-shell-execution.mjs    ← §3.3 safety gate (umbrella)
│   ├── confirm-deploy.mjs / block-auto-deploy.mjs / warn-version-zero.mjs
│   ├── check-lua-version.mjs / detect-project.mjs / check-lua-auth.mjs
│   └── inject-context.mjs / post-deploy-smoke.mjs / post-compile-summary.mjs
├── rules/                      ← knowledge files as MDC rules
├── .mcp.json                   ← MCP server registration
├── mcp/lua-platform/           ← bundled MCP server (vendored from upstream repo)
├── lib/                        ← shared utilities (hook-runtime adapter handles CC + Cursor + Codex)
├── scripts/install.mjs         ← LOCAL INSTALL via `codex plugin marketplace add`
├── test/                       ← 248 jest tests (vendored, all pass on the matrix)
└── docs/USER_GUIDE.md

Safety contracts

The plugin enforces the same gates as the Claude Code and Cursor versions:

  • §3.3 deploy gate — bare lua deploy is denied by hooks/before-shell-execution.mjs unless prefixed with LUA_DEPLOY_CONFIRMED=1 (the /lua-deploy skill sets this after walking the user through the gated 5-step ship sequence).
  • --auto-deploy block — denied for any command containing --auto-deploy.
  • Credential isolation — model-run lua auth configure and lua auth key* commands are denied. Account details, OTPs, and credentials stay in a private terminal.
  • Single-permission contract — preserved in the skill bodies.

See SECURITY.md for disclosure path.

Companion projects

  • lua-platform-mcp — the standalone MCP server (also listed in the Cline MCP Marketplace for direct use without an IDE plugin)
  • claude-code-lua-plugin — Anthropic Claude Code version
  • cursor-lua-agent-builder — Cursor version

License

MIT © Lua AI

About

Codex CLI plugin for building, testing, and deploying Lua AI agents (heylua.ai) — 14 skills, 5 specialised subagents, MCP-first integrations, safety gates. Sister to claude-code-lua-plugin and cursor-lua-agent-builder.

Resources

Readme
MIT license

Security policy

Security policy
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.