ODSP2245 · Pre-recorded

Give AI agents grounded context for complex codebases

  • 18 min
  • Catalogue level: (200) Intermediate
  • Our depth rating: 200
  • Worth watching: 1/3

Speakers: Ray Ploski

Watch on Microsoft’s site

Microsoft’s player cannot open a video at a given time: once it plays, skip to the time shown.

What the session covers

Ray Ploski of CoreStory argues that the hard part of AI-assisted changes in large, long-lived codebases is system context, not code generation. He describes how CoreStory ingests code, refines it into behaviors, business rules and constraints, grounds each claim to a file and line range, and exposes this context via MCP, HTTP, a web app and a CLI usable in CI/CD. A demo shows GitHub Copilot in VS Code querying the CoreStory MCP server to assess the impact of an account-suspension change, surface invariants and draft a spec with acceptance criteria and a test plan. The session also covers a vendor-run SWE benchmark (GitHub Copilot from 62% to 78% of tasks, with an ambiguous caption), modernization use, and team practices such as playbooks in .github/copilot-instructions.md. No Microsoft announcements are made; this is a partner product session.

Best for: Developers and engineering leads working with GitHub Copilot on large legacy codebases who want to see how an external MCP context server can ground agent changes and specs.

Session timeline by chapter

New material: no clear start of new material was found in this session.

Where to skip: Skip to 03:17 for the ingest-refine-ground-expose model; the demo at 10:08 is the core, and the team practices at 15:33 (copilot-instructions.md playbooks, shared MCP URL) are the most reusable part; the intro and closing can be skipped.

Chapters (9)

  1. 00:02 Recap Depth 100 · Novelty 0/3

    Introduction: why system context, not code generation, is the hard part

    Ray Ploski, VP of Product at CoreStory, says that in large, long-lived codebases the hard part is knowing what a change touches and which rules it must not break. He outlines the agenda: the context gap, how CoreStory builds and serves a persistent model via MCP, a demo of a change from impact analysis to spec with GitHub Copilot, and modernization best practices.

  2. 01:10 Recap Depth 200 · Novelty 1/3

    The context gap: plausible but wrong changes from AI coding agents

    An agent only knows the handful of files it reads in a session, while a change can reach event subscribers, batch jobs, partner feeds or pricing rules in other services. Much system behavior is undocumented and lives in code, tests and senior engineers' heads. Four recurring failure modes are described: fixing the symptom, reinventing existing helpers, breaking a hidden business rule, and passing local tests while shipping a downstream regression.

  3. 03:17 Deep dive Depth 300 · Novelty 1/3

    CoreStory model: architecture, behavior, intent and the ingest-refine-ground-expose pipeline

    System context is described in three layers: architecture, behavior and intent. CoreStory ingests source code and assigns stable identities, refines it to extract behaviors, business rules, actors and constraints, grounds every claim to a file and line range to counter LLM hallucination, and exposes the context via MCP, HTTP, a web app and a command line. Each ingestion also produces standard specs, and an example shows a 'deactivate user account' constraint ('active sessions must be revoked') traced to a specific file and line range.

  4. 06:08 Deep dive Depth 300 · Novelty 1/3

    Expert and navigator roles; MCP, web app and CI/CD access to shared context

    The model acts as an expert (explaining business rules, invariants, patterns, design history) and as a navigator (pointing to files, methods, extension points and code paths); the speaker advises asking for understanding before asking for locations. People use the web app to chat with code and generate specs, while agents such as GitHub Copilot in VS Code connect to the remote CoreStory MCP server and get tools like create conversation, messaging and code-index search. Conversations are centralized and persistent, and the CLI can run ingest and refine in CI/CD pipelines to keep the model current.

  5. 08:44 Deep dive Depth 200 · Novelty 1/3

    Connecting CoreStory MCP to VS Code and SWE benchmark results

    A short clip shows adding the CoreStory MCP URL to VS Code, signing in and asking to list projects. CoreStory reports benchmarking six coding agents on 45 difficult SWE benchmark tasks, with GitHub Copilot going from 62% to 78% of tasks (the caption says 'without CoreStory context'). In nearly three-quarters of successful cases the gain came from choosing the right implementation path, and the speaker claims the benefit grows for codebases of 100,000 to a million lines.

  6. 10:08 Demo Depth 300 · Novelty 1/3

    Demo: GitHub Copilot traces account-suspension impact, constraints and spec via CoreStory

    After a quick ingest and refine, GitHub Copilot is asked to consult CoreStory before writing code; it opens a CoreStory conversation over MCP for an account suspension change. The answer lists affected behavior (authentication and billing, the latter outside the open files), constraints (sessions, audits, entitlements), the implementation surface, and risks that would not fail any existing test. A follow-up surfaces business rules and invariants such as revoking active sessions with file and method locations, then CoreStory drafts a spec with acceptance criteria, citations and a test plan validated against the architecture.

  7. 13:41 Deep dive Depth 200 · Novelty 1/3

    Scaling to modernization and the human-agent division of responsibility

    The same pattern applies to modernization: before migration CoreStory assesses architecture, coupling and risk and builds a business rules inventory; during migration it guides work packages built from delta specs; afterwards it verifies legacy versus modernized behavior rule by rule and remains a living spec. People set intent, resolve ambiguity and approve trade-offs, while agents plan edits, change code and run verification within grounded boundaries, shifting review from repository discovery to engineering judgment.

  8. 15:33 Deep dive Depth 200 · Novelty 1/3

    Team practices: copilot-instructions.md playbooks, one conversation per task, shared MCP URL

    Three practices are recommended: put CoreStory's plain-markdown playbooks into .github/copilot-instructions.md so every developer's GitHub Copilot follows a context-first workflow; use one conversation per task, reuse it and rename it when done; and share the MCP URL rather than tokens so everyone signs in as themselves. Azure DevOps or GitHub issues MCP servers can also be connected so the agent pulls the ticket.

  9. 16:37 Closing Depth 100 · Novelty 0/3

    Closing: treat context as infrastructure; ingestion and graph explorer footage

    The speaker summarizes: treat context as infrastructure, ask before you change (expert first, then navigator), and spec the delta grounded in the real architecture. He notes documentation for the MCP and binary setups and pipeline integrations, then shows footage of CoreStory ingesting a large repository with the graph populating and an explorer for features, pointing to the gallery on CoreStory.ai.

Announcements (0)

No specific announcement was made in this session.

Demos (2)

  • 08:44 Not stated GitHub Copilot

    Developer connects the CoreStory remote MCP server to VS Code so GitHub Copilot can query CoreStory projects.

    Steps (4)
    1. Copy the CoreStory MCP server URL.
    2. Add the URL as an MCP server in VS Code.
    3. Sign in to CoreStory.
    4. Ask GitHub Copilot to list your CoreStory projects.

    Prerequisites: CoreStory account with ingested projects; VS Code with GitHub Copilot supporting remote MCP.

  • 10:37 Not stated GitHub Copilot

    A developer uses GitHub Copilot with CoreStory context to assess the impact of an account suspension change, surface the rules it must preserve and produce an implementation-ready spec before editing code.

    Steps (7)
    1. Run an ingest and refine of the repository in CoreStory.
    2. In VS Code, ask GitHub Copilot to consult CoreStory before writing anything; Copilot opens a CoreStory conversation and sends the question via MCP.
    3. Submit the change request (account suspension) and review affected behavior, constraints and the implementation surface (files, services, tests).
    4. Ask which of these could break without any existing test failing.
    5. Ask which business rules and invariants govern suspending an account and where each is enforced.
    6. Ask CoreStory to draft the account-suspension spec and check it against the architecture, including acceptance criteria, citations and a test plan.
    7. Reuse the persistent conversation later to continue the work.

    Prerequisites: Repository ingested and refined in CoreStory; GitHub Copilot in VS Code connected to the CoreStory MCP server.

Watch on Microsoft’s site: ODSP2245