> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GitHub Copilot

> Set up GitHub Copilot with the bijection CLI and project guidance

[GitHub Copilot](https://github.com/features/copilot), the AI built into VS
Code, makes it easy to write and maintain apps built with Bijection. Let's walk
through how to set up GitHub Copilot for the best possible results with Bijection.

## Set up the Bijection CLI

In *Agent* mode, Copilot runs the `bijection` CLI in VS Code's terminal with the
same verbs and tree paths as the code: `bijection check` checks the source and
writes the lock, `bijection query` and `bijection mutate` call functions,
`bijection trial` shows what a mutation would write without committing it,
`bijection list` reads facts and `bijection watch sys.logs` follows function logs.
[Install the CLI](https://docs.bijection.com/start/install.md), then add Bijection's guidance for
coding agents from your project directory:

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection ai-files install
```

This writes a managed pointer section into the project's `AGENTS.md` and
`CLAUDE.md`, a `bijection` stub skill for each selected agent (Claude Code and
Codex by default) and a `bijection` entry in `.mcp.json` that runs
`bijection mcp serve`. The guidance itself ships as Agent Skills inside the
installed `@bijectionhq/bijection`, so it matches the project's SDK version:
the MCP server serves it with the Skills extension, and `bijection skills list`
and `bijection skills show <name>` print it.

An application can also [declare an MCP server](https://docs.bijection.com/mcp/servers.md) for its
queries and mutations. [Connect the host](https://docs.bijection.com/mcp/clients.md) to that HTTP
endpoint as a person or an issued session. Each tool call runs under the
caller's own grants, and a write carries its `once`, so a retry is the same
effect.

Now start asking it questions like:

* Review my tables and indexes, and suggest the index a selection needs
* Which functions are exposed, and to which roles? (read `bijection.lock`)
* Run `bijection trial` on the `orders.place` mutation and explain its writes


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.