@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,151 @@
3
3
  "slug": "codebuddy-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": "CodeBuddy CLI vs HagiCode: Features and Comparison",
9
- "description": "Understand CodeBuddy CLI's key features, enterprise-grade capabilities, and technology ecosystem, and see how HagiCode gives CodeBuddy's enterprise capabilities a full workflow boost 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": "CodeBuddy Code is Tencent's terminal AI coding agent; HagiCode is a workbench that runs it. Compare install, pricing, features and fit."
10
10
  },
11
- "summary": "CodeBuddy CLI is an AI coding assistant designed for enterprise development scenarios, built on the principles of security, control, and efficiency. It brings more mature considerations around permission management, code security, and team collaboration than typical open-source tools, making it especially suitable for teams with strict code security and compliance requirements. However, CodeBuddy CLI is fundamentally a coding assistant tool, while HagiCode is a comprehensive AI programming workbench. Together, they elevate CodeBuddy's enterprise DNA from the tool level to the platform level. It also covers the shared tool-call view and optional TokenMonitor usage in the status bar.",
11
+ "summary": "CodeBuddy Code is Tencent Cloud's terminal coding agent, installed from npm, Homebrew or a native binary. HagiCode is a desktop workbench that runs CodeBuddy as its executor and adds parallel sessions, proposals and AI commits around it.",
12
12
  "sections": [
13
13
  {
14
14
  "id": "codebuddy-vs-hagicode-section-1",
15
- "title": "CodeBuddy CLI's Core Strengths",
15
+ "title": "Short answer",
16
16
  "blocks": [
17
17
  {
18
- "id": "codebuddy-vs-hagicode-section-1-capabilities",
19
- "type": "capability-list",
20
- "items": [
21
- {
22
- "id": "codebuddy-vs-hagicode-section-1-item-1",
23
- "title": "Key Features",
24
- "content": [
25
- "CodeBuddy CLI's functionality centers on enterprise-grade AI coding:",
26
- "Intelligent code generation and refactoring: CodeBuddy generates high-quality code implementations from natural language descriptions or code context. It supports multiple programming languages and frameworks, with particularly strong performance in enterprise Java, C#, and other backend stacks. Refactoring suggestions balance performance, maintainability, and team coding standards.",
27
- "Security-compliant code review: CodeBuddy's code review goes beyond functional bugs, with particular emphasis on security vulnerability detection and compliance checks. For industries with strict code security requirements like finance and healthcare, this is a core differentiator.",
28
- "Team collaboration and knowledge management: CodeBuddy supports team-level configuration management and coding standard synchronization. Team leads can define coding standards, security rules, and best practice templates that are automatically followed by all team members using CodeBuddy."
29
- ]
30
- },
31
- {
32
- "id": "codebuddy-vs-hagicode-section-1-item-2",
33
- "title": "Enterprise-Grade Features",
34
- "content": [
35
- "CodeBuddy has several standout enterprise-grade advantages:",
36
- "Fine-grained permission control: CodeBuddy supports project-level and file-level access control. For enterprise projects containing sensitive code, this granularity lets managers confidently introduce AI programming tools.",
37
- "Code security assurance: CodeBuddy's data transmission, storage, and processing workflows for code handling have undergone security audits. For enterprises sensitive to data security, this is a non-negotiable bottom line.",
38
- "Compliance support: CodeBuddy has built-in support for various industry compliance standards — including code audit requirements and data protection regulations — making AI-assisted code more likely to pass compliance reviews."
39
- ]
40
- },
41
- {
42
- "id": "codebuddy-vs-hagicode-section-1-item-3",
43
- "title": "Technology Ecosystem",
44
- "content": [
45
- "CodeBuddy's technology ecosystem is built around enterprise development scenarios:",
46
- "ACP protocol support: CodeBuddy CLI supports the ACP protocol, enabling standardized interoperability with other ACP-compatible AI tools.",
47
- "Deep enterprise tech stack adaptation: CodeBuddy has deep adaptation for mainstream enterprise stacks like Java Spring, .NET, and microservice architectures, producing code that excels in enterprise framework conventions.",
48
- "CI/CD integration: CodeBuddy can integrate into existing enterprise CI/CD pipelines, applying AI capabilities during code commit, build, and deployment stages."
49
- ]
50
- }
18
+ "id": "codebuddy-vs-hagicode-section-1-answer",
19
+ "type": "rich-text",
20
+ "content": [
21
+ "CodeBuddy Code is the command-line coding agent from Tencent Cloud's CodeBuddy product line, which also includes an IDE and editor plugins. HagiCode is a desktop and web workbench that runs CodeBuddy as one of its executors. It does not replace CodeBuddy and does not host models.",
22
+ "If you want an agent in your terminal, you use your CodeBuddy account, and you work on one task at a time, CodeBuddy alone is enough. HagiCode is for the point where you want several CodeBuddy tasks running side by side, written proposals before code changes, or one workspace across several repositories."
51
23
  ]
52
24
  }
53
25
  ]
54
26
  },
55
27
  {
56
28
  "id": "codebuddy-vs-hagicode-section-2",
57
- "title": "Why CodeBuddy CLI Needs HagiCode",
29
+ "title": "CodeBuddy vs HagiCode at a glance",
58
30
  "blocks": [
59
31
  {
60
- "id": "codebuddy-vs-hagicode-section-2-intro",
61
- "type": "rich-text",
62
- "content": [
63
- "CodeBuddy's enterprise features excel in security and compliance, but enterprise development is never just about writing code — task orchestration, project management, knowledge accumulation, multi-repo coordination — these daily enterprise development needs require a platform like HagiCode to carry them."
64
- ]
65
- },
66
- {
67
- "id": "codebuddy-vs-hagicode-section-2-capabilities",
68
- "type": "capability-list",
69
- "items": [
32
+ "id": "codebuddy-vs-hagicode-section-2-table",
33
+ "type": "comparison-table",
34
+ "headers": [
35
+ "Aspect",
36
+ "CodeBuddy Code",
37
+ "HagiCode"
38
+ ],
39
+ "rows": [
70
40
  {
71
- "id": "codebuddy-vs-hagicode-section-2-item-1",
72
- "title": "Multi-threaded parallelism: Let CodeBuddy handle multiple enterprise tasks simultaneously",
73
- "content": [
74
- "CodeBuddy can do a lot inside one session, but real delivery rarely happens one task at a time.",
75
- "HagiCode lets you run multiple CodeBuddy 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": "codebuddy-vs-hagicode-section-2-row-1",
42
+ "cells": [
43
+ "What it is",
44
+ "Terminal AI coding agent from Tencent Cloud; sibling products are the CodeBuddy IDE and editor plugins",
45
+ "Desktop and web workbench that runs Agent CLIs, CodeBuddy among them; not a model or an agent itself"
83
46
  ]
84
47
  },
85
48
  {
86
- "id": "codebuddy-vs-hagicode-section-2-item-2",
87
- "title": "OpenSpec proposal sessions: Make CodeBuddy's enterprise changes auditable",
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 CodeBuddy'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 CodeBuddy within the proposal framework — all conversations and decisions are recorded in the proposal context;",
96
- "Once the approach is confirmed, CodeBuddy 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": "codebuddy-vs-hagicode-section-2-row-2",
50
+ "cells": [
51
+ "Interface and platforms",
52
+ "Terminal, with -p for scripted runs; native binary for macOS, Linux and Windows (beta), or npm and Homebrew",
53
+ "Desktop app for Windows, macOS and Linux; Docker Compose container; Microsoft Store edition"
98
54
  ]
99
55
  },
100
56
  {
101
- "id": "codebuddy-vs-hagicode-section-2-item-3",
102
- "title": "AI commits: Automatically enforce enterprise commit standards for CodeBuddy",
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 CodeBuddy: 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 CodeBuddy handle the commit paperwork."
57
+ "id": "codebuddy-vs-hagicode-section-2-row-3",
58
+ "cells": [
59
+ "Pricing and licensing",
60
+ "Free, Pro (about $10 per month) and Team (about $40 per seat) plans, credit-based; as of October 2026, per Tencent Cloud's billing page",
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": "codebuddy-vs-hagicode-section-2-item-4",
111
- "title": "Code Server browser editor: From CodeBuddy's security analysis directly into editing",
112
- "content": [
113
- "After CodeBuddy 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 CodeBuddy'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 CodeBuddy 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 CodeBuddy references example code, you can jump in anytime for deeper study or practice."
65
+ "id": "codebuddy-vs-hagicode-section-2-row-4",
66
+ "cells": [
67
+ "Model and provider access",
68
+ "Models come with your CodeBuddy account and site; extra models via models.json with an OpenAI-compatible endpoint",
69
+ "Hosts no models; uses whatever your CodeBuddy install is signed in to; optional OmniRoute model catalog"
121
70
  ]
122
71
  },
123
72
  {
124
- "id": "codebuddy-vs-hagicode-section-2-item-5",
125
- "title": "HagiTask: Templatize CodeBuddy's enterprise development workflows",
126
- "content": [
127
- "CodeBuddy'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 CodeBuddy from 'communicating from scratch every time' to 'standing on the community's shoulders, one-click invocation of mature workflows.' You pick the template, CodeBuddy 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": "codebuddy-vs-hagicode-section-2-row-5",
74
+ "cells": [
75
+ "Parallel work",
76
+ "Sub-agents inside a session, and Agent Teams exposed over ACP",
77
+ "Several sessions side by side, each an Agent with a visible status"
135
78
  ]
136
79
  },
137
80
  {
138
- "id": "codebuddy-vs-hagicode-section-2-item-6",
139
- "title": "Gamified interface: Make enterprise AI programming less 'serious and dull'",
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
- "CodeBuddy 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 CodeBuddy's full capabilities."
81
+ "id": "codebuddy-vs-hagicode-section-2-row-6",
82
+ "cells": [
83
+ "Spec and planning workflow",
84
+ "Plan permission mode, /init for project context, hooks and skills",
85
+ "OpenSpec proposals: propose, validate, apply, archive; free editions allow 3 concurrent proposals"
148
86
  ]
149
87
  },
150
88
  {
151
- "id": "codebuddy-vs-hagicode-section-2-item-7",
152
- "title": "Agents management: Organize CodeBuddy's enterprise tasks into a manageable 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 CodeBuddy 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": "codebuddy-vs-hagicode-section-2-row-7",
90
+ "cells": [
91
+ "Git and commit handling",
92
+ "Built-in Git operations; can generate commit messages in the terminal",
93
+ "AI-composed commits, repository locked while committing, per-repo targeting with Monospecs"
162
94
  ]
163
95
  },
164
96
  {
165
- "id": "codebuddy-vs-hagicode-section-2-item-8",
166
- "title": "Monospecs multi-repo management: Let CodeBuddy understand enterprise microservice repo relationships",
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 CodeBuddy, 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 CodeBuddy an automatic cross-repo map when launching proposals:",
170
- "Monospecs essentially eliminates CodeBuddy's cognitive blind spots in cross-repo collaboration. CodeBuddy'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, CodeBuddy 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 CodeBuddy about that repo's tech stack, coding standards, and development conventions. CodeBuddy automatically reads the corresponding guidance when operating on different repos, always behaving in line with your team's standards."
97
+ "id": "codebuddy-vs-hagicode-section-2-row-8",
98
+ "cells": [
99
+ "Setup effort",
100
+ "One npm, Homebrew or script install, then sign in to the China, International or enterprise site",
101
+ "Needs CodeBuddy installed and signed in first, then HagiCode Desktop on top"
177
102
  ]
178
103
  },
179
104
  {
180
- "id": "codebuddy-vs-hagicode-section-2-item-9",
181
- "title": "Vault cross-project knowledge base: Turn CodeBuddy's enterprise knowledge into assets",
105
+ "id": "codebuddy-vs-hagicode-section-2-row-9",
106
+ "cells": [
107
+ "Best for",
108
+ "Terminal users in Tencent Cloud's ecosystem, scripts and CI",
109
+ "Parallel tasks, proposal-driven work and multi-repo projects"
110
+ ]
111
+ }
112
+ ]
113
+ }
114
+ ]
115
+ },
116
+ {
117
+ "id": "codebuddy-vs-hagicode-section-3",
118
+ "title": "What CodeBuddy does well",
119
+ "blocks": [
120
+ {
121
+ "id": "codebuddy-vs-hagicode-section-3-capabilities",
122
+ "type": "capability-list",
123
+ "items": [
124
+ {
125
+ "id": "codebuddy-vs-hagicode-section-3-item-1",
126
+ "title": "Several install routes",
182
127
  "content": [
183
- "CodeBuddy'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 CodeBuddy understand where projects are, Vault lets CodeBuddy remember what we've learned before. The former expands CodeBuddy's spatial vision, the latter extends CodeBuddy's temporal memory — together, CodeBuddy 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 — CodeBuddy 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 CodeBuddy's context. You don't need to manually copy code fragments or re-explain project backgrounds — CodeBuddy 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 — CodeBuddy can read and analyze but not modify, preventing accidental changes. Your own project Vaults set to editable let CodeBuddy 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 CodeBuddy 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
+ "CodeBuddy Code installs with `npm install -g @tencent-ai/codebuddy-code` (Node.js 18.20 or later), or through Homebrew with `brew install Tencent-CodeBuddy/tap/codebuddy-code`. Homebrew does not need Node.js, and a beta native binary does not either, and `codebuddy install` migrates an npm install to it.",
129
+ "The command is `codebuddy` (the docs also mention a `cbc` alias); check it with `codebuddy --version`. `codebuddy update` upgrades it, and auto-update is on by default."
192
130
  ]
193
131
  },
194
132
  {
195
- "id": "codebuddy-vs-hagicode-section-2-item-10",
196
- "title": "OmniRoute model routing: Make enterprise model procurement strategies more flexible",
133
+ "id": "codebuddy-vs-hagicode-section-3-item-2",
134
+ "title": "Sign-in by region and by organisation",
197
135
  "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 CodeBuddy 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."
136
+ "On first launch you choose where to sign in: the China site, the International site, an enterprise domain for dedicated deployments, or iOA for Tencent staff. The China and International sites expose different model sets, so check which one your account belongs to before comparing models."
207
137
  ]
208
138
  },
209
139
  {
210
- "id": "codebuddy-vs-hagicode-section-2-item-11",
211
- "title": "Unified tool-call view: see CodeBuddy CLI's tool use in one consistent shape",
140
+ "id": "codebuddy-vs-hagicode-section-3-item-3",
141
+ "title": "Scriptable and permission-aware",
212
142
  "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 CodeBuddy 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."
143
+ "`codebuddy -p` runs a single prompt and accepts piped input, so it works in shell pipelines, for example `cat error.log | codebuddy -p \"...\"`. Shift+Tab cycles permission modes (default, bypass, accept edits, plan), and `-y` skips confirmations for runs that need file or command access."
220
144
  ]
221
145
  },
222
146
  {
223
- "id": "codebuddy-vs-hagicode-section-2-item-12",
224
- "title": "Usage at a glance: today's tokens and cost in the status bar",
147
+ "id": "codebuddy-vs-hagicode-section-3-item-4",
148
+ "title": "Extensibility and enterprise reach",
225
149
  "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."
150
+ "Docs cover MCP servers, sub-agents, plugins, skills, hooks, Python and TypeScript SDKs, GitHub Actions and a web UI. Models can be added in `~/.codebuddy/models.json` or per project, and enterprise deployments can run in containers. `codebuddy --acp` exposes it as an ACP server with a context-window option and Agent Teams status, which is the interface HagiCode uses."
233
151
  ]
234
152
  }
235
153
  ]
@@ -237,30 +155,168 @@
237
155
  ]
238
156
  },
239
157
  {
240
- "id": "codebuddy-vs-hagicode-section-3",
241
- "title": "Summary",
158
+ "id": "codebuddy-vs-hagicode-section-4",
159
+ "title": "When to choose CodeBuddy, and when to choose HagiCode",
242
160
  "blocks": [
243
161
  {
244
- "id": "codebuddy-vs-hagicode-section-3-intro",
162
+ "id": "codebuddy-vs-hagicode-section-4-choose-agent",
163
+ "type": "bullet-list",
164
+ "items": [
165
+ "you work in a terminal and one task at a time is enough;",
166
+ "you are already in Tencent Cloud's ecosystem or on an enterprise CodeBuddy domain;",
167
+ "you want scripted runs with `codebuddy -p`, piped input or GitHub Actions;",
168
+ "you want the lightest route: a Homebrew or native-binary install with no extra application;",
169
+ "you prefer its own permission modes, hooks and plugins to a separate workbench."
170
+ ]
171
+ },
172
+ {
173
+ "id": "codebuddy-vs-hagicode-section-4-choose-hagicode",
174
+ "type": "bullet-list",
175
+ "items": [
176
+ "you run several CodeBuddy tasks at once and want them in one view;",
177
+ "you want a reviewed proposal before the agent edits code, archived afterwards;",
178
+ "a CodeBuddy task needs edits in more than one repository and you want to plan it once;",
179
+ "you want CodeBuddy's changes committed with generated messages, without leaving the window for an editor;",
180
+ "you use CodeBuddy alongside other Agent CLIs and want one workspace."
181
+ ]
182
+ },
183
+ {
184
+ "id": "codebuddy-vs-hagicode-section-4-not-a-fit",
185
+ "type": "callout",
186
+ "tone": "warning",
187
+ "title": "Where HagiCode is not the right tool",
188
+ "content": [
189
+ "Scripts and CI runs should call `codebuddy -p` directly; a desktop workbench adds nothing there.",
190
+ "If you only want a terminal, or you have one quick question and an editor already open, HagiCode is more than you need.",
191
+ "HagiCode needs CodeBuddy installed and signed in first, so setup is longer than using CodeBuddy 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.",
192
+ "CodeBuddy's own IDE and editor plugins are separate products; HagiCode drives only the CLI."
193
+ ]
194
+ }
195
+ ]
196
+ },
197
+ {
198
+ "id": "codebuddy-vs-hagicode-section-5",
199
+ "title": "Using CodeBuddy together with HagiCode",
200
+ "blocks": [
201
+ {
202
+ "id": "codebuddy-vs-hagicode-section-5-intro",
245
203
  "type": "rich-text",
246
204
  "content": [
247
- "CodeBuddy CLI is an enterprise-grade AI coding assistant known for its security, compliance, and team collaboration capabilities. HagiCode is a comprehensive AI programming workbench. Their relationship is complementary:",
248
- "If you're already using CodeBuddy CLI, try connecting it to HagiCode — you'll find CodeBuddy's security and compliance advantages are no longer just 'standout features of a single tool,' but part of a complete enterprise-grade AI development system powered by a full workflow platform."
205
+ "HagiCode sits on top of the CLI. It starts your CodeBuddy install over ACP, so your account, region and credits stay with CodeBuddy and HagiCode does not take over its sign-in.",
206
+ "Nothing is locked in. Your repositories and your `.codebuddy` settings stay where they are, and you can run `codebuddy` on the same project whenever you like."
249
207
  ]
250
208
  },
251
209
  {
252
- "id": "codebuddy-vs-hagicode-section-3-bullets",
210
+ "id": "codebuddy-vs-hagicode-section-5-steps",
211
+ "type": "bullet-list",
212
+ "items": [
213
+ "Install CodeBuddy Code with npm, Homebrew or the native installer, and confirm it with `codebuddy --version`.",
214
+ "Run `codebuddy` once and sign in on the site that matches your account (China, International or enterprise).",
215
+ "Install HagiCode Desktop for Windows, macOS or Linux, or use the Docker Compose or Microsoft Store edition.",
216
+ "In HagiCode's Agent CLI settings, pick CodeBuddy as the executor; HagiCode looks for the `codebuddy` command on your PATH.",
217
+ "Open a repository and start a session or an OpenSpec proposal; CodeBuddy's tool calls appear in HagiCode's unified view.",
218
+ "To go back, close HagiCode and run `codebuddy` in the same folder; nothing needs to be undone."
219
+ ]
220
+ },
221
+ {
222
+ "id": "codebuddy-vs-hagicode-section-5-notes",
223
+ "type": "callout",
224
+ "tone": "info",
225
+ "title": "What works with CodeBuddy inside HagiCode",
226
+ "content": [
227
+ "Parallel sessions, Agents management, OpenSpec proposals, AI commits, Code Server, Monospecs, Vault and the unified tool-call view work with CodeBuddy sessions.",
228
+ "Interactive questions are available only for Claude, Pi, OMP and Reasonix, and the agent work panel only for Claude Code, so neither appears for CodeBuddy. Which models you can pick depends on the site you signed in to."
229
+ ]
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "id": "codebuddy-vs-hagicode-section-6",
235
+ "title": "What HagiCode adds on top of any agent",
236
+ "blocks": [
237
+ {
238
+ "id": "codebuddy-vs-hagicode-section-6-capabilities",
239
+ "type": "capability-list",
240
+ "items": [
241
+ {
242
+ "id": "codebuddy-vs-hagicode-section-6-item-1",
243
+ "title": "Parallel sessions and Agents management",
244
+ "content": [
245
+ "Each CodeBuddy session becomes an Agent with its own context and a status you can scan, instead of one more terminal running `codebuddy`. That helps most when you start tasks across several folders."
246
+ ]
247
+ },
248
+ {
249
+ "id": "codebuddy-vs-hagicode-section-6-item-2",
250
+ "title": "OpenSpec proposals",
251
+ "content": [
252
+ "A task can begin as an OpenSpec proposal you write, validate, apply and archive. CodeBuddy implements within it, and the proposal keeps the reasoning that a terminal scrollback loses."
253
+ ]
254
+ },
255
+ {
256
+ "id": "codebuddy-vs-hagicode-section-6-item-3",
257
+ "title": "AI commit and Code Server",
258
+ "content": [
259
+ "HagiCode drafts the commit message from CodeBuddy's changes and locks the repository while it commits. The embedded Code Server editor opens the files CodeBuddy touched next to the conversation."
260
+ ]
261
+ },
262
+ {
263
+ "id": "codebuddy-vs-hagicode-section-6-item-4",
264
+ "title": "Monospecs and Vault",
265
+ "content": [
266
+ "Monospecs lists the repositories of a multi-repo workspace so a CodeBuddy task sees all of them. Vault keeps reference projects and notes available to later sessions, including those started in a fresh `codebuddy` process."
267
+ ]
268
+ },
269
+ {
270
+ "id": "codebuddy-vs-hagicode-section-6-item-5",
271
+ "title": "Model routing, tool-call view and usage",
272
+ "content": [
273
+ "CodeBuddy'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."
274
+ ]
275
+ }
276
+ ]
277
+ }
278
+ ]
279
+ },
280
+ {
281
+ "id": "codebuddy-vs-hagicode-section-7",
282
+ "title": "The bottom line",
283
+ "blocks": [
284
+ {
285
+ "id": "codebuddy-vs-hagicode-section-7-bullets",
253
286
  "type": "bullet-list",
254
287
  "items": [
255
- "CodeBuddy provides security and compliance: fine-grained permissions, code security assurance, compliance support;",
256
- "HagiCode provides efficiency: multi-threaded parallelism, Agents fleet management, OpenSpec proposals, AI commits, Code Server editor, HagiTasks;",
257
- "HagiCode expands boundaries: Monospecs lets CodeBuddy understand cross-repo project relationships, Vault gives CodeBuddy cross-session long-term memory, OmniRoute frees CodeBuddy 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."
288
+ "CodeBuddy Code is the agent in your terminal; HagiCode is the workbench that runs it.",
289
+ "Use CodeBuddy alone for solo, single-task or scripted work; add HagiCode for parallel tasks, proposals and multi-repo changes.",
290
+ "CodeBuddy must be installed and signed in first, and you can go back to running `codebuddy` directly at any time."
261
291
  ]
262
292
  }
263
293
  ]
264
294
  }
295
+ ],
296
+ "faq": [
297
+ {
298
+ "question": "How do I install CodeBuddy Code?",
299
+ "answer": "Run `npm install -g @tencent-ai/codebuddy-code` (Node.js 18.20 or later), or on macOS and Linux `brew install Tencent-CodeBuddy/tap/codebuddy-code`. A beta native binary needs no Node.js. Then run `codebuddy --version` and `codebuddy` to sign in. See the docs at codebuddy.ai/docs/cli/installation."
300
+ },
301
+ {
302
+ "question": "Is CodeBuddy free?",
303
+ "answer": "CodeBuddy has a free plan with a small monthly credit allowance, plus Pro and Team plans (Pro about $10 per month, Team about $40 per seat, as of October 2026). Tencent Cloud's billing page does not say which plans include the CLI, so check it before relying on the free tier."
304
+ },
305
+ {
306
+ "question": "Can I use CodeBuddy with HagiCode?",
307
+ "answer": "Yes. Install and sign in to CodeBuddy Code, then choose it as the Agent CLI in HagiCode. HagiCode drives it over ACP, and your account and credits stay with CodeBuddy."
308
+ },
309
+ {
310
+ "question": "Does HagiCode replace CodeBuddy?",
311
+ "answer": "No. HagiCode runs CodeBuddy as its executor and adds sessions, proposals, commits and multi-repo tools around it. You can still run `codebuddy` on the same repositories."
312
+ },
313
+ {
314
+ "question": "What is the CodeBuddy command?",
315
+ "answer": "The command is `codebuddy`, with `cbc` mentioned as a short alias in the docs. The npm package is @tencent-ai/codebuddy-code."
316
+ },
317
+ {
318
+ "question": "CodeBuddy vs HagiCode: which should I pick?",
319
+ "answer": "Pick CodeBuddy alone for terminal, solo or scripted work. Add HagiCode when you want parallel sessions, OpenSpec proposals or multi-repo workspaces on top of CodeBuddy."
320
+ }
265
321
  ]
266
322
  }