ireri-code 2.0.0__py3-none-any.whl
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.
- agent/__init__.py +27 -0
- agent/cli.py +2573 -0
- agent/config.py +304 -0
- agent/context.py +215 -0
- agent/controller.py +633 -0
- agent/model.py +285 -0
- agent/prompts.py +90 -0
- agent/session.py +223 -0
- agent/tools/__init__.py +95 -0
- agent/tools/files.py +322 -0
- agent/tools/search.py +223 -0
- agent/tools/terminal.py +542 -0
- ireri_code-2.0.0.dist-info/METADATA +219 -0
- ireri_code-2.0.0.dist-info/RECORD +17 -0
- ireri_code-2.0.0.dist-info/WHEEL +5 -0
- ireri_code-2.0.0.dist-info/entry_points.txt +2 -0
- ireri_code-2.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: ireri-code
|
|
3
|
+
Version: 2.0.0
|
|
4
|
+
Summary: IRERI CODE - Terminal AI Coding Agent
|
|
5
|
+
Author: IRERI Team
|
|
6
|
+
License: MIT
|
|
7
|
+
Keywords: ai,coding-agent,cli,terminal,assistant
|
|
8
|
+
Classifier: Development Status :: 4 - Beta
|
|
9
|
+
Classifier: Environment :: Console
|
|
10
|
+
Classifier: Intended Audience :: Developers
|
|
11
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Requires-Python: >=3.10
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Requires-Dist: typer>=0.12.0
|
|
19
|
+
Requires-Dist: rich>=13.7.0
|
|
20
|
+
Requires-Dist: pydantic>=2.7.0
|
|
21
|
+
Requires-Dist: pydantic-settings>=2.2.0
|
|
22
|
+
Requires-Dist: python-dotenv>=1.0.0
|
|
23
|
+
Requires-Dist: openai>=1.30.0
|
|
24
|
+
Requires-Dist: httpx>=0.27.0
|
|
25
|
+
Requires-Dist: prompt_toolkit>=3.0.0
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Requires-Dist: pytest>=8.0.0; extra == "dev"
|
|
28
|
+
Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
|
|
29
|
+
Requires-Dist: pytest-mock>=3.12.0; extra == "dev"
|
|
30
|
+
|
|
31
|
+
# IRERI CODE π
|
|
32
|
+
### Terminal AI Coding Agent (v2.0.0)
|
|
33
|
+
|
|
34
|
+
```
|
|
35
|
+
ββββββββββ βββββββββββββββ βββ βββββββ βββββββ βββββββ ββββββββ
|
|
36
|
+
ββββββββββββββββββββββββββββββ βββββββββββββββββββββββββββββββββ
|
|
37
|
+
βββββββββββββββββ βββββββββββ βββ βββ ββββββ βββββββββ
|
|
38
|
+
βββββββββββββββββ βββββββββββ βββ βββ ββββββ βββββββββ
|
|
39
|
+
ββββββ ββββββββββββββ ββββββ βββββββββββββββββββββββββββββββββ
|
|
40
|
+
ββββββ ββββββββββββββ ββββββ βββββββ βββββββ βββββββ ββββββββ
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**IRERI CODE** is an intelligent, autonomous terminal-based AI coding assistant. It inspects repositories, plans and executes multi-step coding tasks, edits and creates files, executes shell commands, and iterates until the job is doneβall directly from your command line.
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## β¨ Features
|
|
48
|
+
|
|
49
|
+
- **Autonomous Multi-Step Agent Loop**:
|
|
50
|
+
- Plans and executes tools autonomously with up to 50 iterations per task.
|
|
51
|
+
- Automatically resets iteration budgets after each message generation.
|
|
52
|
+
- Self-recovering: catches execution errors and adapts strategy.
|
|
53
|
+
|
|
54
|
+
- **Multi-Provider & Model Support**:
|
|
55
|
+
- Compatible with any OpenAI-compatible endpoint.
|
|
56
|
+
- Built-in support for **NVIDIA NIM**, **OpenAI**, **OpenRouter**, **Groq**, and local models (**Ollama**, **vLLM**, **LM Studio**).
|
|
57
|
+
- Recommended free tier: **NVIDIA NIM** (1,000 free API credits on signup at [build.nvidia.com](https://build.nvidia.com/)).
|
|
58
|
+
|
|
59
|
+
- **Interactive Terminal UI**:
|
|
60
|
+
- High-impact visual banner and clean message styling powered by **Rich**.
|
|
61
|
+
- Dynamic user prompt: clean `β― ` prompt when idle, transitioning to `You: ` in real time while typing.
|
|
62
|
+
- Automatic slash-command suggestions pop-up when keying in `/`.
|
|
63
|
+
- Clean tool updates with visual hierarchy and non-intrusive status indicators.
|
|
64
|
+
|
|
65
|
+
- **Interactive Tool Approval & Safety**:
|
|
66
|
+
- Interactive approval prompts (`y` = approve, `n` = deny, `a` = approve all, `d` = deny all).
|
|
67
|
+
- Dangerous shell command detection (e.g., `rm -rf`, `sudo`, destructive operations).
|
|
68
|
+
- Optional one-shot auto-approval mode (`--yes` / `-y`).
|
|
69
|
+
|
|
70
|
+
- **Built-in Tool Ecosystem**:
|
|
71
|
+
- **File Operations**: `read_file`, `write_file`, `edit_file`, `delete_file`, `list_files`, `create_directory`.
|
|
72
|
+
- **Code Search**: Fast regex search (`search_files`) and content searching (`grep`).
|
|
73
|
+
- **Terminal**: `run_command` with timeout and working directory isolation.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## π¦ Installation
|
|
78
|
+
|
|
79
|
+
Clone the repository and install it in editable mode:
|
|
80
|
+
|
|
81
|
+
```bash
|
|
82
|
+
git clone https://github.com/ekusafamily/ireri-code.git
|
|
83
|
+
cd ireri-code/ultra-agent
|
|
84
|
+
pip install -e .
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## β‘ Quick Start
|
|
90
|
+
|
|
91
|
+
### 1. Configure an AI Provider
|
|
92
|
+
|
|
93
|
+
You can configure your provider interactively inside the chat using `/provider`:
|
|
94
|
+
|
|
95
|
+
```bash
|
|
96
|
+
ireri chat
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Then run:
|
|
100
|
+
```text
|
|
101
|
+
/provider nvidia
|
|
102
|
+
```
|
|
103
|
+
*(Prompts for your free NVIDIA API key and configures the default model)*
|
|
104
|
+
|
|
105
|
+
Alternatively, create a `.env` file in your workspace:
|
|
106
|
+
|
|
107
|
+
```env
|
|
108
|
+
OPENAI_API_KEY=nvapi-your-key-here
|
|
109
|
+
OPENAI_BASE_URL=https://integrate.api.nvidia.com/v1
|
|
110
|
+
OPENAI_MODEL=nvidia/nemotron-3.5-bolt-e4b
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
### 2. Start Chatting
|
|
114
|
+
|
|
115
|
+
Launch the interactive coding assistant:
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
ireri chat
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Or run in auto-approve mode:
|
|
122
|
+
|
|
123
|
+
```bash
|
|
124
|
+
ireri chat -y
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### 3. One-Shot Execution
|
|
128
|
+
|
|
129
|
+
Execute single commands directly from your terminal:
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
ireri run "Create a simple modern HTML and CSS website with dark mode"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## π€ Recommended Provider: NVIDIA NIM (Free Tier)
|
|
138
|
+
|
|
139
|
+
NVIDIA offers 1,000 free API credits to developers to run state-of-the-art open models:
|
|
140
|
+
|
|
141
|
+
1. **Register for an API key**: [https://build.nvidia.com/](https://build.nvidia.com/)
|
|
142
|
+
2. **Base URL**: `https://integrate.api.nvidia.com/v1`
|
|
143
|
+
3. **Recommended Models**:
|
|
144
|
+
- `nvidia/nemotron-3.5-bolt-e4b` *(Fast, optimized for code generation)*
|
|
145
|
+
- `meta/llama-3.3-70b-instruct` *(High reasoning capabilities)*
|
|
146
|
+
- `deepseek-ai/deepseek-r1` *(Deep reasoning model)*
|
|
147
|
+
|
|
148
|
+
Setup takes seconds inside ireri:
|
|
149
|
+
```text
|
|
150
|
+
/provider nvidia
|
|
151
|
+
```
|
|
152
|
+
|
|
153
|
+
---
|
|
154
|
+
|
|
155
|
+
## β¨οΈ Slash Commands
|
|
156
|
+
|
|
157
|
+
Keying in `/` inside `ireri chat` will automatically bring up the command completion menu:
|
|
158
|
+
|
|
159
|
+
| Command | Description |
|
|
160
|
+
| :--- | :--- |
|
|
161
|
+
| `/provider` | View active provider, list profiles, and configure new providers |
|
|
162
|
+
| `/provider nvidia` | Quick 1-step setup for NVIDIA NIM free models |
|
|
163
|
+
| `/provider add` | Guided wizard to add any AI provider |
|
|
164
|
+
| `/provider use <name>` | Switch between configured provider profiles |
|
|
165
|
+
| `/model` | Switch the active AI model |
|
|
166
|
+
| `/models` | List all available models from the current provider |
|
|
167
|
+
| `/settings` | Open interactive settings and API profiles |
|
|
168
|
+
| `/config` | View current agent configuration |
|
|
169
|
+
| `/status` | Show current agent runtime status |
|
|
170
|
+
| `/clear` | Clear the terminal conversation view |
|
|
171
|
+
| `/reset` | Reset the agent session context |
|
|
172
|
+
| `/version` | Show agent version information |
|
|
173
|
+
| `/update` | Check for updates |
|
|
174
|
+
| `/about` | Information about IRERI CODE |
|
|
175
|
+
| `/exit` | Exit the session cleanly (`/quit`, `/q`) |
|
|
176
|
+
|
|
177
|
+
---
|
|
178
|
+
|
|
179
|
+
## π οΈ CLI Reference
|
|
180
|
+
|
|
181
|
+
```text
|
|
182
|
+
Usage: ireri [OPTIONS] COMMAND [ARGS]...
|
|
183
|
+
|
|
184
|
+
Commands:
|
|
185
|
+
chat Start an interactive chat session with ireri.
|
|
186
|
+
--project, -p Project directory (default: current directory)
|
|
187
|
+
--model, -m Model identifier to use
|
|
188
|
+
--base-url, -u API base URL
|
|
189
|
+
--api-key, -k API key
|
|
190
|
+
--max-iterations, -i Maximum loop iterations per task [default: 50]
|
|
191
|
+
--yes, -y Auto-approve all tool calls
|
|
192
|
+
|
|
193
|
+
run Execute a one-shot task with ireri.
|
|
194
|
+
--project, -p Project directory
|
|
195
|
+
--model, -m Model identifier to use
|
|
196
|
+
--max-iterations, -i Maximum loop iterations [default: 50]
|
|
197
|
+
--json, -j Output result as JSON
|
|
198
|
+
|
|
199
|
+
tools List all available built-in tools.
|
|
200
|
+
config-show Show current configuration settings.
|
|
201
|
+
init Initialize a new project with .env configuration.
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
## π§ͺ Running Tests
|
|
207
|
+
|
|
208
|
+
To run the test suite:
|
|
209
|
+
|
|
210
|
+
```bash
|
|
211
|
+
pytest ultra-agent
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
---
|
|
215
|
+
|
|
216
|
+
## π License
|
|
217
|
+
|
|
218
|
+
MIT License. Created by the ireri team.
|
|
219
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
agent/__init__.py,sha256=edySPs2lGAnQYL3BVENp6M61gKeaUPg9NvMnZRnEzdM,719
|
|
2
|
+
agent/cli.py,sha256=CyBEUYQymu1DVWjCigcI3wBERyay4bhn-40LyRJ_skU,108657
|
|
3
|
+
agent/config.py,sha256=l3UTfRlbocKB4QqFbfAxlaQmAKD0bltAcncVHJ_pwaI,9683
|
|
4
|
+
agent/context.py,sha256=4Dw9fB90odSTZ3Dk7ug104darUUyElNLNC51sdAQPUU,7799
|
|
5
|
+
agent/controller.py,sha256=Mb9JOwGMKgZn4bwzjHt8XYggsPXxr0yiJW9MmPqndNE,26867
|
|
6
|
+
agent/model.py,sha256=sEmn12AXs8QP0Q5Ut0CwQ2B8E9VgbiMjs4STwiweRe8,10774
|
|
7
|
+
agent/prompts.py,sha256=wKXrAWQJlF05vc-AbMNfEzTmkND5DRbjyZyI0MfhHNQ,3338
|
|
8
|
+
agent/session.py,sha256=CNV-qw69pNNsNpnm5Cg11aJZGoz64D-iyVteELuN_I4,8579
|
|
9
|
+
agent/tools/__init__.py,sha256=DZfT0ccXF6G1reowT5J_bl_MgGbyMEE1Zk4D5g5OiJQ,2594
|
|
10
|
+
agent/tools/files.py,sha256=mkdROe0QkDpL2F82CuPLPeLXrVtcyM4PFz6dt1rHaag,11384
|
|
11
|
+
agent/tools/search.py,sha256=Jna0CnzTmPIe6u-3VOHtEnt2Nte_YmrGrga67gKWfD4,7787
|
|
12
|
+
agent/tools/terminal.py,sha256=mEgTaBpMlO-VWhq0yV4CVdhFLC3cdTuuaOHxPtdFu_M,20060
|
|
13
|
+
ireri_code-2.0.0.dist-info/METADATA,sha256=xPu7ghi94UjZHd3qQm78A1lkEhcF3hUsHqOdLkfCcjk,7905
|
|
14
|
+
ireri_code-2.0.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
15
|
+
ireri_code-2.0.0.dist-info/entry_points.txt,sha256=AdW1fdq6vd6u0FCkD7-TOkenpFa5rGLIfDMpc7aCzJI,41
|
|
16
|
+
ireri_code-2.0.0.dist-info/top_level.txt,sha256=0gvCG7PHc22NA63j3bTGi2Zc37ym9t8Pf90ZLzf1kGA,6
|
|
17
|
+
ireri_code-2.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
agent
|