@hagicode/hagilight-core 0.9.9-dev.116.1.d848c77 → 0.9.9-dev.118.1.29aba6e

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +7 -0
  2. package/data/comparison-articles/en-US/claude-vs-hagicode.json +249 -197
  3. package/data/comparison-articles/en-US/codebuddy-vs-hagicode.json +241 -185
  4. package/data/comparison-articles/en-US/codex-vs-hagicode.json +240 -185
  5. package/data/comparison-articles/en-US/copilot-vs-hagicode.json +239 -185
  6. package/data/comparison-articles/en-US/deepagents-vs-hagicode.json +242 -185
  7. package/data/comparison-articles/en-US/dsh-vs-hagicode.json +242 -174
  8. package/data/comparison-articles/en-US/gemini-vs-hagicode.json +239 -185
  9. package/data/comparison-articles/en-US/hermes-vs-hagicode.json +242 -185
  10. package/data/comparison-articles/en-US/junie-vs-hagicode.json +242 -176
  11. package/data/comparison-articles/en-US/kimi-vs-hagicode.json +238 -185
  12. package/data/comparison-articles/en-US/kiro-vs-hagicode.json +238 -185
  13. package/data/comparison-articles/en-US/omp-vs-hagicode.json +258 -195
  14. package/data/comparison-articles/en-US/opencode-vs-hagicode.json +252 -185
  15. package/data/comparison-articles/en-US/pi-vs-hagicode.json +258 -194
  16. package/data/comparison-articles/en-US/qoder-vs-hagicode.json +242 -185
  17. package/data/comparison-articles/en-US/reasonix-vs-hagicode.json +257 -194
  18. package/data/comparison-articles/zh-CN/claude-vs-hagicode.json +248 -196
  19. package/data/comparison-articles/zh-CN/codebuddy-vs-hagicode.json +241 -185
  20. package/data/comparison-articles/zh-CN/codex-vs-hagicode.json +240 -185
  21. package/data/comparison-articles/zh-CN/copilot-vs-hagicode.json +239 -185
  22. package/data/comparison-articles/zh-CN/deepagents-vs-hagicode.json +242 -185
  23. package/data/comparison-articles/zh-CN/dsh-vs-hagicode.json +242 -174
  24. package/data/comparison-articles/zh-CN/gemini-vs-hagicode.json +239 -185
  25. package/data/comparison-articles/zh-CN/hermes-vs-hagicode.json +242 -185
  26. package/data/comparison-articles/zh-CN/junie-vs-hagicode.json +242 -176
  27. package/data/comparison-articles/zh-CN/kimi-vs-hagicode.json +238 -185
  28. package/data/comparison-articles/zh-CN/kiro-vs-hagicode.json +238 -185
  29. package/data/comparison-articles/zh-CN/omp-vs-hagicode.json +258 -195
  30. package/data/comparison-articles/zh-CN/opencode-vs-hagicode.json +252 -185
  31. package/data/comparison-articles/zh-CN/pi-vs-hagicode.json +258 -194
  32. package/data/comparison-articles/zh-CN/qoder-vs-hagicode.json +242 -185
  33. package/data/comparison-articles/zh-CN/reasonix-vs-hagicode.json +257 -194
  34. package/dist/comparison-articles.d.ts +20 -1
  35. package/dist/comparison-articles.js +35 -0
  36. package/package.json +1 -1
@@ -3,233 +3,150 @@
3
3
  "slug": "codex-vs-hagicode",
4
4
  "category": "vs-hagicode",
5
5
  "locale": "en-US",
6
- "updatedAt": "2026-10-15T00:00:00.000Z",
6
+ "updatedAt": "2026-10-16T00:00:00.000Z",
7
7
  "seo": {
8
8
  "title": "Codex CLI vs HagiCode: Features and Comparison",
9
- "description": "Understand OpenAI Codex's key features, technical architecture, and CLI ecosystem, and see how HagiCode takes Codex's rapid coding to the next level through multi-threaded parallelism, OpenSpec proposals, AI commits, HagiTasks, gamified UI, Agents management, Monospecs, Vault, and OmniRoute. Also covers the shared tool-call view and TokenMonitor status-bar usage."
9
+ "description": "Codex CLI is OpenAI's terminal coding agent; HagiCode is a workbench that runs it. Compare install, ChatGPT plans, features and when each fits."
10
10
  },
11
- "summary": "OpenAI Codex is OpenAI's official terminal AI programming tool. With its natural binding to the OpenAI model ecosystem, minimalist command-line interaction, and efficient code generation speed, it has become the go-to choice for many developers who prefer the OpenAI tech stack. However, Codex is fundamentally a lightweight CLI coding assistant, while HagiCode is a fully-featured AI programming workbench. Using them together elevates Codex's rapid coding from a quick utility to a full development experience. It also covers the shared tool-call view and optional TokenMonitor usage in the status bar.",
11
+ "summary": "Codex CLI is OpenAI's open-source terminal coding agent, signed in with a ChatGPT account or an API key. HagiCode is a desktop workbench that runs Codex as its executor and adds parallel sessions, proposals and AI commits around it.",
12
12
  "sections": [
13
13
  {
14
14
  "id": "codex-vs-hagicode-section-1",
15
- "title": "Codex's Core Strengths",
15
+ "title": "Short answer",
16
16
  "blocks": [
17
17
  {
18
- "id": "codex-vs-hagicode-section-1-capabilities",
19
- "type": "capability-list",
20
- "items": [
21
- {
22
- "id": "codex-vs-hagicode-section-1-item-1",
23
- "title": "Key Features",
24
- "content": [
25
- "OpenAI Codex's functionality revolves around minimalism and efficiency:",
26
- "Blazing-fast code generation: Codex is known for speed. Describe what you need in natural language, and it generates code fragments, complete functions, or components with extremely low latency. For development scenarios requiring rapid iteration, Codex's response speed is a major advantage.",
27
- "Terminal-native experience: Codex is a pure CLI tool — no GUI, no plugins, no IDE needed. Your terminal is everything. This minimalist design is extremely friendly for developers comfortable with terminal workflows.",
28
- "File and command operations: Codex CLI supports direct file read/write, shell command execution, and Git operations. Your entire development workflow can be completed within the terminal — from code analysis to command execution, all in one place."
29
- ]
30
- },
31
- {
32
- "id": "codex-vs-hagicode-section-1-item-2",
33
- "title": "Technical Architecture",
34
- "content": [
35
- "Codex has several notable architectural features:",
36
- "Deep OpenAI model binding: Codex directly calls OpenAI's model backend (GPT-4o, GPT-5, etc.), requiring no middleware or additional model adaptation. This means you get access to OpenAI's latest model capabilities immediately upon release.",
37
- "Lightweight design: Codex CLI is extremely lightweight — install and go, with minimal environment dependencies. Fast startup and low resource usage — a significant experience advantage for developers who value minimalism.",
38
- "Streaming output and real-time response: Codex supports streaming output, with model-generated content appearing character by character in the terminal. This makes the waiting process visible and lets you interrupt or redirect mid-generation."
39
- ]
40
- },
41
- {
42
- "id": "codex-vs-hagicode-section-1-item-3",
43
- "title": "CLI and Tool Ecosystem",
44
- "content": [
45
- "Codex's ecosystem is relatively lean but focused:",
46
- "Standalone CLI: Codex is an independent CLI tool launched via the codex command. No IDE or platform dependency — deployment and usage are extremely simple.",
47
- "OpenAI API ecosystem integration: As OpenAI's official programming tool, Codex is naturally connected to OpenAI's API ecosystem, making it easy to combine with other OpenAI tools and services.",
48
- "Open source and community-driven: Codex CLI is open source, hosted on GitHub, where the community can contribute features, report issues, and participate in iteration."
49
- ]
50
- }
18
+ "id": "codex-vs-hagicode-section-1-answer",
19
+ "type": "rich-text",
20
+ "content": [
21
+ "Codex CLI is OpenAI's coding agent for the terminal: it inspects your repository, edits files and runs commands on your machine. HagiCode is a desktop and web workbench that runs Codex CLI as one of its executors. It does not replace Codex, and it does not sell or host OpenAI models.",
22
+ "If you want a fast terminal agent on your ChatGPT plan, with scripts and CI handled by `codex exec`, stay with Codex alone. HagiCode is for when you want several Codex tasks side by side, a written proposal before each change, or one workspace across repositories."
51
23
  ]
52
24
  }
53
25
  ]
54
26
  },
55
27
  {
56
28
  "id": "codex-vs-hagicode-section-2",
57
- "title": "Why Codex Needs HagiCode",
29
+ "title": "Codex CLI vs HagiCode at a glance",
58
30
  "blocks": [
59
31
  {
60
- "id": "codex-vs-hagicode-section-2-intro",
61
- "type": "rich-text",
62
- "content": [
63
- "Codex's rapid code generation is outstanding, but it's a pure command-line tool — no project management, no session archiving, no multi-task orchestration. In real team development scenarios, these gaps keep Codex's value at 'quickly writing a piece of code' rather than reaching 'completely delivering a feature.'"
64
- ]
65
- },
66
- {
67
- "id": "codex-vs-hagicode-section-2-capabilities",
68
- "type": "capability-list",
69
- "items": [
32
+ "id": "codex-vs-hagicode-section-2-table",
33
+ "type": "comparison-table",
34
+ "headers": [
35
+ "Aspect",
36
+ "Codex CLI",
37
+ "HagiCode"
38
+ ],
39
+ "rows": [
70
40
  {
71
- "id": "codex-vs-hagicode-section-2-item-1",
72
- "title": "Multi-threaded parallelism: Multiply Codex's speed advantage",
73
- "content": [
74
- "Codex can do a lot inside one session, but real delivery rarely happens one task at a time.",
75
- "HagiCode lets you run multiple Codex sessions in parallel, each with isolated context, a clear responsibility boundary, and independent progress.",
76
- "That turns AI assistance from a single conversation into a parallel engineering workbench that matches how teams actually build software."
77
- ],
78
- "bullets": [
79
- "Thread A is refining backend API endpoints;",
80
- "Thread B is refactoring frontend components;",
81
- "Thread C is writing unit tests;",
82
- "Thread D is auditing code for security vulnerabilities."
41
+ "id": "codex-vs-hagicode-section-2-row-1",
42
+ "cells": [
43
+ "What it is",
44
+ "OpenAI's terminal coding agent; the same product also has an IDE extension, a desktop app, a web version and cloud tasks",
45
+ "Desktop and web workbench that runs Agent CLIs, Codex among them; not a model or an agent itself"
83
46
  ]
84
47
  },
85
48
  {
86
- "id": "codex-vs-hagicode-section-2-item-2",
87
- "title": "OpenSpec proposal sessions: Make Codex's speed backed by traceable decisions",
88
- "content": [
89
- "In daily development, the most common chaos isn't being unable to write code — it's making a bunch of changes and then forgetting why you made them, what you changed, and how those changes relate to each other.",
90
- "HagiCode's built-in OpenSpec proposal workflow fundamentally solves this problem. Every development task launches as a proposal:",
91
- "This think-first-then-act approach lets Codex's reasoning power shine even brighter, and lets you quickly understand the decision context months later when looking back at the code."
92
- ],
93
- "bullets": [
94
- "First, write down what problem this task solves and why this approach makes sense;",
95
- "Discuss the technical approach in depth with Codex within the proposal framework — all conversations and decisions are recorded in the proposal context;",
96
- "Once the approach is confirmed, Codex implements the code within the proposal's constraints;",
97
- "The final proposal document, discussion records, and code changes form a complete trace chain."
49
+ "id": "codex-vs-hagicode-section-2-row-2",
50
+ "cells": [
51
+ "Interface and platforms",
52
+ "Terminal UI plus `codex exec` for scripts; installers for macOS, Linux and Windows",
53
+ "Desktop app for Windows, macOS and Linux; Docker Compose container; Microsoft Store edition"
98
54
  ]
99
55
  },
100
56
  {
101
- "id": "codex-vs-hagicode-section-2-item-3",
102
- "title": "AI commits: Auto-commit after Codex writes code",
103
- "content": [
104
- "Writing commit messages after finishing code is a form of mental friction for many developers. Too casual and you can't find key commits later; too formal and it feels like wasted time.",
105
- "HagiCode's AI commit feature hands this entirely to Codex: it analyzes your code changes, understands the intent and scope of impact, then automatically generates clearly structured, semantically accurate commit messages. More importantly, during the AI commit process, HagiCode automatically locks the repository to prevent state conflicts from concurrent operations, ensuring safe and reliable commits.",
106
- "Save your attention for creation — let Codex handle the commit paperwork."
57
+ "id": "codex-vs-hagicode-section-2-row-3",
58
+ "cells": [
59
+ "Pricing and licensing",
60
+ "CLI repository is Apache-2.0; usage comes with ChatGPT plans (Free, Go $8, Plus $20, Pro from $100 per month, as of October 2026) or API billing",
61
+ "Desktop and Container editions are free; Store edition is free with an optional one-time TurboEngine purchase"
107
62
  ]
108
63
  },
109
64
  {
110
- "id": "codex-vs-hagicode-section-2-item-4",
111
- "title": "Code Server browser editor: From Codex terminal output to visual editing",
112
- "content": [
113
- "After Codex analyzes code, identifies the problematic file, and pinpoints the exact line number, the familiar awkward moment occurs: you need to leave the AI conversation window, return to your IDE, find the file again, and manually jump to the right location. This analysis-to-editing context break not only interrupts your flow but keeps AI's value at 'telling you where the problem is' rather than 'helping you directly enter editing mode.'",
114
- "HagiCode's built-in Code Server-based browser editor is designed specifically to solve this break:",
115
- "The Code Server integration makes HagiCode not just a frontend page that can analyze code, but a complete workstation where Codex's analysis can directly land as editing actions. It minimizes the tool-switching cost between AI analysis and hands-on modification."
116
- ],
117
- "bullets": [
118
- "One-click from analysis to editing: Once Codex identifies the file needing changes in a proposal, HagiCode can directly open that file in the workbench for editing. You don't need to switch tools or re-locate the file — the distance from analysis result to hands-on modification is zero.",
119
- "Local, container, remote — full coverage: Whether your project runs on a local machine, in a Docker container, or on a remote server, HagiCode's Code Server can open the project directory through the browser for editing. You're no longer constrained by 'this project can only be edited in one specific environment.'",
120
- "Vault direct editing: Code reference libraries and learning projects registered in your Vault can also be opened and browsed directly through Code Server. When Codex references example code, you can jump in anytime for deeper study or practice."
65
+ "id": "codex-vs-hagicode-section-2-row-4",
66
+ "cells": [
67
+ "Model and provider access",
68
+ "OpenAI models through a ChatGPT sign-in or an API key; you choose model and reasoning effort",
69
+ "Hosts no models; uses whatever your Codex install is signed in to; optional OmniRoute model catalog"
121
70
  ]
122
71
  },
123
72
  {
124
- "id": "codex-vs-hagicode-section-2-item-5",
125
- "title": "HagiTask: Templatize and one-click-trigger Codex's capabilities",
126
- "content": [
127
- "Codex's capabilities are strong, but manually typing out requirements each time isn't efficient. More importantly, the community has already produced a wealth of high-quality Skills — from code review templates to full-stack CRUD generators, from automatic documentation generation to test case orchestration. These proven practices are scattered everywhere with no unified place to host and invoke them.",
128
- "HagiCode's HagiTask mechanism is designed to solve this problem. It's more than just shortcut commands — it's an extensible Skills integration platform:",
129
- "HagiTask upgrades your collaboration with Codex from 'communicating from scratch every time' to 'standing on the community's shoulders, one-click invocation of mature workflows.' You pick the template, Codex executes — this is true workflow automation, and the whole process is visually delightful."
130
- ],
131
- "bullets": [
132
- "Community Skills ready to use: HagiCode supports importing popular community Skills as HagiTasks. You don't need to craft complex prompts from scratch — the community has already accumulated a wealth of high-quality task templates. Import and use immediately — new CRUD modules, comprehensive code reviews, API documentation generation — all have ready-made solutions.",
133
- "Extensible Skills system: If you have unique project requirements or team conventions, HagiCode lets you customize and compose on top of community Skills. You can adjust checklists, add team coding standards, or even chain multiple Skills into a complete development pipeline, building your own team's task template library.",
134
- "Visual operations, goodbye to the tedium of plain text: This is the fundamental difference between HagiCode and pure command-line tools. Choosing a HagiTask doesn't require typing commands and assembling parameters in the terminal — it's done through a carefully designed visual interface. Click to select tasks, dropdown menus to switch parameters, drag-and-drop to reorder tasks — every step has clear visual feedback and status indicators. The human-machine interaction shifts from 'writing code to invoke AI' to 'using a UI to direct AI.'"
73
+ "id": "codex-vs-hagicode-section-2-row-5",
74
+ "cells": [
75
+ "Parallel work",
76
+ "Subagents inside a session; `codex cloud` moves work to OpenAI's cloud",
77
+ "Several sessions side by side, each an Agent with a visible status"
135
78
  ]
136
79
  },
137
80
  {
138
- "id": "codex-vs-hagicode-section-2-item-6",
139
- "title": "Gamified interface: Make terminal Codex visually pleasing",
140
- "content": [
141
- "Programming itself can be tedious, but it can also be fun. HagiCode's gamified interface design breaks away from the cold experience of command-line tools:",
142
- "Codex provides intelligence, HagiCode provides experience — together, they transform AI programming from a 'productivity tool' into a 'development environment you actually want to open.'"
143
- ],
144
- "bullets": [
145
- "Clear visual feedback: Each session's running status, progress, and results are presented through intuitive interface elements — no need to frantically scroll through terminal output.",
146
- "Achievement and progress visualization: Task completion, code commits, proposal approvals — these milestones are wrapped as visible achievements, giving the development process a sense of rhythm and accomplishment.",
147
- "Low barrier to entry: The combination of mouse clicks, drag-and-drop, and keyboard shortcuts lets developers unaccustomed to pure terminal workflows easily harness Codex's full capabilities."
81
+ "id": "codex-vs-hagicode-section-2-row-6",
82
+ "cells": [
83
+ "Spec and planning workflow",
84
+ "AGENTS.md via /init, permission levels via /permissions; no proposal archive of its own",
85
+ "OpenSpec proposals: propose, validate, apply, archive; free editions allow 3 concurrent proposals"
148
86
  ]
149
87
  },
150
88
  {
151
- "id": "codex-vs-hagicode-section-2-item-7",
152
- "title": "Agents management: Turn multiple Codex sessions into an organized Agent fleet",
153
- "content": [
154
- "Parallel sessions are useful, but once you have several of them running, coordination becomes the next bottleneck.",
155
- "HagiCode's Agents management layer turns each Codex worker into a named, schedulable Agent with visible status, assigned scope, and independent configuration.",
156
- "You move from 'a lot of terminals are open' to 'a small AI team is being coordinated in one place.'"
157
- ],
158
- "bullets": [
159
- "Agent identity and status visualization: see which Agent is running, waiting, blocked, or ready for archive at a glance.",
160
- "Task-to-Agent binding: proposals, reviews, refactors, and test work can each be assigned to a dedicated Agent.",
161
- "Independent Agent configuration: different Agents can use different model routes, Skills, and context scopes without interfering with each other."
89
+ "id": "codex-vs-hagicode-section-2-row-7",
90
+ "cells": [
91
+ "Git and commit handling",
92
+ "/review checks uncommitted changes, a commit or a branch; docs suggest Git checkpoints around tasks",
93
+ "AI-composed commits, repository locked while committing, per-repo targeting with Monospecs"
162
94
  ]
163
95
  },
164
96
  {
165
- "id": "codex-vs-hagicode-section-2-item-8",
166
- "title": "Monospecs multi-repo management: Let Codex see the full project picture",
167
- "content": [
168
- "In real projects, code rarely lives in a single repository. Frontend, backend, documentation, shared libraries are spread across different repos, and a single feature change may need to touch several repos simultaneously. For Codex, single-repo mode works, but it has no native understanding of cross-repo relationships — you have to manually tell it in every conversation that 'this change also needs to sync to two other repos,' which is clearly inefficient.",
169
- "HagiCode's Monospecs mechanism is the structured solution designed for multi-repo scenarios. Through the .hagicode/monospecs.yaml configuration file, it declares all sub-repo addresses, names, and relationships in the project group, giving Codex an automatic cross-repo map when launching proposals:",
170
- "Monospecs essentially eliminates Codex's cognitive blind spots in cross-repo collaboration. Codex's reasoning is powerful, but it still needs an accurate map to locate the scope of changes — and Monospecs is that systematically managed project map."
171
- ],
172
- "bullets": [
173
- "Automatic repo relationship awareness: When creating a development proposal, Codex can directly read the sub-repo list from the Monospecs config, knowing 'this change's frontend code is in repos/frontend, API definitions in repos/backend, documentation in repos/docs' — you no longer need to manually list which repos are involved each time.",
174
- "Cross-repo change tracking: When a proposal spans multiple sub-repos, the OpenSpec proposal directory stays in the main repo, with sub-repos only carrying code changes. This keeps specs and code separated, sub-repos stay clean, but the entire change's decision chain and discussion records are centralized in one place. On archive, commit_when_archive can also auto-commit specs to the main repo, saving manual version control headaches.",
175
- "AI commit smart repo targeting: When doing AI commits, HagiCode analyzes your changes against the Monospecs config and automatically suggests which target repo the commit should go to. You don't need to cd into each directory in the terminal — HagiCode handles the judgment of which repo this code belongs to.",
176
- "Per-repo AGENTS.md: Each sub-repo can have its own AGENTS.md telling Codex about that repo's tech stack, coding standards, and development conventions. Codex automatically reads the corresponding guidance when operating on different repos, always behaving in line with your team's standards."
97
+ "id": "codex-vs-hagicode-section-2-row-8",
98
+ "cells": [
99
+ "Setup effort",
100
+ "One installer, npm or Homebrew command, then sign in with ChatGPT or an API key",
101
+ "Needs Codex installed and signed in first, then HagiCode Desktop on top"
177
102
  ]
178
103
  },
179
104
  {
180
- "id": "codex-vs-hagicode-section-2-item-9",
181
- "title": "Vault cross-project knowledge base: Give Codex long-term memory",
105
+ "id": "codex-vs-hagicode-section-2-row-9",
106
+ "cells": [
107
+ "Best for",
108
+ "Terminal users on a ChatGPT plan, scripts and CI",
109
+ "Parallel tasks, proposal-driven work and multi-repo projects"
110
+ ]
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "id": "codex-vs-hagicode-section-3",
118
+ "title": "What Codex CLI does well",
119
+ "blocks": [
120
+ {
121
+ "id": "codex-vs-hagicode-section-3-capabilities",
122
+ "type": "capability-list",
123
+ "items": [
124
+ {
125
+ "id": "codex-vs-hagicode-section-3-item-1",
126
+ "title": "Open source, several ways to install",
182
127
  "content": [
183
- "Codex's context window is large, but every new session starts from scratch — the experience accumulated in the previous round of proposals, the project structures analyzed, the best practices discussed — all are 'forgotten' when the session ends. In pure conversation tools, you can only accept this, but in HagiCode, the Vault system changes the game.",
184
- "Vault is HagiCode's cross-project persistent knowledge storage layer. Its core design philosophy is 'register once, reuse everywhere':",
185
- "If Monospecs lets Codex understand where projects are, Vault lets Codex remember what we've learned before. The former expands Codex's spatial vision, the latter extends Codex's temporal memory — together, Codex is no longer a stranger reintroducing themselves every time, but a long-term partner who truly understands your project landscape and knowledge accumulation."
186
- ],
187
- "bullets": [
188
- "Multi-type knowledge containers: Vault supports four types — folder (general file directories), coderef (specifically for studying open-source projects, automatically initializing standardized directory structures), obsidian (directly connecting your existing Obsidian notebook), and system-managed (system-automated project config and prompt template libraries). You can register code repositories, study notes, and design documents scattered across different places into Vault — Codex automatically perceives the existence of these knowledge resources in any proposal.",
189
- "Automatic AI context injection: Every time a new proposal starts, HagiCode automatically injects your registered Vault information into Codex's context. You don't need to manually copy code fragments or re-explain project backgrounds — Codex receives the proposal while already knowing what learning resources and reference projects you have available, and can start working directly from existing knowledge.",
190
- "Fine-grained access control: Each Vault can be marked as reference (read-only) or editable. Reference code libraries for open-source projects are set to read-only — Codex can read and analyze but not modify, preventing accidental changes. Your own project Vaults set to editable let Codex help you write code directly. This boundary keeps AI's freedom always controllable.",
191
- "Cross-project knowledge reuse: Register a 'design patterns reference' Vault while analyzing Project A, and Codex can access it in any subsequent proposal. You don't need to repeatedly build knowledge bases — Vault turns your learning outcomes and reference resources into inheritable long-term assets."
128
+ "The Codex repository is published under the Apache-2.0 licence. You can install it with `npm install -g @openai/codex`, `brew install --cask codex`, or the standalone installer: `curl -fsSL https://chatgpt.com/codex/install.sh | sh` on macOS and Linux, and a PowerShell installer on Windows. Run `codex` in a project and choose Sign in with ChatGPT, or use an API key."
192
129
  ]
193
130
  },
194
131
  {
195
- "id": "codex-vs-hagicode-section-2-item-10",
196
- "title": "OmniRoute model routing: Give Codex more than one path",
132
+ "id": "codex-vs-hagicode-section-3-item-2",
133
+ "title": "Your ChatGPT plan is the account",
197
134
  "content": [
198
- "Teams should be able to keep the workflow they like without locking model access to one vendor or one subscription path.",
199
- "OmniRoute separates the interaction layer from the model-routing layer, so HagiCode can keep Codex in the workflow while switching model sources underneath.",
200
- "That gives you better cost control, better task-to-model fit, and less workflow churn when model pricing or availability changes."
201
- ],
202
- "bullets": [
203
- "Keep the CLI or interaction style you already prefer while changing only the model route underneath.",
204
- "Share one routing strategy across multiple Agents and multiple AI tools connected to HagiCode.",
205
- "Tune different model routes for different workloads, such as fast coding, deep review, or architecture planning.",
206
- "Adjust cost and capability once at the routing layer instead of reworking each individual workflow."
135
+ "Codex is included in ChatGPT's plans, from Free and Go up to Plus, Pro, Business, Edu and Enterprise, and it shares usage limits with ChatGPT's other work features. An API key is the alternative for automation, billed at standard API rates and kept separate from subscription usage. That makes cost easy to reason about if you already pay for ChatGPT."
207
136
  ]
208
137
  },
209
138
  {
210
- "id": "codex-vs-hagicode-section-2-item-11",
211
- "title": "Unified tool-call view: see Codex CLI's tool use in one consistent shape",
139
+ "id": "codex-vs-hagicode-section-3-item-3",
140
+ "title": "Control over what it may do",
212
141
  "content": [
213
- "HagiCode attaches one typed tool-call shape to every tool-use and tool-result message. It records the tool kind, its input fields, status, result text or images, any error, and timing. The shape is computed from stored data, so session history and live updates show the same view.",
214
- "The same shape covers every provider, so Codex CLI tool calls look like those of every other agent in your workspace. You read one format instead of learning each CLI's raw output."
215
- ],
216
- "bullets": [
217
- "One shape for every provider: shell, file, search, fetch and MCP calls are presented consistently;",
218
- "Failed calls carry a readable error message;",
219
- "Raster tool images are carried as data URIs."
142
+ "`/permissions` sets when Codex may edit files or run commands without asking, and shows the active sandbox and writable roots. You pick the model and reasoning effort per session. `/review` reviews uncommitted changes, a commit or a base branch without touching your working tree."
220
143
  ]
221
144
  },
222
145
  {
223
- "id": "codex-vs-hagicode-section-2-item-12",
224
- "title": "Usage at a glance: today's tokens and cost in the status bar",
146
+ "id": "codex-vs-hagicode-section-3-item-4",
147
+ "title": "Built for scripts and delegation",
225
148
  "content": [
226
- "HagiCode can show today's token usage and cost from the TokenMonitor desktop app in its status bar. The integration is optional and off by default.",
227
- "It reads TokenMonitor's local data file or a TokenMonitor HostHub on a schedule and keeps only today's total tokens and cost. The status bar stays a quick glance rather than a full usage report."
228
- ],
229
- "bullets": [
230
- "Nothing is read until you turn the integration on;",
231
- "The HostHub secret is write-only and is never returned or logged after you save it;",
232
- "An invalid HostHub address is rejected when you save it."
149
+ "`codex exec` runs non-interactive commands for CI and repeatable jobs, `codex mcp` adds MCP servers, `--search` turns on live web search, `--image` attaches a screenshot, and `codex resume` reopens saved chats. Codex can also hand focused work to subagents, and `codex cloud` moves a task to Codex in the cloud."
233
150
  ]
234
151
  }
235
152
  ]
@@ -237,30 +154,168 @@
237
154
  ]
238
155
  },
239
156
  {
240
- "id": "codex-vs-hagicode-section-3",
241
- "title": "Summary",
157
+ "id": "codex-vs-hagicode-section-4",
158
+ "title": "When to choose Codex CLI, and when to choose HagiCode",
242
159
  "blocks": [
243
160
  {
244
- "id": "codex-vs-hagicode-section-3-intro",
161
+ "id": "codex-vs-hagicode-section-4-choose-agent",
162
+ "type": "bullet-list",
163
+ "items": [
164
+ "you already pay for a ChatGPT plan and want Codex included in it;",
165
+ "you want scripts and CI jobs through `codex exec` or an API key;",
166
+ "you prefer to control sandbox and approvals with `/permissions` and nothing else;",
167
+ "you like one terminal and a short install path with no extra application;",
168
+ "you want to hand work to Codex in the cloud with `codex cloud`."
169
+ ]
170
+ },
171
+ {
172
+ "id": "codex-vs-hagicode-section-4-choose-hagicode",
173
+ "type": "bullet-list",
174
+ "items": [
175
+ "you run several Codex tasks at once and want to see all of them in one place;",
176
+ "you want a reviewed proposal before the agent edits code, archived afterwards;",
177
+ "one Codex task spans several repositories and you would like them declared as one workspace;",
178
+ "you want Codex output turned into tidy commits, with a browser editor to fix what it got wrong;",
179
+ "you use Codex alongside other Agent CLIs and want one workspace."
180
+ ]
181
+ },
182
+ {
183
+ "id": "codex-vs-hagicode-section-4-not-a-fit",
184
+ "type": "callout",
185
+ "tone": "warning",
186
+ "title": "Where HagiCode is not the right tool",
187
+ "content": [
188
+ "CI and scripted one-shot runs should call `codex exec` directly; a desktop workbench adds nothing there.",
189
+ "If you want only a terminal and no GUI, or one quick question in an editor you already have open, HagiCode is more than you need.",
190
+ "HagiCode needs Codex installed and signed in first, so setup is longer than using Codex alone. Teams that do not want a proposal discipline will find it overhead, free editions cap concurrent proposals at 3, and the embedded Code Server editor is not a full IDE replacement.",
191
+ "Features that live in OpenAI's own surfaces, such as `codex cloud` and the IDE extension, stay there; HagiCode drives the local CLI."
192
+ ]
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ "id": "codex-vs-hagicode-section-5",
198
+ "title": "Using Codex CLI together with HagiCode",
199
+ "blocks": [
200
+ {
201
+ "id": "codex-vs-hagicode-section-5-intro",
245
202
  "type": "rich-text",
246
203
  "content": [
247
- "OpenAI Codex is a fast, minimalist terminal AI programming tool, and HagiCode is a fully-featured AI programming workbench. Their relationship is complementary:",
248
- "If you're already using Codex, try connecting it to HagiCode — you'll find Codex isn't just a fast code generator in the terminal, but a full-stack AI partner powered by a complete workflow."
204
+ "HagiCode sits on top of the CLI. It runs your installed Codex through its SDK-backed integration, so your ChatGPT sign-in or API key, plan limits and billing stay with OpenAI.",
205
+ "Nothing is locked in. Your repositories, AGENTS.md and Codex configuration stay where they are, and you can run `codex` on the same project at any time."
249
206
  ]
250
207
  },
251
208
  {
252
- "id": "codex-vs-hagicode-section-3-bullets",
209
+ "id": "codex-vs-hagicode-section-5-steps",
210
+ "type": "bullet-list",
211
+ "items": [
212
+ "Install Codex CLI with npm, Homebrew or the standalone installer, and confirm it with `codex --version`.",
213
+ "Run `codex` once and sign in with ChatGPT or an API key, so it is authenticated before HagiCode uses it.",
214
+ "Install HagiCode Desktop for Windows, macOS or Linux, or use the Docker Compose or Microsoft Store edition.",
215
+ "In HagiCode's Agent CLI settings, pick Codex as the executor; HagiCode looks for the `codex` command on your PATH.",
216
+ "Open a repository and start a session or an OpenSpec proposal; Codex's tool calls appear in HagiCode's unified view.",
217
+ "To go back, close HagiCode and run `codex` in the same folder; nothing needs to be undone."
218
+ ]
219
+ },
220
+ {
221
+ "id": "codex-vs-hagicode-section-5-notes",
222
+ "type": "callout",
223
+ "tone": "info",
224
+ "title": "What works with Codex inside HagiCode",
225
+ "content": [
226
+ "Parallel sessions, Agents management, OpenSpec proposals, AI commits, Code Server, Monospecs, Vault and the unified tool-call view work with Codex sessions.",
227
+ "Interactive questions are available only for Claude, Pi, OMP and Reasonix, and the agent work panel only for Claude Code, so neither appears for Codex."
228
+ ]
229
+ }
230
+ ]
231
+ },
232
+ {
233
+ "id": "codex-vs-hagicode-section-6",
234
+ "title": "What HagiCode adds on top of any agent",
235
+ "blocks": [
236
+ {
237
+ "id": "codex-vs-hagicode-section-6-capabilities",
238
+ "type": "capability-list",
239
+ "items": [
240
+ {
241
+ "id": "codex-vs-hagicode-section-6-item-1",
242
+ "title": "Parallel sessions and Agents management",
243
+ "content": [
244
+ "Each Codex session becomes an Agent with its own context and a visible status, so three Codex tasks in three folders are one list instead of three terminals."
245
+ ]
246
+ },
247
+ {
248
+ "id": "codex-vs-hagicode-section-6-item-2",
249
+ "title": "OpenSpec proposals",
250
+ "content": [
251
+ "A task can start as an OpenSpec proposal that you write, validate, apply and archive. Codex implements within it, and the proposal records why, which `codex resume` history alone does not."
252
+ ]
253
+ },
254
+ {
255
+ "id": "codex-vs-hagicode-section-6-item-3",
256
+ "title": "AI commit and Code Server",
257
+ "content": [
258
+ "HagiCode drafts the commit message from what Codex changed and locks the repository while committing. The embedded Code Server editor opens those files beside the conversation."
259
+ ]
260
+ },
261
+ {
262
+ "id": "codex-vs-hagicode-section-6-item-4",
263
+ "title": "Monospecs and Vault",
264
+ "content": [
265
+ "Monospecs lists the repositories of a multi-repo workspace so a Codex task knows about all of them. Vault keeps reference code and notes available to later sessions, which a new `codex` run would start without."
266
+ ]
267
+ },
268
+ {
269
+ "id": "codex-vs-hagicode-section-6-item-5",
270
+ "title": "Model routing, tool-call view and usage",
271
+ "content": [
272
+ "Codex's tool calls are shown in the same typed shape as every other CLI, live and in history. OmniRoute can supply a model catalog per Agent CLI, and an optional TokenMonitor readout in the status bar shows today's tokens and cost."
273
+ ]
274
+ }
275
+ ]
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "id": "codex-vs-hagicode-section-7",
281
+ "title": "The bottom line",
282
+ "blocks": [
283
+ {
284
+ "id": "codex-vs-hagicode-section-7-bullets",
253
285
  "type": "bullet-list",
254
286
  "items": [
255
- "Codex provides speed: blazing-fast code generation, terminal-native experience, deep OpenAI model binding;",
256
- "HagiCode provides efficiency: multi-threaded parallelism, Agents fleet management, OpenSpec proposals, AI commits, Code Server editor, HagiTasks;",
257
- "HagiCode expands boundaries: Monospecs lets Codex understand cross-repo project relationships, Vault gives Codex cross-session long-term memory, OmniRoute frees Codex from model subscription lock-in;",
258
- "Tool-call view: one consistent shape for every provider's tool use, in history and live updates;",
259
- "Usage at a glance: optional TokenMonitor status-bar view of today's tokens and cost;",
260
- "Together they provide an experience: traceable decision chains, automated daily tasks, a genuinely enjoyable interface, and a long-term AI partner that truly understands your project landscape and can be freely configured with any model source."
287
+ "Codex CLI is the agent in your terminal; HagiCode is the workbench that runs it.",
288
+ "Stay with Codex alone for solo, single-task or scripted work on your ChatGPT plan; add HagiCode for parallel tasks, proposals and multi-repo changes.",
289
+ "Codex must be installed and signed in first, and you can go back to running `codex` directly at any time."
261
290
  ]
262
291
  }
263
292
  ]
264
293
  }
294
+ ],
295
+ "faq": [
296
+ {
297
+ "question": "How do I install Codex CLI?",
298
+ "answer": "Run `npm install -g @openai/codex` or `brew install --cask codex`. The standalone installer for macOS and Linux is `curl -fsSL https://chatgpt.com/codex/install.sh | sh`, and Windows has a PowerShell installer in the repository README at github.com/openai/codex. Then run `codex` and sign in."
299
+ },
300
+ {
301
+ "question": "Is Codex CLI free?",
302
+ "answer": "The CLI itself is open source under Apache-2.0, but use needs a ChatGPT plan or an API key. As of October 2026 OpenAI lists Codex in ChatGPT Free, Go ($8), Plus ($20) and higher plans; API-key use is billed at API rates."
303
+ },
304
+ {
305
+ "question": "Can I use Codex CLI with HagiCode?",
306
+ "answer": "Yes. Install and sign in to Codex CLI, then choose it as the Agent CLI in HagiCode. Your ChatGPT sign-in or API key and its billing stay with OpenAI."
307
+ },
308
+ {
309
+ "question": "Does HagiCode replace Codex CLI?",
310
+ "answer": "No. HagiCode runs Codex as its executor and adds sessions, proposals, commits and multi-repo tools around it. You can still run `codex` on the same repositories."
311
+ },
312
+ {
313
+ "question": "Does Codex CLI work on Windows?",
314
+ "answer": "OpenAI provides a PowerShell installer for Windows in the Codex README. Check the Codex documentation for current Windows notes before relying on it."
315
+ },
316
+ {
317
+ "question": "Codex CLI vs HagiCode: which should I pick?",
318
+ "answer": "Pick Codex alone for terminal, solo or CI work on your ChatGPT plan. Add HagiCode when you want parallel sessions, OpenSpec proposals or multi-repo workspaces on top of Codex."
319
+ }
265
320
  ]
266
321
  }