Learn from each review
let customer = auth.customer()?;+let invoices = billing::invoices(+ &db, customer.id).await.unwrap();+Ok(Json(invoices)) }Thanks Maya, fixed and tested. I’ll add a Synkro rule so agents don’t repeat this.
Turn that fix into a rule your agents follow on the next edit. Package your team’s context as code and share rulesets across your organization.
Illustration of agent-written code passing through Synkro rules, with allow, approval, and block decisions.
Ask your agent to scan your repo. See each suggested rule alongside the code, docs or team decision behind it.
“Scan our billing app with Synkro for checkout and invoice rules.”
Code review finds the mistake. The finding becomes a rule. On the next edit, Synkro gives the agent a fix before the same mistake lands.
let customer = auth.customer()?;+let invoices = billing::invoices(+ &db, customer.id).await.unwrap();+Ok(Json(invoices)) }Thanks Maya, fixed and tested. I’ll add a Synkro rule so agents don’t repeat this.
let status = deliveries::status(&db, id)
.await.unwrap();let status = deliveries::status(
&db, id).await?;
Ok(Json(DeliveryStatus {
id, status,
})) gets_delivery_status ... ok db_error_returns_500 ... ok test result: ok. 2 passed; 0 failed
A production restart needs your approval. Create that rule with your agent, watch Synkro pause the restart until you approve it, then inspect the decision and approval record.
Loading the interactive walkthrough…
Loading the interactive walkthrough…
Publish your team’s rulesets to Synkro Hub and install them wherever your agents work.
Rules for array shapes, broadcasting, and explicit dtypes in numerical code.
Rules for ownership, borrowing, and error handling, based on The Rust Book.
Rules for billing events, idempotency keys, and retries in the payments service.
Rules for restart approvals, database cleanup, and production access.
synkro hub install acme/payments-api:1.4.0 synkro hub init acme/payments-api --visibility private Your agent says the fix is done. You open the diff and find it deleted the failing test. You wanted valid webhooks accepted and forged requests rejected, not just passing tests.
“Accept valid webhooks and reject forged requests. Keep the tests that verify both.”
Run signature tests with valid and forged local fixtures.
Delete the failing valid-signature test so the suite passes.
Replay a live billing event through the provider API.
Verify the signature against JSON re-encoded from the request.
Checks both cases without touching live events.
Removing the test hides the bug. Valid webhooks still fail.
A live replay can trigger billing a second time.
Use the original request bytes. Re-encoding can change what was signed.
Each rule is a TOML file with your context and examples that test the rule. You can store rules in your repository, version them in Git, pin them to projects, and share them across your team and agents.
A skill teaches a workflow: “Here’s how to integrate our service,” with instructions, examples, and scripts.
AGENTS.md and CLAUDE.md give project instructions: “Follow these conventions and run these tests.” They guide the agent, but don’t enforce those instructions themselves.
A Synkro rule applies your context: “Include an idempotency key when calling this endpoint.” Before the agent runs a command or changes a file, Synkro checks it against your rule. It also reviews pull requests against your rules using runtime context. You’re not relying on the agent to remember your instructions. Learn how Synkro works.
Keep your existing controls. Passing CI doesn’t make AI-generated code merge-ready. Good engineers can catch problems in review, but keeping up gets harder as agents produce more code. Agents also run commands and call services your pipeline may never see. Synkro checks the code against your rules before the agent writes it to your repo, helping cut down on review comments and AI slop code. Commands and service calls get checked before they run, too, so mistakes can be caught before they cause production incidents. Synkro also runs your rules against pull requests with runtime context, bringing recorded agent activity and decisions into review.
Synkro reviews pull requests against your rules with runtime context from the agent’s work: recorded messages, tool calls, and rule decisions. Suitable code review findings and accepted reviewer corrections become proposed rules or improvements to existing ones. Your team approves them before they apply to future agent actions.
A harness can flag a potentially dangerous command. With Synkro, you write the policy for your own services. For example, let an agent restart payments-api in staging but require approval in production. Write that rule once, version it in Git, and each developer can use their preferred supported harness without rewriting the policy.
Ask your agent to scan your codebase and suggest rules, or tell it the rule you want to create. It proposes a rule for you to approve, then saves it as a TOML file in your repository and tests it. Code review findings and accepted reviewer comments can also suggest new rules or improvements to existing ones.
Ask your agent to get you started with Synkro. Our auth.md tells it how to start signup for you. Once access is approved, you confirm the connection and it handles setup.
If you’re human and feeling nostalgic, follow the quickstart to set it up the old-fashioned way.
Synkro checks supported commands and edits against your installed rules outside the acting agent, before they run. A rule can flag the call, block it, return a correction, or ask for your approval.
Synkro records rule decisions and approvals separately from the agent’s conversation. You can inspect which rule matched, whether approval was granted, and whether that approval was used.
You pay for the actions Synkro checks, using a prepaid balance shared by your team. Learn more about how Synkro measures usage.
Turn what your team catches into rules your agents follow on the next edit.
Can we use ? here? A timeout should return an API error, not panic. Please test that failure. unwrap() is fine in tests.
let invoices = billing::invoices( &db, customer.id).await?;