# US 2026/0064376 A1 · Context-aware code generation and modification

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0064376 A1
- Document ID: US20260064376A1
- Status: Published application
- Kind: A1
- Application number: 19/309,863
- Filed: 2025-08-26
- Published: 2026-03-05
- Earliest claimed: 2024-09-03
- Assignees: For Good AI Inc.
- Applicants: For Good AI Inc.
- Inventors: Andrey Filev; Dmitrii Krasnov
- Web page: https://patentgrep.com/patent/US20260064376A1

## CPC

- G06F 8/36: Software reuse
- G06F 8/30: Creation or generation of source code
- G06F 8/311: {Functional or applicative languages; Rewrite languages}
- G06F 8/33: Intelligent editors
- G06F 8/34: Graphical or visual programming
- G06F 8/35: model driven
- G06F 8/427: {Parsing}
- G06F 8/72: Code refactoring
- G06F 8/75: Structural analysis for program understanding
- G06F 8/77: Software metrics
- G06F 11/362: Debugging of software
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3692: {for test results analysis}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 16/137: {Hash-based (content-based indexing of textual data G06F16/31)}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- G06F 16/24575: {using context}
- G06F 16/3347: {using vector based model}
- G06F 40/30: Semantic analysis
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A system and method for generating computer code are provided. The system receives data indicating a trigger event to initiate code generation and selects a code generation agent based on attributes of the trigger event. The selected agent requests indexed context information from a context indexing component. The context indexing component generates indexed context information including project data associated with a user account, such as existing code, text data, file structure data, open file information, and project documentation. First embeddings are generated from the processed project data and stored in a vector database configured to be queried by the code generation agent. The system can further generate environmental data, hierarchical file structure summarizations, and indexed external data, creating additional embeddings stored in the vector database to provide comprehensive context for code generation.

## Claims

### Claim 1

A system comprising:
one or more processors; and
non-transitory computer-readable media storing computer-executable instructions that, when executed by the one or more processors, cause the system to perform operations comprising:
generating, by a context indexing component, indexed context information including project data associated with an integrated development environment (IDE), wherein the project data includes at least existing computer code, and the indexed context information is stored in a database configured to be queried by code generation agents;
generating an IDE plugin configured generate computer code suggestions in response to receiving first user input at the IDE and prior to receiving second user input at the IDE;
receiving first data indicating first user input received at the IDE, the first user input representing a first portion of computer code in the IDE;
selecting, based at least in part on attributes of the first user input, a code generation agent to generate the computer code suggestions;
retrieving, by the code generation agent that was selected, the indexed context information associated with the IDE from the database;
generating, by a syntax awareness component, code syntax information corresponding to the existing computer code included in the project data;
retrieving, by the code generation agent that was selected, the code syntax information corresponding to the existing computer code included in the project data;
generating, based at least in part on the first portion of the computer code, the indexed context information, and the code syntax information, a first computer code suggestion including a second portion of the computer code; and
causing, by the IDE plugin, the IDE to display the first computer code suggestion in line with the first portion of the computer code.

### Claim 2 (depends on 1)

The system of claim 1, the operations further comprising:
generating, by the context indexing component, synthetic information associated with the project data, wherein the synthetic information is based at least in part on information extracted from the existing computer code and is stored in the database; and
retrieving, by the code generation agent, the synthetic information associated with the project data;
wherein generating the first computer code suggestion is further based at least in part on the synthetic information.

### Claim 3 (depends on 1)

The system of claim 1, the operations further comprising:
generating an abstract syntax tree (AST) representing the existing computer code included in the project data; and
generating the code syntax information based at least in part on traversing the AST to extract the code syntax information.

### Claim 4 (depends on 1)

The system of claim 1, wherein the computer code suggestion comprises at least one of:
a computer code snippet;
a computer code function;
a computer code class; or
a computer code variable name.

### Claim 5

A method comprising:
generating, by a context indexing component, indexed context information including project data associated with an integrated development environment (IDE), wherein the project data comprises at least existing computer code and the indexed context information is stored in a database configured to be queried by code generation agents;
receiving first data indicating first user input received in association with the IDE, the first user input corresponding to a first portion of computer code in the IDE;
selecting, based at least in part on attributes of the first user input, a code generation agent to generate a computer code suggestion associated with the user input;
retrieving, by the code generation agent, the indexed context information from the database;
generating, by a syntax awareness component, code syntax information corresponding to the existing computer code included in the project data;
retrieving, by the code generation agent, the code syntax information corresponding to the existing computer code included in the project data;
generating, based at least in part on the first portion of the computer code, the indexed context information, and the code syntax information, a first computer code suggestion including a second portion of the computer code; and
causing the IDE to display the first computer code suggestion in line with the first portion of the computer code prior to receiving additional user input.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
generating, by the context indexing component, synthetic information associated with the project data, wherein the synthetic information is based at least in part on information extracted from the existing computer code and is stored in the database; and
retrieving, by the code generation agent, the synthetic information associated with the project data;
wherein generating the first computer code suggestion is further based at least in part on the synthetic information.

### Claim 7 (depends on 5)

The method of claim 5, further comprising:
generating an abstract syntax tree (AST) representing the existing computer code included in the project data; and
generating the code syntax information based at least in part on traversing the AST to extract the code syntax information.

### Claim 8 (depends on 5)

The method of claim 5, wherein the computer code suggestion comprises at least one of:
a computer code snippet;
a computer code function;
a computer code class; or
a computer code variable name.

### Claim 9 (depends on 5)

The method of claim 5, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing computer code;
generating, based at least in part on the user input, the additional user input, and the context indexing component processing the project data, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the additional user input subsequent to receiving the additional user input.

### Claim 10 (depends on 5)

The method of claim 5, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing an acceptance of the computer code suggestion;
generating, based at least in part on the user input, the additional user input, and the context indexing component processing the project data, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the computer code suggestion subsequent to receiving the additional user input.

### Claim 11 (depends on 5)

The method of claim 5, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing a rejection of the computer code suggestion;
generating, based at least in part on the user input, the additional user input, and the context indexing component processing the project data, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the user input subsequent to receiving the additional user input.

### Claim 12 (depends on 5)

The method of claim 5, wherein generating the first computer code suggestion further comprises utilizing a large language model (LLM).

### Claim 13

One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
generating, by a context indexing component, indexed context information including project data associated with an integrated development environment (IDE), wherein the project data comprises at least existing computer code and the indexed context information is stored in a database configured to be queried by code generation agents;
receiving first data indicating first user input received in association with the IDE, the first user input corresponding to a first portion of computer code in the IDE;
selecting, based at least in part on attributes of the first user input, a code generation agent to generate a computer code suggestion associated with the user input;
retrieving, by the code generation agent, the indexed context information from the database;
generating, by a syntax awareness component, code syntax information corresponding to the existing computer code included in the project data;
retrieving, by the code generation agent, the code syntax information corresponding to the existing computer code included in the project data;
generating, based at least in part on the first portion of the computer code, the indexed context information, and the code syntax information, a first computer code suggestion including a second portion of the computer code; and
causing the IDE to display the first computer code suggestion in line with the first portion of the computer code prior to receiving additional user input.

### Claim 14 (depends on 13)

The one or more computer-readable media of claim 13, the operations further comprising:
generating, by the context indexing component, synthetic information associated with the project data, wherein the synthetic information is based at least in part on information extracted from the existing computer code and is stored in the database; and
retrieving, by the code generation agent, the synthetic information associated with the project data;
wherein generating the first computer code suggestion is further based at least in part on the synthetic information.

### Claim 15 (depends on 13)

The one or more computer-readable media of claim 13, the operations further comprising:
generating an abstract syntax tree (AST) representing the existing computer code included in the project data; and
generating the code syntax information based at least in part on traversing the AST to extract the code syntax information.

### Claim 16 (depends on 13)

The one or more computer-readable media of claim 13, wherein the computer code suggestion comprises at least one of:
a computer code snippet;
a computer code function;
a computer code class; or
a computer code variable name.

### Claim 17 (depends on 13)

The one or more computer-readable media of claim 13, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing computer code;
generating, based at least in part on the user input, the additional user input, and the code generation agent querying the database, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the additional user input subsequent to receiving the additional user input.

### Claim 18 (depends on 13)

The one or more computer-readable media of claim 13, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing an acceptance of the computer code suggestion;
generating, based at least in part on the user input, the additional user input, and the code generation agent querying the database, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the computer code suggestion subsequent to receiving the additional user input.

### Claim 19 (depends on 13)

The one or more computer-readable media of claim 13, wherein the trigger event is a first trigger event, and the method further comprising:
receiving second data indicating that a second trigger event has occurred, the second trigger event indicative of the additional user input received in association with the IDE, the additional user input representing a rejection of the computer code suggestion;
generating, based at least in part on the user input, the additional user input, and the code generation agent querying the database, an additional computer code suggestion; and
causing the IDE to display the additional computer code suggestion in line with the user input subsequent to receiving the additional user input.

### Claim 20 (depends on 13)

The one or more computer-readable media of claim 13, wherein generating the first computer code suggestion further comprises utilizing a large language model (LLM).
