# Use CocoIndex with AI coding agents

> **CocoIndex v1, Rust SDK (experimental).** This page documents the CocoIndex **v1** Rust SDK (the `cocoindex` crate). The Rust SDK is experimental: any release may change or remove its API, and it is not yet published on crates.io. The Python SDK pages are at https://cocoindex.io/docs/.
>
> Source: https://cocoindex.io/docs/rust/getting_started/ai_coding_agents/ · Rust docs index: https://cocoindex.io/docs/rust/llms.txt · Rust SDK tour: https://github.com/cocoindex-io/cocoindex/blob/main/rust/sdk/SHOWCASE.md · Rust examples: https://github.com/cocoindex-io/cocoindex/tree/main/examples/rust

CocoIndex ships an official agent skill for AI coding agents, but it covers the **Python SDK only**: its concepts, API reference and patterns are Python code. Installing it into a Rust project would teach your agent the Python API.

For a Rust pipeline, give your agent these references instead:

- [`rust/sdk/SHOWCASE.md`](https://github.com/cocoindex-io/cocoindex/blob/main/rust/sdk/SHOWCASE.md) — a tour of the Rust SDK API: apps, functions, memoization, mounting, context, targets and connectors, each with a code sample.
- [`examples/rust/`](https://github.com/cocoindex-io/cocoindex/tree/main/examples/rust) — complete Rust pipelines (text embedding, code embedding, knowledge graphs, Kafka, and more), each with a `README.md`.
- These docs. Every page has a Markdown twin at `/docs/rust/<slug>.md`, and [`/docs/rust/llms.txt`](/docs/rust/llms.txt) lists them all.

A short note in your project's `AGENTS.md` or `CLAUDE.md` that points the agent at these files is usually enough. For example:

```md title="AGENTS.md"
This project uses the CocoIndex Rust SDK (the `cocoindex` crate).
Before writing pipeline code, read
https://github.com/cocoindex-io/cocoindex/blob/main/rust/sdk/SHOWCASE.md
and the closest example under
https://github.com/cocoindex-io/cocoindex/tree/main/examples/rust.
```

## Contributing

A Rust version of the skill is welcome. The skill lives in [`skills/cocoindex/`](https://github.com/cocoindex-io/cocoindex/tree/main/skills/cocoindex) and is versioned alongside the codebase. See the [contributing guide](/docs/rust/contributing/guide/) for how to get started.
