Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
3fca3d7
feat: support gemini cli sessions
ymkiux Apr 28, 2026
dfdb9f9
fix: session source dropdown uses latest selection
ymkiux Apr 28, 2026
50c86df
fix: reload sessions after restoring gemini filter
ymkiux Apr 28, 2026
db8422c
fix(ui): keep sessions header actions inline
ymkiux Apr 28, 2026
40ce1d1
fix(ui): force sessions header buttons inline
ymkiux Apr 28, 2026
4004b99
fix(ui): prevent sessions header actions wrapping
ymkiux Apr 28, 2026
dba4a2e
test(ui): lock sessions header actions inline
ymkiux Apr 28, 2026
41f053f
fix(ui): prevent sessions header buttons stacking
ymkiux Apr 28, 2026
0827714
fix(ui): align sessions header action buttons
ymkiux Apr 28, 2026
15169c2
docs: add gemini cli install and session browser support
ymkiux Apr 28, 2026
cc8f37c
feat: add codebuddy code session browser support
ymkiux Apr 28, 2026
a4c681c
fix: initialize codebuddy session lookup cache
Apr 29, 2026
d149b07
fix: sync sessions current source label
ymkiux Apr 29, 2026
bfd07ab
fix: update cli install docs copy for gemini/codebuddy
ymkiux Apr 29, 2026
3d263d3
feat: support codebuddy resume command copy
ymkiux Apr 29, 2026
6d4de6d
feat: support gemini resume command copy
ymkiux Apr 29, 2026
4526446
docs: document resume command copy for gemini/codebuddy
ymkiux Apr 29, 2026
336432a
docs: expand session management docs
Apr 29, 2026
6be02b4
fix(ui): keep session list titles single-line
ymkiux Apr 29, 2026
1333ca2
fix(ui): tighten session toolbar spacing
ymkiux Apr 29, 2026
75756c0
feat(usage): add current session summary bar
ymkiux Apr 29, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 17 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Codex Mate is a local-first CLI + Web UI for unified management of:
- Claude Code `CLAUDE.md` editing (writes to `~/.claude/CLAUDE.md`)
- OpenClaw JSON5 profiles and workspace `AGENTS.md`
- Local skills market for Codex / Claude Code (target switching, local skills management, cross-app import, ZIP distribution)
- Local Codex/Claude sessions (list/filter/export/delete) with Usage analytics overview
- Local Codex/Claude/Gemini CLI/CodeBuddy Code sessions (list/filter/export/delete) with Usage analytics overview
- Plugins (Prompt templates): reusable templates with variables and one-click copy
Comment on lines +32 to 33
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix malformed bullet concatenation around the session/Plugins bullets.

At around line ~32, the sessions bullet appears to include trailing text like with Usage analytics overview - Plugins ... in the same line, which suggests a missing newline or a duplicated fragment. This is consistent with the static-analysis orthography/format hint and can easily render incorrectly in Markdown.

🛠️ Proposed fix
- - Local Codex/Claude/Gemini CLI/CodeBuddy Code sessions (list/filter/export/delete) with Usage analytics overview - Plugins (Prompt templates): reusable templates with variables and one-click copy
+ - Local Codex/Claude/Gemini CLI/CodeBuddy Code sessions (list/filter/export/delete) with Usage analytics overview
🧰 Tools
🪛 LanguageTool

[grammar] ~32-~32: Ensure spelling is correct
Context: ...ter/export/delete) with Usage analytics overview - Plugins (Prompt templates): reusable te...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)


[grammar] ~33-~33: Ensure spelling is correct
Context: ... templates with variables and one-click copy - Task orchestration: plan/queue/run/revi...

(QB_NEW_EN_ORTHOGRAPHY_ERROR_IDS_1)

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 32 - 33, The README has a malformed concatenated
bullet where the sessions and Plugins lines run together; edit the two list
items so they are separate Markdown bullets: ensure the line "- Local
Codex/Claude/Gemini CLI/CodeBuddy Code sessions (list/filter/export/delete) with
Usage analytics overview" is on its own line, followed by a newline and the
separate line "- Plugins (Prompt templates): reusable templates with variables
and one-click copy", removing any duplicated fragment or trailing text that
merged the two entries.

- Task orchestration: plan/queue/run/review local tasks

Expand Down Expand Up @@ -57,12 +57,18 @@ It works on local files directly and does not require cloud hosting. The skills
- OpenClaw JSON5 profile management

**Session Management**
- Unified Codex + Claude session list
- Unified Codex + Claude + Gemini CLI + CodeBuddy Code session list
Comment thread
coderabbitai[bot] marked this conversation as resolved.
- Session locations (local-first, configurable):
- Codex: `~/.codex/sessions/*.jsonl` (or `$CODEX_HOME/sessions`, `$XDG_CONFIG_HOME/codex/sessions`)
- Claude: `~/.claude/projects/**/**/*.jsonl` (or `$CLAUDE_HOME/projects`, `$XDG_CONFIG_HOME/claude/projects`)
- Gemini: `~/.gemini/tmp/*/chats/*.json` (or `$GEMINI_HOME/tmp`, `$XDG_CONFIG_HOME/gemini/tmp`)
- CodeBuddy: `~/.codebuddy/projects/**/**/*.jsonl` (or `$CODEBUDDY_CODE_HOME_DIR/projects`)
- Local session pinning with persistent pinned state and pinned-first ordering
- Keyword/source/cwd filters
- Keyword/source/cwd/role/time filters, plus shareable filter links
- Copy resume command (Codex/Gemini/CodeBuddy): `codex resume <sessionId>` / `gemini -r <sessionId>` / `codebuddy -r <sessionId>`
- Fast search UX: short-lived query result caching to avoid rescanning on each keystroke
- Usage subview with 7d / 30d session trends, message trends, source share, and top paths
- Markdown export
- Markdown export (Web UI + `codexmate export-session`, supports `--session-id` or `--file`)
- Session-level and message-level delete (supports batch), with a local recycle bin for restore/purge
- Large-session preview optimization (fast tail preview path)
Comment on lines 59 to 73
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

Fix “Copy resume command” entry to include Codex’s optional --yolo.

The “Copy resume command” bullet currently shows:

  • codex resume <sessionId>
  • gemini -r <sessionId>
  • codebuddy -r <sessionId>

…but your PR objective states Codex supports (optionally --yolo) while Gemini/CodeBuddy do not. Updating the README avoids confusion.

🛠️ Proposed fix
- - Copy resume command (Codex/Gemini/CodeBuddy): `codex resume <sessionId>` / `gemini -r <sessionId>` / `codebuddy -r <sessionId>`
+ - Copy resume command (Codex/Gemini/CodeBuddy): `codex resume <sessionId> [--yolo]` / `gemini -r <sessionId>` / `codebuddy -r <sessionId>`
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` around lines 59 - 73, Update the "Copy resume command" README
entry to reflect that Codex supports an optional --yolo flag: change the Codex
example `codex resume <sessionId>` to include the optional flag (e.g., `codex
resume <sessionId> [--yolo]` or `codex resume <sessionId> (optionally --yolo)`),
while leaving the Gemini and CodeBuddy examples (`gemini -r <sessionId>`,
`codebuddy -r <sessionId>`) unchanged so it’s clear only `codex resume` accepts
`--yolo`.


Expand Down Expand Up @@ -176,6 +182,12 @@ npm install -g @mmmbuto/codex-cli-termux@latest

# Claude Code
npm install -g @anthropic-ai/claude-code

# Gemini CLI
npm install -g @google/gemini-cli

# CodeBuddy Code
npm install -g @tencent-ai/codebuddy-code
```

### Run from source
Expand Down Expand Up @@ -223,7 +235,7 @@ npm run reset 79
| `codexmate qwen [args...]` | Qwen CLI passthrough entrypoint |
| `codexmate run [--host <HOST>] [--no-browser]` | Start Web UI |
| `codexmate mcp serve [--read-only\|--allow-write]` | Start MCP stdio server |
| `codexmate export-session --source <codex\|claude> ...` | Export session to Markdown |
| `codexmate export-session --source <codex\|claude\|gemini\|codebuddy> ...` | Export session to Markdown |
| `codexmate zip <path> [--max:0-9]` / `codexmate unzip <zip> [out]` | Zip / unzip |
| `codexmate unzip-ext <zip-dir> [out] [--ext:suffix[,suffix...]] [--no-recursive]` | Extract files with target suffixes from ZIP files in a directory (default `.json`, recursive by default) |

Expand Down
24 changes: 18 additions & 6 deletions README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
- Claude Code `CLAUDE.md` 编辑(写入 `~/.claude/CLAUDE.md`)
- OpenClaw JSON5 配置与 Workspace `AGENTS.md`
- Codex / Claude Code Skills 市场(安装目标切换、本地 skills 管理、跨应用导入、ZIP 分发)
- Codex / Claude 本地会话浏览、筛选、导出、删除与 Usage 统计概览
- Codex / Claude / Gemini CLI / CodeBuddy Code 本地会话浏览、筛选、导出、删除与 Usage 统计概览
- 插件(提示词模板):模板复用、变量填写、一键复制
- 任务编排:规划 / 排队 / 执行 / 回看

Expand Down Expand Up @@ -58,12 +58,18 @@ Codex Mate 提供一套本地优先的 CLI + Web UI,用于统一管理:
- OpenClaw JSON5 配置方案管理

**会话管理**
- 同页查看 Codex 与 Claude 会话
- 同页查看 Codex、Claude、Gemini CLI 与 CodeBuddy Code 会话
- 会话来源与默认路径(本地优先,可通过环境变量覆盖):
- Codex:`~/.codex/sessions/*.jsonl`(或 `$CODEX_HOME/sessions`、`$XDG_CONFIG_HOME/codex/sessions`)
- Claude:`~/.claude/projects/**/**/*.jsonl`(或 `$CLAUDE_HOME/projects`、`$XDG_CONFIG_HOME/claude/projects`)
- Gemini:`~/.gemini/tmp/*/chats/*.json`(或 `$GEMINI_HOME/tmp`、`$XDG_CONFIG_HOME/gemini/tmp`)
- CodeBuddy:`~/.codebuddy/projects/**/**/*.jsonl`(或 `$CODEBUDDY_CODE_HOME_DIR/projects`)
- 支持本地会话置顶,置顶状态持久化保存并优先排序显示
- 关键词搜索、来源筛选、cwd 路径筛选
- 关键词搜索、来源筛选、cwd/角色/时间筛选,并支持复制筛选链接
- 复制恢复命令(Codex/Gemini/CodeBuddy):`codex resume <sessionId>` / `gemini -r <sessionId>` / `codebuddy -r <sessionId>`
- 搜索体验优化:短周期结果缓存,避免输入时重复扫描
- Usage 子页:近 7 天 / 近 30 天会话趋势、消息趋势、来源占比、高频路径
- 会话导出 Markdown
- 会话导出 Markdown(Web UI + `codexmate export-session`,支持 `--session-id` 或 `--file`)
- 会话与消息级删除(支持批量),并提供本地回收站用于恢复/彻底删除
- 大会话预览优化(快速 tail 预览路径)

Expand Down Expand Up @@ -166,7 +172,7 @@ codexmate run

> 安全提示:默认监听会在当前局域网暴露未鉴权的管理界面。若包含 API Key、provider 配置或 skills 管理,请仅在可信网络中使用;如需仅本机访问,可设置 `CODEXMATE_HOST=127.0.0.1` 或启动时传入 `--host 127.0.0.1`。

### 安装 Codex CLI / Claude Code(可选)
### 安装 Codex CLI / Claude Code / Gemini CLI / CodeBuddy Code(可选)

Codex Mate 支持透传调用官方 CLI(例如 `codexmate codex ...`),建议先安装:

Expand All @@ -179,6 +185,12 @@ npm install -g @mmmbuto/codex-cli-termux@latest

# Claude Code
npm install -g @anthropic-ai/claude-code

# Gemini CLI
npm install -g @google/gemini-cli

# CodeBuddy Code
npm install -g @tencent-ai/codebuddy-code
```

### 从源码运行
Expand Down Expand Up @@ -225,7 +237,7 @@ npm run reset 79
| `codexmate qwen [args...]` | Qwen CLI 透传入口 |
| `codexmate run [--host <HOST>] [--no-browser]` | 启动 Web UI |
| `codexmate mcp serve [--read-only\|--allow-write]` | 启动 MCP stdio 服务 |
| `codexmate export-session --source <codex\|claude> ...` | 导出会话为 Markdown |
| `codexmate export-session --source <codex\|claude\|gemini\|codebuddy> ...` | 导出会话为 Markdown |
| `codexmate zip <path> [--max:0-9]` / `codexmate unzip <zip> [out]` | 压缩 / 解压 |
| `codexmate unzip-ext <zip-dir> [out] [--ext:suffix[,suffix...]] [--no-recursive]` | 批量提取目录下 ZIP 内指定后缀文件(默认 `.json`,默认递归) |

Expand Down
Loading
Loading