Git Sync makes a Git repository the source of truth for your workflows and knowledge resources. Developers, partner teams and coding agents change JSON files through branches and pull requests. Sommatic AI reads one branch of that repository, shows you exactly what would change and, when you apply it, loads the result into its resources. You get review, history and rollback from Git, and an auditable deployment in Sommatic AI.
What you get
- Review before deploy. Every change is a pull request. Sommatic AI only applies a commit you previewed.
- One repository, many installations. Development and production read the same files from different branches. Values that differ per installation (provider ids, credential ids, resource ids) live in an environment file, not in the workflow.
- No secrets in Git. Secrets are tokens that Sommatic AI resolves on the server.
- Traceability. Each resource records the commit it was synced from and the commit its published version comes from.
expected_commit) How it works
| Piece | What it is |
|---|---|
| Package | Any folder with a sommatic.json manifest. It lists the workflows and knowledge resources it owns, each with a stable logical key. |
| Resource file | One JSON file per workflow or knowledge resource, in the studio export format plus a sommatic header. |
| Environment file | environments/<name>.json: the branch an installation reads and the values of that installation (variables, resource ids, where to read secrets). |
| Tokens | @@env.NAME@@, @@ref.<key>@@ and @@secret.NAME@@ inside resource files. They are replaced with the environment’s values when Sommatic AI syncs. |
| Connection | A Git repository registered in Sommatic AI: provider, owner/name, branch, environment and a read-only token stored as a credential. |
A typical repository:
The flow
- You change a resource file on a
feature/*branch and open a pull request. Checks validate the files. - The pull request is merged into the branch that an installation reads (for example
developmentfor dev). - In Sommatic AI you preview the package: it resolves the tokens with that installation’s environment file and compares the result with what Sommatic AI has today. Preview writes nothing.
- You apply exactly the commit you previewed, optionally publishing a new version.
- The same change moves to the next branch (
qa, thenmain) through more pull requests, and is applied in each installation.
Only GitHub is implemented as a provider today, including GitHub Enterprise through the connection’s base URL.
In the portal
- Platform infrastructure → Git repositories: create, test and edit connections. The detail page shows the head commit and, per package, the status of each resource against this installation: Up to date, Changes in Git, Not mapped or Error. From there you sync a package or a single resource, with optional publish.
- Workflow studio, menu … → Sync from Git…: preview one workflow and load its nodes into the canvas without saving. Export for Git… gives you the file, the manifest entry and the environment entry.
- Knowledge resource editor, menu … → Sync from Git… and Export for Git….