Skip to content

soohy00/codex-harness-framework

Repository files navigation

Codex Harness Framework

English | 한국어

Turn Claude-centered workflows like gStack and Superpower into a Codex-native framework. This project keeps the strongest workflow ideas and rebuilds them around Codex skills, Codex execution, and GitHub-friendly reuse.

Overview

  • Ports old Claude slash-command workflows into Codex skills
  • Uses AGENTS.md as the main project rule file
  • Runs implementation steps through codex exec with scripts/execute.py
  • Supports discovery, architecture planning, step planning, review, and optional git worktrees
  • Includes a safe templates/phases-starter/ example for learning and copy-starting

Who This Is For

  • People who used gStack or Superpower style Claude workflows and want a Codex version
  • Teams that want a repeatable TDD-first workflow for product work
  • People looking for a study case for Codex skills and agents/openai.yaml

Core Layout

  • AGENTS.md: project rules, hard guardrails, and development process
  • docs/: PRD, architecture, ADR, UI guide, and legacy Claude reference
  • skills/: Codex skills for each Harness stage
  • scripts/execute.py: Codex phase runner
  • scripts/prompts/: implementer and reviewer prompts
  • templates/phases-starter/: safe starter example for phases/
  • scripts/install_codex_skills.py: local skill installer
  • .github/workflows/ci.yml: GitHub Actions test workflow
  • SECURITY.md: public repo security guidance

Included Skills

  • harness-workflow
  • harness-office-hours
  • harness-brainstorm
  • harness-step-planner
  • harness-review
  • harness-setup-worktrees

Each skill includes agents/openai.yaml. That file improves how the skill appears in Codex lists and provides a default prompt example.

Install The Skills

Install the repo skills into Codex:

python3 scripts/install_codex_skills.py --mode symlink

Copy install:

python3 scripts/install_codex_skills.py --mode copy

List install targets:

python3 scripts/install_codex_skills.py --list

Suggested Workflow

  1. Write your project rules in AGENTS.md.
  2. Fill docs/PRD.md, docs/ARCHITECTURE.md, docs/ADR.md, and docs/UI_GUIDE.md.
  3. Use harness-office-hours or harness-brainstorm when you need help shaping the docs.
  4. Use harness-step-planner to create phases/index.json and phases/<phase>/step*.md.
  5. Run a phase:
python3 scripts/execute.py <phase-dir>

Safe Starter Template

If you want to learn the phases/ format or start a new repo faster, use:

  • templates/phases-starter/README.md

This template is safe because it lives under templates/, not the project root phases/. scripts/execute.py will not run it unless you copy it into a real project.

Included example files:

  • templates/phases-starter/phases/index.json
  • templates/phases-starter/phases/0-setup/index.json
  • templates/phases-starter/phases/0-setup/step0.md
  • templates/phases-starter/phases/0-setup/step1.md

Why It Differs From The Old Claude Version

  • CLAUDE.md is gone and AGENTS.md is the rule source
  • Old .claude commands were rewritten as Codex skills
  • Execution now uses codex exec
  • Skill UI metadata is included through agents/openai.yaml
  • The old Claude workflow is preserved in docs/LEGACY_CLAUDE_REFERENCE.md

Runner Features

  • Injects AGENTS.md absolute guardrails into every step
  • Chooses default models and review levels by complexity
  • Carries recent completed-step summaries forward
  • Supports none, spec-only, and full review modes
  • Works without git for local experimentation
  • Uses branch, commit, and push flows when git exists

Step Frontmatter Example

---
complexity: medium
review: full
principle: [ADR.md#철학]
context: [PRD.md#핵심 기능, ARCHITECTURE.md#디렉토리 구조]
---

Public Repo Safety

  • .gitignore blocks .env, Python cache files, local outputs, and worktree folders
  • .env.example shows how to document variables without publishing secrets
  • SECURITY.md explains what to review before publishing a fork or derived project
  • GitHub Actions runs the framework tests on push and pull request

Community Files

  • CONTRIBUTING.md: contribution guidelines surfaced by GitHub
  • LICENSE: MIT License for public reuse
  • SECURITY.md: security guidance for public sharing

Publish Notes

If you publish this on GitHub, people can:

  • install the Codex skills locally
  • study the agents/openai.yaml metadata pattern
  • copy the starter phases/ template
  • adapt older Claude workflow ideas to Codex

Notes

  • --no-review: skip review agents
  • --push: push after a phase completes
  • --push needs a git repo
  • Use harness-setup-worktrees for parallel phase work
  • Use harness-review for doc-aware code review

About

Codex-native framework that ports gStack and Superpower style Claude workflows into reusable Codex skills, phase planning, and execution.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages