Skip to content

Commit 4c28aba

Browse files
committed
feat(cli): add --summary-mode flag and update docs
Add `--summary-mode` CLI flag to query, update, and serve commands to let users override summaryMode per command. Pass the specified mode to the config loader, and document the new CLI override usage in docs/API.md.
1 parent 6ec6e97 commit 4c28aba

6 files changed

Lines changed: 16 additions & 6 deletions

File tree

File renamed without changes.

LAUNCH.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
# 🚀 Introducing codeindex: Giảm 95% chi phí AI coding
1+
# 🚀 Introducing codei: Giảm 95% chi phí AI coding
22

33
**Mỗi ngày bạn paste code vào ChatGPT, bạn đang đốt tiền cho những context không liên quan.**
44

5+
> Ghi chú thương hiệu: `codei` là tên mới của `Codeindex`. Chữ `i` đại diện cho cả `index``intelligent`. CLI dùng tên `codei`, còn npm package scope vẫn là `@codeindex/*` để giữ tương thích.
6+
57
***
68

79
## Vấn đề thực sự
@@ -22,7 +24,7 @@ Mỗi lần `CTRL+C → CTRL+V` đốt tokens cho code chẳng liên quan gì đ
2224

2325
## Giải pháp
2426

25-
`codeindex` xây dựng một **cây index phân cấp** của codebase. Khi bạn hỏi, LLM reasoning chọn chính xác module, file, và symbol nào liên quan — rồi trả về chỉ phần đó.
27+
`codei` xây dựng một **cây index phân cấp** của codebase. Khi bạn hỏi, LLM reasoning chọn chính xác module, file, và symbol nào liên quan — rồi trả về chỉ phần đó.
2628

2729
**Kết quả: \~1,000-3,000 tokens/query thay vì 50,000+**
2830

@@ -33,9 +35,9 @@ After: Paste 3 files (2KB) → Cùng câu trả lời
3335

3436
***
3537

36-
## Tại sao dùng codeindex?
38+
## Tại sao dùng codei?
3739

38-
| <br /> | codeindex | Vector Embeddings | Copy-Paste thủ công |
40+
| <br /> | codei | Vector Embeddings | Copy-Paste thủ công |
3941
| ---------------- | -------------- | ----------------- | ------------------- |
4042
| **Tokens/query** | \~2 KB | \~100 KB | 50+ KB |
4143
| **Setup** | 2 phút | 30 phút | 0 |

README-Vietnamese.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
Thay vì dump toàn bộ codebase vào prompt (50k+ tokens), `codei` build một hierarchical tree index và dùng LLM reasoning để tìm đúng context — giảm từ **50,000+ token xuống còn ~1,000-3,000 token** per query.
66

7+
> Ghi chú thương hiệu: `codei` là tên mới của `Codeindex`. Chữ `i` mang hai ý nghĩa: `index``intelligent`. Tên CLI là `codei`, còn npm package scope vẫn là `@codeindex/*` để giữ tương thích.
8+
79
Inspired by [PageIndex](https://github.com/VectifyAI/PageIndex), adapted cho codebase TypeScript.
810

911
---
@@ -13,7 +15,7 @@ Inspired by [PageIndex](https://github.com/VectifyAI/PageIndex), adapted cho cod
1315
```bash
1416
# Clone repo
1517
git clone <this-repo>
16-
cd codeindex
18+
cd <repo-folder>
1719

1820
# Install dependencies
1921
pnpm install

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
> Every time you paste your codebase to ChatGPT or Claude, you're burning tokens. `codei` gives AI exactly the context it needs — nothing more.
66
7+
> Brand note: `codei` is the new product name for `Codeindex`. The `i` stands for both `index` and `intelligent` context retrieval. The CLI is `codei`, while the npm package scope remains `@codeindex/*` for compatibility.
8+
79
![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)
810
![TypeScript](https://img.shields.io/badge/TypeScript-3178C6?style=flat\&logo=typescript\&logoColor=white)
911
![Node.js](https://img.shields.io/badge/Node.js-339933?style=flat\&logo=nodedotjs\&logoColor=white)
@@ -77,7 +79,7 @@ codei setup
7779
cd your-project
7880
codei index .
7981

80-
# 4. Query!cd
82+
# 4. Query!
8183
codei query "How does the auth module work?"
8284
```
8385

docs/API.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# API Reference
22

3+
> Brand note: `codei` is the new product and CLI name for `Codeindex`. The `i` stands for both `index` and `intelligent` context retrieval. The npm package scope remains `@codeindex/*` for compatibility.
4+
35
## HTTP Server
46

57
Start the server:

packages/cli/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
> Cut your AI coding costs by 95%. `codei` gives AI exactly the context it needs — nothing more.
66
7+
> Brand note: the product and CLI are now called `codei`. The `i` stands for both `index` and `intelligent` context retrieval. The package name stays `@codeindex/cli` for compatibility with the existing npm scope.
8+
79
## Quick Start
810

911
```bash

0 commit comments

Comments
 (0)