neuroncli 2.1.0__tar.gz

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.
@@ -0,0 +1,171 @@
1
+ Metadata-Version: 2.4
2
+ Name: neuroncli
3
+ Version: 2.1.0
4
+ Summary: AI Coding Agent — Free Claude Code alternative powered by Kimi K2.5 + Ollama
5
+ Author-email: Rahul S <rahultech72216@gmail.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://zero-x.live
8
+ Project-URL: Repository, https://github.com/RAHUL-DevelopeRR/neuroncli
9
+ Project-URL: Issues, https://github.com/RAHUL-DevelopeRR/neuroncli/issues
10
+ Keywords: ai,coding,agent,cli,llm,kimi,ollama,code-assistant
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Environment :: Console
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Topic :: Software Development
15
+ Classifier: Topic :: Software Development :: Code Generators
16
+ Classifier: License :: OSI Approved :: MIT License
17
+ Classifier: Programming Language :: Python :: 3.10
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Operating System :: OS Independent
22
+ Requires-Python: >=3.10
23
+ Description-Content-Type: text/markdown
24
+ Requires-Dist: requests>=2.28.0
25
+
26
+ # NeuronCLI
27
+
28
+ **Free AI Coding Agent** — Claude Code alternative powered by Kimi K2.5. Works on **Windows, Linux, macOS**.
29
+
30
+ > Built by [zero-x Corporation](https://zero-x.live)
31
+
32
+ ---
33
+
34
+ ## Install
35
+
36
+ ```bash
37
+ # From PyPI (all platforms)
38
+ pip install neuroncli
39
+
40
+ # Or from source
41
+ git clone https://github.com/RAHUL-DevelopeRR/neuroncli.git
42
+ cd neuroncli
43
+ pip install -e .
44
+ ```
45
+
46
+ ```bash
47
+ # Linux/macOS one-liner
48
+ curl -fsSL https://raw.githubusercontent.com/RAHUL-DevelopeRR/neuroncli/master/install.sh | bash
49
+ ```
50
+
51
+ ## Quick Start
52
+
53
+ ```bash
54
+ # Start interactive REPL
55
+ neuron
56
+
57
+ # One-shot task
58
+ neuron "fix the bug in main.py"
59
+
60
+ # YOLO mode — no permission prompts
61
+ neuron --yolo "refactor src/ to use async"
62
+
63
+ # Plan mode — think first, code later
64
+ neuron --plan "add authentication to this API"
65
+
66
+ # Use local Ollama instead
67
+ neuron --provider ollama "explain this codebase"
68
+ ```
69
+
70
+ ## Zero Setup — First Run
71
+
72
+ 1. Type `neuron` in any project directory
73
+ 2. Browser opens to **OpenRouter** login (free account)
74
+ 3. API key auto-provisioned + saved to `~/.neuroncli/config.json`
75
+ 4. **Done.** No manual config, no copy-paste.
76
+
77
+ ## Features
78
+
79
+ | Feature | Description |
80
+ |---------|-------------|
81
+ | **Parallel Tool Execution** | Reads 5 files simultaneously, not one-by-one |
82
+ | **Git Auto-Commit** | Every AI edit is auto-committed like Aider |
83
+ | **Context Compression** | H2A-style compression prevents context bloat |
84
+ | **3 Modes** | Standard (ask permission), Plan (think first), YOLO (full auto) |
85
+ | **Session Persistence** | Resume previous conversations with `/resume` |
86
+ | **Brand Color Output** | Clean terminal output with colored tables, headers |
87
+ | **NEURON.md** | Project context file (like Claude's CLAUDE.md) |
88
+ | **Token Tracking** | Shows token usage per session |
89
+ | **Dual Provider** | OpenRouter (cloud, free) + Ollama (local, offline) |
90
+
91
+ ## Modes
92
+
93
+ ```bash
94
+ neuron # Standard — asks before writing/running
95
+ neuron --plan # Plan — generates plan, waits for approval
96
+ neuron --yolo # YOLO — full autonomous, no prompts
97
+ ```
98
+
99
+ Switch at runtime: `/mode plan`, `/mode yolo`, `/mode standard`
100
+
101
+ ## Available Tools
102
+
103
+ | Tool | Description |
104
+ |------|-------------|
105
+ | `read_file` | Read file contents with line numbers |
106
+ | `write_file` | Create or overwrite a file |
107
+ | `edit_file` | Surgical find-and-replace edit |
108
+ | `list_directory` | Tree view of directory contents |
109
+ | `run_command` | Execute shell commands |
110
+ | `search_in_files` | Grep-style search across files |
111
+ | `get_project_structure` | Full project overview |
112
+
113
+ ## REPL Commands
114
+
115
+ | Command | Description |
116
+ |---------|-------------|
117
+ | `/help` | Show all commands |
118
+ | `/init` | Create NEURON.md project context |
119
+ | `/compact` | Compress context (free up memory) |
120
+ | `/mode <mode>` | Switch: standard, plan, yolo |
121
+ | `/model <name>` | Switch model |
122
+ | `/provider <name>` | Switch: openrouter, ollama |
123
+ | `/upgrade` | Info on faster response times |
124
+ | `/clear` | Clear conversation history |
125
+ | `/config` | Show current configuration |
126
+ | `/exit` | Exit |
127
+
128
+ ## CLI Flags
129
+
130
+ | Flag | Description |
131
+ |------|-------------|
132
+ | `--yolo` | Skip all permission prompts |
133
+ | `--plan` | Plan mode — reason before coding |
134
+ | `--model`, `-m` | Model to use |
135
+ | `--provider`, `-p` | `openrouter` or `ollama` |
136
+ | `--dir`, `-d` | Working directory |
137
+ | `--no-stream` | Disable token streaming |
138
+
139
+ ## Architecture
140
+
141
+ ```
142
+ neuroncli/
143
+ agent.py # ReAct engine — parallel tools, context compression
144
+ auth.py # OpenRouter OAuth auto-provisioning
145
+ cli.py # REPL + slash commands
146
+ config.py # Modes (standard/plan/yolo)
147
+ git_integration.py # Auto-commit AI edits
148
+ session.py # Save/resume conversations
149
+ prompts.py # Mode-aware system prompt builder
150
+ tools.py # Tool registry + 7 tool implementations
151
+ ui.py # Brand colors, startup screen
152
+ provider.py # Provider abstraction layer
153
+ openrouter_client.py # OpenRouter (Kimi K2.5)
154
+ ollama_client.py # Local Ollama
155
+ tests/
156
+ test_agent.py # 18 unit tests
157
+ ```
158
+
159
+ ## Requirements
160
+
161
+ - **Python 3.10+**
162
+ - Internet connection (for Kimi K2.5 via OpenRouter)
163
+ - **Optional:** [Ollama](https://ollama.com) for local offline mode
164
+
165
+ ## License
166
+
167
+ MIT — free to use, modify, and distribute commercially.
168
+
169
+ ---
170
+
171
+ *By [zero-x Corporation](https://zero-x.live) — Tamil Nadu, India*
@@ -0,0 +1,146 @@
1
+ # NeuronCLI
2
+
3
+ **Free AI Coding Agent** — Claude Code alternative powered by Kimi K2.5. Works on **Windows, Linux, macOS**.
4
+
5
+ > Built by [zero-x Corporation](https://zero-x.live)
6
+
7
+ ---
8
+
9
+ ## Install
10
+
11
+ ```bash
12
+ # From PyPI (all platforms)
13
+ pip install neuroncli
14
+
15
+ # Or from source
16
+ git clone https://github.com/RAHUL-DevelopeRR/neuroncli.git
17
+ cd neuroncli
18
+ pip install -e .
19
+ ```
20
+
21
+ ```bash
22
+ # Linux/macOS one-liner
23
+ curl -fsSL https://raw.githubusercontent.com/RAHUL-DevelopeRR/neuroncli/master/install.sh | bash
24
+ ```
25
+
26
+ ## Quick Start
27
+
28
+ ```bash
29
+ # Start interactive REPL
30
+ neuron
31
+
32
+ # One-shot task
33
+ neuron "fix the bug in main.py"
34
+
35
+ # YOLO mode — no permission prompts
36
+ neuron --yolo "refactor src/ to use async"
37
+
38
+ # Plan mode — think first, code later
39
+ neuron --plan "add authentication to this API"
40
+
41
+ # Use local Ollama instead
42
+ neuron --provider ollama "explain this codebase"
43
+ ```
44
+
45
+ ## Zero Setup — First Run
46
+
47
+ 1. Type `neuron` in any project directory
48
+ 2. Browser opens to **OpenRouter** login (free account)
49
+ 3. API key auto-provisioned + saved to `~/.neuroncli/config.json`
50
+ 4. **Done.** No manual config, no copy-paste.
51
+
52
+ ## Features
53
+
54
+ | Feature | Description |
55
+ |---------|-------------|
56
+ | **Parallel Tool Execution** | Reads 5 files simultaneously, not one-by-one |
57
+ | **Git Auto-Commit** | Every AI edit is auto-committed like Aider |
58
+ | **Context Compression** | H2A-style compression prevents context bloat |
59
+ | **3 Modes** | Standard (ask permission), Plan (think first), YOLO (full auto) |
60
+ | **Session Persistence** | Resume previous conversations with `/resume` |
61
+ | **Brand Color Output** | Clean terminal output with colored tables, headers |
62
+ | **NEURON.md** | Project context file (like Claude's CLAUDE.md) |
63
+ | **Token Tracking** | Shows token usage per session |
64
+ | **Dual Provider** | OpenRouter (cloud, free) + Ollama (local, offline) |
65
+
66
+ ## Modes
67
+
68
+ ```bash
69
+ neuron # Standard — asks before writing/running
70
+ neuron --plan # Plan — generates plan, waits for approval
71
+ neuron --yolo # YOLO — full autonomous, no prompts
72
+ ```
73
+
74
+ Switch at runtime: `/mode plan`, `/mode yolo`, `/mode standard`
75
+
76
+ ## Available Tools
77
+
78
+ | Tool | Description |
79
+ |------|-------------|
80
+ | `read_file` | Read file contents with line numbers |
81
+ | `write_file` | Create or overwrite a file |
82
+ | `edit_file` | Surgical find-and-replace edit |
83
+ | `list_directory` | Tree view of directory contents |
84
+ | `run_command` | Execute shell commands |
85
+ | `search_in_files` | Grep-style search across files |
86
+ | `get_project_structure` | Full project overview |
87
+
88
+ ## REPL Commands
89
+
90
+ | Command | Description |
91
+ |---------|-------------|
92
+ | `/help` | Show all commands |
93
+ | `/init` | Create NEURON.md project context |
94
+ | `/compact` | Compress context (free up memory) |
95
+ | `/mode <mode>` | Switch: standard, plan, yolo |
96
+ | `/model <name>` | Switch model |
97
+ | `/provider <name>` | Switch: openrouter, ollama |
98
+ | `/upgrade` | Info on faster response times |
99
+ | `/clear` | Clear conversation history |
100
+ | `/config` | Show current configuration |
101
+ | `/exit` | Exit |
102
+
103
+ ## CLI Flags
104
+
105
+ | Flag | Description |
106
+ |------|-------------|
107
+ | `--yolo` | Skip all permission prompts |
108
+ | `--plan` | Plan mode — reason before coding |
109
+ | `--model`, `-m` | Model to use |
110
+ | `--provider`, `-p` | `openrouter` or `ollama` |
111
+ | `--dir`, `-d` | Working directory |
112
+ | `--no-stream` | Disable token streaming |
113
+
114
+ ## Architecture
115
+
116
+ ```
117
+ neuroncli/
118
+ agent.py # ReAct engine — parallel tools, context compression
119
+ auth.py # OpenRouter OAuth auto-provisioning
120
+ cli.py # REPL + slash commands
121
+ config.py # Modes (standard/plan/yolo)
122
+ git_integration.py # Auto-commit AI edits
123
+ session.py # Save/resume conversations
124
+ prompts.py # Mode-aware system prompt builder
125
+ tools.py # Tool registry + 7 tool implementations
126
+ ui.py # Brand colors, startup screen
127
+ provider.py # Provider abstraction layer
128
+ openrouter_client.py # OpenRouter (Kimi K2.5)
129
+ ollama_client.py # Local Ollama
130
+ tests/
131
+ test_agent.py # 18 unit tests
132
+ ```
133
+
134
+ ## Requirements
135
+
136
+ - **Python 3.10+**
137
+ - Internet connection (for Kimi K2.5 via OpenRouter)
138
+ - **Optional:** [Ollama](https://ollama.com) for local offline mode
139
+
140
+ ## License
141
+
142
+ MIT — free to use, modify, and distribute commercially.
143
+
144
+ ---
145
+
146
+ *By [zero-x Corporation](https://zero-x.live) — Tamil Nadu, India*
@@ -0,0 +1,18 @@
1
+ """NeuronCLI — AI Coding Agent powered by Kimi K2.5 + Ollama."""
2
+
3
+ from .config import AgentConfig, APP_NAME, VERSION
4
+ from .agent import Agent, AgentResult
5
+ from .provider import ChatMessage, create_provider
6
+ from .auth import ensure_api_key
7
+ from .tools import registry as tool_registry
8
+
9
+ __version__ = VERSION
10
+ __all__ = [
11
+ "Agent",
12
+ "AgentConfig",
13
+ "AgentResult",
14
+ "ChatMessage",
15
+ "create_provider",
16
+ "ensure_api_key",
17
+ "tool_registry",
18
+ ]
@@ -0,0 +1,14 @@
1
+ """Allow running as: python -m neuroncli"""
2
+
3
+ import sys
4
+ import os
5
+
6
+ # Fix Windows terminal encoding — MUST be before any print()
7
+ if sys.platform == "win32":
8
+ os.system("") # Enable ANSI escape codes on Windows
9
+ sys.stdout.reconfigure(encoding="utf-8", errors="replace")
10
+ sys.stderr.reconfigure(encoding="utf-8", errors="replace")
11
+
12
+ from neuroncli.cli import main
13
+
14
+ raise SystemExit(main())