SuperAPIAI Directory

code-context

github.com · AI coding

🎖️ 📇 🏠 - Local code search for coding agents: hybrid keyword and semantic search with SQL relevance ranking over a plain-file index.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

SuperGrep (formerly code-context) is a tool that provides retrieval and reasoning offloading for AI coding agents. It helps agents find answers faster and at lower cost while maintaining answer quality, with particularly noticeable results on cheaper models. You can try it online at infino.ai/supergrep to compare the answers and bills for the same model on the same codebase with and without SuperGrep.

SuperGrep provides four tools to agents on top of the Infino index, running in two places: find and plain sql run on the local machine based on a keyword index; while anything involving semantics—search, sql statements with ranked search, ask—runs in the Infino cloud, so heavy computation and embeddings do not consume local resources. Infino also embeds reasoning models in its service, and multiple small models can process the index simultaneously and hand the rows they find to the agent. The agent retains reasoning, writes answers, and decides autonomously when to use SuperGrep. No configuration is needed.

Main uses include:

  • Code review: answering "who else calls this, what will the change break," find returns all callers and counts in one go, and ask reads the critical paths.
  • Large exploration: "how does X work end to end" generates fifty queries, which under SuperGrep run as parallel asks instead of fifty subagents reading the directory tree.
  • Working with multiple codebases at once: the local tools accept repository paths, and a single session can roam across services, clients, and shared libraries.
  • Code, logs, and issues together: index logs, test output, and issue exports alongside source code, and "why did this integration test start failing" becomes one question.

SuperGrep can also index an entire notebook or any corpus, not just source code. Logs, test output, stack traces, CI output, configuration, and documentation can be placed alongside the code; .log, .out, .err, .jsonl, and .ndjson are chunked by record boundaries, and stack traces stay together with the messages that explain them. The four tools run on all of this content: find looks up exact stack frames, search looks up failures that can only be described, sql counts and ranks across a run, and ask answers questions across multiple sources.

For files that cannot fit in a notebook, you can write them as Parquet files in object storage, point SuperGrep at them without loading them locally, and search them with the same tools alongside code or local files.

UseMethod: Each machine needs only two commands, requires Claude Code and Node 22 or newer, macOS or Linux. The plugin was originally named code-context; for old installations, replace it with claude plugin uninstall code-context@infino-ai, and the internal MCP server keeps its original name. Open Claude Code in any directory and ask a question; the first question will index that directory, after which find, sql, and read can answer. No per-directory configuration, no account, and data does not leave the local machine.

search and ask are the cloud part—the embedding and retrieval loop runs on the Infino platform, based on a copy of the index stored there—and require an account. The first time it is needed, Claude will tell you a command and will not run it for you. A free account requires no credit card, no form, email, password, or card; the command will explain that the directory contents will be uploaded to Infino and ask, and only if you agree will it create an account and store the key in ~/.infino/key with permissions 600. Infino is SOC 2 Type 2 certified.

Other MCP clients (Cursor, Codex CLI, Gemini CLI, Windsurf, Cline) can connect to the same server via stdio; cx install writes a .mcp.json entry in the repository, --local-only writes a keyword-only entry, install --platform https://api.supergrep.infino.ai Registration and entry writing can be completed in one step.

Manual indexing is available: the index command is used for the first traversal of a huge directory tree, CI steps, or a non-git repository corpus. The index is an ordinary file under .infino/; after the first cx index, keyword search becomes available within seconds, and semantic and hybrid search light up after vector backfill; cx status shows the index contents and freshness.

The same plugin can access every table in the Infino account through the database and table parameters, not just the indexed directory. sql, search, find, and ask accept database and table and run on the account's tables. You can point a CSV folder, Parquet export, bucket, or development machine directory at the agent, load it, and then ask questions.

As a connector, the same server can run over Streamable HTTP and be added as a remote connector with a URL; --sign-in makes every call carry the Infino account key, and when there is no key it guides login.

Indexing from object storage: for corpora that do not fit in a notebook (years of logs, document dumps, Parquet or JSON already in a bucket), keep them in place, point the platform at the bucket, and build the index from there, without copying or downloading, and with no rows passing through the notebook or API. Steps: 1) Grant the Infino service account read-only permission on the target prefix (roles/storage.objectViewer for GCS, s3:GetObject + s3:ListBucket for S3); 2) Submit the job, a single POST naming the bucket and prefix, which returns immediately; 3) Track status; statuses include pending, running, cancelling, stopped, succeeded, and failed, and stopped jobs resume from checkpoints. By default, half-finished tables are deleted on failure; "on_failure": "keep" preserves what has already been committed. The Hydrate API must be enabled per account; contact support@infino.ai.

Limitations and trade-offs: SuperGrep wins on questions about the entire codebase (counts, ordering, every occurrence); Grep only gives the first forty matches, while the index gives the total; it is not as good as reading files directly when using a large model to find one named thing. Quality improves on cheap models; Haiku gets eight more fully correct answers after using SuperGrep; Sonnet, Opus, Fable answers are on par, and the difference is within the noise range. On cost: Haiku saves 41% on the total bill, Sonnet 58%, Opus 26%, Fable 14%; there are no surprise bills, and for about one third of questions Sonnet using file tools will dispatch a sub-agent to read the repository, costing four to five times as much and taking four times as long, whereas SuperGrep instead asks the index. The gap is wider on private codebases. The cheapest model plus SuperGrep versus the most expensive model without SuperGrep: 23 correct answers versus 25, costing $1.09 instead of $6.32 (Opus) or $19.36 (Fable). Results vary by model. After the free quota is used up, ask prompts you to add billing information, while find and ordinary sql are always available.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools