
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
mini-claude-code
Advanced tools
Advanced AI-powered coding assistant with streaming responses, context memory, intelligent auto-completion, error handling, test generation, and task planning
一个功能完整的 AI 编程助手,展示现代智能开发工具的复杂性和强大能力。
cd mini-claude-code-v3
npm install
使用 DeepSeek API 以获得完整的 AI 功能:
# 启动程序
npm start
# 在交互模式中配置 API Key
mini-claude> config set-api-key sk-your-deepseek-api-key
# 或者设置环境变量
export DEEPSEEK_API_KEY=sk-your-deepseek-api-key
npm start
# 或者使用重构后的版本
node bin/cli-refactored.js interactive
| 命令 | 描述 | 示例 |
|---|---|---|
completion | 显示自动补全统计 | completion |
| Tab 键 | 智能自动补全 | Tab 键补全命令和路径 |
| Up/Down | 浏览命令历史 | 箭头键浏览历史 |
| 命令 | 描述 | 示例 |
|---|---|---|
fix <file> [error] | 分析和修复文件错误 | fix src/app.js, fix index.js "SyntaxError" |
check [path] | 检查项目错误 | check, check ./src |
| 命令 | 描述 | 示例 |
|---|---|---|
test generate <file> [type] | 为文件生成测试 | test generate src/utils.js unit |
test run [file] | 运行测试 | test run, test run utils.test.js |
test analyze <file> | 分析代码用于测试 | test analyze src/component.js |
test framework | 检测测试框架 | test framework |
test coverage <test> <source> | 生成覆盖率报告 | test coverage test.js src.js |
| 命令 | 描述 | 示例 |
|---|---|---|
help | 显示帮助信息 | help |
analyze [path] | 分析项目结构 | analyze, analyze ./my-project |
read <file> | 读取文件内容 | read package.json |
write <file> <content> | 写入文件 | write hello.txt Hello World |
edit <file> <old> <new> | 编辑文件 | edit index.js oldFunction newFunction |
search <term> [path] | 搜索文件内容 | search "function", search "TODO" ./src |
run <command> | 执行 shell 命令 | run "npm install" |
create <type> <name> | 创建新文件 | create component Button |
list [path] | 列出目录文件 | list, list ./src |
status | 显示当前状态 | status |
suggest | 获取建议操作 | suggest |
report | 生成项目报告 | report |
| 命令 | 描述 | 示例 |
|---|---|---|
chat <message> | 与 AI 助手对话 (流式) | chat 如何优化这个项目? |
generate <description> | AI 生成代码 (流式) | generate 创建一个登录表单组件 |
ai status | 显示 AI 和记忆系统状态 | ai status |
ai review <file> | AI 代码审查 | ai review src/app.js |
config set-api-key <key> | 设置 API Key | config set-api-key sk-xxx |
config show | 显示当前配置 | config show |
你可以直接用自然语言描述你想要做的事情,系统会结合历史对话和项目上下文给出智能响应:
中文示例:
"读取 package.json 文件""创建一个React组件叫做Header""搜索所有包含TODO的文件""运行npm install""生成一个用户登录的API接口""之前提到的组件如何添加状态管理?" ⭐ 上下文感知English Examples:
"Show me the package.json file""Create a React component called Header""Search for all files containing TODO""Run npm install""Generate a user login API endpoint""How can I add state to the component we discussed?" ⭐ Context Aware# 运行基础测试
npm test
# 运行流式响应测试
npm run test:streaming
# 运行上下文记忆测试
npm run test:memory
# 运行自动补全测试
npm run test:completion
# 运行错误处理系统测试
npm run test:error-handling
# 运行测试生成系统测试
npm run test:test-generation
# 运行任务规划系统测试
npm run test:task-planning
# 运行完整功能演示
npm run demo
mini-claude> 我想创建一个React应用的用户管理系统
# AI 流式响应 + 上下文记忆
mini-claude> 刚才的用户管理如何添加权限控制?
# 基于历史对话的上下文感知回答
mini-claude> cre[Tab] # → create
mini-claude> create comp[Tab] # → component
mini-claude> create component Bu[Tab] # → Button
# 第一次会话
mini-claude> 生成一个登录组件
# 退出,重新启动
mini-claude> 如何为之前的登录组件添加验证?
# 系统记住了之前的对话
mini-claude> analyze
mini-claude> suggest # 基于项目类型的智能建议
mini-claude> ai status # 显示记忆和补全统计
mini-claude-code-v3/
├── bin/cli.js # 增强命令行界面 (readline + 自动补全)
├── lib/
│ ├── tool-manager.js # 工具管理系统 (集成记忆)
│ ├── code-generator.js # 代码生成器
│ ├── deepseek-ai.js # DeepSeek API (流式响应)
│ ├── natural-language-processor.js # 自然语言处理器 (上下文增强)
│ ├── context-memory.js # 🧠 上下文记忆系统
│ └── auto-completion.js # ⚡ 智能自动补全引擎
├── tools/
│ ├── filesystem.js # 文件系统工具
│ ├── command.js # 命令执行工具
│ └── analyzer.js # 代码分析器
├── test/
│ ├── test.js # 基础测试
│ ├── streaming-test.js # 🚀 流式响应测试
│ ├── context-memory-test.js # 🧠 上下文记忆测试
│ ├── auto-completion-test.js # ⚡ 自动补全测试
│ └── complete-demo.js # 🎉 完整功能演示
├── examples/
│ ├── demo-usage.js # 基础使用演示
│ └── ai-demo.js # AI 功能演示
└── README.md # v3 完整文档
| 特性 | Mini Claude Code v3 | 真实 Claude Code |
|---|---|---|
| 自然语言处理 | ✅ DeepSeek API + 本地规则 | ✅ Claude AI |
| 项目分析 | ✅ 智能检测 | ✅ 深度分析 |
| 代码生成 | ✅ AI 生成 | ✅ AI 生成 |
| 文件操作 | ✅ 完整支持 | ✅ 完整支持 |
| 命令执行 | ✅ 完整支持 | ✅ 完整支持 |
| 代码审查 | ✅ AI 驱动 | ✅ AI 驱动 |
| 流式响应 | ✅ 完整实现 | ✅ 流式输出 |
| 上下文记忆 | ✅ 跨会话持久化 | ✅ 会话记忆 |
| 自动补全 | ✅ Tab 智能补全 | ✅ 智能补全 |
| 错误修复 | ⚠️ 基础支持 | ✅ 智能修复 |
| 测试生成 | ⚠️ 模板生成 | ✅ 智能生成 |
| Git 集成 | ⚠️ 基础支持 | ✅ 完整集成 |
✅ 三大核心功能完整实现:
✅ 系统集成优势:
✅ 用户体验提升:
MIT License - 查看 LICENSE 文件了解详情。
欢迎提交 Issue 和 Pull Request!
🤖 Made with Mini Claude Code v3 - 展示现代 AI 编程助手的真正复杂性!
npm start
然后试试这些 v3 新功能:
mini-claude> chat 请详细解释React的设计理念
# 实时流式输出,无需等待
mini-claude> 生成一个计算器组件
mini-claude> 刚才的计算器如何添加历史记录?
# 系统记住了之前的对话
mini-claude> cre[Tab] # 自动补全 create
mini-claude> create comp[Tab] # 自动补全 component
mini-claude> create component [Tab][Tab] # 显示所有文件名建议
mini-claude> ai status # 查看所有系统状态
mini-claude> completion # 查看补全统计
mini-claude> npm run demo # 运行完整演示
让 AI 的复杂性为你的编程助力! 🚀
FAQs
Advanced AI-powered coding assistant with streaming responses, context memory, intelligent auto-completion, error handling, test generation, and task planning
The npm package mini-claude-code receives a total of 0 weekly downloads. As such, mini-claude-code popularity was classified as not popular.
We found that mini-claude-code demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.