Metadata-Version: 2.4
Name: cch-agent
Version: 0.1.0
Summary: A simple CLI chat agent with streaming output
License-Expression: MIT
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: httpx>=0.24.0

# Simple Agent

纯问答 CLI 工具，流式输出，支持 Claude extended thinking。

## 安装

```bash
pip install simple-agent
```

## 使用

```bash
simple-agent
```

### 配置 API

```
>>> deploy
API URL: https://api.example.com/v1/chat/completions
API Key: sk-xxx
Model: claude-sonnet-4-6
Thinking (默认 off): medium
[配置已保存]
```

### 开始对话

```
>>> chat
>>> 你好
AI: 你好！有什么可以帮助你的？
>>> exit
```

## 命令

| 命令 | 说明 |
|------|------|
| deploy | 配置 API |
| chat | 开始对话 |
| exit | 退出 |

## Thinking 级别

| 级别 | budget_tokens | 上下文轮数 |
|------|---------------|-----------|
| low | 5000 | 10 |
| medium | 8000 | 15 |
| high | 20000 | 20 |
| off | - | 10 |

注：仅 Claude 模型支持 extended thinking。

## 配置文件

全局配置路径：`~/.simple-agent/config.json`
