使用说明
🚀 纽带
基于LangGraph和MCP的精英自主AI编码代理
一个智能、自主的CLI编码代理,具有多模式操作模式、持久的上下文管理和用于生产工作流的无缝MCP服务器集成。
📋 概述
纽带 是基于LangChain和LangGraph构建的尖端自主AI编码代理,旨在彻底改变开发人员与代码的交互方式。它将大型语言模型的强大功能与复杂的状态机架构相结合,使其能够在最少的人为干预下规划、执行和迭代复杂的编码任务。
与传统的人工智能助手不同,Nexus具有以下功能:
- 多模式操作 -针对不同的工作流程在CODE、ARCHITECT和ASK模式之间切换
- 持久上下文 -基于SQLite的检查点系统维护会话之间的对话历史
- MCP集成 -动态加载和管理模型上下文协议服务器以实现扩展功能
- 人在环安全 -关键操作的可选审批工作流
- 实时度量 -跟踪会话中的令牌使用情况、延迟和性能
- 智能工具执行 -根据操作模式验证和限制工具使用
⚡ Project Showcase ⚡
✨ 主要特点
🧠 智能代理系统
- LangGraph状态机 -具有条件边的复杂工作流管理
- 动态工具加载 -MCP服务器工具的自动发现和集成
- 情境感知推理 -通过智能截断维护对话历史记录
- 迭代规划 -具有可配置迭代限制的多步任务执行
- 基于模式的限制 -基于当前操作模式的工具验证和过滤
🎯 多模式操作
代码模式 (完全访问)
- 完成文件系统操作(读、写、列表)
- 带安全检查的Shell命令执行
- 无限制访问所有工具和MCP服务器
- 非常适合实施、调试和系统任务
ARCHITECT模式 (规划重点)
- 文件操作仅限于
.nexus/plans/目录 - 强制架构规划分离
- 防止意外修改实现代码
- 非常适合设计文档、技术规格和规划
ASK模式 (研究与对话)
- 信息的只读访问
- 无文件修改或shell执行
- MCP工具仅用于研究和分析
- 最适合学习、记录和问答
🛠️ 内置工具
文件操作
read_file-使用可选的行范围选择读取文件内容write_file-使用自动目录创建创建或覆盖文件list_directory-列出目录内容.gitignore模式
壳牌集成
execute_shell_command-使用输出捕获安全执行shell命令- 危险模式检测(防止破坏性操作)
- 可配置的超时和输出截断
- 重定向和管道的自动堵塞
模式管理
switch_mode-CODE、ARCHITECT、ASK之间的动态模式切换- 自动验证和审批工作流
- 上下文感知模式建议
网络搜索
web_search-DuckDuckGo集成实时信息- 可配置的结果限制
- 带有标题、URL和描述的格式化输出
🔌 模型上下文协议(MCP)支持
- 动态服务器加载 -自动发现并连接到MCP服务器
- 多服务器管理 -支持多个并发MCP连接
- 工具自动发现 -从连接的服务器动态加载工具
- 上下文注入 -自动将MCP工具描述添加到代理提示中
- 灵活的配置 -基于JSON的服务器配置
.nexus/mcp_config.json
📊 性能与监控
- 实时指标跟踪 -请求延迟、TTFT(到达第一个令牌的时间)、令牌使用情况
- SQLite度量存储 -跨会话的持久性能数据
- 会议总结 -每个线程的聚合统计信息
- 详细分解 -输入/输出令牌、缓存令牌、总使用量
- 丰富的可视化 -通过Rich库实现漂亮的终端表和面板
🎨 高级CLI体验
- 丰富的终端用户界面 -具有Rich库的漂亮、响应式界面
- 流媒体响应 -实时令牌流,实时更新
- Markdown渲染 -代理响应中完全支持降价
- 语法高亮显示 -带有语法高亮显示的代码块
- 互动提示 -用户友好的审批工作流程
- 进度指标 -用于长时间操作的旋转器和状态消息
🔒 安全与验证
- 循环中的人类 -所有工具执行的可选批准
- 模式验证 -根据当前操作模式验证的工具
- 路径限制 -ARCHITECT模式下的强制目录边界
- 危险模式检测 -阻止可能有害的shell命令
- Gitignore合规性 -尊重
.gitignore文件操作中的模式
💾 持久性和配置
- 检查点系统 -基于SQLite的会话状态持久化
- 线程管理 -多个并发对话线程
- 自定义提示 -从加载自定义系统提示
.nexus/prompts/ - 规则执行 -用户定义的规则来自
.nexus/rules/ - 基于环境的配置 -Pydantic设置
.env支持
🏛️ 建筑
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
代理工作流
- 用户输入 -通过Rich CLI界面输入的消息
- 状态初始化 -从SQLite检查点加载的当前状态
- Agent推理 -LLM使用系统提示和上下文处理输入
- 工具选择 -Agent根据模式决定使用哪些工具
- 批准(可选) -工具执行需要人工批准
- 工具执行 -所选工具使用经过验证的参数执行
- 状态更新 -新状态持久化到检查点数据库
- 响应流 -实时令牌流式传输回用户
- 指标记录 -性能数据保存到度量数据库
🔧 技术栈
核心框架
| 技术 | 版本 | 目的 |
|---|---|---|
| Python | 3.14.2 | 编程语言 |
| LangChain | 1.2.7 | LLM框架 |
| LangChain核心 | 1.2.7 | 核心摘要 |
| LangChain社区 | 0.4.1 | 社区组件 |
| LangChain OpenAI | 1.1.7 | OpenAI集成 |
| LangGraph | 1.0.7 | 状态机框架 |
| LangGraph检查点 | 4.0.0 | 检查点系统 |
| LangGraph检查点SQLite | 3.0.3 | SQLite检查点 |
| LangGraph预构建 | 1.0.7 | 预构建节点 |
AI和ML
| 技术 | 版本 | 目的 |
|---|---|---|
| OpenAI | 2.15.0 | LLM提供者 |
| tiktoken | 0.12.0 | 代币计数 |
| LangSmith | 0.6.4 | 跟踪与调试 |
数据和存储
| 技术 | 版本 | 目的 |
|---|---|---|
| SQLAlchemy | 2.0.46 | ORM和数据库工具包 |
| aiosqlite | 0.22.1 | 异步SQLite驱动程序 |
| Pydantic | 2.12.5 | 数据验证 |
| Pydantic核心 | 2.41.5 | 核心验证逻辑 |
| Pydantic设置 | 2.12.0 | 设置管理 |
CLI&UI
| 技术 | 版本 | 目的 |
|---|---|---|
| 丰富 | 14.2.0 | 终端UI框架 |
| 丰富点击 | 1.9.6 | 丰富点击集成 |
| 结构化日志 | 25.5.0 | 结构化日志 |
MCP和工具
| 技术 | 版本 | 目的 |
|---|---|---|
| MCP | 1.25.0 | 模型上下文协议 |
| LangChain MCP适配器 | 0.2.1 | MCP LangChain网桥 |
| DDGS | 9.10.0 | 鸭子鸭子Go搜索 |
| Pathspec | 1.0.3 | Gitignore模式匹配 |
公用事业
| 技术 | 版本 | 目的 |
|---|---|---|
| HTTPX | 0.28.1 | HTTP客户端 |
| 请求 | 2.32.5 | HTTP请求 |
| Python dotenv | 1.2.1 | 环境变量 |
| PyYAML | 6.0.3 | YAML解析器 |
| 韧性 | 9.1.2 | 重试逻辑 |
| Orjson | 3.11.5 | 快速JSON |
开发工具
| 技术 | 版本 | 目的 |
|---|---|---|
| 褶皱 | 0.14.14 | 过梁和格式化 |
| isort | 7.0.0 | 导入排序 |
| 设置工具 | 80.10.1+ | 包构建 |
| 轮子 | 0.46.3+ | 包装配送 |
📁 项目结构
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
🚀 安装
先决条件
- Python 3.14.2+ -最新Python版本
- Git -版本控制系统
- OpenAI API密钥 -用于LLM访问
- 点 或 紫外线 -包管理器
快速安装
# 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 .
配置
- 创建环境文件
cp .env.example .env
- 编辑
.env使用您的设置
# 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
- 配置MCP服务器(可选)
创建 .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"]
}
}
}
验证安装
# Check installation
nexus --version
# Run help
nexus --help
# Start interactive chat
nexus chat
💻 用法
基本命令
# 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
交互式聊天
$ 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
斜杠命令
可在互动聊天中使用:
/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
模式切换
# 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
示例工作流
规划与实施
# 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]
代码审查
> Review this Python code for security issues:
> [paste code]
[Agent provides detailed code review]
网络研究
/mode ask
> What are the latest best practices for React Server Components?
[Agent searches web and provides summary]
📖 文档
代理模式
代码模式
- 目的:全面制定和实施
- 权限:所有工具均已启用
- 用例:
- 编写和修改代码
- 运行shell命令
- 文件系统操作
- 调试和测试
ARCHITECT模式
- 目的:高层规划和设计
- 权限:文件写入限制为
.nexus/plans/ - 用例:
- 创建设计文档
- 编写技术规范
- 规划系统架构
- 记录要求
ASK模式
- 目的:研究和对话
- 权限:无文件修改或shell执行
- 用例:
- 学习与问答
- 代码说明
- 最佳实践讨论
- 通过MCP工具进行网络研究
配置文件
.env -环境变量
# 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服务器
{
"mcpServers": {
"server-name": {
"command": "command-to-run",
"args": ["arg1", "arg2"],
"env": {
"ENV_VAR": "value"
}
}
}
}
自定义提示
将标记文件放入 .nexus/prompts/:
system_prompt.md-主要系统说明code_review_prompt.md-代码审查指南code_generation_prompt.md-代码生成规则
用户规则
将标记文件放入 .nexus/rules/:
- 规则会自动加载并执行
- 例子:
python-code-documentation.md
工具文档
文件操作
# 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 命令
# 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
网络搜索
# Search web
web_search(query="Python async best practices")
web_search(query="FastAPI tutorial", max_results=10)
MCP集成
支持的MCP服务器
Nexus适用于任何符合MCP标准的服务器:
@upstash/context7-mcp-文件检索@modelcontextprotocol/server-filesystem-文件系统访问@modelcontextprotocol/server-postgres-PostgreSQL集成@modelcontextprotocol/server-brave-search-网络搜索@modelcontextprotocol/server-github-GitHub集成- 任何自定义MCP服务器
添加MCP服务器
- 全局或本地安装MCP服务器
- 添加到
.nexus/mcp_config.json - 重新启动Nexus
- 工具自动可用
例子:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
性能指标
指标会自动跟踪并存储在 .nexus/db/metrics.db:
- 请求延迟 -请求总时间
- 首次代币时间(TTFT) -流媒体开始前的时间
- 令牌使用 -输入、输出和缓存令牌
- 会议总结 -每个线程的聚合统计信息
查看指标:
/metrics
样本输出:
┌──────────────────────────────────────────┐
│ 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 │
└──────────────────────┴───────────────────┘
🛡️ 安全与安保
内置安全功能
- 人类认可 -所有工具执行的可选批准
- 危险模式检测 -阻止有害的shell命令
- 路径限制 -在ARCHITECT模式下强制目录边界
- Gitignore合规性 -尊重
.gitignore在文件操作中 - 输出截断 -防止大输出的上下文溢出
- 模式验证 -根据当前操作模式验证的工具
危险模式被阻止
rm -rf / # Recursive deletion from root
:(){ :|:& };: # Fork bomb
mkfs # Filesystem creation
审批工作流程
当 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):
选项:
y-批准并执行n-拒绝并取消d-查看详细参数
模式限制
| 工具 | 代码 | 建筑师 | 提问 |
|---|---|---|---|
| 读取文件 | ✅ | ✅ | ✅ |
| write_file | ✅ | ⚠️ (仅计划) | ❌ |
| list_directory | ✅ | ✅ | ✅ |
| execute_shell_command | ✅ | ✅ | ❌ |
| 网络搜索 | ✅ | ✅ | ✅ |
| 切换模式 | ✅ | ✅ | ✅ |
| MCP工具 | ✅ | ✅ | ✅ |
🔧 高级配置
自定义系统提示
创建 .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
...
编码标准
创建 .nexus/rules/coding-standards.md:
# Coding Standards
## Python
- Use type hints everywhere
- Maximum line length: 120 characters
- Follow PEP 8 with Ruff
...
环境变量
支持的环境变量的完整列表:
# 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
数据库存储
Nexus使用两个SQLite数据库:
-
.nexus/db/checkpoints.db- 存储对话检查点
- 允许恢复对话
- 基于线程的组织
-
.nexus/db/metrics.db- 性能指标
- 令牌使用跟踪
- 请求延迟数据
📊 性能优化
许可证管理
- 上下文截断 -邮件自动截断以防止溢出
- 消息历史记录限制 -仅向LLM发送了最后15条消息
- 输出限制 -Shell和文件输出限制为2048个字符
- 缓存令牌 -重复上下文的自动提示缓存
流媒体性能
- 首次代币时间(TTFT) -针对快速初始响应进行了优化
- 渐进渲染 -Rich实时令牌显示
- 实时更新 -每秒刷新10次,实现流畅的流媒体播放
数据库优化
- 异步SQLite -非阻塞数据库操作
- 连接池 -高效的连接管理
- 指标优化 -快速检查点和指标查询
🐛 故障排除
常见问题
MCP服务器未加载
# 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错误
# 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
权限问题
# ARCHITECT mode file write failure
# Solution: Ensure path is in .nexus/plans/
# ASK mode tool restriction
# Solution: Switch to CODE mode (/mode code)
数据库锁
# Multiple instances running
# Solution: Close other Nexus instances
# Corrupted database
rm .nexus/db/checkpoints.db
# Restart Nexus (creates new database)
调试模式
启用详细日志记录:
DEBUG=true LOG_LEVEL=DEBUG nexus chat
重置配置
# Delete all configuration
rm -rf .nexus/
# Restart to regenerate defaults
nexus chat
🧪 发展
设置开发环境
# 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]"
开发工具
# Lint code
ruff check .
# Format code
ruff format .
# Fix auto-fixable issues
ruff check --fix .
# Sort imports
isort .
代码质量标准
- 代码检查:严格的规则集
- 格式化:Ruff格式化程序(120个字符行长度)
- 类型提示:所有功能都需要
- 文档字符串:必须使用谷歌风格的文档字符串
- 导入排序:轮廓为“黑色”的isort
项目指南
- 键入所有内容 -在任何地方使用类型提示
- 记录一切 -所有公共API的文档字符串
- 没有例外 -始终指定异常类型
- 使用协议 -用于接口和抽象类
- 异步优先 -更喜欢异步/等待I/O操作
🤝 贡献
欢迎投稿!请遵循以下指南:
如何做出贡献
- 分叉存储库
git fork https://github.com/DataRohit/nexus.git
- 创建特征分支
git checkout -b feature/amazing-feature
- 遵循规范标准
- 运行Ruff linting
- 添加类型提示
- 编写文档字符串
- 更新文档
- 提交更改
git commit -m "Add amazing feature"
- 推送到分支
git push origin feature/amazing-feature
- 打开拉取请求
- 清楚地描述变化
- 链接相关问题
- 如果UI发生变化,请添加屏幕截图
开发工作流程
# 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
代码审查流程
将对所有捐款进行审查,以确定:
- 代码质量和风格
- 类型安全性
- 文件完整性
- 性能影响
- 安全注意事项
📝 许可证
该项目根据 MIT许可证.
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.
请参阅 许可证 文件以获取完整详细信息。
👤 作者
罗希特·维拉斯·英戈尔
- 📧 电子邮件: rohit.vilas.ingole@gmail.com
- 🐙 github: @DataRohit
- 💼 领英: 罗希特·英戈尔
🙏 致谢
该项目利用了令人惊叹的开源技术:
- LangChain -LLM应用框架
- LangGraph -代理的状态机框架
- 开放人工智能 -GPT模型和API
- 模型上下文协议 -通用工具集成标准
- 富有的 -漂亮的终端格式
- 派丹蒂克 -数据验证和设置
- SQLAlchemy -数据库工具包
- 拉夫 -快速Python linter
⭐ 如果你觉得Nexus有用,请考虑给它一颗星! ⭐
建于❤️ 通过 罗希特·维拉斯·英戈尔
由LangChain、LangGraph和MCP提供技术支持
Nexus:人工智能与自主编码相遇的地方
