Business Domain Intelligence for teams and their agents

AI writes your code.
CoreStory knows your business.

CoreStory constructs a graph of your codebase's business domain once. Your agents and engineers then write code with a grounded, cited understanding of your business.

Module graph of a real repository from the galleryEach cluster is one of the repository's top-level directories, sized by its file count; the layout inside each cluster is illustrative.
n8n · 130k entities · 4.7M linesTop-level directories · sized by files
The problem

Coding agents search and write code well, but they're not built to understand how your business actually works.

Whether a code change is right depends on how your business works, and that knowledge is spread across systems and years of code. An agent sees only the files it opens for its current task, so it can write a change that looks correct and still breaks a rule the business depends on.

  1. Code changes that look right and break the business

    Coding agents work from the code named in a ticket. If a critical rule lives outside of that code, they often miss it completely.

  2. Agents start from scratch every time

    Even when a business rule is written down, an agent can miss it, and every future agent has to rediscover it.

  3. Limits on where code can go

    Many teams can't send source code to another vendor's cloud, or can use only the model provider their security team has approved.

With CoreStory, your agents and engineers work from one graph of how your business runs.

CoreStory reads your code once and keeps what it learns, so every agent and engineer starts from the same understanding.

Agents understand the business context behind a change, even when the ticket leaves it out.

CoreStory serves the rules behind a change while the agent plans and edits. It works over MCP, under the coding agent your team already uses.

One graph of how your applications and your business fit together.

CoreStory builds a knowledge graph of applications, processes, data, and business rules, each traced to the lines it comes from. It's kept and shared, so engineers explore it visually and every agent queries the same graph.

Runs where your code lives, with the model provider you choose.

Run one local binary on any machine or in any environment, or use the SaaS. Use our hosted models, or bring your own key for Azure AI Foundry, Azure OpenAI, OpenAI, Anthropic, or any OpenAI-compatible endpoint.

Measured with frontier and open-weight models on codebases with known answer keys.

On hard coding tasks, each model is compared with itself, working alone and then with CoreStory V3. On business rule location tasks, one full CoreStory V3 pass is ranked alongside each agent working alone.

Hard tickets fixed or flagged1

Share of tries, per model, 14 hard tickets

Working aloneWith CoreStory V3

Each ticket hinged on a business rule that was not stated in the ticket. Tickets were chosen because agents working alone fail them.

Finding where business rules live2

One full CoreStory pass vs. agents working one business area at a time. Share of 515 known places.

CoreStory found 98% (a rule within five lines of 503 of 515 places); agents alone found 42% to 88%. Not a same-budget comparison: CoreStory built its index on one exhaustive pass, while each agent worked one session per business area. Open-weight models were tested on hard tickets only.

17–35%

lower cost per rule found2

About a third lower for the Claude models (32–35%) and 17% for gpt-6.1-sol. Measured on the task of finding every place a rule lives. Places found held about level for Sonnet, Opus and gpt-6.1-sol; Haiku's fell from 42% to 31%.

~1/10

the cost per fix

DeepSeek-V4.1-Flash with CoreStory V3 matched Claude Opus 5.5 with V3 across these 14 hard tickets (76% vs 74% fixed or flagged), at about one-tenth the cost per fix. List prices; cost per fix = total spend ÷ fixes.

Full method, per-model results, and limitations →

How teams use CoreStory

Agent-led modernization

Assess a legacy system, catalog its business rules, plan the target architecture, and sequence the migration, with agents doing the work and people approving each phase.

How it's used: The interest a customer pays is set by a formula inside an old batch job. Giving that rule to the agents that plan and build the replacement means the new system charges exactly what the old one did, and testers know precisely what to check.

A real rule CoreStory V3 extracted · CardDemocalculation

For each transaction-category balance record, monthly interest is computed as (TRAN-CAT-BAL * DIS-INT-RATE) / 1200. The 1200 divisor converts an annual rate percentage to a monthly rate.

app/cbl/CBACT04C.cbl · L465See all 12 CardDemo rules →

Ticket resolution on legacy code

Agents resolve tickets with the business context behind the change, including rules in other services and batch jobs that the ticket never mentions.

How it's used: Approval rules like this one are rarely written into a ticket. When an agent changes how merging works, CoreStory hands it this rule while it edits, so the change can't quietly let through code a reviewer has rejected.

A real rule CoreStory V3 extracted · Giteavalidation

When the protected branch has BlockOnRejectedReviews enabled, merge is blocked if there exists an official, non-dismissed review of type Reject on the pull request.

models/issues/pull.go · L789–L802See all 12 Gitea rules →

Spec-driven feature work

Turn a feature request into a spec grounded in how your applications actually work, then into tickets with constraints a reviewer or a completion check can verify.

How it's used: Work can't be marked done while the work it depends on is still open. Any new feature that closes items, such as bulk actions or automation, carries that rule into its spec as a requirement the agent has to meet and a reviewer can check.

A real rule CoreStory V3 extracted · Giteavalidation

When dependencies are enabled for the repository, closing an issue fails with ErrDependenciesLeft if the issue still has unsatisfied dependencies. The check is only done on close, not on reopen.

models/issues/issue_update.go · L62–L72See all 12 Gitea rules →

Tests that follow the business

Give agents business rules when they write tests, so that those tests validate what the business depends on and not only the code paths.

How it's used: Approval rules decide what is allowed to ship. With this rule in hand, an agent writing tests covers the cases that matter, such as a withdrawn or outdated approval not counting, not just the case where approving works.

A real rule CoreStory V3 extracted · Giteacalculation

Granted approvals counted for a pull request are reviews of type Approve that are official and not dismissed. When the protected branch ignores stale approvals, stale reviews are excluded as well.

models/issues/pull.go · L771–L777See all 12 Gitea rules →

An index of your business rules

CoreStory catalogs the business rules across your codebase, each tied to the lines of code that enforce it. Look up any rule before a change, an audit, or a review.

How it's used: Who is allowed to create what, and up to what limit, is a question auditors and administrators ask often. The answer becomes a lookup, with the exact conditions and a link to the code that enforces them, not a search through the codebase.

A real rule CoreStory V3 extracted · Giteaauthorization

A doer can create a repository in an owner only if both doer and owner have IDs greater than 0. Admins are always allowed; otherwise a limit of -1 means unlimited.

models/user/user.go · L285–L296See all 12 Gitea rules →

Get newcomers up to speed

New architects, engineers, and business users explore the same graph your agents use to see how applications, processes, data, and rules connect.

How it's used: Privacy rules like this one are spread across settings and code paths. A new engineer or product owner can read the whole rule in one place, with a link to its source, instead of tracing it through the codebase.

A real rule CoreStory V3 extracted · Giteaauthorization

A viewer can see a user's profile if the viewer is an admin or the user themself. Otherwise public users are visible to everyone; limited users only to non-restricted signed-in viewers; private users only to viewers who follow, are followed by, or share an organization with the user.

models/user/user.go · L1465–L1473See all 12 Gitea rules →

Get CoreStory V3.

Download CoreStory V3 as an app or use it as SaaS. Start on the free plan; paid plans are usage-based, and ingestion is free on every plan.

  1. 14 change tickets across four codebases, each hinging on a business rule the ticket doesn't state; four frontier models, each compared only with itself.
  2. A 250,000-line COBOL and Java codebase with a known answer key, across four frontier models.

* In 24 of 140 CoreStory-assisted runs, gpt-6.1-sol edited code before writing its plan, because our test setup's plan-first check did not recognize Codex's edit format. Those runs performed no worse than the rest.

Full method, results, and limitations →