nextpy
Basic Information
Nextpy is an open-source framework for building self-modifying software and AI-driven applications, aimed primarily at developers who need precise control over large language model behavior and code generation. It provides a prompt engine that pre-compiles prompts, maintains session state with LLMs, and optimizes token usage to reduce redundant generations and speed up complex interactions. The project emphasizes guardrails so users can define strict boundaries for autonomous behavior, and it supports exporting agents into portable .agent files to run across environments. Nextpy is modular and multiplatform, enabling components to run in the cloud, on personal machines, or on mobile devices. It also offers optional sandboxing via an Agentbox API for resource optimization and safety. The framework integrates ideas and components from Guidance, DSPy, Llama-Index, LangChain and several web and UI projects, and focuses on improving AI-assisted code generation and developer workflows.