codex-goal-parser --output json emits a stable plan object for downstream tools.
contract_version:1.0.0plan_format:codex-goal-plan
contract_version— version of this JSON contractplan_format— fixed discriminator for this plan shapefinal_objective— normalized final objective sentencerepo_context_summary— compact summary used to keep generated/goalcommands readableobjective_type— one ofmigration,refactor,release,stabilization,documentation,genericbroad_objective— whether the planner narrowed the goal into a first slice/checkpoint firstinput_sources— file paths supplied with--issue-file/--context-filesub_goals— ordered list of executable planning checkpointsexecution_order— human-readable ordered list derived fromsub_goalsnotes— additional planning guidance and source disclosure
Each sub-goal contains:
titlewhyscopedone_whenvalidate_withgoal_command
- New fields may be added in future minor releases, but existing fields in
1.xshould remain compatible. - Consumers should key off
contract_versionandplan_formatbefore assuming exact behavior. - Markdown output is human-oriented; JSON output is the supported integration format.
{
"contract_version": "1.0.0",
"plan_format": "codex-goal-plan",
"final_objective": "Prepare this project for a safe public release.",
"repo_context_summary": "README summary: ...",
"objective_type": "release",
"broad_objective": false,
"input_sources": [],
"sub_goals": [
{
"title": "Audit release readiness",
"why": "identify the real blockers across build, packaging, docs, and delivery before trying to ship",
"scope": "inspect release-critical scripts, metadata, docs, and distribution assumptions only",
"done_when": "the exact release blockers and the first shippable checkpoint are clearly listed",
"validate_with": "reviewing the build path, package metadata, release docs, and distribution steps end to end",
"goal_command": "/goal Audit release readiness for this repository ..."
}
],
"execution_order": [
"1. Audit release readiness"
],
"notes": [
"Prefer sequential execution; later goals assume the earlier checkpoint is complete."
]
}