Leave Localhost logoLeave LocalhostDocs
AI Agent DX

Using Codex (GitHub Copilot)

GitHub Copilot (often powered by Codex models) is deeply integrated into editors like VS Code and provides inline code suggestions and a chat interface.

GitHub Copilot (often powered by Codex models) is deeply integrated into editors like VS Code and provides inline code suggestions and a chat interface.

Inline Suggestions

  • Context is Key: Copilot relies heavily on the files you currently have open. If you are working on a Convex backend query, ensure you have related schema files or packages/backend/AGENTS.md open in another tab to provide the AI with the necessary context.
  • Triggering Skills: Copilot doesn't automatically read .agents/skills for inline completions. To get the most accurate code, write a detailed comment at the top of the file referencing the specific pattern you want to use.

Copilot Chat

  • @workspace: Use the @workspace tag to ask questions about the broader repository. Copilot will index the AGENTS.md rules and use them to formulate answers.
  • Rule Enforcement: When asking Copilot to generate a new file, explicitly ask it to "Follow the rules defined in AGENTS.md" to ensure it respects the workspace boundaries and uses bun instead of npm.

On this page