Skip to content

Commit 2e88277

Browse files
committed
Update VSCode settings and enhance AI development documentation
- Expanded the AI development notes with new entries for Claude Code, Codex CLI, Gemini CLI, and Happy. - Added detailed configuration and usage instructions for each tool. - Updated existing documentation with additional resources and clarifications.
1 parent 9e33f85 commit 2e88277

File tree

21 files changed

+705
-218
lines changed

21 files changed

+705
-218
lines changed

notes/ai/dev/ai-dev-awesome.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,37 @@ tags:
2323
- https://a2a-protocol.org/
2424
- https://github.com/a2aproject/A2A
2525
- /.well-known/agent.json
26-
- Coding
27-
- [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli)
28-
- Apache-2.0, TS
29-
- terminal based, use the full scope of what is possible
26+
- Coding/Agent/Terminal
27+
- [anthropics/claude-code](https://github.com/anthropics/claude-code) - by Anthropic
28+
- binary
29+
- Claude Agent SDK
30+
- [google-gemini/gemini-cli](https://github.com/google-gemini/gemini-cli) - by Google
31+
- Apache-2.0, TypeScript
32+
- 官方明确目前不会支持 OpenAI 兼容接口
3033
- gemini code $20/month
34+
- 生态
35+
- genai
36+
- fork [QwenLM/Qwen3-Coder](https://github.com/QwenLM/Qwen3-Coder)
37+
- [openai/codex](https://github.com/openai/codex) - by OpenAI
38+
- Apache-2.0, Rust
39+
- [sst/opencode](https://github.com/sst/opencode)
40+
- MIT, TS, Go
41+
- Cursor
3142
- Windsurf $15/month
3243
- Github Copilot - $10/month
3344
- IDE based focus on using the tools inside project
3445
- Claude Code
3546
- $20/month
3647
- https://www.augmentcode.com/
3748
- $50/month
49+
- Remote
50+
- [slopus/happy](./happy.md)
51+
- MIT, TS
52+
- Mobile and Web Client for Claude Code & Codex
53+
- 内置 Tunnel 逻辑
54+
- https://github.com/siteboon/claudecodeui
55+
- GPLv3, JS
56+
- Claude Code or Cursor CLI on mobile and web with Claude Code UI
3857
- Agent Framework/RAG/Assistants
3958
- [mastra-ai/mastra](https://github.com/mastra-ai/mastra)
4059
- Apache-2.0, TS

notes/ai/service/claude-code.md renamed to notes/ai/dev/claude-code.md

Lines changed: 64 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ tags: [Claude, AI, Code, Agent]
2222
- Add dynamic loading/unloading of MCP servers during active sessions [#6638](https://github.com/anthropics/claude-code/issues/6638)
2323
- 目前 mcp 太多会导致 token 消耗过多
2424
- 可以临时 deny 一些 mcp
25-
- Add --session-name and /session-name for custom session identification https://github.com/anthropics/claude-code/issues/2112
25+
- Add --session-name and /session-name for custom session identification https://github.com/anthropics/claude-code/issues/2112
26+
- 官方正在 Work 把 CC 做到 Web 和 移动端
2627

2728
:::
2829

@@ -309,6 +310,68 @@ claude mcp add --transport http sentry https://mcp.sentry.dev/mcp
309310
}
310311
```
311312

313+
```bash
314+
# base
315+
awk
316+
cat
317+
date
318+
diff
319+
du
320+
find
321+
fzf
322+
grep
323+
head
324+
less
325+
ls
326+
man
327+
mkdir
328+
more
329+
ps
330+
pwd
331+
sed
332+
sort
333+
touch
334+
tree
335+
true
336+
uname
337+
whoami
338+
339+
# git
340+
git diff
341+
git pull
342+
git checkout
343+
git fetch
344+
git log
345+
git stash
346+
git status
347+
git remote -v
348+
git shortlog
349+
git add
350+
git commit
351+
352+
# golang
353+
go build
354+
go get
355+
go mod
356+
go test
357+
358+
# node/npm/pnpm
359+
npm run lint
360+
npm run test
361+
pnpm run format
362+
pnpm run lint
363+
pnpm run test
364+
pnpm install
365+
pnpm dev
366+
pnpm ls
367+
368+
# docker
369+
docker ps
370+
docker events
371+
docker logs
372+
docker inspect
373+
```
374+
312375
## .claude/commands
313376

314377
```

notes/ai/dev/codex-cli.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
---
2+
title: Codex
3+
tags:
4+
- Agent
5+
- CLI
6+
---
7+
8+
# Codex
9+
10+
- [openai/codex](httpss://github.com/openai/codex)
11+
12+
```bash
13+
npm i -g @openai/codex
14+
brew install codex
15+
16+
codex --version
17+
18+
OPENAI_BASE_URL=https://api.openai.com/v1 OPENAI_API_KEY=sk-proj-1234567890 codex --model deepseek-v3.2-exp
19+
```
20+
21+
## 配置 {#config}
22+
23+
Codex 支持多种设置配置值的机制:
24+
25+
- 特定于配置的命令行标志,例如 `--model o3`(最高优先级)。
26+
- 通用 `-c`/`--config` 标志,接受 `key=value` 对,例如 `--config model="o3"`
27+
- CODEX_HOME=~/.codex
28+
- $CODEX_HOME/config.toml
29+
30+
```toml
31+
model=gpt-5-codex # 模型
32+
model_provider=openai
33+
# 批准策略
34+
# untrusted, on-failure, on-request, never
35+
approval_policy=untrusted
36+
# 沙箱策略
37+
# read-only, workspace-write, danger-full-access
38+
sandbox_mode=read-only
39+
40+
# 启用的 profile
41+
profiles=o3
42+
43+
# MCP 服务器
44+
mcp_servers=mcp-server
45+
46+
# 传递给子进程的环境变量
47+
shell_environment_policy=inherit=all
48+
49+
# 内置 openai provider
50+
[model_providers.openai]
51+
name = "OpenAI"
52+
# OPENAI_BASE_URL
53+
base_url = "https://api.openai.com/v1"
54+
env_key = "OPENAI_API_KEY"
55+
# 使用 v1/chat/completions 还是 v1/responses
56+
# chat, responses
57+
wire_api = "chat"
58+
59+
# 请求配置
60+
query_params = {}
61+
http_headers = { }
62+
63+
env_http_headers = { "OpenAI-Organization" = "OPENAI_ORGANIZATION", "OpenAI-Project" = "OPENAI_PROJECT" }
64+
65+
request_max_retries = 4
66+
stream_max_retries = 5
67+
# 等待 stream 响应的时间
68+
stream_idle_timeout_ms = 300000
69+
70+
[model_providers.ollama]
71+
name = "Ollama"
72+
base_url = "http://localhost:11434/v1"
73+
74+
[model_providers.azure]
75+
name = "Azure"
76+
base_url = "https://YOUR_PROJECT_NAME.openai.azure.com/openai"
77+
env_key = "AZURE_OPENAI_API_KEY"
78+
query_params = { api-version = "2025-04-01-preview" }
79+
wire_api = "responses"
80+
```
81+
82+
| 变量 | 描述 |
83+
| --------------------- | ----------------------------------------------------------- |
84+
| `OPENAI_API_KEY` | 您的 OpenAI API 密钥。 |
85+
| `CODEX_HOME` | 用于日志、配置和其他数据的目录。默认为 `~/.codex`|
86+
| `CODEX_API_KEY` | API 密钥,仅在 `codex exec` 中支持。 |
87+
| `RUST_LOG` | 配置日志记录行为 (例如, `codex_core=info,codex_tui=info`)。 |
88+
| `<PROVIDER>_API_KEY` | 特定提供程序的 API 密钥 (例如, `MISTRAL_API_KEY`)。 |
89+
| `<PROVIDER>_BASE_URL` | 自定义提供程序的基础 URL。 |

0 commit comments

Comments
 (0)