@codemieai/code 0.0.11 → 0.0.13

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 (205) hide show
  1. package/README.md +70 -861
  2. package/dist/agents/codemie-code/agent.d.ts.map +1 -1
  3. package/dist/agents/codemie-code/agent.js +35 -4
  4. package/dist/agents/codemie-code/agent.js.map +1 -1
  5. package/dist/agents/codemie-code/tools/index.d.ts.map +1 -1
  6. package/dist/agents/codemie-code/tools/index.js +5 -3
  7. package/dist/agents/codemie-code/tools/index.js.map +1 -1
  8. package/dist/agents/core/AgentCLI.d.ts.map +1 -1
  9. package/dist/agents/core/AgentCLI.js +57 -11
  10. package/dist/agents/core/AgentCLI.js.map +1 -1
  11. package/dist/agents/core/BaseAgentAdapter.d.ts +4 -4
  12. package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
  13. package/dist/agents/core/BaseAgentAdapter.js +59 -23
  14. package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
  15. package/dist/agents/core/types.d.ts +18 -0
  16. package/dist/agents/core/types.d.ts.map +1 -1
  17. package/dist/agents/plugins/claude.plugin.d.ts +0 -3
  18. package/dist/agents/plugins/claude.plugin.d.ts.map +1 -1
  19. package/dist/agents/plugins/claude.plugin.js +12 -1
  20. package/dist/agents/plugins/claude.plugin.js.map +1 -1
  21. package/dist/agents/plugins/codemie-code.plugin.js +1 -1
  22. package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
  23. package/dist/agents/plugins/codex.plugin.d.ts.map +1 -1
  24. package/dist/agents/plugins/codex.plugin.js +40 -4
  25. package/dist/agents/plugins/codex.plugin.js.map +1 -1
  26. package/dist/agents/plugins/gemini.plugin.d.ts.map +1 -1
  27. package/dist/agents/plugins/gemini.plugin.js +51 -6
  28. package/dist/agents/plugins/gemini.plugin.js.map +1 -1
  29. package/dist/agents/registry.d.ts +15 -2
  30. package/dist/agents/registry.d.ts.map +1 -1
  31. package/dist/agents/registry.js +30 -6
  32. package/dist/agents/registry.js.map +1 -1
  33. package/dist/analytics/aggregation/adapters/claude.adapter.d.ts +37 -0
  34. package/dist/analytics/aggregation/adapters/claude.adapter.d.ts.map +1 -0
  35. package/dist/analytics/aggregation/adapters/claude.adapter.js +471 -0
  36. package/dist/analytics/aggregation/adapters/claude.adapter.js.map +1 -0
  37. package/dist/analytics/aggregation/adapters/codex.adapter.d.ts +25 -0
  38. package/dist/analytics/aggregation/adapters/codex.adapter.d.ts.map +1 -0
  39. package/dist/analytics/aggregation/adapters/codex.adapter.js +376 -0
  40. package/dist/analytics/aggregation/adapters/codex.adapter.js.map +1 -0
  41. package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts +28 -0
  42. package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts.map +1 -0
  43. package/dist/analytics/aggregation/adapters/gemini.adapter.js +320 -0
  44. package/dist/analytics/aggregation/adapters/gemini.adapter.js.map +1 -0
  45. package/dist/analytics/aggregation/adapters/index.d.ts +7 -0
  46. package/dist/analytics/aggregation/adapters/index.d.ts.map +1 -0
  47. package/dist/analytics/aggregation/adapters/index.js +7 -0
  48. package/dist/analytics/aggregation/adapters/index.js.map +1 -0
  49. package/dist/analytics/aggregation/aggregator.d.ts +49 -0
  50. package/dist/analytics/aggregation/aggregator.d.ts.map +1 -0
  51. package/dist/analytics/aggregation/aggregator.js +239 -0
  52. package/dist/analytics/aggregation/aggregator.js.map +1 -0
  53. package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts +63 -0
  54. package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts.map +1 -0
  55. package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js +58 -0
  56. package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js.map +1 -0
  57. package/dist/analytics/aggregation/core/adapter.interface.d.ts +65 -0
  58. package/dist/analytics/aggregation/core/adapter.interface.d.ts.map +1 -0
  59. package/dist/analytics/aggregation/core/adapter.interface.js +9 -0
  60. package/dist/analytics/aggregation/core/adapter.interface.js.map +1 -0
  61. package/dist/analytics/aggregation/core/aggregation-utils.d.ts +66 -0
  62. package/dist/analytics/aggregation/core/aggregation-utils.d.ts.map +1 -0
  63. package/dist/analytics/aggregation/core/aggregation-utils.js +83 -0
  64. package/dist/analytics/aggregation/core/aggregation-utils.js.map +1 -0
  65. package/dist/analytics/aggregation/core/discovery.d.ts +40 -0
  66. package/dist/analytics/aggregation/core/discovery.d.ts.map +1 -0
  67. package/dist/analytics/aggregation/core/discovery.js +132 -0
  68. package/dist/analytics/aggregation/core/discovery.js.map +1 -0
  69. package/dist/analytics/aggregation/core/file-utils.d.ts +23 -0
  70. package/dist/analytics/aggregation/core/file-utils.d.ts.map +1 -0
  71. package/dist/analytics/aggregation/core/file-utils.js +208 -0
  72. package/dist/analytics/aggregation/core/file-utils.js.map +1 -0
  73. package/dist/analytics/aggregation/core/index.d.ts +11 -0
  74. package/dist/analytics/aggregation/core/index.d.ts.map +1 -0
  75. package/dist/analytics/aggregation/core/index.js +11 -0
  76. package/dist/analytics/aggregation/core/index.js.map +1 -0
  77. package/dist/analytics/aggregation/core/project-mapping.d.ts +50 -0
  78. package/dist/analytics/aggregation/core/project-mapping.d.ts.map +1 -0
  79. package/dist/analytics/aggregation/core/project-mapping.js +102 -0
  80. package/dist/analytics/aggregation/core/project-mapping.js.map +1 -0
  81. package/dist/analytics/aggregation/core/streaming.d.ts +26 -0
  82. package/dist/analytics/aggregation/core/streaming.d.ts.map +1 -0
  83. package/dist/analytics/aggregation/core/streaming.js +58 -0
  84. package/dist/analytics/aggregation/core/streaming.js.map +1 -0
  85. package/dist/analytics/aggregation/index.d.ts +8 -0
  86. package/dist/analytics/aggregation/index.d.ts.map +1 -0
  87. package/dist/analytics/aggregation/index.js +8 -0
  88. package/dist/analytics/aggregation/index.js.map +1 -0
  89. package/dist/analytics/aggregation/types.d.ts +258 -0
  90. package/dist/analytics/aggregation/types.d.ts.map +1 -0
  91. package/dist/analytics/aggregation/types.js +8 -0
  92. package/dist/analytics/aggregation/types.js.map +1 -0
  93. package/dist/analytics/collector.d.ts +46 -0
  94. package/dist/analytics/collector.d.ts.map +1 -0
  95. package/dist/analytics/collector.js +83 -0
  96. package/dist/analytics/collector.js.map +1 -0
  97. package/dist/analytics/config.d.ts +15 -0
  98. package/dist/analytics/config.d.ts.map +1 -0
  99. package/dist/analytics/config.js +65 -0
  100. package/dist/analytics/config.js.map +1 -0
  101. package/dist/analytics/index.d.ts +99 -0
  102. package/dist/analytics/index.d.ts.map +1 -0
  103. package/dist/analytics/index.js +288 -0
  104. package/dist/analytics/index.js.map +1 -0
  105. package/dist/analytics/plugins/api-metrics.plugin.d.ts +26 -0
  106. package/dist/analytics/plugins/api-metrics.plugin.d.ts.map +1 -0
  107. package/dist/analytics/plugins/api-metrics.plugin.js +97 -0
  108. package/dist/analytics/plugins/api-metrics.plugin.js.map +1 -0
  109. package/dist/analytics/plugins/index.d.ts +15 -0
  110. package/dist/analytics/plugins/index.d.ts.map +1 -0
  111. package/dist/analytics/plugins/index.js +15 -0
  112. package/dist/analytics/plugins/index.js.map +1 -0
  113. package/dist/analytics/plugins/model-metrics.plugin.d.ts +39 -0
  114. package/dist/analytics/plugins/model-metrics.plugin.d.ts.map +1 -0
  115. package/dist/analytics/plugins/model-metrics.plugin.js +105 -0
  116. package/dist/analytics/plugins/model-metrics.plugin.js.map +1 -0
  117. package/dist/analytics/plugins/provider-metrics.plugin.d.ts +41 -0
  118. package/dist/analytics/plugins/provider-metrics.plugin.d.ts.map +1 -0
  119. package/dist/analytics/plugins/provider-metrics.plugin.js +123 -0
  120. package/dist/analytics/plugins/provider-metrics.plugin.js.map +1 -0
  121. package/dist/analytics/plugins/types.d.ts +61 -0
  122. package/dist/analytics/plugins/types.d.ts.map +1 -0
  123. package/dist/analytics/plugins/types.js +54 -0
  124. package/dist/analytics/plugins/types.js.map +1 -0
  125. package/dist/analytics/privacy.d.ts +10 -0
  126. package/dist/analytics/privacy.d.ts.map +1 -0
  127. package/dist/analytics/privacy.js +20 -0
  128. package/dist/analytics/privacy.js.map +1 -0
  129. package/dist/analytics/session.d.ts +56 -0
  130. package/dist/analytics/session.d.ts.map +1 -0
  131. package/dist/analytics/session.js +95 -0
  132. package/dist/analytics/session.js.map +1 -0
  133. package/dist/analytics/types.d.ts +104 -0
  134. package/dist/analytics/types.d.ts.map +1 -0
  135. package/dist/analytics/types.js +15 -0
  136. package/dist/analytics/types.js.map +1 -0
  137. package/dist/analytics/writer.d.ts +18 -0
  138. package/dist/analytics/writer.d.ts.map +1 -0
  139. package/dist/analytics/writer.js +44 -0
  140. package/dist/analytics/writer.js.map +1 -0
  141. package/dist/cli/commands/analytics.d.ts +3 -0
  142. package/dist/cli/commands/analytics.d.ts.map +1 -0
  143. package/dist/cli/commands/analytics.js +579 -0
  144. package/dist/cli/commands/analytics.js.map +1 -0
  145. package/dist/cli/commands/config.d.ts.map +1 -1
  146. package/dist/cli/commands/config.js +14 -0
  147. package/dist/cli/commands/config.js.map +1 -1
  148. package/dist/cli/commands/profile.d.ts.map +1 -1
  149. package/dist/cli/commands/profile.js +41 -0
  150. package/dist/cli/commands/profile.js.map +1 -1
  151. package/dist/cli/commands/setup.js +70 -1
  152. package/dist/cli/commands/setup.js.map +1 -1
  153. package/dist/cli/index.js +2 -0
  154. package/dist/cli/index.js.map +1 -1
  155. package/dist/env/types.d.ts +2 -0
  156. package/dist/env/types.d.ts.map +1 -1
  157. package/dist/env/types.js.map +1 -1
  158. package/dist/utils/analytics-reader.d.ts +117 -0
  159. package/dist/utils/analytics-reader.d.ts.map +1 -0
  160. package/dist/utils/analytics-reader.js +421 -0
  161. package/dist/utils/analytics-reader.js.map +1 -0
  162. package/dist/utils/codemie-integration-validator.d.ts.map +1 -1
  163. package/dist/utils/codemie-integration-validator.js +3 -16
  164. package/dist/utils/codemie-integration-validator.js.map +1 -1
  165. package/dist/utils/codemie-proxy.d.ts +80 -0
  166. package/dist/utils/codemie-proxy.d.ts.map +1 -0
  167. package/dist/utils/codemie-proxy.js +348 -0
  168. package/dist/utils/codemie-proxy.js.map +1 -0
  169. package/dist/utils/config-loader.d.ts +7 -0
  170. package/dist/utils/config-loader.d.ts.map +1 -1
  171. package/dist/utils/config-loader.js +18 -0
  172. package/dist/utils/config-loader.js.map +1 -1
  173. package/dist/utils/date-formatter.d.ts +88 -0
  174. package/dist/utils/date-formatter.d.ts.map +1 -0
  175. package/dist/utils/date-formatter.js +133 -0
  176. package/dist/utils/date-formatter.js.map +1 -0
  177. package/dist/utils/installation-id.d.ts +10 -0
  178. package/dist/utils/installation-id.d.ts.map +1 -0
  179. package/dist/utils/installation-id.js +30 -0
  180. package/dist/utils/installation-id.js.map +1 -0
  181. package/dist/utils/logger.d.ts +1 -15
  182. package/dist/utils/logger.d.ts.map +1 -1
  183. package/dist/utils/logger.js +5 -86
  184. package/dist/utils/logger.js.map +1 -1
  185. package/dist/utils/proxy/errors.d.ts +45 -0
  186. package/dist/utils/proxy/errors.d.ts.map +1 -0
  187. package/dist/utils/proxy/errors.js +103 -0
  188. package/dist/utils/proxy/errors.js.map +1 -0
  189. package/dist/utils/proxy/http-client.d.ts +46 -0
  190. package/dist/utils/proxy/http-client.d.ts.map +1 -0
  191. package/dist/utils/proxy/http-client.js +139 -0
  192. package/dist/utils/proxy/http-client.js.map +1 -0
  193. package/dist/utils/proxy/interceptors.d.ts +69 -0
  194. package/dist/utils/proxy/interceptors.d.ts.map +1 -0
  195. package/dist/utils/proxy/interceptors.js +308 -0
  196. package/dist/utils/proxy/interceptors.js.map +1 -0
  197. package/dist/utils/proxy/types.d.ts +45 -0
  198. package/dist/utils/proxy/types.d.ts.map +1 -0
  199. package/dist/utils/proxy/types.js +7 -0
  200. package/dist/utils/proxy/types.js.map +1 -0
  201. package/package.json +43 -6
  202. package/dist/utils/sso-gateway.d.ts +0 -75
  203. package/dist/utils/sso-gateway.d.ts.map +0 -1
  204. package/dist/utils/sso-gateway.js +0 -453
  205. package/dist/utils/sso-gateway.js.map +0 -1
package/README.md CHANGED
@@ -1,77 +1,33 @@
1
1
  # AI/Run CodeMie CLI
2
2
 
3
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/codemie-ai/codemie-code/ci.yml?branch=main)](https://github.com/codemie-ai/codemie-code/actions/workflows/ci.yml)
3
4
  [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
4
5
  [![npm version](https://img.shields.io/npm/v/@codemieai/code.svg)](https://www.npmjs.com/package/@codemieai/code)
6
+ [![Node.js Version](https://img.shields.io/badge/node-%3E%3D24.0.0-brightgreen.svg)](https://nodejs.org/)
7
+ [![TypeScript](https://img.shields.io/badge/TypeScript-5.3%2B-blue.svg)](https://www.typescriptlang.org/)
5
8
 
6
- > Professional CLI wrapper for managing multiple AI coding agents
7
-
8
- ## Table of Contents
9
-
10
- - [Synopsis](#synopsis)
11
- - [Quick Start](#quick-start)
12
- - [Installation](#installation)
13
- - [From npm (Recommended)](#from-npm-recommended)
14
- - [From Source (Development)](#from-source-development)
15
- - [Verify Installation](#verify-installation)
16
- - [Usage](#usage)
17
- - [Built-in Agent (CodeMie Native)](#built-in-agent-codemie-native)
18
- - [External Agents](#external-agents)
19
- - [Commands](#commands)
20
- - [Core Commands](#core-commands)
21
- - [Agent Shortcuts](#agent-shortcuts)
22
- - [Configuration Commands](#configuration-commands)
23
- - [Profile Management Commands](#profile-management-commands)
24
- - [Configuration](#configuration)
25
- - [Setup Wizard (Recommended)](#setup-wizard-recommended)
26
- - [Multi-Provider Profiles](#multi-provider-profiles)
27
- - [Supported Providers](#supported-providers)
28
- - [Manual Configuration](#manual-configuration)
29
- - [Model Compatibility](#model-compatibility)
30
- - [Authentication & SSO Management](#authentication--sso-management)
31
- - [AI/Run CodeMie SSO Setup](#airun-codemie-sso-setup)
32
- - [Token Management](#token-management)
33
- - [Enterprise SSO Features](#enterprise-sso-features)
34
- - [Examples](#examples)
35
- - [Common Workflows](#common-workflows)
36
- - [Configuration Examples](#configuration-examples)
37
- - [Advanced Usage](#advanced-usage)
38
- - [Agents](#agents)
39
- - [CodeMie Native (Built-in)](#codemie-native-built-in)
40
- - [Claude Code](#claude-code)
41
- - [Codex](#codex)
42
- - [Gemini CLI](#gemini-cli)
43
- - [Deep Agents CLI](#deep-agents-cli)
44
- - [Troubleshooting](#troubleshooting)
45
- - [Command Not Found](#command-not-found)
46
- - [Configuration Issues](#configuration-issues)
47
- - [Connection Problems](#connection-problems)
48
- - [Agent Installation Failures](#agent-installation-failures)
49
- - [Model Compatibility Errors](#model-compatibility-errors)
50
- - [Development](#development)
51
- - [Project Structure](#project-structure)
52
- - [Building](#building)
53
- - [Testing](#testing)
54
- - [License](#license)
55
- - [Links](#links)
56
-
57
- ## Synopsis
9
+ > **Unified AI Coding Assistant CLI** - Manage Claude Code, OpenAI Codex, Google Gemini, and custom AI agents from one powerful command-line interface. Multi-provider support (OpenAI, Azure OpenAI, AWS Bedrock, LiteLLM, Enterprise SSO). Built-in LangGraph agent with file operations, git integration, and advanced code generation.
58
10
 
59
- ```bash
60
- codemie [COMMAND] [OPTIONS]
61
- codemie-code [MESSAGE] [OPTIONS]
62
- codemie-claude [-p MESSAGE] [OPTIONS]
63
- codemie-codex [-p MESSAGE] [OPTIONS]
64
- codemie-gemini [-m MODEL] [-p MESSAGE] [OPTIONS]
65
- ```
11
+ * * * * *
12
+
13
+ **(Suggestion: Add a GIF or screenshot of the CLI in action here)**
14
+
15
+ * * * * *
16
+
17
+ ## Why CodeMie CLI?
66
18
 
67
- AI/Run CodeMie CLI is a professional, unified CLI tool for installing, configuring, and running multiple AI coding agents from a single interface. It includes a built-in LangGraph-based agent (CodeMie Native) and supports external agents like Claude Code, Codex, and Gemini CLI.
19
+ CodeMie CLI is the all-in-one AI coding assistant for developers.
68
20
 
69
- All agent shortcuts (`codemie-*`) share common configuration options:
70
- - `--profile <name>` - Use specific provider profile
71
- - `--model <model>` - Override model
72
- - `--api-key <key>` - Override API key
73
- - `--base-url <url>` - Override base URL
74
- - `--debug` - Enable debug logging
21
+ **One CLI, Multiple AI Agents** - Switch between Claude Code, Codex, Gemini, Deep Agents, and built-in agent.
22
+ 🔄 **Multi-Provider Support** - OpenAI, Azure, Bedrock, LiteLLM, Google Gemini, and Enterprise SSO.
23
+ 🚀 **Built-in Agent** - A powerful LangGraph-based assistant with file operations and git integration.
24
+ 🔐 **Enterprise Ready** - SSO authentication, audit logging, and role-based access.
25
+ **Productivity Boost** - Code review, refactoring, test generation, and bug fixing.
26
+ 🎯 **Profile Management** - Manage work, personal, and team configurations separately.
27
+ 📊 **Usage Analytics** - Track and analyze AI usage across all agents with detailed insights.
28
+ 🔧 **CI/CD Workflows** - Automated code review, fixes, and feature implementation.
29
+
30
+ Perfect for developers seeking a powerful alternative to GitHub Copilot or Cursor.
75
31
 
76
32
  ## Quick Start
77
33
 
@@ -82,29 +38,12 @@ npm install -g @codemieai/code
82
38
  # 2. Setup (interactive wizard)
83
39
  codemie setup
84
40
 
85
- # 3. View supported agents
86
- codemie list
87
-
88
- # 4. Install external agents (optional)
89
- codemie install claude # Claude Code
90
- codemie install codex # OpenAI Codex
91
- codemie install gemini # Google Gemini CLI
92
-
93
- # 5. Manage profiles (multi-provider support)
94
- codemie profile list # List all profiles
95
- codemie profile switch work # Switch to different profile
96
- codemie setup # Add new profile or update existing
97
-
98
- # 6. Start coding with built-in agent
41
+ # 3. Start coding with the built-in agent
99
42
  codemie-code "Review my code for bugs"
100
43
 
101
- # 7. Use external agents
44
+ # 4. Install and use other agents
45
+ codemie install claude
102
46
  codemie-claude "Refactor this function"
103
- codemie-codex "Add unit tests"
104
- codemie-gemini "Optimize performance"
105
-
106
- # 8. Use specific profile for a task
107
- codemie-code --profile work "Deploy to production"
108
47
  ```
109
48
 
110
49
  ## Installation
@@ -115,12 +54,13 @@ codemie-code --profile work "Deploy to production"
115
54
  npm install -g @codemieai/code
116
55
  ```
117
56
 
118
- ### From Source (Development)
57
+ ### From Source
119
58
 
120
59
  ```bash
121
60
  git clone https://github.com/codemie-ai/codemie-code.git
122
61
  cd codemie-code
123
- npm install && npm run build && npm link
62
+ npm install
63
+ npm run build && npm link
124
64
  ```
125
65
 
126
66
  ### Verify Installation
@@ -132,825 +72,94 @@ codemie doctor
132
72
 
133
73
  ## Usage
134
74
 
75
+ The CodeMie CLI provides two ways to interact with AI agents:
76
+
135
77
  ### Built-in Agent (CodeMie Native)
136
78
 
137
- Ready to use immediately - no installation required:
79
+ The built-in agent is ready to use immediately and is great for a wide range of coding tasks.
138
80
 
139
81
  ```bash
140
- # Interactive conversation
82
+ # Start an interactive conversation
141
83
  codemie-code
142
84
 
143
- # Start with initial message
85
+ # Start with an initial message
144
86
  codemie-code "Help me refactor this component"
145
-
146
- # Execute single task (via main CLI)
147
- codemie --task "fix bugs in src/utils"
148
-
149
- # Debug mode
150
- codemie-code --debug
151
87
  ```
152
88
 
153
89
  ### External Agents
154
90
 
155
- Install and run external agents:
91
+ You can also install and use external agents like Claude Code, Codex, and Gemini.
156
92
 
157
93
  ```bash
158
- # Install agents
94
+ # Install an agent
159
95
  codemie install claude
160
- codemie install codex
161
- codemie install gemini
162
96
 
163
- # Run via direct shortcuts (recommended)
97
+ # Use the agent
164
98
  codemie-claude "Review my API code"
165
- codemie-codex "Generate unit tests"
166
- codemie-gemini "Optimize performance"
167
-
168
- # With model override
169
- codemie-claude --model claude-4-5-sonnet "Fix security issues"
170
- codemie-codex --model gpt-4.1 "Add type annotations"
171
99
  ```
172
100
 
173
- ## Commands
101
+ For more detailed information on the available agents, see the [Agents Documentation](docs/AGENTS.md).
174
102
 
175
- ### Core Commands
176
-
177
- ```bash
178
- codemie setup # Interactive configuration wizard
179
- codemie profile <command> # Manage provider profiles
180
- codemie auth <command> # Manage SSO authentication
181
- codemie list # List all available agents
182
- codemie install <agent> # Install an agent
183
- codemie uninstall <agent> # Uninstall an agent
184
- codemie doctor # Health check and diagnostics
185
- codemie config <action> # Manage configuration
186
- codemie version # Show version information
187
- ```
188
-
189
- ### Agent Shortcuts
190
-
191
- Direct access to agents with automatic configuration:
192
-
193
- ```bash
194
- # Built-in agent
195
- codemie-code # Interactive mode
196
- codemie-code "message" # Start with initial message
197
- codemie-code health # Health check
198
-
199
- # External agents (direct invocation)
200
- codemie-claude "message" # Claude Code agent (interactive)
201
- codemie-claude -p "message" # Claude Code agent (non-interactive/print mode)
202
- codemie-codex "message" # Codex agent (interactive)
203
- codemie-codex -p "message" # Codex agent (non-interactive mode)
204
- codemie-gemini "message" # Gemini CLI agent
205
- codemie-deepagents "message" # Deep Agents CLI agent
206
-
207
- # With agent-specific options (pass-through to underlying CLI)
208
- codemie-claude --context large -p "review code"
209
- codemie-codex --temperature 0.1 -p "generate tests"
210
- codemie-gemini -p "your prompt" # Gemini's non-interactive mode
211
-
212
- # Configuration overrides (model, API key, base URL, timeout)
213
- codemie-claude --model claude-4-5-sonnet --api-key your-key "review code"
214
- codemie-codex --model gpt-4.1 --base-url https://api.openai.com/v1 "generate tests"
215
- codemie-gemini -m gemini-2.5-flash "optimize performance"
216
-
217
- # Profile selection (profiles contain provider + all settings)
218
- codemie-code --profile work-litellm "analyze codebase"
219
- codemie-claude --profile personal-openai "review PR"
220
- codemie-gemini --profile lite --model gemini-2.5-flash "document code"
221
- ```
103
+ ## Commands
222
104
 
223
- ### Configuration Commands
105
+ The CodeMie CLI has a rich set of commands for managing agents, configuration, and more.
224
106
 
225
107
  ```bash
226
- codemie config show # Show current configuration with sources
227
- codemie config list # List all available parameters
228
- codemie config test # Test connection with current configuration
229
- codemie config init # Initialize project-specific configuration
108
+ codemie setup # Interactive configuration wizard
109
+ codemie list # List all available agents
110
+ codemie install <agent> # Install an agent
111
+ codemie profile <cmd> # Manage provider profiles
112
+ codemie auth <cmd> # Manage SSO authentication
113
+ codemie doctor # Health check and diagnostics
230
114
  ```
231
115
 
232
- ### Profile Management Commands
233
-
234
- ```bash
235
- codemie profile list # List all provider profiles
236
- codemie profile switch <name> # Switch to a different profile
237
- codemie profile show [name] # Show profile details (defaults to active)
238
- codemie profile delete <name> # Delete a profile
239
- codemie profile rename <old> <new> # Rename a profile
240
- ```
116
+ For a full command reference, see the [Commands Documentation](docs/COMMANDS.md).
241
117
 
242
118
  ## Configuration
243
119
 
244
- ### Setup Wizard (Recommended)
120
+ ### Quick Setup
245
121
 
246
- Run the interactive setup wizard:
122
+ The easiest way to get started:
247
123
 
248
124
  ```bash
125
+ # Interactive setup wizard
249
126
  codemie setup
250
- ```
251
-
252
- The wizard will:
253
- - Guide you through provider selection
254
- - Test your credentials via health endpoints
255
- - Fetch available models in real-time
256
- - Save configuration to `~/.codemie/config.json`
257
-
258
- **Multi-Provider Support**: If you already have profiles configured, the wizard will offer to:
259
- - Add a new profile (prompts for unique name)
260
- - Update an existing profile (select from list)
261
- - Cancel without changes
262
-
263
- This ensures you can configure multiple providers (work, personal, enterprise SSO) without losing existing configurations.
264
127
 
265
- ### Multi-Provider Profiles
266
-
267
- CodeMie CLI supports multiple provider profiles, allowing you to:
268
- - Configure different providers for different contexts (work, personal, etc.)
269
- - Switch between profiles with a single command
270
- - Keep all configurations without overwriting
271
-
272
- #### Creating Multiple Profiles
273
-
274
- ```bash
275
- # First profile - work account with LiteLLM
276
- codemie setup
277
- # → Choose: Add a new profile
278
- # → Name: "work-litellm"
279
- # → Provider: LiteLLM
280
- # → Configure credentials...
281
-
282
- # Second profile - personal OpenAI account
283
- codemie setup
284
- # → Choose: Add a new profile
285
- # → Name: "personal-openai"
286
- # → Provider: OpenAI
287
- # → Configure credentials...
288
-
289
- # Third profile - enterprise SSO
290
- codemie setup
291
- # → Choose: Add a new profile
292
- # → Name: "enterprise-sso"
293
- # → Provider: CodeMie SSO
294
- # → Authenticate via SSO...
295
- ```
296
-
297
- #### Using Profiles
298
-
299
- ```bash
300
- # List all profiles (shows active profile with ●)
301
- codemie profile list
302
- # Output:
303
- # ● work-litellm (litellm) - claude-4-5-sonnet
304
- # ○ personal-openai (openai) - gpt-4.1
305
- # ○ enterprise-sso (ai-run-sso) - claude-4-5-sonnet
306
-
307
- # Switch active profile
308
- codemie profile switch personal-openai
309
-
310
- # Use active profile (default behavior)
311
- codemie-code "analyze this code"
312
-
313
- # Override with specific profile for one command
314
- codemie-claude --profile work-litellm "review PR"
315
- codemie-codex --profile personal-openai "generate tests"
316
-
317
- # Show profile details
318
- codemie profile show work-litellm
319
- ```
320
-
321
- #### Profile Configuration File
322
-
323
- Profiles are stored in `~/.codemie/config.json`:
324
-
325
- ```json
326
- {
327
- "version": 2,
328
- "activeProfile": "work-litellm",
329
- "profiles": {
330
- "work-litellm": {
331
- "name": "work-litellm",
332
- "provider": "litellm",
333
- "baseUrl": "https://litellm.company.com",
334
- "apiKey": "sk-***",
335
- "model": "claude-4-5-sonnet",
336
- "timeout": 300
337
- },
338
- "personal-openai": {
339
- "name": "personal-openai",
340
- "provider": "openai",
341
- "baseUrl": "https://api.openai.com/v1",
342
- "apiKey": "sk-***",
343
- "model": "gpt-4.1",
344
- "timeout": 300
345
- }
346
- }
347
- }
348
- ```
349
-
350
- **Legacy Configuration**: If you have an existing single-provider config, it will automatically migrate to a profile named "default" on first use.
351
-
352
- ### Supported Providers
353
-
354
- - **ai-run-sso** - AI/Run CodeMie SSO (unified enterprise gateway)
355
- - **gemini** - Google Gemini API (direct access)
356
- - **openai** - OpenAI API
357
- - **azure** - Azure OpenAI
358
- - **bedrock** - AWS Bedrock
359
- - **litellm** - LiteLLM Proxy
360
-
361
- ### Manual Configuration
362
-
363
- #### Environment Variables (Highest Priority)
364
-
365
- ```bash
366
- # Generic (works with any provider)
367
- export CODEMIE_BASE_URL="https://your-proxy.com"
368
- export CODEMIE_API_KEY="your-api-key"
369
- export CODEMIE_MODEL="your-model"
370
- export CODEMIE_PROVIDER="litellm"
371
-
372
- # Provider-specific
373
- export OPENAI_API_KEY="your-openai-key"
374
- export OPENAI_BASE_URL="https://api.openai.com/v1"
375
-
376
- # Gemini-specific
377
- export GEMINI_API_KEY="your-gemini-key"
378
- export GEMINI_MODEL="gemini-2.5-flash"
379
- ```
380
-
381
- #### Configuration File
382
-
383
- Location: `~/.codemie/config.json`
384
-
385
- ```json
386
- {
387
- "provider": "litellm",
388
- "model": "claude-sonnet-4-5",
389
- "baseUrl": "https://litellm.codemie.example.com",
390
- "apiKey": "your-api-key",
391
- "timeout": 300
392
- }
128
+ # Or use environment variables
129
+ export CODEMIE_PROVIDER=openai
130
+ export CODEMIE_API_KEY=sk-...
131
+ export CODEMIE_MODEL=gpt-4
393
132
  ```
394
133
 
395
- ### Model Compatibility
396
-
397
- AI/Run CodeMie CLI automatically validates model compatibility:
134
+ ### Configuration Options
398
135
 
399
- - **Codex**: OpenAI models only (gpt-4, gpt-4.1, gpt-5, etc.)
400
- - **Claude**: Both Claude and GPT models
401
- - **Gemini CLI**: Gemini models only (gemini-2.5-flash, gemini-2.5-pro, gemini-1.5-pro, etc.)
402
- - **CodeMie Native**: All supported models
136
+ - **Setup Wizard** - `codemie setup` (recommended)
137
+ - **Environment Variables** - Override config for specific sessions
138
+ - **Config File** - `~/.codemie/config.json` for persistent settings
139
+ - **Multi-Provider Profiles** - Manage work, personal, and team configs
403
140
 
404
- When incompatible models are detected, AI/Run CodeMie CLI will:
405
- 1. Fetch available models from your provider's API
406
- 2. Filter to compatible models
407
- 3. Offer to switch automatically
141
+ See [Configuration Documentation](docs/CONFIGURATION.md) for detailed setup, environment variables reference, and advanced configuration.
408
142
 
409
- ## Authentication & SSO Management
143
+ ## Documentation
410
144
 
411
- ### AI/Run CodeMie SSO Setup
145
+ Comprehensive guides are available in the `docs/` directory:
412
146
 
413
- For enterprise environments with AI/Run CodeMie SSO (Single Sign-On):
414
-
415
- #### Initial Setup via Wizard
416
-
417
- The setup wizard automatically detects and configures AI/Run CodeMie SSO:
418
-
419
- ```bash
420
- codemie setup
421
- ```
422
-
423
- **The wizard will:**
424
- 1. Detect if you have access to AI/Run CodeMie SSO
425
- 2. Guide you through the authentication flow
426
- 3. Test the connection with health checks
427
- 4. Fetch and display available models
428
- 5. Save secure credentials to `~/.codemie/config.json`
429
-
430
- #### Manual SSO Authentication
431
-
432
- If you need to authenticate separately or refresh your credentials:
433
-
434
- ```bash
435
- # Authenticate with AI/Run CodeMie SSO
436
- codemie auth login --url https://your-airun-codemie-instance.com
437
-
438
- # Check authentication status
439
- codemie auth status
440
-
441
- # Refresh expired tokens
442
- codemie auth refresh
443
-
444
- # Logout and clear credentials
445
- codemie auth logout
446
- ```
447
-
448
- ### Token Management
449
-
450
- SSO tokens are automatically managed, but you can control them manually:
451
-
452
- #### Token Refresh
453
-
454
- AI/Run CodeMie CLI automatically refreshes tokens when they expire. For manual refresh:
455
-
456
- ```bash
457
- # Refresh SSO credentials (extends session)
458
- codemie auth refresh
459
- ```
460
-
461
- **When to refresh manually:**
462
- - Before long-running tasks
463
- - After extended periods of inactivity
464
- - When you receive authentication errors
465
- - Before important demonstrations
466
-
467
- #### Authentication Status
468
-
469
- Check your current authentication state:
470
-
471
- ```bash
472
- codemie auth status
473
- ```
474
-
475
- **Status information includes:**
476
- - Connection status to AI/Run CodeMie SSO
477
- - Token validity and expiration
478
- - Available models for your account
479
- - Provider configuration details
480
-
481
- #### Token Troubleshooting
482
-
483
- Common authentication issues and solutions:
484
-
485
- ```bash
486
- # Token expired
487
- codemie auth refresh
488
-
489
- # Connection issues
490
- codemie doctor # Full system diagnostics
491
- codemie auth status # Check auth-specific issues
492
-
493
- # Complete re-authentication
494
- codemie auth logout
495
- codemie auth login --url https://your-airun-codemie-instance.com
496
-
497
- # Reset all configuration
498
- codemie config reset
499
- codemie setup # Run wizard again
500
- ```
501
-
502
- ### Enterprise SSO Features
503
-
504
- AI/Run CodeMie SSO provides enterprise-grade features:
505
-
506
- - **Secure Token Storage**: Credentials stored in system keychain
507
- - **Automatic Refresh**: Seamless token renewal without interruption
508
- - **Multi-Model Access**: Access to Claude, GPT, and other models through unified gateway
509
- - **Audit Logging**: Enterprise audit trails for security compliance
510
- - **Role-Based Access**: Model access based on organizational permissions
511
-
512
- ## Examples
513
-
514
- ### Common Workflows
515
-
516
- ```bash
517
- # Code review workflow
518
- codemie-code "Review this PR for security issues and performance"
519
-
520
- # Bug fixing
521
- codemie-claude "Fix the authentication bug in src/auth.ts"
522
-
523
- # Test generation
524
- codemie-codex "Generate comprehensive tests for the API endpoints"
525
-
526
- # Documentation
527
- codemie-code "Document the functions in utils/helpers.js"
528
-
529
- # Refactoring
530
- codemie-claude "Refactor this component to use React hooks"
531
- ```
532
-
533
- ### Configuration Examples
534
-
535
- ```bash
536
- # View current configuration with sources
537
- codemie config show
538
-
539
- # Test connection
540
- codemie config test
541
-
542
- # Initialize project-specific overrides
543
- codemie config init
544
-
545
- # Temporary model override
546
- codemie-claude --model claude-4-5-sonnet "Explain this algorithm"
547
-
548
- # Debug mode for troubleshooting
549
- codemie-code --debug "analyze performance issues"
550
- ```
551
-
552
- ### Multi-Provider Workflow Examples
553
-
554
- ```bash
555
- # Scenario: Developer with work and personal accounts
556
-
557
- # Setup work profile with enterprise LiteLLM
558
- codemie setup
559
- # → Name: "work"
560
- # → Provider: LiteLLM
561
- # → URL: https://litellm.company.com
562
- # → Model: claude-4-5-sonnet
563
-
564
- # Setup personal profile with OpenAI
565
- codemie setup
566
- # → Name: "personal"
567
- # → Provider: OpenAI
568
- # → Model: gpt-4.1
147
+ - **[Configuration](docs/CONFIGURATION.md)** - Setup wizard, environment variables, multi-provider profiles, manual configuration
148
+ - **[Commands](docs/COMMANDS.md)** - Complete command reference including analytics and workflow commands
149
+ - **[Agents](docs/AGENTS.md)** - Detailed information about each agent (Claude Code, Codex, Gemini, Deep Agents, built-in)
150
+ - **[Authentication](docs/AUTHENTICATION.md)** - SSO setup, token management, enterprise authentication
151
+ - **[Examples](docs/EXAMPLES.md)** - Common workflows, multi-provider examples, CI/CD integration
569
152
 
570
- # List profiles to verify
571
- codemie profile list
572
- # ● work (litellm) - claude-4-5-sonnet
573
- # ○ personal (openai) - gpt-4.1
153
+ ## Contributing
574
154
 
575
- # Use work profile during work hours
576
- codemie-code "review company codebase"
577
-
578
- # Switch to personal for side projects
579
- codemie profile switch personal
580
- codemie-code "help with my open source project"
581
-
582
- # Or use specific profile without switching
583
- codemie-claude --profile work "analyze security"
584
- codemie-codex --profile personal "generate tests"
585
-
586
- # Update work profile when credentials rotate
587
- codemie setup
588
- # → Choose: Update existing profile
589
- # → Select: work
590
- # → Update credentials...
591
- ```
592
-
593
- ### Advanced Usage
594
-
595
- ```bash
596
- # Pass custom arguments to agents (unknown options pass through)
597
- codemie-codex --temperature 0.1 --max-tokens 2000 "Generate clean code"
598
- codemie-claude --context large "Review this code"
599
-
600
- # Non-interactive mode with -p (useful for CI/CD)
601
- codemie-claude -p "$(cat prompt.txt)" --max-turns 50
602
- codemie-codex -p "Generate tests for src/utils" --output json
603
-
604
- # Debug logging (writes to ~/.codemie/debug/)
605
- codemie-claude --debug "analyze codebase"
606
- codemie-codex --debug "implement feature"
607
- codemie-code --debug "test task"
608
-
609
- # Debug logging (writes to ~/.codemie/debug/)
610
- codemie-claude --debug "analyze codebase"
611
- codemie-codex --debug "implement feature"
612
- codemie-code --debug "test task"
613
-
614
- # Health checks
615
- codemie doctor # Full system check
616
- codemie-code health # Built-in agent check
617
- codemie-claude health # Claude agent check
618
- codemie-gemini health # Gemini agent check
619
- codemie-deepagents health # Deep Agents CLI check
620
- ```
621
-
622
- ### CI/CD Integration Example
623
-
624
- ```bash
625
- # GitHub Actions / GitLab CI workflow example
626
- codemie-claude \
627
- --base-url "${CODEMIE_BASE_URL}" \
628
- --api-key "${CODEMIE_API_KEY}" \
629
- --model "${CODEMIE_MODEL:-claude-4-5-sonnet}" \
630
- --provider "litellm" \
631
- -p "$(cat /tmp/review-prompt.txt)" \
632
- --max-turns "${CODEMIE_MAX_TURNS:-50}" \
633
- --dangerously-skip-permissions \
634
- --allowedTools "Bash(*),Read(*),Curl(*)" \
635
- --debug
636
-
637
- # Using profile for CI/CD
638
- codemie-claude \
639
- --profile ci-litellm \
640
- -p "Review this PR for security issues" \
641
- --max-turns 30 \
642
- --debug
643
- ```
644
-
645
- ## Agents
646
-
647
- ### CodeMie Native (Built-in)
648
-
649
- LangGraph-based coding assistant with no installation required.
650
-
651
- **Features:**
652
- - Modern terminal UI with streaming responses
653
- - File operations, git integration, command execution
654
- - Clipboard support with automatic image detection
655
- - Interactive conversations with context memory
656
- - Task-focused execution mode
657
- - Debug mode with comprehensive logging
658
-
659
- **Usage:**
660
- ```bash
661
- codemie-code # Interactive mode
662
- codemie-code "task" # Start with message
663
- codemie --task "task" # Single task execution
664
- codemie-code --debug # Debug mode
665
- ```
666
-
667
- ### Claude Code
668
-
669
- Anthropic's official CLI with advanced code understanding.
670
-
671
- **Installation:** `codemie install claude`
672
-
673
- **Features:**
674
- - Advanced code understanding and generation
675
- - Multi-file editing capabilities
676
- - Project-aware context
677
- - Interactive conversations
678
- - Non-interactive mode with `-p` flag
679
-
680
- **Usage:**
681
- ```bash
682
- codemie-claude # Interactive mode
683
- codemie-claude "message" # Start with message
684
- codemie-claude -p "message" # Non-interactive/print mode
685
- codemie-claude health # Health check
686
- ```
687
-
688
- ### Codex
689
-
690
- OpenAI's code generation assistant optimized for completion tasks.
691
-
692
- **Installation:** `codemie install codex`
693
-
694
- **Features:**
695
- - Code completion and generation
696
- - Function generation and bug fixing
697
- - Code explanation and documentation
698
- - Non-interactive mode with `-p` flag
699
- - **Requires OpenAI-compatible models only**
700
-
701
- **Usage:**
702
- ```bash
703
- codemie-codex # Interactive mode
704
- codemie-codex "message" # Start with message
705
- codemie-codex -p "message" # Non-interactive mode
706
- codemie-codex health # Health check
707
- ```
708
-
709
- ### Gemini CLI
710
-
711
- Google's Gemini AI coding assistant with advanced code understanding.
712
-
713
- **Installation:** `codemie install gemini`
714
-
715
- **Requirements:**
716
- - **Requires a valid Google Gemini API key** from https://aistudio.google.com/apikey
717
- - **Requires Gemini-compatible models only** (gemini-2.5-flash, gemini-2.5-pro, etc.)
718
- - LiteLLM or AI-Run SSO API keys will **not** work with Gemini CLI
719
-
720
- **Setup:**
721
- ```bash
722
- # Configure Gemini with dedicated API key
723
- codemie setup
724
- # Select: "Google Gemini (Direct API Access)"
725
- # Enter your Gemini API key from https://aistudio.google.com/apikey
726
-
727
- # Or use environment variable
728
- export GEMINI_API_KEY="your-gemini-api-key-here"
729
- ```
730
-
731
- **Features:**
732
- - Advanced code generation and analysis
733
- - Multi-model support (Gemini 2.5 Flash, Pro, etc.)
734
- - Project-aware context with directory inclusion
735
- - JSON and streaming JSON output formats
736
-
737
- **Usage:**
738
- ```bash
739
- codemie-gemini # Interactive mode
740
- codemie-gemini "your prompt" # With initial message
741
- codemie-gemini -p "your prompt" # Non-interactive mode (Gemini-specific)
742
- codemie-gemini -m gemini-2.5-flash # Specify model (Gemini-specific)
743
- codemie-gemini --model gemini-2.5-flash "analyze code" # With config override
744
- ```
745
-
746
- ### Deep Agents CLI
747
-
748
- LangChain's terminal interface for building agents with persistent memory. Built on LangGraph with planning capabilities, file system tools, and subagent delegation.
749
-
750
- **Installation:** `codemie install deepagents`
751
-
752
- **Links:**
753
- - [Documentation](https://docs.langchain.com/oss/javascript/deepagents/cli)
754
- - [Overview](https://docs.langchain.com/oss/javascript/deepagents/overview)
755
- - [Middleware](https://docs.langchain.com/oss/javascript/deepagents/middleware)
756
- - [Subagents](https://docs.langchain.com/oss/javascript/deepagents/subagents)
757
- - [Customization](https://docs.langchain.com/oss/javascript/deepagents/customization)
758
-
759
- **Usage:**
760
- ```bash
761
- codemie-deepagents # Interactive mode
762
- codemie-deepagents "your task" # Start with message
763
- codemie-deepagents --debug # Debug mode
764
- codemie-deepagents health # Health check
765
- ```
766
-
767
- **Note:** Installed via Python (pip/uv), not npm. Requires Python 3.9+ and Anthropic or OpenAI API key.
768
-
769
- ## Debug Logging
770
-
771
- All CodeMie agents support comprehensive debug logging that writes to files.
772
-
773
- ### Enabling Debug Mode
774
-
775
- ```bash
776
- # Using --debug flag (recommended)
777
- codemie-claude --debug "your task"
778
- codemie-codex --debug "your task"
779
- codemie-code --debug "your task"
780
-
781
- # Using environment variable
782
- CODEMIE_DEBUG=1 codemie-claude "your task"
783
-
784
- # For entire session
785
- export CODEMIE_DEBUG=1
786
- codemie-claude "task 1"
787
- codemie-codex "task 2"
788
- ```
789
-
790
- ### Debug Log Files
791
-
792
- When debug mode is enabled, each session creates a timestamped directory:
793
-
794
- **Location:** `~/.codemie/debug/session-<timestamp>/`
795
-
796
- **Log Files:**
797
- 1. **application.log** - All application activity
798
- - Contains: Info, warnings, errors, debug messages
799
- - Format: Plain text with timestamps
800
- - Example: `[2025-11-27T12:30:00.000Z] [INFO] Starting agent...`
801
-
802
- 2. **requests.jsonl** - HTTP request/response details (ai-run-sso provider only)
803
- - Contains: Request/response headers, bodies, timing
804
- - Format: JSONL (one JSON object per line)
805
- - Security: Sensitive headers automatically redacted
806
- - Example: `{"type":"request","requestId":1,"method":"POST",...}`
807
-
808
- ### Console Output
809
-
810
- Debug mode keeps your console clean - you'll only see:
811
- ```bash
812
- $ codemie-claude --debug "analyze code"
813
- Starting Claude Code | Profile: work | Provider: ai-run-sso | Model: claude-4-5-sonnet | Debug: /Users/username/.codemie/debug/session-2025-11-27T12-30-00-000Z
814
- ```
815
-
816
- All debug details are written to files in the session directory.
817
-
818
- ### Analyzing Logs
819
-
820
- **Using command-line tools:**
821
- ```bash
822
- # View latest application log
823
- tail -f ~/.codemie/debug/session-*/application.log
824
-
825
- # Search for errors in latest session
826
- grep ERROR ~/.codemie/debug/session-*/application.log
827
-
828
- # Parse HTTP requests with jq
829
- cat ~/.codemie/debug/session-*/requests.jsonl | jq 'select(.type == "request")'
830
- ```
831
-
832
- **Clean up old logs:**
833
- ```bash
834
- # Remove session directories older than 7 days
835
- find ~/.codemie/debug -type d -name "session-*" -mtime +7 -exec rm -rf {} +
836
-
837
- # Remove all debug logs
838
- rm -rf ~/.codemie/debug
839
- ```
840
-
841
- ## Troubleshooting
842
-
843
- ### Command Not Found
844
-
845
- ```bash
846
- # Re-link the package
847
- npm link
848
- which codemie
849
-
850
- # Check installation
851
- npm list -g @codemieai/code
852
- ```
853
-
854
- ### Configuration Issues
855
-
856
- ```bash
857
- # Run setup wizard
858
- codemie setup
859
-
860
- # Check current config
861
- codemie config show
862
-
863
- # View available parameters
864
- codemie config list
865
-
866
- # Test connection
867
- codemie config test
868
- ```
869
-
870
- ### Connection Problems
871
-
872
- ```bash
873
- # Run diagnostics
874
- codemie doctor
875
-
876
- # Test specific agent
877
- codemie-code health
878
- codemie-claude health
879
-
880
- # Debug mode for detailed logs
881
- codemie-code --debug
882
- ```
883
-
884
- ### Agent Installation Failures
885
-
886
- ```bash
887
- # Check internet connection
888
- curl -I https://api.github.com
889
-
890
- # Clear npm cache
891
- npm cache clean --force
892
-
893
- # Retry installation
894
- codemie install claude
895
- ```
896
-
897
- ### Model Compatibility Errors
898
-
899
- When you see "Model not compatible" errors:
900
-
901
- 1. Check your configured model: `codemie config show`
902
- 2. Run the agent to see compatible options
903
- 3. Update your profile: `codemie setup` (choose "Update existing profile")
904
- 4. Or override temporarily: `codemie-codex --model gpt-4.1`
905
-
906
- ## Development
907
-
908
- ### Project Structure
909
-
910
- ```
911
- codemie-code/
912
- ├── bin/ # Executable entry points
913
- │ ├── codemie.js # Main CLI
914
- │ └── agent-executor.js # Universal agent executor (all shortcuts)
915
- ├── src/
916
- │ ├── agents/ # Agent system
917
- │ │ ├── core/ # Core agent abstractions
918
- │ │ ├── plugins/ # Plugin-based adapters (claude, codex, gemini, codemie-code)
919
- │ │ └── codemie-code/ # Built-in agent implementation
920
- │ ├── cli/ # CLI commands
921
- │ │ └── commands/ # Command implementations (setup, doctor, workflow, etc.)
922
- │ ├── env/ # Configuration management
923
- │ ├── workflows/ # CI/CD workflow management
924
- │ │ └── templates/ # Workflow templates (GitHub Actions, GitLab CI)
925
- │ └── utils/ # Shared utilities
926
- └── tests/ # Test files
927
- ```
928
-
929
- ### Building
930
-
931
- ```bash
932
- npm run build # Compile TypeScript
933
- npm run dev # Watch mode
934
- npm run lint # Check code style
935
- npm run test # Run tests
936
- npm run ci # Full CI pipeline
937
- ```
938
-
939
- ### Testing
940
-
941
- ```bash
942
- npm run build && npm link
943
- codemie --help
944
- codemie doctor
945
- codemie-code health
946
- ```
155
+ Contributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) to get started.
947
156
 
948
157
  ## License
949
158
 
950
- Apache-2.0
159
+ This project is licensed under the Apache-2.0 License.
951
160
 
952
161
  ## Links
953
162
 
954
163
  - [GitHub Repository](https://github.com/codemie-ai/codemie-code)
955
164
  - [Issue Tracker](https://github.com/codemie-ai/codemie-code/issues)
956
- - [NPM Package](https://www.npmjs.com/package/@codemieai/code)
165
+ - [NPM Package](https://www.npmjs.com/package/@codemieai/code)