Skip to content

Commit 6ec6e97

Browse files
committed
chore: rename codeindex to codei
1 parent e5d115e commit 6ec6e97

28 files changed

Lines changed: 347 additions & 247 deletions

.trae/rules/project_rules.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ When working with codeindex codebase, invoke the "codeindex" skill.
2525

2626
```bash
2727
# Check if index exists and is fresh
28-
codeindex status .
28+
codei status .
2929

3030
# Build/rebuild index
31-
codeindex index .
31+
codei index .
3232

3333
# Query for context (MUST do before reading files manually)
34-
codeindex query "your question here" --cwd .
34+
codei query "your question here" --cwd .
3535

3636
# Start HTTP server for frequent queries
37-
codeindex serve . --port 3131
37+
codei serve . --port 3131
3838

3939
# Update index after making changes
40-
codeindex update .
40+
codei update .
4141
```
4242

4343
## HTTP API (Faster)
@@ -56,6 +56,6 @@ curl -X POST http://localhost:3131/update
5656

5757
| Error | Action |
5858
|-------|--------|
59-
| "No index found" | Run `codeindex index .` first |
60-
| Stale results after editing | Run `codeindex update .` |
61-
| Query returns wrong context | Verify with `codeindex status .` then rebuild if needed |
59+
| "No index found" | Run `codei index .` first |
60+
| Stale results after editing | Run `codei update .` |
61+
| Query returns wrong context | Verify with `codei status .` then rebuild if needed |

AGENTS.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# AI Agents Guide for codeindex
1+
# AI Agents Guide for codei
22

3-
This project uses `codeindex` for efficient, reasoning-based codebase exploration. **Always use `codeindex` first** before reading files manually or making assumptions about the codebase.
3+
This project uses `codei` for efficient, reasoning-based codebase exploration. **Always use `codei` first** before reading files manually or making assumptions about the codebase.
44

5-
## 🚨 Critical Rule: ALWAYS Use codeindex First
5+
## 🚨 Critical Rule: ALWAYS Use codei First
66

77
**Before answering any question about the codebase, you MUST query the index first.**
88

99
```bash
1010
# Quick query
11-
codeindex query "your question"
11+
codei query "your question"
1212

1313
# Or use HTTP API (faster if server running)
1414
curl -s -X POST http://localhost:3131/query \
@@ -23,7 +23,7 @@ This guide is designed to work with **ANY AI agent** that supports external tool
2323

2424
### Claude Code
2525
```bash
26-
# Add to ~/.claude/tools/codeindex.sh
26+
# Add to ~/.claude/tools/codei.sh
2727
curl -s -X POST http://localhost:3131/query \
2828
-H "Content-Type: application/json" \
2929
-d "{\"query\": \"$1\", \"maxTokens\": 3000}" | jq -r '.context'
@@ -32,7 +32,7 @@ curl -s -X POST http://localhost:3131/query \
3232
### Cursor / Windsurf
3333
Create `.cursorrules` or `.windsurfrules`:
3434
```markdown
35-
# Codeindex Context Retrieval
35+
# Codei Context Retrieval
3636
When you need to understand the codebase or follow dependency chains:
3737
1. Run: curl -s -X POST http://localhost:3131/query -d '{"query": "YOUR_QUERY"}' | jq -r '.context'
3838
2. Use the output to base your reasoning and implementation.
@@ -41,8 +41,8 @@ When you need to understand the codebase or follow dependency chains:
4141
### Cline (VSCode)
4242
In Plan Mode or custom instructions:
4343
```
44-
Use codeindex query "<your question>" to get relevant code context.
45-
Start server with: codeindex serve . --port 3131
44+
Use codei query "<your question>" to get relevant code context.
45+
Start server with: codei serve . --port 3131
4646
```
4747

4848
### Trae Agent
@@ -52,39 +52,39 @@ Load the `codeindex` skill from `.trae/skills/codeindex/SKILL.md` for full integ
5252

5353
| DON'T | DO |
5454
|-------|-----|
55-
| Read files manually to understand code | Use `codeindex query` |
55+
| Read files manually to understand code | Use `codei query` |
5656
| Make assumptions about function signatures | Query to get accurate context |
5757
| Use grep/find for code patterns | Use HTTP API or CLI query |
58-
| Dump entire files into prompts | Let codeindex extract only relevant symbols |
58+
| Dump entire files into prompts | Let codei extract only relevant symbols |
5959

6060
## Workflow for Every Task
6161

62-
1. **Query first:** `codeindex query "<your question>"`
62+
1. **Query first:** `codei query "<your question>"`
6363
2. **Get context:** Review the returned code fragments and dependency info
6464
3. **If needed:** Only then read specific files for more details
65-
4. **Update index:** After making changes, run `codeindex update`
65+
4. **Update index:** After making changes, run `codei update`
6666

6767
## Maintaining the Index
6868

6969
```bash
7070
# Update after file changes
71-
codeindex update
71+
codei update
7272

7373
# Or via HTTP
7474
curl -s -X POST http://localhost:3131/update
7575

7676
# Check status
77-
codeindex status
77+
codei status
7878
```
7979

8080
## Troubleshooting
8181

8282
| Issue | Solution |
8383
|-------|----------|
84-
| No index found | Run `codeindex index .` |
85-
| Outdated context | Run `codeindex update` |
86-
| API Key issues | Check `codeindex setup` |
87-
| Server not running | Run `codeindex serve . --port 3131` |
84+
| No index found | Run `codei index .` |
85+
| Outdated context | Run `codei update` |
86+
| API Key issues | Check `codei setup` |
87+
| Server not running | Run `codei serve . --port 3131` |
8888

8989
## For Complete Reference
9090

CODERULES.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
# Codeindex Rules
1+
# Codei Rules
22

3-
This file contains mandatory rules for using `codeindex` to explore the codebase.
3+
This file contains mandatory rules for using `codei` to explore the codebase.
44

5-
## 🚨 Mandatory Rule: ALWAYS Query codeindex First
5+
## 🚨 Mandatory Rule: ALWAYS Query codei First
66

7-
**Before answering ANY question about the codebase, you MUST use codeindex.**
7+
**Before answering ANY question about the codebase, you MUST use codei.**
88

99
### Workflow
1010

1111
```
1212
1. Question about code
1313
14-
2. Run: codeindex query "<question>"
14+
2. Run: codei query "<question>"
1515
1616
3. Review context & dependencies
1717
1818
4. Only read specific files if needed
1919
20-
5. After changes: codeindex update
20+
5. After changes: codei update
2121
```
2222

2323
### Commands
2424

2525
```bash
2626
# Query the index (CLI)
27-
codeindex query "your question"
27+
codei query "your question"
2828

2929
# Query via HTTP API (faster)
3030
curl -s -X POST http://localhost:3131/query \
@@ -33,10 +33,10 @@ curl -s -X POST http://localhost:3131/query \
3333
| jq -r '.context'
3434

3535
# Update index after changes
36-
codeindex update
36+
codei update
3737

3838
# Check index status
39-
codeindex status
39+
codei status
4040
```
4141

4242
### What to Query
@@ -51,6 +51,6 @@ codeindex status
5151

5252
| Problem | Fix |
5353
|---------|-----|
54-
| No index | `codeindex index .` |
55-
| Outdated | `codeindex update` |
56-
| API error | Check `~/.codeindex/config.json` |
54+
| No index | `codei index .` |
55+
| Outdated | `codei update` |
56+
| API error | Check `~/.codei/config.json` |

LAUNCH.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,14 +77,14 @@ After: Paste 3 files (2KB) → Cùng câu trả lời
7777
npm install -g @codeindex/cli
7878

7979
# 2. Setup (một lần)
80-
codeindex setup
80+
codei setup
8181

8282
# 3. Index dự án
8383
cd your-project
84-
codeindex index .
84+
codei index .
8585

8686
# 4. Query!
87-
codeindex query "Authentication hoạt động thế nào?"
87+
codei query "Authentication hoạt động thế nào?"
8888
```
8989

9090
**Không cần cloud signup, không API costs, không vector database.**

0 commit comments

Comments
 (0)