The code intelligence layer for AI agents.

CocoIndex Code Plus (ccx) keeps a live index of your whole codebase: search by meaning, structural grep, every symbol's definitions and references. Agents query it instead of grepping; people ask it how the software works. It runs on-prem.

Thirty minutes with the team that runs the pilot: we scope one on your repositories, no commitment.

What an agent can do with ccx.

Below, an agent tracks a charge that is retried too often across two repos. Each step is one command in place of a clone and a file-by-file search. Results come back short and cited to file and line, so the agent spends its tokens on the task, not on reading.

agent session · ccxacme/billing @ main
$ ccx search 'retry a charge after a gateway timeout' --repo acme/billing --repo acme/gateway
[0.534] acme/billing billing/charge/retry.py
 38| class RetryPolicy:
 41:     def schedule_retry(self, charge: Charge, err: GatewayTimeout) -> RetryTicket:
 42:         delay = self.backoff.next_delay(charge.attempts)
---
[0.488] acme/gateway src/clients/billing.ts
 57:   if (err.code === 'DEADLINE_EXCEEDED') return retryCharge(req, { attempt: n + 1 });

$ ccx refs RetryPolicy.schedule_retry --role call
billing/charge/service.py:212:20 [call]
  resolved  → billing/charge/retry.py RetryPolicy.schedule_retry  in ChargeService.capture
billing/webhooks/processor.py:88:12 [call]
  resolved  → billing/charge/retry.py RetryPolicy.schedule_retry  in on_gateway_timeout

$ ccx grep --text 'MAX_CHARGE_RETRIES'
billing/charge/retry.py:17:MAX_CHARGE_RETRIES = int(os.getenv("MAX_CHARGE_RETRIES", "4"))
deploy/helm/billing/values.yaml:57:    MAX_CHARGE_RETRIES: "6"

$ ccx ask 'why do charges retry past MAX_CHARGE_RETRIES?' --repo acme/billing --repo acme/gateway
Investigating — an agentic answer can take minutes...
Retries stack in two layers. The gateway retries a timed-out charge call itself,
up to 3 times [s1:src/clients/billing.ts#L52-L61]. In billing, both
`ChargeService.capture` and the timeout webhook call `schedule_retry`, and each keeps
its own attempt count [s0:billing/charge/service.py#L205-L218]
[s0:billing/webhooks/processor.py#L80-L95].

So the limit of 6 set in production applies per path, not per charge
[s0:deploy/helm/billing/values.yaml#L57].

s0: acme/billing @ heads/main (commit 3f9c2a1e07b4)
s1: acme/gateway @ heads/main (commit 9b07d4e1c2a8)
follow-up: ccx ask --parent 7e3a0012 "<question>"

What ccx gives you out of the box.

Four things every deployment includes, with no custom build.

  • Large repos, many branches

    A repository can be indexed at several long-lived branches, for example one per long-term-support version. Each file is processed once and shared by every branch that holds it. The symbol graph is updated incrementally rather than rebuilt after every merge.

  • Versatile indexes

    For each indexed branch, beyond embeddings of structurally chunked code, ccx extracts every symbol’s definition and the references to it for Python, TypeScript/JavaScript, C/C++, Objective-C, C#, Rust, Java, Go and Kotlin, and builds a text index that makes grep fast across every file.

  • One query layer for every client

    Beyond an API for each index, ccx offers a plain-language query API: send a question and get an answer grounded in the code it was read from, with citations. An agent inside ccx picks the right index, so clients integrate without choosing among indexes.

  • Enterprise controls

    Single sign-on through your identity provider, with each login mapped to the user’s Git host identity, so a user sees only the repositories they can already read. A Git host app for onboarding. ccx Insights for usage, cost and savings across the deployment, also from the ccx usage command.

Answers about your code for the whole organization.

ccx is not only for coding agents. Anyone with access can ask a question about your software in plain English and get an answer cited to the exact files, from the latest code, limited to the repos they are allowed to read. People stop waiting on the one engineer who knows a service.

ccx ask · examplecited to the latest code

Program managers

Which services does the invoicing feature touch?

Three. billing owns it: InvoiceService.issue totals the order, applies tax and stores the invoice s0billing/service/invoice.py#L40-L96. gateway exposes it to the web app as POST /v2/invoices s1src/routes/billing.ts#L12-L58. notify emails the PDF when the invoice.issued event arrives s2internal/handlers/email.go#L120-L141.

  • s0: acme/billing @ heads/main (commit 3f9c2a1e07b4)
  • s1: acme/gateway @ heads/main (commit 9b07d4e1c2a8)
  • s2: acme/notify @ heads/main (commit c41e8a05d3f6)

ChargeService.capture raises CardDeclined("payment declined") when the processor returns card_declined s0billing/service/charge.py#L210-L224. Two paths reach it: checkout, through the gateway s1src/routes/checkout.ts#L64-L90, and the nightly renewal job s0billing/jobs/renew.py#L31-L58. Only the checkout path has a test s0billing/tests/test_charge.py#L88-L130.

  • s0: acme/billing @ heads/main (commit 3f9c2a1e07b4)
  • s1: acme/gateway @ heads/main (commit 9b07d4e1c2a8)

In one place. verify_token checks the signature against the KMS key and rejects tokens older than 15 minutes s0auth/token/verify.py#L18-L74. The gateway calls it on every request from its auth middleware s1src/middleware/auth.ts#L30-L61. The signing key is created in Terraform and rotates every 90 days s2terraform/kms.tf#L1-L22.

  • s0: acme/auth @ heads/main (commit 5d2e90b7a1c3)
  • s1: acme/gateway @ heads/main (commit 9b07d4e1c2a8)
  • s2: acme/infra @ heads/main (commit e86f13c94b20)

retry_on_timeout. It is on by default: up to 3 attempts, with backoff starting at 500 ms s0core/config/flags.py#L140-L152. An admin can turn it off for one workspace with workspace.settings.retry_on_timeout = false; the operator guide documents the override s0docs/ops/configuration.md#L77-L90.

  • s0: acme/core @ heads/main (commit 7a41c0d9e5b2)

The gateway authenticates the request, then its billing router forwards it over gRPC s0src/server.ts#L1-L40 s0src/routes/billing.ts#L12-L58. In billing, InvoiceService handles the call, writes the invoice and its line items in one Postgres transaction, and publishes invoice.issued for notify s1billing/service/invoice.py#L40-L96.

  • s0: acme/gateway @ heads/main (commit 9b07d4e1c2a8)
  • s1: acme/billing @ heads/main (commit 3f9c2a1e07b4)

Limited to the repos this person can read on the Git host.

Enterprise engineering

Code Review, Software Factory, Knowledge engine

Code review approval40% → 90%+

Developer approval of AI code review findings, from launch to the whole codebase in context through CocoIndex.

Every pull request goes through it.

On improving developer approval

“I don't think we can ever achieve that without CocoIndex.”

Technical leader at an enterprise software company

On-prem deployment for controlled code.

Two container images and a Helm chart on your Kubernetes; the index in your Postgres. Everything inside the boundary below runs on your infrastructure, and developers reach it the way they reach your other internal services.

Sensitive data stays sensitive.

Source code often holds what you least want copied around: credentials in old commits, customer names in test fixtures, controlled technical data. ccx is built so that the index never becomes a second, looser copy of it.

  • Nothing leaves your boundary.

    Code, embeddings, the code graph and every query stay on infrastructure you control. There is no CocoIndex service in the data path and no telemetry of your code.

  • Permissions follow the source.

    With code-host-mirrored authorization, every answer is filtered by what the signed-in person can read on your Git host, so a search or a generated answer never reveals a repo they could not open.

  • Deletes and purges propagate.

    Indexing is incremental in both directions. When a file is removed or history is rewritten, the index drops it on the next cycle.

  • Exclusions you control.

    Configuration keeps chosen repos, paths and file types out of the index; binary, generated and oversized files are skipped by policy.

  • Every request on record.

    The query server writes a structured JSON audit stream of who asked what and when, for your SIEM, and keeps usage history in your database.

  • Models you approve.

    Embedding and language-model calls go through a model router to the endpoints you configure, so code is never sent to a model you have not cleared.

ccx Insights: usage, cost and savings.

Who is using the deployment, what its model calls cost, and what the caching saved. Computed by the two services you already run and stored in your own database; nothing leaves the deployment. Below, the overview of an example deployment, some two thousand developers and their agents, over one week.

Questions.

These cover CocoIndex Code Plus. The open-source ccc CLI and MCP server has its own pages.

What is CocoIndex Code Plus?
A self-hosted code intelligence service for AI agents and people. An indexer keeps every repository on your code hosts indexed in your Postgres; a query server answers search by meaning, structural and text grep, symbol definitions and references, file reads and cited answers through the ccx CLI, a REST API and an MCP endpoint, with SSO through your identity provider.
Which agents and tools can use it?
Any client that speaks the Model Context Protocol, over HTTP, with the same API token or SSO login; the ccx CLI for terminals, scripts and CI; a Claude Code plugin and an agent skill that send the agent to ccx before it greps. Code review bots and internal knowledge engines call the same API.
Where does it run, and what leaves the network?
The indexer and query server run on your Kubernetes from a Helm chart; the index lives in your Postgres with pgvector. CocoIndex operates no service in the data path and receives no customer data. Embedding and language-model calls go to the endpoints you configure. See the security guide.
How do people sign in?
Through your identity provider with OIDC (Entra ID, Okta, Keycloak, Auth0, Ping; Google Workspace and SAML-only IdPs through a federated authorization server). CI and agents use labelled, revocable API keys. With code-host-mirrored authorization each person sees only the repositories they can read on the Git host. See the SSO guide.
What does it cost?
The ccx client is free on PyPI. The indexer and query server are licensed per deployment; pricing is quoted per deployment. Book a call or see CocoIndex Plus for the data framework behind it.

One index of the whole codebase, for every agent and every person.

We deploy inside your environment with your DevSecOps team and your developers, from the security review to the readout.