NextPy AI Agent - Intelligent coding assistant for NextPy framework
Project description
NextPy Agent
Version: 0.1.0
Status: Alpha (Phase B - Stage 1)
Overview
NextPy Agent is an AI-powered coding assistant specifically designed for the NextPy framework. It provides intelligent code generation, debugging, and refactoring capabilities with deep understanding of NextPy's architecture.
Quick Start
Installation
pip install nextpy-agent
Basic Usage
# Start a chat session
nextpy-agent chat
# Or with a specific provider
nextpy-agent chat --provider anthropic
nextpy-agent chat --provider ollama
Phase B - Stage 1 Features
Current Capabilities:
- Multi-provider support (Anthropic, Ollama)
- Interactive chat interface
- Framework-aware context via introspection
- Configuration management
- Quick start (<2 min setup)
Coming Soon (Stages 2-7):
- Tab completion
- Diff rendering
- Inline editing
- RAG with framework documentation
- Memory across sessions
- Composer mode with task planning
Provider Support
Anthropic (Cloud)
- Default provider for zero-install experience
- Requires API key:
ANTHROPIC_API_KEYenvironment variable - Best for: Production use, highest quality responses
Ollama (Local)
- Optional local provider for privacy and cost savings
- Requires Ollama installation and running service
- Best for: Development, offline use, cost-sensitive projects
Configuration
Create a .env file or set environment variables:
# Anthropic (cloud provider)
ANTHROPIC_API_KEY=your_api_key_here
# Ollama (local provider)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=gemma3:4b
# Default provider
NEXTPY_PROVIDER=anthropic
Development
Setup
# Clone repository
git clone https://github.com/IBRAHIMFONYUY/nextpy-agent.git
cd nextpy-agent
# Install with dev dependencies
pip install -e ".[dev,ollama]"
# Run tests
pytest
# Format code
black src/
ruff check src/
Architecture
nextpy-agent/
├── src/nextpy_agent/
│ ├── __init__.py
│ ├── cli.py # Command-line interface
│ ├── config.py # Configuration management
│ ├── providers/ # LLM provider implementations
│ │ ├── __init__.py
│ │ ├── base.py # Abstract provider interface
│ │ ├── anthropic.py # Anthropic provider
│ │ └── ollama.py # Ollama provider
│ └── chat.py # Chat functionality
├── tests/
├── pyproject.toml
└── README.md
Roadmap
Phase B - Stage 1 (Current)
- ✅ Provider interface
- ✅ Anthropic integration
- ✅ Ollama integration
- ✅ Basic chat functionality
- ✅ Configuration management
Phase C - Stages 2-3
- Tab completion
- Diff rendering
- Inline editing
Phase D - Stages 4-5
- RAG with framework docs
- Memory across sessions
Phase E - Stages 6-7
- Composer mode
- Task planning and execution
- AST-aware editing
License
MIT License - see LICENSE file for details.
Contributing
Contributions welcome! Please see CONTRIBUTING.md for guidelines.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nextpy_agent-0.1.0.tar.gz.
File metadata
- Download URL: nextpy_agent-0.1.0.tar.gz
- Upload date:
- Size: 27.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab871c253e5131f5709f9ae2c93290c9d03624bd9c83100846017eab2d4cda8c
|
|
| MD5 |
3b40248cc4c47dac3d96d163e9e70148
|
|
| BLAKE2b-256 |
3e846a50ea97d68081474c8e345f891bbcd3fcf3414d4a9c6a13255be294fa4e
|
File details
Details for the file nextpy_agent-0.1.0-py3-none-any.whl.
File metadata
- Download URL: nextpy_agent-0.1.0-py3-none-any.whl
- Upload date:
- Size: 31.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89c88eb13b720bc8ae249d6089fe66b42310ab8cd36dfc6ce29a29d6e5affe37
|
|
| MD5 |
21d1af77024bbcd5f82db524babfee39
|
|
| BLAKE2b-256 |
ad3d3b2427d2a6eb0d11bf39b562049bbc5556ea2d1f01e5ba3a21e53991e475
|