Nexus is an autonomous CLI coding agent powered by LangGraph and MCP. It plans complex tasks, persists context via SQLite, and securely orchestrates tools. Features specialized Architect/Code modes, real-time metrics, and human-in-the-loop safety for production workflows.
Project description
๐ Nexus
Elite Autonomous AI Coding Agent Powered by LangGraph & MCP
An intelligent, autonomous CLI coding agent with multi-modal operational modes, persistent context management, and seamless MCP server integration for production workflows.
Features โข Architecture โข Installation โข Usage โข Documentation
๐ Overview
Nexus is a cutting-edge autonomous AI coding agent built on top of LangChain and LangGraph, designed to revolutionize how developers interact with code. It combines the power of large language models with a sophisticated state machine architecture, enabling it to plan, execute, and iterate on complex coding tasks with minimal human intervention.
Unlike traditional AI assistants, Nexus features:
- Multi-Modal Operations - Switch between CODE, ARCHITECT, and ASK modes for different workflows
- Persistent Context - SQLite-based checkpoint system maintains conversation history across sessions
- MCP Integration - Dynamically loads and manages Model Context Protocol servers for extended capabilities
- Human-in-the-Loop Safety - Optional approval workflow for critical operations
- Real-Time Metrics - Track token usage, latency, and performance across conversations
- Intelligent Tool Execution - Validates and restricts tool usage based on operational mode
โก Project Showcase โก
โจ Key Features
๐ง Intelligent Agent System
- LangGraph State Machine - Sophisticated workflow management with conditional edges
- Dynamic Tool Loading - Automatic discovery and integration of MCP server tools
- Context-Aware Reasoning - Maintains conversation history with intelligent truncation
- Iterative Planning - Multi-step task execution with configurable iteration limits
- Mode-Based Restrictions - Tool validation and filtering based on current operational mode
๐ฏ Multi-Modal Operations
CODE Mode (Full Access)
- Complete file system operations (read, write, list)
- Shell command execution with safety checks
- Unrestricted access to all tools and MCP servers
- Ideal for implementation, debugging, and system tasks
ARCHITECT Mode (Planning-Focused)
- File operations restricted to
.nexus/plans/directory - Enforces architectural planning separation
- Prevents accidental modification of implementation code
- Perfect for design documents, technical specs, and planning
ASK Mode (Research & Conversation)
- Read-only access to information
- No file modifications or shell execution
- MCP tools only for research and analysis
- Optimal for learning, documentation, and Q&A
๐ ๏ธ Built-In Tools
File Operations
read_file- Read file contents with optional line range selectionwrite_file- Create or overwrite files with automatic directory creationlist_directory- List directory contents respecting.gitignorepatterns
Shell Integration
execute_shell_command- Safe shell command execution with output capture- Dangerous pattern detection (prevents destructive operations)
- Configurable timeout and output truncation
- Automatic blocking of redirections and pipes
Mode Management
switch_mode- Dynamic mode switching between CODE, ARCHITECT, ASK- Automatic validation and approval workflows
- Context-aware mode suggestions
Web Search
web_search- DuckDuckGo integration for real-time information- Configurable result limits
- Formatted output with titles, URLs, and descriptions
๐ Model Context Protocol (MCP) Support
- Dynamic Server Loading - Automatically discovers and connects to MCP servers
- Multi-Server Management - Supports multiple concurrent MCP connections
- Tool Auto-Discovery - Dynamically loads tools from connected servers
- Context Injection - Automatically adds MCP tool descriptions to agent prompts
- Flexible Configuration - JSON-based server configuration in
.nexus/mcp_config.json
๐ Performance & Monitoring
- Real-Time Metrics Tracking - Request latency, TTFT (Time to First Token), token usage
- SQLite Metrics Storage - Persistent performance data across sessions
- Session Summaries - Aggregated statistics per thread
- Detailed Breakdowns - Input/output tokens, cached tokens, total usage
- Rich Visualizations - Beautiful terminal tables and panels via Rich library
๐จ Premium CLI Experience
- Rich Terminal UI - Beautiful, responsive interface with Rich library
- Streaming Responses - Real-time token streaming with live updates
- Markdown Rendering - Full markdown support in agent responses
- Syntax Highlighting - Code blocks with syntax highlighting
- Interactive Prompts - User-friendly approval workflows
- Progress Indicators - Spinners and status messages for long operations
๐ Safety & Validation
- Human-in-the-Loop - Optional approval for all tool executions
- Mode Validation - Tools validated against current operational mode
- Path Restrictions - Enforced directory boundaries in ARCHITECT mode
- Dangerous Pattern Detection - Blocks potentially harmful shell commands
- Gitignore Compliance - Respects
.gitignorepatterns in file operations
๐พ Persistence & Configuration
- Checkpoint System - SQLite-based conversation state persistence
- Thread Management - Multiple concurrent conversation threads
- Custom Prompts - Load custom system prompts from
.nexus/prompts/ - Rule Enforcement - User-defined rules from
.nexus/rules/ - Environment-Based Config - Pydantic settings with
.envsupport
๐๏ธ Architecture
graph TB
subgraph "User Interface Layer"
CLI[Rich CLI Interface]
Commands[Slash Commands]
Prompts[Interactive Prompts]
end
subgraph "Agent Core"
Graph[LangGraph State Machine]
Agent[Agent Node]
Tools[Tool Node]
Approval[Approval Node]
end
subgraph "Tool System"
FileOps[File Operations]
Shell[Shell Commands]
Mode[Mode Management]
Search[Web Search]
MCP[MCP Tools]
end
subgraph "State Management"
Checkpoint[SQLite Checkpointer]
State[Agent State]
Metrics[Metrics Manager]
end
subgraph "Configuration"
Settings[Pydantic Settings]
Prompts_Config[Custom Prompts]
Rules[User Rules]
MCP_Config[MCP Servers]
end
subgraph "External Services"
OpenAI[OpenAI API]
MCP_Servers[MCP Servers]
LangSmith[LangSmith Tracing]
end
CLI --> Graph
Commands --> Agent
Prompts --> Approval
Graph --> Agent
Graph --> Tools
Graph --> Approval
Agent --> FileOps
Agent --> Shell
Agent --> Mode
Agent --> Search
Agent --> MCP
Agent --> State
State --> Checkpoint
Agent --> Metrics
Settings --> Agent
Prompts_Config --> Agent
Rules --> Agent
MCP_Config --> MCP
Agent --> OpenAI
MCP --> MCP_Servers
Agent --> LangSmith
Agent Workflow
- User Input - Message entered via Rich CLI interface
- State Initialization - Current state loaded from SQLite checkpoint
- Agent Reasoning - LLM processes input with system prompt and context
- Tool Selection - Agent decides which tools to use based on mode
- Approval (Optional) - Human approval requested for tool execution
- Tool Execution - Selected tools execute with validated parameters
- State Update - New state persisted to checkpoint database
- Response Streaming - Real-time token streaming back to user
- Metrics Logging - Performance data saved to metrics database
๐ง Tech Stack
Core Framework
| Technology | Version | Purpose |
|---|---|---|
| Python | 3.14.2 | Programming Language |
| LangChain | 1.2.7 | LLM Framework |
| LangChain Core | 1.2.7 | Core Abstractions |
| LangChain Community | 0.4.1 | Community Components |
| LangChain OpenAI | 1.1.7 | OpenAI Integration |
| LangGraph | 1.0.7 | State Machine Framework |
| LangGraph Checkpoint | 4.0.0 | Checkpointing System |
| LangGraph Checkpoint SQLite | 3.0.3 | SQLite Checkpointer |
| LangGraph Prebuilt | 1.0.7 | Pre-built Nodes |
AI & ML
| Technology | Version | Purpose |
|---|---|---|
| OpenAI | 2.15.0 | LLM Provider |
| Tiktoken | 0.12.0 | Token Counting |
| LangSmith | 0.6.4 | Tracing & Debugging |
Data & Storage
| Technology | Version | Purpose |
|---|---|---|
| SQLAlchemy | 2.0.46 | ORM & Database Toolkit |
| aiosqlite | 0.22.1 | Async SQLite Driver |
| Pydantic | 2.12.5 | Data Validation |
| Pydantic Core | 2.41.5 | Core Validation Logic |
| Pydantic Settings | 2.12.0 | Settings Management |
CLI & UI
| Technology | Version | Purpose |
|---|---|---|
| Rich | 14.2.0 | Terminal UI Framework |
| Rich Click | 1.9.6 | Click Integration for Rich |
| Structlog | 25.5.0 | Structured Logging |
MCP & Tools
| Technology | Version | Purpose |
|---|---|---|
| MCP | 1.25.0 | Model Context Protocol |
| LangChain MCP Adapters | 0.2.1 | MCP-LangChain Bridge |
| DDGS | 9.10.0 | DuckDuckGo Search |
| Pathspec | 1.0.3 | Gitignore Pattern Matching |
Utilities
| Technology | Version | Purpose |
|---|---|---|
| HTTPX | 0.28.1 | HTTP Client |
| Requests | 2.32.5 | HTTP Requests |
| Python-dotenv | 1.2.1 | Environment Variables |
| PyYAML | 6.0.3 | YAML Parser |
| Tenacity | 9.1.2 | Retry Logic |
| Orjson | 3.11.5 | Fast JSON |
Development Tools
| Technology | Version | Purpose |
|---|---|---|
| Ruff | 0.14.14 | Linting & Formatting |
| isort | 7.0.0 | Import Sorting |
| Setuptools | 80.10.1+ | Package Building |
| Wheel | 0.46.3+ | Package Distribution |
๐ Project Structure
nexus/
โโโ .agent/ # Agent configuration (legacy)โ
โ โโโ rules/ # Coding standards
โโโ .github/ # GitHub workflows
โ โโโ workflows/ # CI/CD pipelines
โ โโโ ci.yml # Continuous integration
โ โโโ publish.yml # PyPI publishing
โ โโโ release.yml # Release automation
โโโ .nexus/ # Nexus configuration directory
โ โโโ db/ # SQLite databases
โ โ โโโ checkpoints.db # Conversation checkpoints
โ โ โโโ metrics.db # Performance metrics
โ โโโ plans/ # Architectural plans (ARCHITECT mode)
โ โโโ prompts/ # Custom system prompts
โ โ โโโ system_prompt.md # Main system prompt
โ โ โโโ code_review_prompt.md
โ โ โโโ code_generation_prompt.md
โ โโโ rules/ # User-defined rules
โ โ โโโ python-code-documentation.md
โ โโโ mcp_config.json # MCP server configuration
โโโ nexus/ # Main package directory
โ โโโ agent/ # Agent core components
โ โ โโโ approval.py # Human approval workflow
โ โ โโโ graph.py # LangGraph state machine
โ โ โโโ metrics.py # Performance tracking
โ โ โโโ modes.py # Operational mode definitions
โ โ โโโ nodes.py # Graph node implementations
โ โ โโโ restrictions.py # Mode-based validation
โ โ โโโ state.py # Agent state definition
โ โ โโโ __init__.py
โ โโโ commands/ # Slash command system
โ โ โโโ base.py # Command protocol
โ โ โโโ core.py # Core command implementations
โ โ โโโ registry.py # Command registry
โ โ โโโ __init__.py
โ โโโ config/ # Configuration management
โ โ โโโ prompts.py # Prompt loading & management
โ โ โโโ settings.py # Pydantic settings
โ โ โโโ __init__.py
โ โโโ tools/ # LangChain tool implementations
โ โ โโโ file_ops.py # File operation tools
โ โ โโโ mcp.py # MCP server management
โ โ โโโ mode.py # Mode switching tool
โ โ โโโ shell.py # Shell command tool
โ โ โโโ web_search.py # Web search tool
โ โ โโโ __init__.py
โ โโโ ui/ # User interface
โ โ โโโ cli.py # Rich-Click CLI
โ โ โโโ console.py # Rich console instance
โ โ โโโ __init__.py
โ โโโ main.py # Application entry point
โ โโโ __init__.py
โโโ .editorconfig # Editor configuration
โโโ .env.example # Example environment file
โโโ .gitattributes # Git attributes
โโโ .gitignore # Git ignore patterns
โโโ .python-version # Python version file
โโโ contributors.txt # Project contributors
โโโ license # MIT License
โโโ pyproject.toml # Project configuration & dependencies
โโโ readme.md # This file
๐ Installation
Prerequisites
- Python 3.14.2+ - Latest Python release
- Git - Version control system
- OpenAI API Key - For LLM access
- pip or uv - Package manager
Quick Install
# Clone the repository
git clone https://github.com/DataRohit/nexus.git
cd nexus
# Create virtual environment
python -m venv .venv
# Activate virtual environment
# On Windows (Git Bash)
source .venv/Scripts/activate
# On Windows (PowerShell)
.venv\Scripts\Activate.ps1
# On Linux/macOS
source .venv/bin/activate
# Install dependencies
pip install -e .
# Or with uv (faster)
uv pip install -e .
Configuration
- Create Environment File
cp .env.example .env
- Edit
.envwith your settings
# OpenAI Configuration
OPENAI_API_KEY=sk-your-api-key-here
OPENAI_BASE_URL=https://api.openai.com/v1
# Model Settings
MODEL_NAME=gpt-4o
TEMPERATURE=0.7
MAX_TOKENS=4096
# LangSmith (Optional)
LANGSMITH_API_KEY=ls__your-api-key-here
LANGSMITH_PROJECT=nexus
LANGSMITH_TRACING=true
# Agent Settings
MAX_ITERATIONS=50
APPROVAL_REQUIRED=true
# Logging
LOG_LEVEL=INFO
DEBUG=false
- Configure MCP Servers (Optional)
Create .nexus/mcp_config.json:
{
"mcpServers": {
"context7": {
"command": "npx",
"args": ["-y", "@upstash/context7-mcp"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/allowed/directory"]
}
}
}
Verify Installation
# Check installation
nexus --version
# Run help
nexus --help
# Start interactive chat
nexus chat
๐ป Usage
Basic Commands
# Start interactive chat session
nexus chat
# Chat with specific thread ID
nexus chat --thread-id my-project
# Disable streaming (static responses)
nexus chat --no-stream
# Send single message
nexus chat "Explain async/await in Python"
# View conversation history
nexus history --thread-id default --limit 10
# Show configuration
nexus config
Interactive Chat
$ nexus chat
โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ NEXUS - AI Coding Agent โ
โ Powered by LangChain & LangGraph โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโโโโโโโโโโโโโ Session โโโโโโโโโโโโโโโฎ
โ Model : gpt-4o โ
โ Mode : CODE โ
โ Thread : default โ
โ Working Dir: /path/to/project โ
โ Streaming : Enabled โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
> How do I create a FastAPI endpoint?
[Agent responds with streaming output...]
> exit
Slash Commands
Available in interactive chat:
/help # Show all available commands
/about # Application information
/config # Show current configuration
/mcps # Display active MCP servers and tools
/mode # Switch operational mode
/metrics # Show session performance metrics
Mode Switching
# Switch to ARCHITECT mode for planning
/mode architect
# Switch to CODE mode for implementation
/mode code
# Switch to ASK mode for conversation
/mode ask
# Check current mode
/mode
Example Workflows
Planning & Implementation
# Start in ARCHITECT mode
/mode architect
> Create a design document for a REST API with authentication
[Agent creates planning documents in .nexus/plans/]
# Switch to CODE mode
/mode code
> Implement the authentication system we designed
[Agent creates implementation files]
Code Review
> Review this Python code for security issues:
> [paste code]
[Agent provides detailed code review]
Web Research
/mode ask
> What are the latest best practices for React Server Components?
[Agent searches web and provides summary]
๐ Documentation
Agent Modes
CODE Mode
- Purpose: Full development and implementation
- Permissions: All tools enabled
- Use Cases:
- Writing and modifying code
- Running shell commands
- File system operations
- Debugging and testing
ARCHITECT Mode
- Purpose: High-level planning and design
- Permissions: File writes restricted to
.nexus/plans/ - Use Cases:
- Creating design documents
- Writing technical specifications
- Planning system architecture
- Documenting requirements
ASK Mode
- Purpose: Research and conversation
- Permissions: No file modifications or shell execution
- Use Cases:
- Learning and Q&A
- Code explanation
- Best practice discussions
- Web research via MCP tools
Configuration Files
.env - Environment Variables
# Required
OPENAI_API_KEY=sk-... # OpenAI API key
# Optional
OPENAI_BASE_URL=... # Custom API endpoint
MODEL_NAME=gpt-4o # LLM model to use
TEMPERATURE=0.7 # Response randomness (0-2)
MAX_TOKENS=4096 # Max response length
MAX_ITERATIONS=50 # Max agent iterations
APPROVAL_REQUIRED=true # Require approval for tools
LOG_LEVEL=INFO # Logging verbosity
DEBUG=false # Debug mode
.nexus/mcp_config.json - MCP Servers
{
"mcpServers": {
"server-name": {
"command": "command-to-run",
"args": ["arg1", "arg2"],
"env": {
"ENV_VAR": "value"
}
}
}
}
Custom Prompts
Place markdown files in .nexus/prompts/:
system_prompt.md- Main system instructionscode_review_prompt.md- Code review guidelinescode_generation_prompt.md- Code generation rules
User Rules
Place markdown files in .nexus/rules/:
- Rules are automatically loaded and enforced
- Example:
python-code-documentation.md
Tool Documentation
File Operations
# Read file
read_file(path="example.py")
read_file(path="example.py", start_line=10, end_line=20)
# Write file
write_file(path="new_file.py", content="print('Hello')")
write_file(path="nested/file.py", content="...", create_dirs=True)
# List directory
list_directory(path="src")
list_directory(path=".", recursive=True)
list_directory(path=".", include_gitignored=True)
Shell Commands
# Execute command
execute_shell_command(command="ls -la")
execute_shell_command(command="python script.py", timeout=60)
# Safety features
# - Blocks dangerous patterns (rm -rf /, etc.)
# - No support for redirections or pipes
# - Output truncation for large outputs
Web Search
# Search web
web_search(query="Python async best practices")
web_search(query="FastAPI tutorial", max_results=10)
MCP Integration
Supported MCP Servers
Nexus works with any MCP-compliant server:
@upstash/context7-mcp- Documentation retrieval@modelcontextprotocol/server-filesystem- File system access@modelcontextprotocol/server-postgres- PostgreSQL integration@modelcontextprotocol/server-brave-search- Web search@modelcontextprotocol/server-github- GitHub integration- Any custom MCP server
Adding MCP Servers
- Install MCP server globally or locally
- Add to
.nexus/mcp_config.json - Restart Nexus
- Tools automatically available
Example:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Performance Metrics
Metrics are automatically tracked and stored in .nexus/db/metrics.db:
- Request Latency - Total time for request
- Time to First Token (TTFT) - Time until streaming starts
- Token Usage - Input, output, and cached tokens
- Session Summaries - Aggregated statistics per thread
View metrics:
/metrics
Sample output:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Session Metrics Summary โ
โโโโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโค
โ Metric โ Value โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโค
โ Total Requests โ 15 โ
โ Total Latency โ 45.32s โ
โ Avg Latency โ 3.02s โ
โ Avg TTFT โ 0.85s โ
โโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโค
โ Total Input Tokens โ 12,450 โ
โ Total Output Tokens โ 8,320 โ
โ Total Tokens โ 20,770 โ
โ Total Cached Tokens โ 3,200 โ
โโโโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโ
๐ก๏ธ Safety & Security
Built-in Safety Features
- Human Approval - Optional approval for all tool executions
- Dangerous Pattern Detection - Blocks harmful shell commands
- Path Restrictions - Enforces directory boundaries in ARCHITECT mode
- Gitignore Compliance - Respects
.gitignorein file operations - Output Truncation - Prevents context overflow from large outputs
- Mode Validation - Tools validated against current operational mode
Dangerous Patterns Blocked
rm -rf / # Recursive deletion from root
:(){ :|:& };: # Fork bomb
mkfs # Filesystem creation
Approval Workflow
When APPROVAL_REQUIRED=true:
Tool Execution Pending Approval
Tool: write_file
Action: Write content to file
Parameters: path, content, ... (use 'd' to view details)
Approve? [y/n/d] (y):
Options:
y- Approve and executen- Deny and canceld- View detailed parameters
Mode Restrictions
| Tool | CODE | ARCHITECT | ASK |
|---|---|---|---|
| read_file | โ | โ | โ |
| write_file | โ | โ ๏ธ (plans only) | โ |
| list_directory | โ | โ | โ |
| execute_shell_command | โ | โ | โ |
| web_search | โ | โ | โ |
| switch_mode | โ | โ | โ |
| MCP Tools | โ | โ | โ |
๐ง Advanced Configuration
Custom System Prompts
Create .nexus/prompts/system_prompt.md:
# Custom System Identity
You are a specialized Python expert...
## Core Capabilities
- Expert in async/await patterns
- Django and FastAPI specialist
...
Coding Standards
Create .nexus/rules/coding-standards.md:
# Coding Standards
## Python
- Use type hints everywhere
- Maximum line length: 120 characters
- Follow PEP 8 with Ruff
...
Environment Variables
Full list of supported environment variables:
# OpenAI
OPENAI_API_KEY # Required: OpenAI API key
OPENAI_BASE_URL # Optional: Custom API endpoint
# Model
MODEL_NAME # Default: gpt-4o
TEMPERATURE # Default: 0.7 (range: 0-2)
MAX_TOKENS # Default: 4096
# LangSmith
LANGSMITH_API_KEY # Optional: LangSmith API key
LANGSMITH_PROJECT # Default: nexus
LANGSMITH_TRACING # Default: true
# Agent
MAX_ITERATIONS # Default: 50
APPROVAL_REQUIRED # Default: true
# Logging
LOG_LEVEL # Default: INFO
DEBUG # Default: false
SQLite Databases
Nexus uses two SQLite databases:
-
.nexus/db/checkpoints.db- Stores conversation checkpoints
- Enables resuming conversations
- Thread-based organization
-
.nexus/db/metrics.db- Performance metrics
- Token usage tracking
- Request latency data
๐ Performance Optimization
Token Management
- Context Truncation - Messages automatically truncated to prevent overflow
- Message History Limit - Only last 15 messages sent to LLM
- Output Limits - Shell and file outputs capped to 2048 characters
- Cached Tokens - Automatic prompt caching for repeated contexts
Streaming Performance
- Time to First Token (TTFT) - Optimized for quick initial response
- Progressive Rendering - Real-time token display with Rich
- Live Updates - 10 refreshes per second for smooth streaming
Database Optimization
- Async SQLite - Non-blocking database operations
- Connection Pooling - Efficient connection management
- Index Optimization - Fast checkpoint and metrics queries
๐ Troubleshooting
Common Issues
MCP Server Not Loading
# Check if command exists
which npx # or npm, uv, python
# Test MCP server manually
npx -y @upstash/context7-mcp
# Check logs
DEBUG=true nexus chat
OpenAI API Errors
# Verify API key
echo $OPENAI_API_KEY
# Test with different model
MODEL_NAME=gpt-3.5-turbo nexus chat
# Check base URL
OPENAI_BASE_URL=https://api.openai.com/v1 nexus chat
Permission Issues
# ARCHITECT mode file write failure
# Solution: Ensure path is in .nexus/plans/
# ASK mode tool restriction
# Solution: Switch to CODE mode (/mode code)
Database Locked
# Multiple instances running
# Solution: Close other Nexus instances
# Corrupted database
rm .nexus/db/checkpoints.db
# Restart Nexus (creates new database)
Debug Mode
Enable detailed logging:
DEBUG=true LOG_LEVEL=DEBUG nexus chat
Reset Configuration
# Delete all configuration
rm -rf .nexus/
# Restart to regenerate defaults
nexus chat
๐งช Development
Setup Development Environment
# Clone repository
git clone https://github.com/DataRohit/nexus.git
cd nexus
# Install with dev dependencies
pip install -e ".[dev]"
# Or with uv
uv pip install -e ".[dev]"
Development Tools
# Lint code
ruff check .
# Format code
ruff format .
# Fix auto-fixable issues
ruff check --fix .
# Sort imports
isort .
Code Quality Standards
- Linting: Ruff with strict ruleset
- Formatting: Ruff formatter (120 char line length)
- Type Hints: Required for all functions
- Docstrings: Google-style docstrings mandatory
- Import Sorting: isort with profile "black"
Project Guidelines
- Type Everything - Use type hints everywhere
- Document Everything - Docstrings for all public APIs
- No Bare Exceptions - Always specify exception types
- Use Protocol - For interfaces and abstract classes
- Async First - Prefer async/await for I/O operations
๐ค Contributing
Contributions are welcome! Please follow these guidelines:
How to Contribute
- Fork the Repository
git fork https://github.com/DataRohit/nexus.git
- Create Feature Branch
git checkout -b feature/amazing-feature
- Follow Code Standards
- Run Ruff linting
- Add type hints
- Write docstrings
- Update documentation
- Commit Changes
git commit -m "Add amazing feature"
- Push to Branch
git push origin feature/amazing-feature
- Open Pull Request
- Describe changes clearly
- Link related issues
- Add screenshots if UI changes
Development Workflow
# 1. Setup development environment
pip install -e ".[dev]"
# 2. Make changes
# ... edit files ...
# 3. Run linting
ruff check .
ruff format .
# 4. Test changes
nexus chat
# 5. Commit
git add .
git commit -m "Description of changes"
# 6. Push and create PR
git push origin feature-branch
Code Review Process
All contributions will be reviewed for:
- Code quality and style
- Type safety
- Documentation completeness
- Performance impact
- Security considerations
๐ License
This project is licensed under the MIT License.
The MIT License
Copyright 2026 Rohit Vilas Ingole <rohit.vilas.ingole@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
See the LICENSE file for full details.
๐ค Author
Rohit Vilas Ingole
- ๐ง Email: rohit.vilas.ingole@gmail.com
- ๐ GitHub: @DataRohit
- ๐ผ LinkedIn: Rohit Ingole
๐ Acknowledgments
This project leverages amazing open-source technologies:
- LangChain - LLM application framework
- LangGraph - State machine framework for agents
- OpenAI - GPT models and API
- Model Context Protocol - Universal tool integration standard
- Rich - Beautiful terminal formatting
- Pydantic - Data validation and settings
- SQLAlchemy - Database toolkit
- Ruff - Fast Python linter
โญ If you find Nexus helpful, please consider giving it a star! โญ
Built with โค๏ธ by Rohit Vilas Ingole
Powered by LangChain, LangGraph & MCP
Nexus: Where AI meets autonomous coding
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
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 agent_nexus_cli-0.1.31.tar.gz.
File metadata
- Download URL: agent_nexus_cli-0.1.31.tar.gz
- Upload date:
- Size: 590.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70146a69349ca53a769fce57720d87f6e22dcf366aa9c0e23ed18f35bea768c0
|
|
| MD5 |
b226ca49a0f6876ae42ccb49440ea12f
|
|
| BLAKE2b-256 |
40efc0befa9c0e0e428c5e37e96fc56e558ab713fd0cd72c6e5e46245c7cee04
|
Provenance
The following attestation bundles were made for agent_nexus_cli-0.1.31.tar.gz:
Publisher:
publish.yml on DataRohit/Nexus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_nexus_cli-0.1.31.tar.gz -
Subject digest:
70146a69349ca53a769fce57720d87f6e22dcf366aa9c0e23ed18f35bea768c0 - Sigstore transparency entry: 851064920
- Sigstore integration time:
-
Permalink:
DataRohit/Nexus@d9ff04092c5c39d80e2967222686fcfa8a68f60b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DataRohit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9ff04092c5c39d80e2967222686fcfa8a68f60b -
Trigger Event:
push
-
Statement type:
File details
Details for the file agent_nexus_cli-0.1.31-py3-none-any.whl.
File metadata
- Download URL: agent_nexus_cli-0.1.31-py3-none-any.whl
- Upload date:
- Size: 47.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b21e6c9a3ebfa77a90260f516245204ba784dc450e4960d6698084bae07ea840
|
|
| MD5 |
098e7fa97041ee0b0b9c3a49fcf22aac
|
|
| BLAKE2b-256 |
65cdc6f2bfd971cdad25faa3f308204ed98d0076c5ece099190d1534e9a73726
|
Provenance
The following attestation bundles were made for agent_nexus_cli-0.1.31-py3-none-any.whl:
Publisher:
publish.yml on DataRohit/Nexus
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent_nexus_cli-0.1.31-py3-none-any.whl -
Subject digest:
b21e6c9a3ebfa77a90260f516245204ba784dc450e4960d6698084bae07ea840 - Sigstore transparency entry: 851064945
- Sigstore integration time:
-
Permalink:
DataRohit/Nexus@d9ff04092c5c39d80e2967222686fcfa8a68f60b -
Branch / Tag:
refs/heads/master - Owner: https://github.com/DataRohit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@d9ff04092c5c39d80e2967222686fcfa8a68f60b -
Trigger Event:
push
-
Statement type: