Sync with Git
Review context changes in pull requests and sync them to Querio after merging.
Initial Setup
You'll need an existing repository and permission to manage workspace settings in Querio.
1. Connect the repository in Querio
Open Settings > Git in your Querio workspace and connect your repository. Follow the connection steps for your provider:
Confirm that the repository shows Connected before running a sync. Connecting enables Branches file mode, which Git sync requires.
2. Start with the context already in Querio
Copy the workspace's existing context files into your repository, keeping their contents and paths unchanged. The first-sync instructions cover how to retrieve these files.
Commit and push this initial copy before editing it.
3. Set up CI and run the first sync
Add the workflow for your provider:
The workflow syncs the files selected by querio.toml back to Querio whenever changes reach main. Wait for the first successful run before changing the context or its configuration.
4. Check the synced context
Open Explore in Querio. Start a new analysis and ask a question that uses one of your rules. Check the answer against a result you trust.
Make changes locally
-
Edit the context files, open a PR, and merge it.
-
CI syncs the merged changes to Querio.
Make changes in Querio
From an Explore
- Ask the agent to update the context in Explore.
- Go to Context and select that conversation's existing branch. Do not choose New branch, which creates a different copy.
- Open Changes, review the diff and select Open PR.
- Review and merge it in GitHub or Bitbucket. CI syncs the merged changes back into Querio.
From the Context tab
-
In Context, choose New branch and edit the entries you want to improve.
-
Wait for Saved, open Changes, review the diff and select Open PR.
-
Review and merge that PR in your repository.
If something goes wrong
- The first sync asks for Branches mode: finish connecting the repository under Settings > Git, then rerun CI.
- An existing file blocks the sync: copy that file from Querio into the repository unchanged and sync again. Make your intended edit after that succeeds. See First-sync conflicts.
- Context is inside a folder: sync the root-level
querio.tomlas well as that folder's files. See Context inside a repository folder. - Context looks empty after CI succeeds: choose New branch in Context. Check the selected files if that new branch is also empty.
For file selection and sync behavior, see Files and versions. For manual uploads and patch exports, see the CLI reference.
Last updated on November 18, 2026