aiexecode 1.0.157
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/LICENSE +68 -0
- package/README.md +347 -0
- package/config_template/mcp_config.json +3 -0
- package/config_template/package_name_store.json +5 -0
- package/config_template/settings.json +5 -0
- package/index.js +879 -0
- package/mcp-agent-lib/example/01-basic-usage.js +82 -0
- package/mcp-agent-lib/example/02-quick-start.js +52 -0
- package/mcp-agent-lib/example/03-http-server.js +76 -0
- package/mcp-agent-lib/example/04-multiple-servers.js +117 -0
- package/mcp-agent-lib/example/05-error-handling.js +116 -0
- package/mcp-agent-lib/example/06-resources-and-prompts.js +174 -0
- package/mcp-agent-lib/example/07-advanced-configuration.js +191 -0
- package/mcp-agent-lib/example/08-real-world-chatbot.js +331 -0
- package/mcp-agent-lib/example/README.md +346 -0
- package/mcp-agent-lib/index.js +19 -0
- package/mcp-agent-lib/init.sh +3 -0
- package/mcp-agent-lib/package-lock.json +1216 -0
- package/mcp-agent-lib/package.json +53 -0
- package/mcp-agent-lib/sampleFastMCPClient/client.py +25 -0
- package/mcp-agent-lib/sampleFastMCPClient/run.sh +3 -0
- package/mcp-agent-lib/sampleFastMCPServer/run.sh +3 -0
- package/mcp-agent-lib/sampleFastMCPServer/server.py +12 -0
- package/mcp-agent-lib/sampleFastMCPServerElicitationRequest/run.sh +3 -0
- package/mcp-agent-lib/sampleFastMCPServerElicitationRequest/server.py +43 -0
- package/mcp-agent-lib/sampleFastMCPServerRootsRequest/server.py +63 -0
- package/mcp-agent-lib/sampleMCPHost/index.js +386 -0
- package/mcp-agent-lib/sampleMCPHost/mcp_config.json +24 -0
- package/mcp-agent-lib/sampleMCPHostFeatures/elicitation.js +151 -0
- package/mcp-agent-lib/sampleMCPHostFeatures/index.js +166 -0
- package/mcp-agent-lib/sampleMCPHostFeatures/roots.js +197 -0
- package/mcp-agent-lib/src/mcp_client.js +1860 -0
- package/mcp-agent-lib/src/mcp_message_logger.js +517 -0
- package/package.json +72 -0
- package/payload_viewer/out/404/index.html +1 -0
- package/payload_viewer/out/404.html +1 -0
- package/payload_viewer/out/_next/static/chunks/060f9a97930f3d04.js +1 -0
- package/payload_viewer/out/_next/static/chunks/103c802c8f4a5ea1.js +1 -0
- package/payload_viewer/out/_next/static/chunks/16474fd6c6910c45.js +1 -0
- package/payload_viewer/out/_next/static/chunks/17722e3ac4e00587.js +1 -0
- package/payload_viewer/out/_next/static/chunks/305b077a9873cf54.js +1 -0
- package/payload_viewer/out/_next/static/chunks/4c1d05c6741c2bdd.js +5 -0
- package/payload_viewer/out/_next/static/chunks/538cc02e54714b23.js +1 -0
- package/payload_viewer/out/_next/static/chunks/6251fa5907d2b226.js +5 -0
- package/payload_viewer/out/_next/static/chunks/a6dad97d9634a72d.js +1 -0
- package/payload_viewer/out/_next/static/chunks/b6c0459f3789d25c.js +1 -0
- package/payload_viewer/out/_next/static/chunks/b75131b58f8ca46a.css +3 -0
- package/payload_viewer/out/_next/static/chunks/bd2dcf98c9b362f6.js +1 -0
- package/payload_viewer/out/_next/static/chunks/c8a542ae21335479.js +1 -0
- package/payload_viewer/out/_next/static/chunks/cdd12d5c1a5a6064.js +1 -0
- package/payload_viewer/out/_next/static/chunks/e411019f55d87c42.js +1 -0
- package/payload_viewer/out/_next/static/chunks/e60ef129113f6e24.js +1 -0
- package/payload_viewer/out/_next/static/chunks/f1ac9047ac4a3fde.js +1 -0
- package/payload_viewer/out/_next/static/chunks/turbopack-0ac29803ce3c3c7a.js +3 -0
- package/payload_viewer/out/_next/static/chunks/turbopack-89db4c64206a73e4.js +3 -0
- package/payload_viewer/out/_next/static/chunks/turbopack-a5b8235fa59d7119.js +3 -0
- package/payload_viewer/out/_next/static/media/4fa387ec64143e14-s.c1fdd6c2.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/7178b3e590c64307-s.b97b3418.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/797e433ab948586e-s.p.dbea232f.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/8a480f0b521d4e75-s.8e0177b5.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/bbc41e54d2fcbd21-s.799d8ef8.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/caa3a2e1cccd8315-s.p.853070df.woff2 +0 -0
- package/payload_viewer/out/_next/static/media/favicon.0b3bf435.ico +0 -0
- package/payload_viewer/out/_next/static/uqQYtKpKV7kCSkUbLgdfJ/_buildManifest.js +14 -0
- package/payload_viewer/out/_next/static/uqQYtKpKV7kCSkUbLgdfJ/_clientMiddlewareManifest.json +1 -0
- package/payload_viewer/out/_next/static/uqQYtKpKV7kCSkUbLgdfJ/_ssgManifest.js +1 -0
- package/payload_viewer/out/favicon.ico +0 -0
- package/payload_viewer/out/file.svg +1 -0
- package/payload_viewer/out/globe.svg +1 -0
- package/payload_viewer/out/index.html +1 -0
- package/payload_viewer/out/index.txt +23 -0
- package/payload_viewer/out/next.svg +1 -0
- package/payload_viewer/out/vercel.svg +1 -0
- package/payload_viewer/out/window.svg +1 -0
- package/payload_viewer/web_server.js +861 -0
- package/prompts/completion_judge.txt +128 -0
- package/prompts/orchestrator.txt +1213 -0
- package/src/LLMClient/client.js +1375 -0
- package/src/LLMClient/converters/input-normalizer.js +238 -0
- package/src/LLMClient/converters/responses-to-claude.js +503 -0
- package/src/LLMClient/converters/responses-to-gemini.js +648 -0
- package/src/LLMClient/converters/responses-to-ollama.js +348 -0
- package/src/LLMClient/converters/responses-to-zai.js +667 -0
- package/src/LLMClient/errors.js +398 -0
- package/src/LLMClient/index.js +36 -0
- package/src/ai_based/completion_judge.js +421 -0
- package/src/ai_based/orchestrator.js +527 -0
- package/src/ai_based/pip_package_installer.js +173 -0
- package/src/ai_based/pip_package_lookup.js +197 -0
- package/src/cli/mcp_cli.js +70 -0
- package/src/cli/mcp_commands.js +255 -0
- package/src/commands/agents.js +18 -0
- package/src/commands/apikey.js +55 -0
- package/src/commands/bg.js +140 -0
- package/src/commands/commands.js +56 -0
- package/src/commands/debug.js +54 -0
- package/src/commands/exit.js +19 -0
- package/src/commands/help.js +35 -0
- package/src/commands/mcp.js +128 -0
- package/src/commands/model.js +176 -0
- package/src/commands/setup.js +13 -0
- package/src/commands/skills.js +51 -0
- package/src/commands/tools.js +165 -0
- package/src/commands/viewer.js +147 -0
- package/src/config/ai_models.js +312 -0
- package/src/config/config.js +10 -0
- package/src/config/constants.js +71 -0
- package/src/config/feature_flags.js +15 -0
- package/src/frontend/App.js +1263 -0
- package/src/frontend/README.md +81 -0
- package/src/frontend/components/AutocompleteMenu.js +47 -0
- package/src/frontend/components/BackgroundProcessList.js +175 -0
- package/src/frontend/components/BlankLine.js +62 -0
- package/src/frontend/components/ConversationItem.js +893 -0
- package/src/frontend/components/CurrentModelView.js +43 -0
- package/src/frontend/components/FileDiffViewer.js +616 -0
- package/src/frontend/components/Footer.js +25 -0
- package/src/frontend/components/Header.js +42 -0
- package/src/frontend/components/HelpView.js +154 -0
- package/src/frontend/components/Input.js +344 -0
- package/src/frontend/components/LoadingIndicator.js +31 -0
- package/src/frontend/components/ModelListView.js +49 -0
- package/src/frontend/components/ModelUpdatedView.js +22 -0
- package/src/frontend/components/SessionSpinner.js +66 -0
- package/src/frontend/components/SetupWizard.js +242 -0
- package/src/frontend/components/StreamOutput.js +34 -0
- package/src/frontend/components/TodoList.js +56 -0
- package/src/frontend/components/ToolApprovalPrompt.js +452 -0
- package/src/frontend/design/themeColors.js +42 -0
- package/src/frontend/hooks/useCompletion.js +84 -0
- package/src/frontend/hooks/useFileCompletion.js +467 -0
- package/src/frontend/hooks/useKeypress.js +145 -0
- package/src/frontend/index.js +65 -0
- package/src/frontend/utils/GridRenderer.js +140 -0
- package/src/frontend/utils/InlineFormatter.js +156 -0
- package/src/frontend/utils/diffUtils.js +235 -0
- package/src/frontend/utils/inputBuffer.js +441 -0
- package/src/frontend/utils/markdownParser.js +377 -0
- package/src/frontend/utils/outputRedirector.js +47 -0
- package/src/frontend/utils/renderInkComponent.js +42 -0
- package/src/frontend/utils/syntaxHighlighter.js +149 -0
- package/src/frontend/utils/toolUIFormatter.js +261 -0
- package/src/system/agents_loader.js +170 -0
- package/src/system/ai_request.js +737 -0
- package/src/system/background_process.js +317 -0
- package/src/system/code_executer.js +1233 -0
- package/src/system/command_loader.js +40 -0
- package/src/system/command_parser.js +133 -0
- package/src/system/conversation_state.js +265 -0
- package/src/system/conversation_trimmer.js +265 -0
- package/src/system/custom_command_loader.js +395 -0
- package/src/system/file_integrity.js +466 -0
- package/src/system/import_analyzer.py +174 -0
- package/src/system/log.js +82 -0
- package/src/system/mcp_integration.js +304 -0
- package/src/system/output_helper.js +89 -0
- package/src/system/session.js +1393 -0
- package/src/system/session_memory.js +481 -0
- package/src/system/skill_loader.js +324 -0
- package/src/system/system_info.js +483 -0
- package/src/system/tool_approval.js +160 -0
- package/src/system/tool_registry.js +184 -0
- package/src/system/ui_events.js +279 -0
- package/src/tools/code_editor.js +792 -0
- package/src/tools/file_reader.js +385 -0
- package/src/tools/glob.js +263 -0
- package/src/tools/response_message.js +30 -0
- package/src/tools/ripgrep.js +554 -0
- package/src/tools/skill_tool.js +122 -0
- package/src/tools/todo_write.js +182 -0
- package/src/tools/web_download.py +74 -0
- package/src/tools/web_downloader.js +83 -0
- package/src/util/clone.js +174 -0
- package/src/util/config.js +203 -0
- package/src/util/config_migration.js +174 -0
- package/src/util/debug_log.js +49 -0
- package/src/util/exit_handler.js +53 -0
- package/src/util/file_reference_parser.js +132 -0
- package/src/util/mcp_config_manager.js +159 -0
- package/src/util/output_formatter.js +50 -0
- package/src/util/path_helper.js +27 -0
- package/src/util/path_validator.js +178 -0
- package/src/util/prompt_loader.js +184 -0
- package/src/util/rag_helper.js +101 -0
- package/src/util/safe_fs.js +645 -0
- package/src/util/setup_wizard.js +62 -0
- package/src/util/text_formatter.js +33 -0
- package/src/util/version_check.js +116 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
AIEXEcode Source-Available License 1.0
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024-2025 코드깎는노인 (kstost), All Rights Reserved.
|
|
4
|
+
|
|
5
|
+
Parameters
|
|
6
|
+
|
|
7
|
+
Licensor: 코드깎는노인 (kstost)
|
|
8
|
+
Licensed Work: AIEXEcode v1.0.0 and later versions. The Licensed Work is
|
|
9
|
+
(c) 2024-2025 코드깎는노인 (kstost)
|
|
10
|
+
Additional Use Grant: You may make use of the Licensed Work, provided Your use does
|
|
11
|
+
not include offering the Licensed Work to third parties on a
|
|
12
|
+
hosted or embedded basis as a commercial service or product.
|
|
13
|
+
|
|
14
|
+
Permitted uses include:
|
|
15
|
+
- Personal use and learning
|
|
16
|
+
- Academic research and education
|
|
17
|
+
- Internal business use within your organization
|
|
18
|
+
- Non-profit and open-source project development
|
|
19
|
+
- Evaluation and testing purposes
|
|
20
|
+
|
|
21
|
+
Prohibited uses include:
|
|
22
|
+
- Offering AIEXEcode as a paid hosted service (SaaS)
|
|
23
|
+
- Selling or sublicensing AIEXEcode or derivative works
|
|
24
|
+
- Embedding AIEXEcode in commercial products without permission
|
|
25
|
+
- Operating AIEXEcode as part of a competitive commercial offering
|
|
26
|
+
|
|
27
|
+
"Commercial offering" means a product or service that is offered
|
|
28
|
+
to third parties on a paid basis that incorporates or is based
|
|
29
|
+
on the Licensed Work.
|
|
30
|
+
|
|
31
|
+
For alternative licensing arrangements for commercial use,
|
|
32
|
+
please contact: monogatree@gmail.com or visit
|
|
33
|
+
https://github.com/kstost/aiexecode/issues
|
|
34
|
+
|
|
35
|
+
Change Date: Not applicable
|
|
36
|
+
Change License: Not applicable
|
|
37
|
+
|
|
38
|
+
This license remains in effect indefinitely unless explicitly changed by the
|
|
39
|
+
Licensor. No automatic conversion to another license will occur.
|
|
40
|
+
|
|
41
|
+
Terms
|
|
42
|
+
|
|
43
|
+
The Licensor hereby grants you the right to copy, modify, create derivative
|
|
44
|
+
works, redistribute, and make non-production use of the Licensed Work. The
|
|
45
|
+
Licensor may make an Additional Use Grant, above, permitting limited production use.
|
|
46
|
+
|
|
47
|
+
If your use of the Licensed Work does not comply with the requirements
|
|
48
|
+
currently in effect as described in this License, you must purchase a
|
|
49
|
+
commercial license from the Licensor or its authorized resellers, or you must
|
|
50
|
+
refrain from using the Licensed Work.
|
|
51
|
+
|
|
52
|
+
All copies of the original and modified Licensed Work, and derivative works
|
|
53
|
+
of the Licensed Work, are subject to this License.
|
|
54
|
+
|
|
55
|
+
You must conspicuously display this License on each original or modified copy
|
|
56
|
+
of the Licensed Work.
|
|
57
|
+
|
|
58
|
+
Any use of the Licensed Work in violation of this License will automatically
|
|
59
|
+
terminate your rights under this License.
|
|
60
|
+
|
|
61
|
+
This License does not grant you any right in any trademark or logo of
|
|
62
|
+
Licensor.
|
|
63
|
+
|
|
64
|
+
TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
|
|
65
|
+
AN "AS IS" BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
|
|
66
|
+
EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
|
|
67
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
|
|
68
|
+
TITLE.
|
package/README.md
ADDED
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
# AIEXEcode
|
|
2
|
+
|
|
3
|
+
<div align="center">
|
|
4
|
+
|
|
5
|
+
**AI-Powered Autonomous Coding Agent**
|
|
6
|
+
|
|
7
|
+
*by 코드깎는노인*
|
|
8
|
+
|
|
9
|
+
[Website](https://aiexecode.com) | [GitHub](https://github.com/kstost/aiexecode)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## What is AIEXEcode?
|
|
16
|
+
|
|
17
|
+
**AIEXEcode** is a CLI-based AI coding agent that autonomously handles software development tasks. Simply describe what you want in natural language, and the AI will analyze, plan, and execute the work for you.
|
|
18
|
+
|
|
19
|
+
### Key Features
|
|
20
|
+
|
|
21
|
+
- **Natural Language Interface**: Just describe what you want - no complex commands needed
|
|
22
|
+
- **Autonomous Execution**: AI analyzes code, creates plans, and executes them automatically
|
|
23
|
+
- **Session Management**: Pause and resume work anytime with session IDs
|
|
24
|
+
- **Log Viewer**: Web-based UI to review AI's actions and decisions
|
|
25
|
+
- **MCP Integration**: Extend capabilities with Model Context Protocol servers
|
|
26
|
+
- **Z.AI Integration**: Powered by Z.AI's advanced GLM models
|
|
27
|
+
|
|
28
|
+
### What You Can Do
|
|
29
|
+
|
|
30
|
+
- **Bug Fixes**: "Fix the authentication error in login.js"
|
|
31
|
+
- **Add Features**: "Create a user profile editing feature"
|
|
32
|
+
- **Refactoring**: "Clean up the auth module for better readability"
|
|
33
|
+
- **Write Tests**: "Write unit tests for all API endpoints"
|
|
34
|
+
- **Documentation**: "Add JSDoc comments to main functions"
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Installation
|
|
39
|
+
|
|
40
|
+
### System Requirements
|
|
41
|
+
|
|
42
|
+
| Requirement | Details |
|
|
43
|
+
|-------------|---------|
|
|
44
|
+
| **OS** | macOS, Linux (Windows not supported) |
|
|
45
|
+
| **Node.js** | 18.0.0 or higher |
|
|
46
|
+
| **npm** | 8.0.0 or higher |
|
|
47
|
+
| **ripgrep** | Required for code search |
|
|
48
|
+
|
|
49
|
+
### Step 1: Install ripgrep
|
|
50
|
+
|
|
51
|
+
**macOS:**
|
|
52
|
+
```bash
|
|
53
|
+
brew install ripgrep
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
**Ubuntu/Debian:**
|
|
57
|
+
```bash
|
|
58
|
+
sudo apt-get install ripgrep
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Fedora/CentOS:**
|
|
62
|
+
```bash
|
|
63
|
+
sudo dnf install ripgrep
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
**Arch Linux:**
|
|
67
|
+
```bash
|
|
68
|
+
sudo pacman -S ripgrep
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### Step 2: Install AIEXEcode
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
npm install -g aiexecode
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Getting Started
|
|
80
|
+
|
|
81
|
+
### First Run Setup
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
aiexecode
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
On first run, the setup wizard will guide you through:
|
|
88
|
+
|
|
89
|
+
1. **Enter API Key** - Your Z.AI API key
|
|
90
|
+
2. **Select Model** - Choose from available models
|
|
91
|
+
|
|
92
|
+
**Where to get API key:**
|
|
93
|
+
- **Z.AI**: https://z.ai/manage-apikey/apikey-list
|
|
94
|
+
|
|
95
|
+
### Basic Usage
|
|
96
|
+
|
|
97
|
+
**Interactive Mode (Recommended):**
|
|
98
|
+
```bash
|
|
99
|
+
aiexecode
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Then enter your requests naturally:
|
|
103
|
+
```
|
|
104
|
+
> Fix all lint errors in src/
|
|
105
|
+
> Add input validation to the signup form
|
|
106
|
+
> /exit
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
**Direct Execution:**
|
|
110
|
+
```bash
|
|
111
|
+
aiexecode "create a REST API for user management"
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## Supported Models
|
|
117
|
+
|
|
118
|
+
### Z.AI (GLM Series)
|
|
119
|
+
|
|
120
|
+
| Model | Description | Context | Max Output |
|
|
121
|
+
|-------|-------------|---------|------------|
|
|
122
|
+
| `glm-4.7` | Latest flagship model | 200K | 128K |
|
|
123
|
+
| `glm-4.6` | High-performance model | 200K | 128K |
|
|
124
|
+
| `glm-4.5-air` | Fast, lightweight | 128K | 96K |
|
|
125
|
+
| `glm-4.5` | Standard model (default) | 128K | 96K |
|
|
126
|
+
|
|
127
|
+
- Supports **Thinking Mode**, prompt caching, and server-side web search
|
|
128
|
+
|
|
129
|
+
Use `/model list` to see all models or `/model <name>` to switch.
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
## Commands
|
|
134
|
+
|
|
135
|
+
### CLI Options
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
aiexecode # Interactive mode
|
|
139
|
+
aiexecode "task description" # Direct execution
|
|
140
|
+
aiexecode -c <session_id> # Continue previous session
|
|
141
|
+
aiexecode -c <session_id> "new task" # Continue with new task
|
|
142
|
+
aiexecode --init # Initialize project prompts
|
|
143
|
+
aiexecode --viewer # Start log viewer (port 3000)
|
|
144
|
+
aiexecode --viewer --port 8080 # Log viewer on custom port
|
|
145
|
+
aiexecode --dangerously-skip-permissions "task" # Skip approval prompts
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Interactive Commands
|
|
149
|
+
|
|
150
|
+
| Command | Description |
|
|
151
|
+
|---------|-------------|
|
|
152
|
+
| `/help` | Show all available commands |
|
|
153
|
+
| `/exit` | Exit the application |
|
|
154
|
+
| `/clear` | Clear the screen |
|
|
155
|
+
| `/apikey` | Change API key |
|
|
156
|
+
| `/model` | Select AI model |
|
|
157
|
+
| `/model list` | List all available models |
|
|
158
|
+
| `/tools` | Enable/disable tools |
|
|
159
|
+
| `/mcp` | View MCP server status |
|
|
160
|
+
| `/agents` | Show AGENTS.md content |
|
|
161
|
+
| `/skills` | List project skills |
|
|
162
|
+
| `/commands` | List custom commands |
|
|
163
|
+
|
|
164
|
+
---
|
|
165
|
+
|
|
166
|
+
## Session Management
|
|
167
|
+
|
|
168
|
+
AIEXEcode automatically saves your work sessions, allowing you to pause and resume later.
|
|
169
|
+
|
|
170
|
+
### How It Works
|
|
171
|
+
|
|
172
|
+
```bash
|
|
173
|
+
# Start a new session
|
|
174
|
+
aiexecode
|
|
175
|
+
> Create a large file processing feature
|
|
176
|
+
# Output: Session ID: abc1234567890def
|
|
177
|
+
|
|
178
|
+
# Continue later
|
|
179
|
+
aiexecode -c abc1234567890def
|
|
180
|
+
> Now add error handling
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
Sessions are stored in `.aiexe/<session_id>/` and include:
|
|
184
|
+
- Complete conversation history
|
|
185
|
+
- Tool execution logs
|
|
186
|
+
- File modification records
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Log Viewer
|
|
191
|
+
|
|
192
|
+
Review what the AI did through a web-based interface.
|
|
193
|
+
|
|
194
|
+
```bash
|
|
195
|
+
aiexecode --viewer
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Open `http://localhost:3000` to see:
|
|
199
|
+
- Commands executed by AI
|
|
200
|
+
- File modification history
|
|
201
|
+
- AI's thinking process
|
|
202
|
+
- API request/response logs
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## MCP Server Integration
|
|
207
|
+
|
|
208
|
+
Extend AIEXEcode's capabilities by connecting Model Context Protocol (MCP) servers.
|
|
209
|
+
|
|
210
|
+
### Adding MCP Servers
|
|
211
|
+
|
|
212
|
+
**stdio-based server:**
|
|
213
|
+
```bash
|
|
214
|
+
aiexecode mcp add --transport stdio github -- npx -y @modelcontextprotocol/server-github
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
**HTTP-based server:**
|
|
218
|
+
```bash
|
|
219
|
+
aiexecode mcp add --transport http myserver http://localhost:3000
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
**JSON configuration:**
|
|
223
|
+
```bash
|
|
224
|
+
aiexecode mcp add-json github '{"type":"stdio","command":"npx","args":["-y","@modelcontextprotocol/server-github"]}'
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### Managing MCP Servers
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
aiexecode mcp list # List all servers
|
|
231
|
+
aiexecode mcp get <name> # Get server details
|
|
232
|
+
aiexecode mcp remove <name> # Remove a server
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
### In Interactive Mode
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
/mcp # Show all MCP servers and tools
|
|
239
|
+
/mcp <server-name> # Show specific server's tools
|
|
240
|
+
```
|
|
241
|
+
|
|
242
|
+
---
|
|
243
|
+
|
|
244
|
+
## Project Customization
|
|
245
|
+
|
|
246
|
+
### Custom Prompts
|
|
247
|
+
|
|
248
|
+
Initialize project-specific AI behavior:
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
aiexecode --init
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
This creates `.aiexe/prompts/` where you can customize how AI behaves for your project.
|
|
255
|
+
|
|
256
|
+
### Custom Commands
|
|
257
|
+
|
|
258
|
+
Add JavaScript files to `.aiexe/commands/` for project-specific slash commands.
|
|
259
|
+
|
|
260
|
+
### Skills
|
|
261
|
+
|
|
262
|
+
Add JavaScript files to `.aiexe/skills/` for reusable AI capabilities.
|
|
263
|
+
|
|
264
|
+
### AGENTS.md
|
|
265
|
+
|
|
266
|
+
Create an `AGENTS.md` file in your project root to provide additional context to the AI about your project's conventions and requirements.
|
|
267
|
+
|
|
268
|
+
---
|
|
269
|
+
|
|
270
|
+
## Configuration
|
|
271
|
+
|
|
272
|
+
### Settings Location
|
|
273
|
+
|
|
274
|
+
| Path | Description |
|
|
275
|
+
|------|-------------|
|
|
276
|
+
| `~/.aiexe/settings.json` | Main configuration |
|
|
277
|
+
| `~/.aiexe/mcp_config.json` | MCP server settings |
|
|
278
|
+
| `~/.aiexe/skills/` | Personal skills |
|
|
279
|
+
| `~/.aiexe/commands/` | Personal commands |
|
|
280
|
+
| `.aiexe/` | Project-specific settings |
|
|
281
|
+
|
|
282
|
+
### Available Tools
|
|
283
|
+
|
|
284
|
+
AIEXEcode provides these built-in tools for AI:
|
|
285
|
+
|
|
286
|
+
- `edit_file_range` - Edit specific line ranges
|
|
287
|
+
- `edit_file_replace` - Replace exact strings
|
|
288
|
+
- `write_file` - Create or overwrite files
|
|
289
|
+
- `read_file` - Read entire files
|
|
290
|
+
- `read_file_range` - Read specific line ranges
|
|
291
|
+
- `bash` - Execute shell commands
|
|
292
|
+
- `run_python_code` - Run Python scripts
|
|
293
|
+
- `fetch_web_page` - Fetch web content
|
|
294
|
+
- `ripgrep` - Search code with ripgrep
|
|
295
|
+
- `glob_search` - Find files by pattern
|
|
296
|
+
|
|
297
|
+
Enable/disable tools with `/tools enable|disable <tool-name>`.
|
|
298
|
+
|
|
299
|
+
---
|
|
300
|
+
|
|
301
|
+
## Requirements Summary
|
|
302
|
+
|
|
303
|
+
**Required:**
|
|
304
|
+
- macOS or Linux
|
|
305
|
+
- Node.js 18+
|
|
306
|
+
- npm 8+
|
|
307
|
+
- ripgrep
|
|
308
|
+
- Z.AI API key
|
|
309
|
+
|
|
310
|
+
**Optional:**
|
|
311
|
+
- Python 3 (for Python code execution)
|
|
312
|
+
|
|
313
|
+
---
|
|
314
|
+
|
|
315
|
+
## Contact
|
|
316
|
+
|
|
317
|
+
- **Website**: https://aiexecode.com
|
|
318
|
+
- **Issues**: https://github.com/kstost/aiexecode/issues
|
|
319
|
+
|
|
320
|
+
---
|
|
321
|
+
|
|
322
|
+
## Disclaimer
|
|
323
|
+
|
|
324
|
+
**THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.**
|
|
325
|
+
|
|
326
|
+
**IN NO EVENT SHALL THE AUTHORS, COPYRIGHT HOLDERS, OR CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.**
|
|
327
|
+
|
|
328
|
+
This includes, without limitation:
|
|
329
|
+
- Data loss or corruption
|
|
330
|
+
- System damage or malfunction
|
|
331
|
+
- Security breaches or vulnerabilities
|
|
332
|
+
- Financial losses
|
|
333
|
+
- Any direct, indirect, incidental, special, exemplary, or consequential damages
|
|
334
|
+
|
|
335
|
+
**The user assumes full responsibility for all consequences arising from the use of this software, regardless of whether such use was intended, authorized, or anticipated.**
|
|
336
|
+
|
|
337
|
+
**USE AT YOUR OWN RISK.**
|
|
338
|
+
|
|
339
|
+
---
|
|
340
|
+
|
|
341
|
+
<div align="center">
|
|
342
|
+
|
|
343
|
+
**AIEXEcode** - AI Coding Agent for Developers
|
|
344
|
+
|
|
345
|
+
Made by 코드깎는노인
|
|
346
|
+
|
|
347
|
+
</div>
|