cocoindex-code
A super light-weight embedded code search engine CLI (AST based) that just works - improves speed and efficiency for coding agent π Star if you like it!
νμΌ νμκΈ°
μ΅μ’ λ²μ λ€μ΄λ‘λ (.zip)- marketplace.json
- plugin.json
- pre-commit.yml
- release.yml
- docker-compose.yml
- Dockerfile
- entrypoint.sh
- hooks.json
- find_best_models.py
- MTEB-RANKINGS.md
- management.md
- settings.md
- SKILL.md
- __init__.py
- __main__.py
- _daemon_paths.py
- chunking.py
- cli.py
- client.py
- daemon.py
- embedder_defaults.py
- embedder_params.py
- file_walk.py
- grep.py
- indexer.py
- litellm_embedder.py
- project.py
- protocol.py
- query.py
- schema.py
- server.py
- settings.py
- shared.py
- __init__.py
- conftest.py
- test_docker_workspace.py
- utils.ts
- auth.py
- handlers.py
- README.md
- conftest.py
- example_toml_chunker.py
- test_backward_compat.py
- test_chunker_registry.py
- test_cli_helpers.py
- test_client.py
- test_daemon.py
- test_daemon_idle.py
- test_e2e.py
- test_e2e_daemon.py
- test_embed_params_forwarding.py
- test_embedder_defaults.py
- test_embedder_params.py
- test_file_walk.py
- test_grep.py
- test_litellm_embedder.py
- test_project_indexing.py
- test_protocol.py
- test_query_filters.py
- test_server.py
- test_settings.py
- test_shared.py
- .dockerignore
- .gitignore
- .mcp.json
- .pre-commit-config.yaml
- CLAUDE.md
- CODE_OF_CONDUCT.md
- CONTRIBUTING.md
- EMBEDDINGS.md
- LICENSE
- pyproject.toml
- README.md
- req-to-pr.zip
- SECURITY.md
- uv.lock
# μ€μΉ κ°μ΄λ
git clone https://github.com/cocoindex-io/cocoindex-code
κΉνλΈμμ νλ‘μ νΈ μ½λ μ 체λ₯Ό λ΄ μ»΄ν¨ν°λ‘ λ΄λ €λ°μ΅λλ€.
cd cocoindex-code
λ°©κΈ λ΄λ €λ°μ νλ‘μ νΈ ν΄λ μμΌλ‘ μ΄λν©λλ€.
2. 곡μ μ€μΉ μ€ν¬λ¦½νΈ
μ¬μ μΆμ²pipx install 'cocoindex-code[full]' # batteries included (local embeddings)
pipxλ‘ κ²©λ¦¬λ νκ²½μ CLI λꡬλ₯Ό μ€μΉν©λλ€.
brew install python3
Homebrewλ‘ μ΄λ―Έ λΉλλ ν¨ν€μ§λ₯Ό λ°λ‘ μ€μΉν©λλ€. μμ€ λΉλκ° νμ μμ΅λλ€.
pipx install cocoindex-code # first install
pipxλ‘ κ²©λ¦¬λ νκ²½μ CLI λꡬλ₯Ό μ€μΉν©λλ€.
μ΄ λ ν¬μ READMEμ μ ν μ€μ λͺ λ Ήμ΄λ₯Ό κ·Έλλ‘ κ°μ Έμμ΅λλ€.
3. Docker
μ¬μ- Git GitHubμμ νλ‘μ νΈ μ½λλ₯Ό λ΄λ €λ°μΌλ €λ©΄ νμν©λλ€.
- Docker Desktop 컨ν μ΄λλ₯Ό λΉλνκ³ μ€ννλ €λ©΄ νμν©λλ€. μ€μΉ ν μ€νν΄μ λ°±κ·ΈλΌμ΄λμ μΌλμΈμ.
docker compose -f <(curl -L https://raw.githubusercontent.com/cocoindex-io/cocoindex-code/refs/heads/main/docker/docker-compose.yml) up -d
compose μ€μ νμΌμ μ μλ μλΉμ€λ€μ λμμΌλ‘ λͺ λ Ήμ μ€νν©λλ€.
PUID=$(id -u) PGID=$(id -g) docker compose -f <(curl -L https://raw.githubusercontent.com/cocoindex-io/cocoindex-code/refs/heads/main/docker/docker-compose.yml) up -d
compose μ€μ νμΌμ μ μλ μλΉμ€λ€μ λμμΌλ‘ λͺ λ Ήμ μ€νν©λλ€.
> COCOINDEX_CODE_IMAGE=cocoindex/cocoindex-code:full docker compose up -d
μ μλ λͺ¨λ 컨ν μ΄λ(μλ², DB λ±)λ₯Ό ν λ²μ λΉλνκ³ λ°±κ·ΈλΌμ΄λμμ μ€νν©λλ€.
> COCOINDEX_CODE_IMAGE=ghcr.io/cocoindex-io/cocoindex-code:latest docker compose up -d
μ μλ λͺ¨λ 컨ν μ΄λ(μλ², DB λ±)λ₯Ό ν λ²μ λΉλνκ³ λ°±κ·ΈλΌμ΄λμμ μ€νν©λλ€.
docker run -d --name cocoindex-code \
λΉλλ μ΄λ―Έμ§λ₯Ό μ€μ 컨ν μ΄λλ‘ μ€νν©λλ€.
μ΄ λ ν¬μ READMEμ μ ν μ€μ λͺ λ Ήμ΄λ₯Ό κ·Έλλ‘ κ°μ Έμμ΅λλ€.
4. Python
μ¬μpip install .
PyPIμ λ°°ν¬λ ν¨ν€μ§λ₯Ό λ°λ‘ μ€μΉν©λλ€. μμ€ ν΄λ‘ μ΄ νμ μμ΅λλ€.
python <μ€νν νμΌλͺ
>.py # READMEμμ μ νν μ€ν νμΌλͺ
μ νμΈνμΈμ
νμ΄μ¬ μ€ν¬λ¦½νΈ(λλ λͺ¨λ)λ₯Ό μ€νν©λλ€.
