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.
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.
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.
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.
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
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 V3
98%
gpt-6.1-sol
88%
Claude Opus 5.5
76%
Claude Sonnet 5.5
54%
Claude Haiku 5.5
42%
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.
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.
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.
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.
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.
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.
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.
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.
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.
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 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.
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 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.
Read what CoreStory found in real codebases
Public open-source and sample repositories CoreStory V3 has ingested, from mainframe COBOL, PowerBuilder, and Visual Basic to Linux, n8n, Prometheus, and Consul. Gold numbers count entities in the Intelligence Model from our earlier ingestion runs; newer runs show the business rules and capabilities they extracted. Repositories with a gold edge have their own page, with sample rules each cited to the exact source lines. Lines are counted with tokei; repositories with their own page use that page's cloc count.
Tailwind Traders Desktop
WPF sample
SKS VB6
VB6 business application
Blackbox Exporter
Endpoint probing
Tailwind Traders Backend
Microservices sample
eShopOnWeb
.NET reference app
Contoso Customers & Orders
Windows app sample
VB6 Photo Editor
Tanner Helland graphics archive
Tailwind Traders Website
Web sample
OPC Classic
COM/DCOM core components
Alertmanager
Alert routing
Contoso Real Estate
.NET reference app
Headscale
Tailscale control server
RESTEasy
Jakarta REST implementation
Traefik
Edge proxy
Wiki.js
Wiki platform
Prometheus
Monitoring
OpenTofu
Infrastructure as code
Apache ActiveMQ
Message broker
GoCD
Continuous delivery
OpenBao
Secrets management
nopCommerce
ASP.NET Core commerce
Element Web
Matrix client
Strapi
Headless CMS
Nomad
Workload orchestrator
Consul
Service mesh
Loki
Log aggregation
Keycloak
Identity and access
Quarkus
Cloud-native Java framework
VLC
Media player
Linux
Kernel
utPLSQL
PL/SQL unit testing
AdaDoom3
Doom 3 engine in Ada
Sliding Sync
Matrix sync proxy
abap2xlsx
ABAP Excel library
conduwuit
Matrix homeserver
PFC
PowerBuilder Foundation Classes
TPT Oracle
Oracle PL/SQL troubleshooting scripts
Masa CMS
ColdFusion CMS
DelphiMVCFramework
Delphi web framework
Orchard Core
ASP.NET Core CMS
Windows Forms
.NET WinForms
Ghost
Publishing platform
systemd
Linux system and service manager
E3SM
Earth system climate model
Magento 2
Commerce platform
Metabase
Business intelligence
n8n
Workflow automation
Tailwind Traders Point of Sale
VB6 to .NET sample
CardDemo
Mainframe credit-card application
Contoso Traders
.NET reference app
Gitea
Git hosting
OpenRCT2
RollerCoaster Tycoon 2 re-implementation
iDempiere
Open-source ERP
Your repository
Want a repository mapped?
Tell us about a public repository you'd like to see here. We ingest it with CoreStory V3 and publish the plate.
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.
- 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.
- 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.