Coding agents

Give your coding agent every repository you own

Your agent knows the repository it is in. With Corfedo it searches and reads all the others, checks packages and asks Corfedo AI. It clones nothing and sees only what you may read.

$ claude mcp add --transport http corfedo https://corfedo.example.com/mcp
Other agents

~/work/checkout-web

payments-api v2 changed the charge request. Update our client to match.

1 repository checked out

Corfedo
  • GitHub3,540 repositories
  • GitLab™1,120 repositories
  • Azure DevOps240 repositories

4,900 repositories it can search and read

In the session

Change one service with the others in view

The agent reads the API it calls in another repository, makes the change here and tells you which repositories still need it.

Claude Code

✻ Welcome to Claude Code

cwd: ~/work/checkout-web

payments-api v2 changed the charge request. Update our client to match.

  1. corfedo - search_code (MCP)(query: "charge request v2", repositories: ["acme/payments-api"])

    Running…

    status: completeranked: most relevant files of 3## github.com/acme/payments-api revision 8c41f0a27d93… +13 lines (click to expand)status: completeranked: most relevant files of 3## github.com/acme/payments-api revision 8c41f0a27d93src/Contracts/V2/CreateChargeRequest.cs10 /// <summary>The body of POST /v2/charges.</summary>11 /// <param name="AmountMinor">The amount in minor units.</param>12: public sealed record CreateChargeRequest(long AmountMinor, string Currency);src/Endpoints/V2/ChargesEndpoint.cs29 public static void Map(IEndpointRouteBuilder app)30 {31: app.MapPost("/v2/charges", CreateChargeAsync).RequireIdempotencyKey();32 }docs/migrating-to-v2.md18: ## Charges19 20: `POST /v2/charges` replaces `POST /v1/charges`.
  2. corfedo - read_file (MCP)(repository: "acme/payments-api", path: "docs/migrating-to-v2.md", start_line: 18, end_line: 26)

    Running…

    ## github.com/acme/payments-api revision 8c41f0a27d93docs/migrating-to-v2.md (markdown, lines 18-26 of 41)18 ## Charges… +8 lines (click to expand)## github.com/acme/payments-api revision 8c41f0a27d93docs/migrating-to-v2.md (markdown, lines 18-26 of 41)18 ## Charges19 20 `POST /v2/charges` replaces `POST /v1/charges`.21 22 - `amount` (decimal, major units) is now `amount_minor` (integer, minor units).23 - The `Idempotency-Key` header is required. v1 ignored it.24 - `currency` is unchanged.25 26 v1 stays available until 31 March 2027.
  3. corfedo - find_usages (MCP)(name: "createCharge", language: "typescript")

    Running…

    status: completedeclarations of createCharge: 3 repositories## github.com/acme/admin-portal revision 2b7e94d1c0f6… +18 lines (click to expand)status: completedeclarations of createCharge: 3 repositories## github.com/acme/admin-portal revision 2b7e94d1c0f6src/lib/payments.ts (function createCharge)52 export async function createCharge(invoice: Invoice) {## github.com/acme/checkout-web revision e03a5c8812fdsrc/api/payments.ts (function createCharge)38 export async function createCharge(order: Order) {## github.com/acme/mobile-bff revision 9f16ab03d7e2src/clients/payments.ts (function createCharge)27 export async function createCharge(cart: Cart) {uses of createCharge, files in repository order:## github.com/acme/admin-portal revision 2b7e94d1c0f6 (declares its own createCharge)src/pages/invoices/[id].tsx64: const charge = await createCharge(invoice);## github.com/acme/checkout-web revision e03a5c8812fd (declares its own createCharge)src/checkout/submit.ts19: const charge = await createCharge(order);## github.com/acme/mobile-bff revision 9f16ab03d7e2 (declares its own createCharge)src/routes/checkout.ts45: const charge = await createCharge(cart);
  4. Update(src/api/payments.ts)

    Running…

    Updated src/api/payments.ts with 4 additions and 2 removals 39 - const response = await http.post('/v1/charges', { 40 - amount: order.total,… +6 lines (click to expand)Updated src/api/payments.ts with 4 additions and 2 removals 39 - const response = await http.post('/v1/charges', { 40 - amount: order.total, 39 + const response = await http.post('/v2/charges', { 40 + amount_minor: Math.round(order.total * 100), 41 currency: order.currency, 42 + }, { 43 + headers: { 'Idempotency-Key': order.id }, 44 });
  5. createCharge in src/api/payments.ts now posts to /v2/charges, sends amount_minor in minor units and sets the Idempotency-Key header from the order ID. Two other repositories declare their own createCharge: acme/admin-portal in src/lib/payments.ts and acme/mobile-bff in src/clients/payments.ts. Check them before v1 is switched off on 31 March 2027.

Set up

Connect your agent in one step

Add your Corfedo address to the agent with one command or a few lines of configuration. Or paste the setup prompt from your workspace and let the agent connect itself.

Setup for every agent

Claude Code

Terminal
$ claude mcp add --transport http corfedo https://corfedo.example.com/mcp

Codex

~/.codex/config.toml
[mcp_servers.corfedo]url = "https://corfedo.example.com/mcp"

Copilot CLI

Terminal
$ copilot mcp add --transport http corfedo https://corfedo.example.com/mcp

Kiro

.kiro/settings/mcp.json
{  "mcpServers": {    "corfedo": {      "url": "https://corfedo.example.com/mcp",      "oauth": {        "clientMetadataUrl": "https://clients.corfedo.ai/kiro.json"      }    }  }}

Cursor

.cursor/mcp.json
{  "mcpServers": {    "corfedo": {      "url": "https://corfedo.example.com/mcp",      "auth": {        "CLIENT_ID": "https://cursor.com/oauth/mcp-client.json"      }    }  }}

VS Code

.vscode/mcp.json
{  "servers": {    "corfedo": {      "type": "http",      "url": "https://corfedo.example.com/mcp"    }  }}

Antigravity

.agents/mcp_config.json
{  "mcpServers": {    "corfedo": {      "serverUrl": "https://corfedo.example.com/mcp"    }  }}

Access

Agents read what your developers may read, and no more

Agents can read the repositories you grant them.

  1. A developer signs in

    Jonas Webercheckout-team, engineering

    Each developer connects the agent with their own account.

  2. They choose what the agent gets

    • Search and read code
    • Dependencies
    • Security findings
    • Ask Corfedo AI

    All the repositories they may read, or the ones they select.

  3. The agent reads that, and no more

    • GitHub:acme/checkout-web
    • GitHub:acme/payments-api
    • GitHub:acme/admin-portal
    • GitLab™:platform/ledgernot chosen
    • Azure DevOps:Legacy/order-syncthe developer has no access

Administrators choose which agents may connect.

Choosing allowed agents

Build on Corfedo

Give your own agents access to the whole codebase

Keep your model, prompt and loop. Your agents search and read every repository their API key may read. The SDKs are open source under Apache 2.0.

Agent frameworks in the docs

LangChain

invoice_agent.py
import osfrom langchain.agents import create_agentfrom corfedo import CorfedoClientfrom corfedo.langchain import get_corfedo_tools question = 'Where do we parse invoice dates?'key_file = os.environ['CORFEDO_API_KEY_FILE'] async with CorfedoClient.from_api_key_file(key_file) as client:    tools = get_corfedo_tools(client)    agent = create_agent('anthropic:claude-sonnet-5-5', tools)    messages = [{'role': 'user', 'content': question}]    result = await agent.ainvoke({'messages': messages})    print(result['messages'][-1].content)

Corfedo’s tools in a LangChain agent, with the model you choose.

Vercel AI SDK

invoice-agent.ts
import { anthropic } from '@ai-sdk/anthropic';import { CorfedoClient } from '@corfedo/client';import { createCorfedoTools } from '@corfedo/ai-sdk';import { generateText, isStepCount } from 'ai'; const keyFile = process.env.CORFEDO_API_KEY_FILE!;const client = CorfedoClient.fromApiKeyFile(keyFile);const { text } = await generateText({  model: anthropic('claude-sonnet-5-5'),  tools: createCorfedoTools(client),  stopWhen: isStepCount(10),  prompt: 'Where do we parse invoice dates?',});

Corfedo’s tools for an AI SDK model.

Pydantic AI

invoice_agent.py
import osfrom pydantic_ai import Agentfrom corfedo import CorfedoClientfrom corfedo.pydantic_ai import CorfedoToolset question = 'Where do we parse invoice dates?'key_file = os.environ['CORFEDO_API_KEY_FILE'] async with CorfedoClient.from_api_key_file(key_file) as client:    toolset = CorfedoToolset(client)    agent = Agent('anthropic:claude-sonnet-5-5', toolsets=[toolset])    result = await agent.run(question)    print(result.output)

Corfedo’s tools as a Pydantic AI toolset.

.NET

InvoiceAgent.cs
using Corfedo.Client;using Corfedo.Extensions.AI;using Microsoft.Extensions.AI; var question = "Where do we parse invoice dates?";var keyFile = Environment.GetEnvironmentVariable("CORFEDO_API_KEY_FILE")!;using var corfedo = await CorfedoClient.FromApiKeyFileAsync(keyFile); // model is the IChatClient of the provider you use.using var chat = model.AsBuilder().UseFunctionInvocation().Build();var options = new ChatOptions { Tools = [.. corfedo.GetAITools()] };var answer = await chat.GetResponseAsync(question, options);Console.WriteLine(answer.Text);

Corfedo’s tools for any Microsoft.Extensions.AI chat client.

Corfedo AI

Or let Corfedo AI do the searching

Use Corfedo AI as the model and the agent comes with it: the loop, search tools, tool calling and retries. Threads keep their state on your server, answers stay within the caller’s permissions, and every run is traced with its cost.

Follow-up

follow_up.py
import osfrom pydantic_ai import Agentfrom corfedo import CorfedoClientfrom corfedo.pydantic_ai import CorfedoModel key_file = os.environ['CORFEDO_API_KEY_FILE'] async with CorfedoClient.from_api_key_file(key_file) as client:    agent = Agent(CorfedoModel(client))    first = await agent.run('How do we retry a failed charge?')    follow_up = await agent.run(        'Where is that timeout configured?',        message_history=first.all_messages(),    )    print(follow_up.output)

The follow-up continues the same thread in Corfedo.

JSON answer

json_answer.py
import osfrom pydantic import BaseModelfrom pydantic_ai import Agentfrom corfedo import CorfedoClientfrom corfedo.pydantic_ai import CorfedoModel class Caller(BaseModel):    repository: str    file: str class Callers(BaseModel):    services: list[Caller] key_file = os.environ['CORFEDO_API_KEY_FILE'] async with CorfedoClient.from_api_key_file(key_file) as client:    agent = Agent(CorfedoModel(client), output_type=Callers)    question = 'Which services call the v1 charges endpoint?'    result = await agent.run(question)    for caller in result.output.services:        print(caller.repository, caller.file)

The answer follows your schema, ready for a script or a pipeline.

Your own tools

own_tools.py
import osfrom pydantic_ai import Agentfrom corfedo import CorfedoClientfrom corfedo.pydantic_ai import CorfedoModelfrom incidents import incidents_of key_file = os.environ['CORFEDO_API_KEY_FILE'] async with CorfedoClient.from_api_key_file(key_file) as client:    agent = Agent(CorfedoModel(client))     @agent.tool_plain    def open_incidents(service: str) -> list[str]:        """The open incidents of a service."""        return incidents_of(service)     question = 'Which services with an open incident call the v1 API?'    result = await agent.run(question)    print(result.output)

Corfedo AI searches your code and calls the tools your application offers.

Try it on the demo, then connect your agent

Run Corfedo on your server and add its address to your agent.