Skip to content

leoleedev/simplecc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simplecc

简洁的 Claude Code 代码助手替代品,200 行 Python 实现。

📖 实现原理详见博客:用 200 行代码实现一个 Claude Code

本仓库基于 nanocode 修改而来。

运行截图

simplecc 运行截图

安装

  1. 创建虚拟环境并安装依赖:
uv venv
source .venv/bin/activate
uv pip install anthropic

配置

运行前,请先配置环境变量:

export ANTHROPIC_BASE_URL=https://api.deepseek.com/anthropic
export ANTHROPIC_API_KEY=${API_KEY}

其中,API_KEY 为深度求索(DeepSeek) API Key。

使用

python simplecc.py

可用命令

  • /qexit - 退出程序
  • /c - 清空对话历史

内置工具

工具名 功能
read 读取文件并显示行号
write 写入内容到文件
edit 替换文件中的字符串
glob 按模式查找文件
grep 在文件中搜索正则表达式
bash 运行 shell 命令

许可证

MIT

About

Simple Claude Code alternative in 200 lines of Python, powered by Anthropic API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages