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.
Agentic SDLC
Beyond SDLC
CocoIndex Code Plus (ccx)API · CLI · MCP · plain-language query API
- search code and documents by meaning
- grep structurally or as text
- symbol to definition and references
- show code with progressive disclosure
- ask a question, get a grounded answer
- single sign-on through your IdP, mapped to Git host identity
- Git host app for onboarding
- ccx Insights: usage, cost and savings
Codebase index in Postgres, in your network
embeddings · code graph · text index · per branch, incrementalGitHub, GitLab
your repos, long-lived branchesWhat 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.
$ 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.
- mainv2.1-ltsrelease/3.0
16 of 18 files shared · 2 processed for a branch
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.
- embeddingsstructural chunks · search by meaningsymbol graphdefs · refs · py ts js cpp objc cs rs java go kttext indexevery file · grep --text
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.
“how is a request retried?”
embeddingssymbol graphtext indexanswer · core/retry.py#L18-L74
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.
- IdPGit host identityrepos they can read
- acme/gateway
- acme/billing
- acme/payroll
- acme/notify
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.
Program managers
Which services does this feature touch? Where is this setting read?
ccx ask · example: Which services does the invoicing feature touch?
Three.
billingowns it:InvoiceService.issuetotals the order, applies tax and stores the invoice [s0:billing/service/invoice.py#L40-L96].gatewayexposes it to the web app asPOST /v2/invoices[s1:src/routes/billing.ts#L12-L58].notifyemails the PDF when theinvoice.issuedevent arrives [s2:internal/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)
Test and QA engineers
Where is this error message raised? Which code calls this function? Where are the tests for this module?
ccx ask · example: Where is "payment declined" raised, and who calls it?
ChargeService.captureraisesCardDeclined("payment declined")when the processor returnscard_declined[s0:billing/service/charge.py#L210-L224]. Two paths reach it: checkout, through the gateway [s1:src/routes/checkout.ts#L64-L90], and the nightly renewal job [s0:billing/jobs/renew.py#L31-L58]. Only the checkout path has a test [s0:billing/tests/test_charge.py#L88-L130].
- s0: acme/billing @ heads/main (commit 3f9c2a1e07b4)
- s1: acme/gateway @ heads/main (commit 9b07d4e1c2a8)
Security and DevSecOps
Where do we handle authentication tokens? Which repos call this library? Where does user input reach this database?
ccx ask · example: Where do we handle authentication tokens?
In one place.
verify_tokenchecks the signature against the KMS key and rejects tokens older than 15 minutes [s0:auth/token/verify.py#L18-L74]. The gateway calls it on every request from its auth middleware [s1:src/middleware/auth.ts#L30-L61]. The signing key is created in Terraform and rotates every 90 days [s2:terraform/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)
Support and field engineers
Why does the product behave this way? Which configuration flag controls it, and what is its default?
ccx ask · example: Which flag controls retry on timeout, and what is its default?
retry_on_timeout. It is on by default: up to 3 attempts, with backoff starting at 500 ms [s0:core/config/flags.py#L140-L152]. An admin can turn it off for one workspace withworkspace.settings.retry_on_timeout = false; the operator guide documents the override [s0:docs/ops/configuration.md#L77-L90].
- s0: acme/core @ heads/main (commit 7a41c0d9e5b2)
New engineers
How does a request flow through our services? Which repo owns this code?
ccx ask · example: How does a request flow from the gateway to billing?
The gateway authenticates the request, then its billing router forwards it over gRPC [s0:src/server.ts#L1-L40] [s0:src/routes/billing.ts#L12-L58]. In
billing,InvoiceServicehandles the call, writes the invoice and its line items in one Postgres transaction, and publishesinvoice.issuedfornotify[s1:billing/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.
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
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.
Your Kubernetes cluster
Your Git hosts
GitHub Enterprise Server or GitLab self-managed · hundreds of reposccx indexer
incremental, on a cycle · parse, chunk, embed, build the symbol graphPostgres
chunks and embeddings · symbols and references · AST and text indexesModel endpoints
embeddings and LLM that you approve, self-hosted or in your cloudccx query server
OIDC sign-in via your IdP · per-repo read permission · metrics exportDevelopers
AI assistants call the ccx CLI or MCPSensitive 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.
Usage
Queries per day
Every request on the data surface, CLI and MCP together. The peak day is marked.
Model cost: $22.9K spent, $167K saved
Per day. Gray is what the day cost; periwinkle is what reuse saved. The whole bar is the cost with no reuse.
Saved by reuseSpent
Model cost only, at the deployment's rate sheet; compute and storage are your cloud bill. The dashboard also holds the savings tiles, index footprint and per-repository figures.
Questions.
These cover CocoIndex Code Plus. The open-source ccc CLI and MCP server has its own pages.
What is CocoIndex Code Plus?
ccx CLI, a REST API and an MCP endpoint, with SSO through your identity provider.Which agents and tools can use it?
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?
How do people sign in?
What does it cost?
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.