nimcode 0.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.
- nimcode-0.1.0/PKG-INFO +12 -0
- nimcode-0.1.0/README.md +47 -0
- nimcode-0.1.0/setup.cfg +4 -0
- nimcode-0.1.0/setup.py +21 -0
- nimcode-0.1.0/src/nimcode/__init__.py +0 -0
- nimcode-0.1.0/src/nimcode/agent.py +582 -0
- nimcode-0.1.0/src/nimcode/cli.py +127 -0
- nimcode-0.1.0/src/nimcode/config.py +54 -0
- nimcode-0.1.0/src/nimcode/lenient_parser.py +101 -0
- nimcode-0.1.0/src/nimcode/mcp_client.py +77 -0
- nimcode-0.1.0/src/nimcode/memory.py +69 -0
- nimcode-0.1.0/src/nimcode/nim_client.py +120 -0
- nimcode-0.1.0/src/nimcode/permissions.py +78 -0
- nimcode-0.1.0/src/nimcode/tools.py +323 -0
- nimcode-0.1.0/src/nimcode.egg-info/PKG-INFO +12 -0
- nimcode-0.1.0/src/nimcode.egg-info/SOURCES.txt +27 -0
- nimcode-0.1.0/src/nimcode.egg-info/dependency_links.txt +1 -0
- nimcode-0.1.0/src/nimcode.egg-info/entry_points.txt +2 -0
- nimcode-0.1.0/src/nimcode.egg-info/requires.txt +4 -0
- nimcode-0.1.0/src/nimcode.egg-info/top_level.txt +1 -0
- nimcode-0.1.0/tests/test_agent.py +135 -0
- nimcode-0.1.0/tests/test_cli.py +29 -0
- nimcode-0.1.0/tests/test_config.py +32 -0
- nimcode-0.1.0/tests/test_lenient_parser.py +59 -0
- nimcode-0.1.0/tests/test_mcp_client.py +24 -0
- nimcode-0.1.0/tests/test_memory.py +73 -0
- nimcode-0.1.0/tests/test_nim_client.py +141 -0
- nimcode-0.1.0/tests/test_permissions.py +48 -0
- nimcode-0.1.0/tests/test_tools.py +183 -0
nimcode-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: nimcode
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A standalone, robust coding agent for NVIDIA NIM models.
|
|
5
|
+
Author: Autonomous Agent
|
|
6
|
+
Requires-Dist: httpx>=0.27.0
|
|
7
|
+
Requires-Dist: rich>=13.7.0
|
|
8
|
+
Requires-Dist: prompt_toolkit>=3.0.0
|
|
9
|
+
Requires-Dist: mcp>=1.2.0
|
|
10
|
+
Dynamic: author
|
|
11
|
+
Dynamic: requires-dist
|
|
12
|
+
Dynamic: summary
|
nimcode-0.1.0/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# NimCode
|
|
2
|
+
|
|
3
|
+
NimCode is an autonomous AI coding assistant powered by NVIDIA NIM APIs (LLaMa 3.1 70B, etc.). It works similarly to Claude Code, providing a standalone REPL, a powerful command-line interface, and smart code modification capabilities.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
You can install NimCode globally on your system using pip:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install .
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
After installation, the `nimcode` command will be available anywhere in your terminal.
|
|
14
|
+
|
|
15
|
+
## Setup
|
|
16
|
+
|
|
17
|
+
First, you need to configure your NVIDIA NIM API key:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
nimcode login
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Alternatively, set the `NIM_API_KEY` environment variable.
|
|
24
|
+
|
|
25
|
+
## Usage
|
|
26
|
+
|
|
27
|
+
You can start the interactive REPL by simply running:
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
nimcode
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Or you can pass a direct task for one-off executions:
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
nimcode "Create a react application in the current directory"
|
|
37
|
+
nimcode /plan "Build a snake game in Python"
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Features
|
|
41
|
+
|
|
42
|
+
- **Plan Mode**: Run `/plan` to enter planning mode. The agent will read your codebase and generate a comprehensive markdown plan in `.nimcode/plans/`.
|
|
43
|
+
- **Skills/Memories**: NimCode learns over time and saves learned skills into `.nimcode/skills/` for future context.
|
|
44
|
+
- **Multimodal Vision**: Use `/vision` to analyze screenshots.
|
|
45
|
+
- **Voice Input**: Use `/voice` to speak to NimCode.
|
|
46
|
+
- **Auto-Commits**: Use `/commit` to auto-generate git commits.
|
|
47
|
+
- **Diagnostic Tool**: Run `nimcode doctor` to check your environment setup.
|
nimcode-0.1.0/setup.cfg
ADDED
nimcode-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="nimcode",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
packages=find_packages(where="src"),
|
|
7
|
+
package_dir={"": "src"},
|
|
8
|
+
install_requires=[
|
|
9
|
+
"httpx>=0.27.0",
|
|
10
|
+
"rich>=13.7.0",
|
|
11
|
+
"prompt_toolkit>=3.0.0",
|
|
12
|
+
"mcp>=1.2.0"
|
|
13
|
+
],
|
|
14
|
+
entry_points={
|
|
15
|
+
"console_scripts": [
|
|
16
|
+
"nimcode=nimcode.cli:main",
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
author="Autonomous Agent",
|
|
20
|
+
description="A standalone, robust coding agent for NVIDIA NIM models.",
|
|
21
|
+
)
|
|
File without changes
|