Skip to content

Commit f99e2e6

Browse files
committed
chore: rename all CodeIndex references to Codei
This commit fully rebrands the project from CodeIndex to Codei by updating: - Package author fields across all package.json files - Code comments, test temporary directories, and configuration values - Documentation, user guides, and AI integration skill files - npm package scope references from @CodeIndex to @codei
1 parent 6dbb37c commit f99e2e6

19 files changed

Lines changed: 169 additions & 50 deletions

File tree

.trae/rules/project_rules.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Project Rules: codeindex
1+
# Project Rules: codei
22

33
## Agent Skill Integration
44

5-
This project defines a universal `codeindex` skill at `.trae/skills/codeindex/SKILL.md`.
5+
This project defines a universal `codei` skill at `.trae/skills/codei/SKILL.md`.
66

77
## Mandatory Workflow
88

9-
**Before performing ANY of these tasks, the agent MUST load and use the codeindex skill:**
9+
**Before performing ANY of these tasks, the agent MUST load and use the codei skill:**
1010

1111
1. **Understanding codebase structure** — Any question about how code is organized
1212
2. **Following dependencies** — Tracing imports, understanding coupling
@@ -18,7 +18,7 @@ This project defines a universal `codeindex` skill at `.trae/skills/codeindex/SK
1818
## Skill Loading
1919

2020
```
21-
When working with codeindex codebase, invoke the "codeindex" skill.
21+
When working with codei codebase, invoke the "codei" skill.
2222
```
2323

2424
## Quick Reference
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
2-
name: "codeindex"
2+
name: "codei"
33
description: "Retrieves relevant code context from a hierarchical index to reduce token usage and improve AI coding accuracy. Invoke when understanding codebase structure, following dependencies, or needing targeted code context for a task."
44
---
55

6-
# Codeindex — Vectorless Reasoning-Based Code Index
6+
# Codei — Vectorless Reasoning-Based Code Index
77

88
## Overview
99

10-
`codeindex` builds a hierarchical tree index of your codebase and uses LLM reasoning to retrieve only the relevant context you need — reducing token usage from **50,000+ tokens to ~1,000-3,000 tokens** per query.
10+
`codei` builds a hierarchical tree index of your codebase and uses LLM reasoning to retrieve only the relevant context you need — reducing token usage from **50,000+ tokens to ~1,000-3,000 tokens** per query.
1111

1212
## When to Invoke This Skill
1313

14-
**Invoke codeindex when:**
14+
**Invoke codei when:**
1515
- User asks about how a feature/component works
1616
- Need to understand code structure or dependencies
1717
- Following import/dependency chains
@@ -28,66 +28,66 @@ description: "Retrieves relevant code context from a hierarchical index to reduc
2828
## Prerequisites
2929

3030
Before using this skill, ensure:
31-
1. `codeindex` is installed: `npm install -g @codeindex/codeindex` or run from source
32-
2. Project has been indexed: `codeindex index <project-path>`
33-
3. LLM API key is configured: `codeindex setup`
31+
1. `codei` is installed: `npm install -g @codei/cli` or run from source
32+
2. Project has been indexed: `codei index <project-path>`
33+
3. LLM API key is configured: `codei setup`
3434

3535
## Core Workflow
3636

3737
### 1. Check Index Status
3838

3939
```bash
40-
codeindex status <project-path>
40+
codei status <project-path>
4141
```
4242

4343
If index is stale or missing, rebuild:
4444
```bash
45-
codeindex index <project-path>
45+
codei index <project-path>
4646
```
4747

4848
### 2. Query for Context
4949

5050
```bash
51-
codeindex query "<your question>" --cwd <project-path>
51+
codei query "<your question>" --cwd <project-path>
5252
```
5353

5454
**Examples:**
5555
```bash
5656
# Understand authentication flow
57-
codeindex query "How does JWT authentication work in this codebase?"
57+
codei query "How does JWT authentication work in this codebase?"
5858

5959
# Find relevant service for a feature
60-
codeindex query "Where is user profile management implemented?"
60+
codei query "Where is user profile management implemented?"
6161

6262
# Understand dependencies
63-
codeindex query "What does the order processing module depend on?"
63+
codei query "What does the order processing module depend on?"
6464

6565
# Debug tracing
66-
codeindex query "Trace the request flow for API calls"
66+
codei query "Trace the request flow for API calls"
6767
```
6868

6969
### 3. Get Detailed Context with Options
7070

7171
```bash
7272
# Include dependency signatures in output
73-
codeindex query "<question>" --cwd <path> --format text
73+
codei query "<question>" --cwd <path> --format text
7474

7575
# JSON output for programmatic use
76-
codeindex query "<question>" --cwd <path> --format json
76+
codei query "<question>" --cwd <path> --format json
7777

7878
# Verbose mode shows traversal path
79-
codeindex query "<question>" --cwd <path> --verbose
79+
codei query "<question>" --cwd <path> --verbose
8080

8181
# Control output size
82-
codeindex query "<question>" --cwd <path> --max-tokens 2000
83-
codeindex query "<question>" --cwd <path> --max-symbols 5
82+
codei query "<question>" --cwd <path> --max-tokens 2000
83+
codei query "<question>" --cwd <path> --max-symbols 5
8484
```
8585

8686
## HTTP Server Mode (Recommended for Frequent Use)
8787

8888
Start the server once per project:
8989
```bash
90-
codeindex serve <project-path> --port 3131
90+
codei serve <project-path> --port 3131
9191
```
9292

9393
Then query via HTTP:
@@ -139,7 +139,7 @@ class UserService { ... }
139139
## Integration with AI Agents
140140

141141
### Claude Code
142-
Add to `~/.claude/tools/codeindex.sh`:
142+
Add to `~/.claude/tools/codei.sh`:
143143
```bash
144144
#!/bin/bash
145145
QUERY="$1"
@@ -152,7 +152,7 @@ curl -s -X POST http://localhost:3131/query \
152152
### Cursor/Windsurf
153153
Create `.cursorrules` or `.windsurfrules`:
154154
```markdown
155-
# Codeindex Context Retrieval
155+
# Codei Context Retrieval
156156
When you need to understand the codebase:
157157
1. Run: curl -s -X POST http://localhost:3131/query -d '{"query": "YOUR_QUERY"}' | jq -r '.context'
158158
2. Use the output for context before implementing
@@ -161,8 +161,8 @@ When you need to understand the codebase:
161161
### Cline (VSCode)
162162
In custom instructions or Plan Mode:
163163
```
164-
Use codeindex query "<your question>" to get relevant code context.
165-
Start server with: codeindex serve . --port 3131
164+
Use codei query "<your question>" to get relevant code context.
165+
Start server with: codei serve . --port 3131
166166
```
167167

168168
## Architecture Notes
@@ -190,8 +190,8 @@ Project
190190

191191
| Issue | Solution |
192192
|-------|----------|
193-
| "No index found" | Run `codeindex index <path>` first |
194-
| "API key not found" | Run `codeindex setup` or set `OPENAI_API_KEY` env var |
195-
| Stale results | Run `codeindex update <path>` after file changes |
193+
| "No index found" | Run `codei index <path>` first |
194+
| "API key not found" | Run `codei setup` or set `OPENAI_API_KEY` env var |
195+
| Stale results | Run `codei update <path>` after file changes |
196196
| High token usage | Reduce `--max-tokens` or `--max-symbols` |
197-
| Slow queries | Use local LLM (Ollama) via `codeindex setup` with `--provider ollama` |
197+
| Slow queries | Use local LLM (Ollama) via `codei setup` with `--provider ollama` |

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Start server with: codei serve . --port 3131
4646
```
4747

4848
### Trae Agent
49-
Load the `codeindex` skill from `.trae/skills/codeindex/SKILL.md` for full integration.
49+
Load the `codei` skill from `.trae/skills/codei/SKILL.md` for full integration.
5050

5151
## ❌ DON'T vs ✅ DO
5252

docs/RELEASING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pnpm run release:publish
6565
## Notes
6666

6767
- The GitHub workflow at `.github/workflows/release.yml` uses `changesets/action` to open or update a release PR automatically on `main`.
68-
- To enable npm publishing from GitHub Actions, add an `NPM_TOKEN` repository secret with publish access to the `@codeindex` scope and the `@codei` scope.
68+
- To enable npm publishing from GitHub Actions, add an `NPM_TOKEN` repository secret with publish access to the `@codei` scope.
6969
- `release:publish` runs `release:check` first.
7070
- Packages are published in topological dependency order so `@codei/core` is available before adapters and `@codei/cli`.
7171
- The website package is private and is not part of npm publishing.

packages/adapter-cpp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

packages/adapter-csharp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

packages/adapter-go/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

packages/adapter-java/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

packages/adapter-php/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

packages/adapter-python/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"llm",
3434
"rag"
3535
],
36-
"author": "CodeIndex Team",
36+
"author": "Codei Team",
3737
"license": "MIT",
3838
"publishConfig": {
3939
"access": "public"

0 commit comments

Comments
 (0)