Skip to main content
GitHub 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, then add Bijection’s guidance for coding agents from your project directory:
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 for its queries and mutations. Connect the host 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