@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.
- package/README.md +70 -861
- package/dist/agents/codemie-code/agent.d.ts.map +1 -1
- package/dist/agents/codemie-code/agent.js +35 -4
- package/dist/agents/codemie-code/agent.js.map +1 -1
- package/dist/agents/codemie-code/tools/index.d.ts.map +1 -1
- package/dist/agents/codemie-code/tools/index.js +5 -3
- package/dist/agents/codemie-code/tools/index.js.map +1 -1
- package/dist/agents/core/AgentCLI.d.ts.map +1 -1
- package/dist/agents/core/AgentCLI.js +57 -11
- package/dist/agents/core/AgentCLI.js.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.d.ts +4 -4
- package/dist/agents/core/BaseAgentAdapter.d.ts.map +1 -1
- package/dist/agents/core/BaseAgentAdapter.js +59 -23
- package/dist/agents/core/BaseAgentAdapter.js.map +1 -1
- package/dist/agents/core/types.d.ts +18 -0
- package/dist/agents/core/types.d.ts.map +1 -1
- package/dist/agents/plugins/claude.plugin.d.ts +0 -3
- package/dist/agents/plugins/claude.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/claude.plugin.js +12 -1
- package/dist/agents/plugins/claude.plugin.js.map +1 -1
- package/dist/agents/plugins/codemie-code.plugin.js +1 -1
- package/dist/agents/plugins/codemie-code.plugin.js.map +1 -1
- package/dist/agents/plugins/codex.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/codex.plugin.js +40 -4
- package/dist/agents/plugins/codex.plugin.js.map +1 -1
- package/dist/agents/plugins/gemini.plugin.d.ts.map +1 -1
- package/dist/agents/plugins/gemini.plugin.js +51 -6
- package/dist/agents/plugins/gemini.plugin.js.map +1 -1
- package/dist/agents/registry.d.ts +15 -2
- package/dist/agents/registry.d.ts.map +1 -1
- package/dist/agents/registry.js +30 -6
- package/dist/agents/registry.js.map +1 -1
- package/dist/analytics/aggregation/adapters/claude.adapter.d.ts +37 -0
- package/dist/analytics/aggregation/adapters/claude.adapter.d.ts.map +1 -0
- package/dist/analytics/aggregation/adapters/claude.adapter.js +471 -0
- package/dist/analytics/aggregation/adapters/claude.adapter.js.map +1 -0
- package/dist/analytics/aggregation/adapters/codex.adapter.d.ts +25 -0
- package/dist/analytics/aggregation/adapters/codex.adapter.d.ts.map +1 -0
- package/dist/analytics/aggregation/adapters/codex.adapter.js +376 -0
- package/dist/analytics/aggregation/adapters/codex.adapter.js.map +1 -0
- package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts +28 -0
- package/dist/analytics/aggregation/adapters/gemini.adapter.d.ts.map +1 -0
- package/dist/analytics/aggregation/adapters/gemini.adapter.js +320 -0
- package/dist/analytics/aggregation/adapters/gemini.adapter.js.map +1 -0
- package/dist/analytics/aggregation/adapters/index.d.ts +7 -0
- package/dist/analytics/aggregation/adapters/index.d.ts.map +1 -0
- package/dist/analytics/aggregation/adapters/index.js +7 -0
- package/dist/analytics/aggregation/adapters/index.js.map +1 -0
- package/dist/analytics/aggregation/aggregator.d.ts +49 -0
- package/dist/analytics/aggregation/aggregator.d.ts.map +1 -0
- package/dist/analytics/aggregation/aggregator.js +239 -0
- package/dist/analytics/aggregation/aggregator.js.map +1 -0
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts +63 -0
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js +58 -0
- package/dist/analytics/aggregation/core/BaseAnalyticsAdapter.js.map +1 -0
- package/dist/analytics/aggregation/core/adapter.interface.d.ts +65 -0
- package/dist/analytics/aggregation/core/adapter.interface.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/adapter.interface.js +9 -0
- package/dist/analytics/aggregation/core/adapter.interface.js.map +1 -0
- package/dist/analytics/aggregation/core/aggregation-utils.d.ts +66 -0
- package/dist/analytics/aggregation/core/aggregation-utils.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/aggregation-utils.js +83 -0
- package/dist/analytics/aggregation/core/aggregation-utils.js.map +1 -0
- package/dist/analytics/aggregation/core/discovery.d.ts +40 -0
- package/dist/analytics/aggregation/core/discovery.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/discovery.js +132 -0
- package/dist/analytics/aggregation/core/discovery.js.map +1 -0
- package/dist/analytics/aggregation/core/file-utils.d.ts +23 -0
- package/dist/analytics/aggregation/core/file-utils.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/file-utils.js +208 -0
- package/dist/analytics/aggregation/core/file-utils.js.map +1 -0
- package/dist/analytics/aggregation/core/index.d.ts +11 -0
- package/dist/analytics/aggregation/core/index.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/index.js +11 -0
- package/dist/analytics/aggregation/core/index.js.map +1 -0
- package/dist/analytics/aggregation/core/project-mapping.d.ts +50 -0
- package/dist/analytics/aggregation/core/project-mapping.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/project-mapping.js +102 -0
- package/dist/analytics/aggregation/core/project-mapping.js.map +1 -0
- package/dist/analytics/aggregation/core/streaming.d.ts +26 -0
- package/dist/analytics/aggregation/core/streaming.d.ts.map +1 -0
- package/dist/analytics/aggregation/core/streaming.js +58 -0
- package/dist/analytics/aggregation/core/streaming.js.map +1 -0
- package/dist/analytics/aggregation/index.d.ts +8 -0
- package/dist/analytics/aggregation/index.d.ts.map +1 -0
- package/dist/analytics/aggregation/index.js +8 -0
- package/dist/analytics/aggregation/index.js.map +1 -0
- package/dist/analytics/aggregation/types.d.ts +258 -0
- package/dist/analytics/aggregation/types.d.ts.map +1 -0
- package/dist/analytics/aggregation/types.js +8 -0
- package/dist/analytics/aggregation/types.js.map +1 -0
- package/dist/analytics/collector.d.ts +46 -0
- package/dist/analytics/collector.d.ts.map +1 -0
- package/dist/analytics/collector.js +83 -0
- package/dist/analytics/collector.js.map +1 -0
- package/dist/analytics/config.d.ts +15 -0
- package/dist/analytics/config.d.ts.map +1 -0
- package/dist/analytics/config.js +65 -0
- package/dist/analytics/config.js.map +1 -0
- package/dist/analytics/index.d.ts +99 -0
- package/dist/analytics/index.d.ts.map +1 -0
- package/dist/analytics/index.js +288 -0
- package/dist/analytics/index.js.map +1 -0
- package/dist/analytics/plugins/api-metrics.plugin.d.ts +26 -0
- package/dist/analytics/plugins/api-metrics.plugin.d.ts.map +1 -0
- package/dist/analytics/plugins/api-metrics.plugin.js +97 -0
- package/dist/analytics/plugins/api-metrics.plugin.js.map +1 -0
- package/dist/analytics/plugins/index.d.ts +15 -0
- package/dist/analytics/plugins/index.d.ts.map +1 -0
- package/dist/analytics/plugins/index.js +15 -0
- package/dist/analytics/plugins/index.js.map +1 -0
- package/dist/analytics/plugins/model-metrics.plugin.d.ts +39 -0
- package/dist/analytics/plugins/model-metrics.plugin.d.ts.map +1 -0
- package/dist/analytics/plugins/model-metrics.plugin.js +105 -0
- package/dist/analytics/plugins/model-metrics.plugin.js.map +1 -0
- package/dist/analytics/plugins/provider-metrics.plugin.d.ts +41 -0
- package/dist/analytics/plugins/provider-metrics.plugin.d.ts.map +1 -0
- package/dist/analytics/plugins/provider-metrics.plugin.js +123 -0
- package/dist/analytics/plugins/provider-metrics.plugin.js.map +1 -0
- package/dist/analytics/plugins/types.d.ts +61 -0
- package/dist/analytics/plugins/types.d.ts.map +1 -0
- package/dist/analytics/plugins/types.js +54 -0
- package/dist/analytics/plugins/types.js.map +1 -0
- package/dist/analytics/privacy.d.ts +10 -0
- package/dist/analytics/privacy.d.ts.map +1 -0
- package/dist/analytics/privacy.js +20 -0
- package/dist/analytics/privacy.js.map +1 -0
- package/dist/analytics/session.d.ts +56 -0
- package/dist/analytics/session.d.ts.map +1 -0
- package/dist/analytics/session.js +95 -0
- package/dist/analytics/session.js.map +1 -0
- package/dist/analytics/types.d.ts +104 -0
- package/dist/analytics/types.d.ts.map +1 -0
- package/dist/analytics/types.js +15 -0
- package/dist/analytics/types.js.map +1 -0
- package/dist/analytics/writer.d.ts +18 -0
- package/dist/analytics/writer.d.ts.map +1 -0
- package/dist/analytics/writer.js +44 -0
- package/dist/analytics/writer.js.map +1 -0
- package/dist/cli/commands/analytics.d.ts +3 -0
- package/dist/cli/commands/analytics.d.ts.map +1 -0
- package/dist/cli/commands/analytics.js +579 -0
- package/dist/cli/commands/analytics.js.map +1 -0
- package/dist/cli/commands/config.d.ts.map +1 -1
- package/dist/cli/commands/config.js +14 -0
- package/dist/cli/commands/config.js.map +1 -1
- package/dist/cli/commands/profile.d.ts.map +1 -1
- package/dist/cli/commands/profile.js +41 -0
- package/dist/cli/commands/profile.js.map +1 -1
- package/dist/cli/commands/setup.js +70 -1
- package/dist/cli/commands/setup.js.map +1 -1
- package/dist/cli/index.js +2 -0
- package/dist/cli/index.js.map +1 -1
- package/dist/env/types.d.ts +2 -0
- package/dist/env/types.d.ts.map +1 -1
- package/dist/env/types.js.map +1 -1
- package/dist/utils/analytics-reader.d.ts +117 -0
- package/dist/utils/analytics-reader.d.ts.map +1 -0
- package/dist/utils/analytics-reader.js +421 -0
- package/dist/utils/analytics-reader.js.map +1 -0
- package/dist/utils/codemie-integration-validator.d.ts.map +1 -1
- package/dist/utils/codemie-integration-validator.js +3 -16
- package/dist/utils/codemie-integration-validator.js.map +1 -1
- package/dist/utils/codemie-proxy.d.ts +80 -0
- package/dist/utils/codemie-proxy.d.ts.map +1 -0
- package/dist/utils/codemie-proxy.js +348 -0
- package/dist/utils/codemie-proxy.js.map +1 -0
- package/dist/utils/config-loader.d.ts +7 -0
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +18 -0
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/date-formatter.d.ts +88 -0
- package/dist/utils/date-formatter.d.ts.map +1 -0
- package/dist/utils/date-formatter.js +133 -0
- package/dist/utils/date-formatter.js.map +1 -0
- package/dist/utils/installation-id.d.ts +10 -0
- package/dist/utils/installation-id.d.ts.map +1 -0
- package/dist/utils/installation-id.js +30 -0
- package/dist/utils/installation-id.js.map +1 -0
- package/dist/utils/logger.d.ts +1 -15
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/logger.js +5 -86
- package/dist/utils/logger.js.map +1 -1
- package/dist/utils/proxy/errors.d.ts +45 -0
- package/dist/utils/proxy/errors.d.ts.map +1 -0
- package/dist/utils/proxy/errors.js +103 -0
- package/dist/utils/proxy/errors.js.map +1 -0
- package/dist/utils/proxy/http-client.d.ts +46 -0
- package/dist/utils/proxy/http-client.d.ts.map +1 -0
- package/dist/utils/proxy/http-client.js +139 -0
- package/dist/utils/proxy/http-client.js.map +1 -0
- package/dist/utils/proxy/interceptors.d.ts +69 -0
- package/dist/utils/proxy/interceptors.d.ts.map +1 -0
- package/dist/utils/proxy/interceptors.js +308 -0
- package/dist/utils/proxy/interceptors.js.map +1 -0
- package/dist/utils/proxy/types.d.ts +45 -0
- package/dist/utils/proxy/types.d.ts.map +1 -0
- package/dist/utils/proxy/types.js +7 -0
- package/dist/utils/proxy/types.js.map +1 -0
- package/package.json +43 -6
- package/dist/utils/sso-gateway.d.ts +0 -75
- package/dist/utils/sso-gateway.d.ts.map +0 -1
- package/dist/utils/sso-gateway.js +0 -453
- 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
|
+
[](https://github.com/codemie-ai/codemie-code/actions/workflows/ci.yml)
|
|
3
4
|
[](https://opensource.org/licenses/Apache-2.0)
|
|
4
5
|
[](https://www.npmjs.com/package/@codemieai/code)
|
|
6
|
+
[](https://nodejs.org/)
|
|
7
|
+
[](https://www.typescriptlang.org/)
|
|
5
8
|
|
|
6
|
-
>
|
|
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
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
|
|
19
|
+
CodeMie CLI is the all-in-one AI coding assistant for developers.
|
|
68
20
|
|
|
69
|
-
|
|
70
|
-
-
|
|
71
|
-
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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.
|
|
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
|
-
#
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
#
|
|
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
|
-
|
|
91
|
+
You can also install and use external agents like Claude Code, Codex, and Gemini.
|
|
156
92
|
|
|
157
93
|
```bash
|
|
158
|
-
# Install
|
|
94
|
+
# Install an agent
|
|
159
95
|
codemie install claude
|
|
160
|
-
codemie install codex
|
|
161
|
-
codemie install gemini
|
|
162
96
|
|
|
163
|
-
#
|
|
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
|
-
|
|
101
|
+
For more detailed information on the available agents, see the [Agents Documentation](docs/AGENTS.md).
|
|
174
102
|
|
|
175
|
-
|
|
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
|
-
|
|
105
|
+
The CodeMie CLI has a rich set of commands for managing agents, configuration, and more.
|
|
224
106
|
|
|
225
107
|
```bash
|
|
226
|
-
codemie
|
|
227
|
-
codemie
|
|
228
|
-
codemie
|
|
229
|
-
codemie
|
|
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
|
-
|
|
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
|
|
120
|
+
### Quick Setup
|
|
245
121
|
|
|
246
|
-
|
|
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
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
-
|
|
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
|
-
###
|
|
396
|
-
|
|
397
|
-
AI/Run CodeMie CLI automatically validates model compatibility:
|
|
134
|
+
### Configuration Options
|
|
398
135
|
|
|
399
|
-
- **
|
|
400
|
-
- **
|
|
401
|
-
- **
|
|
402
|
-
- **
|
|
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
|
-
|
|
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
|
-
##
|
|
143
|
+
## Documentation
|
|
410
144
|
|
|
411
|
-
|
|
145
|
+
Comprehensive guides are available in the `docs/` directory:
|
|
412
146
|
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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
|
-
|
|
571
|
-
codemie profile list
|
|
572
|
-
# ● work (litellm) - claude-4-5-sonnet
|
|
573
|
-
# ○ personal (openai) - gpt-4.1
|
|
153
|
+
## Contributing
|
|
574
154
|
|
|
575
|
-
|
|
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)
|