RepoContext model contains all the information about a repository that Beacon uses to generate an AGENTS.md file. It includes metadata, source code, documentation, and API specifications.
Fields
The name of the repository or project.
The contents of the repository’s README file, if present.
An array of source code files analyzed from the repository.
The OpenAPI specification file contents, if the repository has one (typically openapi.json or openapi.yaml).
The package manifest file contents (e.g., Cargo.toml, package.json, requirements.txt) that describes dependencies and project metadata.
The contents of an existing AGENTS.md file, if present. Used to preserve or update existing agent documentation.
Example
Usage
TheRepoContext is constructed internally by Beacon when scanning a repository:
- Repository metadata is extracted (name, README)
- Source files are discovered and categorized by language
- API specifications and package manifests are located
- Any existing AGENTS.md is read for reference