42 lines
1.1 KiB
Markdown
42 lines
1.1 KiB
Markdown
# Project Documentation
|
||
|
||
## Goal
|
||
|
||
构建一个本机 Codex 智能体管理台,用中文管理 agent 配置、项目运行状态、动态工作流和安全写回流程。
|
||
|
||
## Target Architecture
|
||
|
||
计划架构为:Go 后端提供 localhost HTTP API,Vue 3 + Vite 前端提供中文工作台界面。目标后端将只读访问 Codex SQLite 状态库,安全读取 `.codex` 配置,并仅在用户确认后写回 `.codex/agents/*.toml`。
|
||
|
||
## Configuration
|
||
|
||
- `CODEX_HOME`: 默认 `/Users/yoilun/.codex`
|
||
- 后端监听地址:默认 `127.0.0.1:18083`
|
||
- 前端开发地址:默认 `127.0.0.1:13083`
|
||
|
||
## Runbook
|
||
|
||
启动后端:
|
||
|
||
```bash
|
||
go run ./cmd/codex-agent-manager
|
||
```
|
||
|
||
健康检查:
|
||
|
||
```bash
|
||
curl http://127.0.0.1:18083/api/health
|
||
```
|
||
|
||
## Security Boundaries
|
||
|
||
- 不读取 `.codex/auth.json`。
|
||
- 不写入 Codex SQLite。
|
||
- `.codex/agents/*.toml` 写回必须先备份。
|
||
- 当前后端骨架只实现健康检查和 Codex home 路径边界函数,尚未读取真实 `.codex` 数据文件。
|
||
|
||
## Known Risks
|
||
|
||
- Codex 内部 SQLite schema 可能变化。
|
||
- 运行状态由多来源推断,必须显示置信度。
|