Skip to content

Bound · closed beta for enterprise customers

Sheet 04 / Bound

Understand your application before you change it.

We're building Bound to help your coding agent understand how features work across your application—and how your team builds them.

What Bound is for

What an agent needs before it changes a feature.

A coding agent can read any one file. What it misses is how the files work together, and how your team usually does things.

01In the beta

Follow a feature across the codebase.

Bound proposes the flows of a feature, from the action in the interface to the request, the code that handles it, the data it writes and the background work it starts. Each step is checked against the source and keeps its file and line, with the conditions that decide which way it goes and the steps of each branch.
  1. UI action
  2. request
  3. backend
  4. data
  5. background job
02In the beta

Learn how this team builds things.

Error handling, components, UI and styling, how the frontend talks to the backend, how tests are written: each pattern counted in your code, with examples, its variations and its exceptions. Frequent is shown as frequent, not as a rule.
03We're building

Bring relevant knowledge into the change.

The goal: when the agent is about to change part of a flow, the card of that flow, its patterns and its critical points are already in its context, without being asked for. We are building this now.

What Bound covers depends on the languages and frameworks of your codebase. It does not understand every repository, and we do not claim it does.

In the beta · a real flow

Follow a feature across the codebase.

One flow from the button a person presses to the email that goes out later. Each step keeps its file and line and says how it is reached: a call, a callback of the framework, or a job that runs later.

From a beta run on codetriage (open source), shortened. Real output, not a mock-up.Subscribe to a repository's issuesA signed-in person presses Triage Issues. The subscription is saved; if the save works, an email job is queued and the person goes back to the repository. If it fails, they see an error and go back. Later, the job picks issues and sends a mail only when it found one.
  1. entryThe Triage Issues button on a repository page posts the subscription.app/views/repos/show.html.slim:29
  2. framework callbackBefore the action runs, the person must be signed in.app/controllers/repo_subscriptions_controller.rb:4
  3. callLoads the person's subscription when an id is sent, or builds a new one, and writes the fields.app/controllers/repo_subscriptions_controller.rb:34
  4. framework callbackBefore the save, read and write are recomputed from their limits.app/models/repo_subscription.rb:18
Conditionif @repo_subscription.saveapp/controllers/repo_subscriptions_controller.rb:8
Yes · the save works
  1. queues a jobQueues the email job for this subscription.app/controllers/repo_subscriptions_controller.rb:9
  2. responseBack to the repository, with a notice.app/controllers/repo_subscriptions_controller.rb:10
No · the save fails
  1. responseSets the error “Something went wrong”.app/controllers/repo_subscriptions_controller.rb:12
  2. responseBack to the repository page. Nothing is queued.app/controllers/repo_subscriptions_controller.rb:13
Queued, not doneThe person is already back on the page. What follows runs later, from the queue, and may not have happened yet.
  1. job · runs laterThe job loads the subscription again.app/jobs/send_single_triage_email_job.rb:5
  2. callAssigns open issues to the person, up to their email limit.app/models/issue_assigner.rb:23
  3. queues a jobOnly when an assignment exists: marks it delivered and queues the triage mail.app/jobs/send_single_triage_email_job.rb:11
Stated as unknown, not guessed
  • What happens when the job fails: its retry policy is not set in this repository.app/jobs/send_single_triage_email_job.rb:6
  • A person who is not signed in goes to the sign-in instead. That path was not followed.app/helpers/repos_helper.rb:5
  • How the mail is finally delivered is not in what was read.app/mailers/user_mailer.rb:71

Shortened from the full flow of the run on codetriage, an open-source Rails application. Every file and line points into its source.

In the beta · from the same run

Watch out when changing this flow.

With the flow come the things an agent changing it is likely to get wrong, written as guidance: if you change this, also do that. They are proposed by AI and stay marked that way until a person on your team reviews them.

AI-proposed, unreviewed

Adding a field to a subscription?

Add it to the permit list and to the address of the button that sends it: the fields come from that address, not from a form. A field left out of either is dropped without an error and stays at its default.
  1. app/controllers/repo_subscriptions_controller.rb:44
AI-proposed, unreviewed

Assuming the action only creates?

It also updates: the Triage Docs button sends an id, and the email job is queued again. A rule meant for new subscriptions runs on these updates too, and the job then mails the newest assignment, even an old one.
  1. app/jobs/send_single_triage_email_job.rb:24
AI-proposed, unreviewed

Writing subscriptions in bulk?

Go through the model: only its validation keeps one subscription per person and repository, and the database index is not unique. A bulk insert skips that check, the subscriber count and the cached subscriber list.
  1. app/models/repo_subscription.rb:11
AI-proposed, unreviewed

Adding a reason to skip an issue?

Still save the skipped issue as delivered: that record is what keeps it from being picked again. Without it, the job keeps choosing the same issue and never stops.
  1. app/models/issue_assigner.rb:48

Four of the lines proposed for this flow, shortened. Each points to the file and line it is about.

In the beta · illustrative example

Learn how this team builds things.

How your team usually does one thing, counted in your code: each way with how often it appears, places to look, and the exceptions.

Each way, counted
How often each way appears in your code today, not how often it should.
Places to look
Real files and lines for every way, so the agent follows what your team already does.
The exceptions
Where the code does it differently, kept apart so they are not mistaken for the rule.
Frequent is not a standard
A way becomes your team's standard only when a person on your team says so.

Illustrative example · team pattern

How does an endpoint check permissions?

Most often · 24 endpoints
A policy object, called in the action. For example app/controllers/invoices_controller.rb:41 and app/controllers/projects_controller.rb:18.
Also used · 7 endpoints
A filter that runs before the action. For example app/controllers/admin/base_controller.rb:6 and app/controllers/admin/reports_controller.rb:4.
Exceptions · 2 endpoints
Webhooks check a signature instead: app/controllers/webhooks/payments_controller.rb:12 and app/controllers/webhooks/git_controller.rb:9.

An illustrative example, not from a beta run: the names, places and counts are made up to show the shape of the card. Patterns were not part of the run shown above.

We're building

Bring it into the change.

The goal: when the agent is about to edit a file on a flow, the card of that flow reaches it first, with the watch-outs on top, without being asked for.

Sketch · the same flowWe're building

The agent's task

The agent is about to edit a file on the flow.

Let a subscriber choose the day of their email.

app/controllers/repo_subscriptions_controller.rbon the flow: subscribe to a repository's issues
The file is on a flow that is already known.

A sketch of what we are building, not a product screen. The task and the field are made up; the flow and the watch-out are the ones above.

Useful repository facts

The facts an agent keeps looking for.

Bound lists the routes, components, data structures, settings and test helpers of the repository: where they are and what they are called, so the agent uses what exists instead of writing a second one.

What we are building next: your team defines its own rules and its dangerous areas as data, and the agent receives them with the flow it is changing.

Frequent is not the same as approved.

Bound shows how often something is done in your code and where the exceptions are. Only a person on your team makes a pattern a standard.

Where Bound stands

A closed beta for enterprise customers.

Bound is a separate paid add-on. It is not part of the open package, and DecisionBook and Handoff do not need it.

Today it proposes flows checked against the source, counts your team's patterns and lists your repository's facts; we test it on real open-source applications. Bringing that knowledge into the agent's context before a change, and team-defined rules, are what we are building. Before anything is set up, we talk with each team about its codebase.

Closed beta · enterprise

Discuss your codebase.

Tell us about your application: its languages, its size and where your agents lose their way. A short email is enough to start.

[email protected]
Discuss your codebase