Skip to main content

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_KEY environment 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nextpy_agent-0.2.0.tar.gz (63.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nextpy_agent-0.2.0-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

Details for the file nextpy_agent-0.2.0.tar.gz.

File metadata

  • Download URL: nextpy_agent-0.2.0.tar.gz
  • Upload date:
  • Size: 63.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nextpy_agent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6cdea765578b8a06bdd161e7af4bb7dd7f712fb756e7ff56dcb73bf63eb29b20
MD5 e0264c99a9cb31d9430497236d514736
BLAKE2b-256 27765b2531ee33a4227645d56e6399410da13610e8b4f6739e6733a2e500972f

See more details on using hashes here.

File details

Details for the file nextpy_agent-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: nextpy_agent-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 72.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for nextpy_agent-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3f9dbd8710d6e6c2d487eb25dd83c9e7fe692f0bf675e481a89b413a75d19cba
MD5 906427df59329eaebb76f1532fe12a0a
BLAKE2b-256 c0d0838027010e1289fcd1a0b530e19474d96725552fdf120f51904ec566b1db

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page