VirtualClient
Copilot instructions126 starsChanged 7 months agoMITView on GitHub
VirtualClient is a cross-platform benchmarking framework by Microsoft. It runs profile-driven performance benchmarks, stress tests, and qualification workloads on systems (particularly Azure VMs), collecting structured metrics. Supports Windows and Linux on x64 and ARM64. All workloads, dependencies, monitors inherit VirtualClientComponent. Constructor: (IServiceCollection, IDictionary<string, IConvertible>). Lifecycle: IsSupported → InitializeAsync → Validate → ExecuteAsync → CleanupAsync. External binaries run through IProcessProxy (wraps System.Diagnostics.Process). Output captured via ConcurrentBuffer. Tests use InMemoryProcess. Version is read from the VERSION file. Override with VCBuildVersion env var.
In this repositoryOne other file it gives its agents.
- src/VirtualClient/.github/copilot-instructions.mdCopilot instructions
The file
We split this copilot-instructions.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
All workloads, dependencies, monitors inherit VirtualClientComponent.
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Copilot Instructions for VirtualClient
Project Overview
VirtualClient is a cross-platform benchmarking framework by Microsoft. It runs profile-driven performance benchmarks, stress tests, and qualification workloads on systems (particularly Azure VMs), collecting structured metrics. Supports Windows and Linux on x64 and ARM64.
Tech Stack
- Runtime: .NET 9 (
global.json) - Platforms:
linux-x64,linux-arm64,win-x64,win-arm64 - Serialization:
Newtonsoft.Json,YamlDotNet - DI:
Microsoft.Extensions.DependencyInjection - Logging:
Serilog.Extensions.Logging(NOTSerilog) - Testing: NUnit, Moq, AutoFixture
- Code quality: StyleCop.Analyzers, AsyncFixer
- Package versions: Centrally managed via
Directory.Packages.props
Repository Structure
src/VirtualClient/
├── VirtualClient.Main/ # CLI entry point, profiles/
├── VirtualClient.Contracts/ # Base classes (VirtualClientComponent), Metric, Parser/
├── VirtualClient.Core/ # ProfileExecutor, PackageManager, SystemManagement
├── VirtualClient.Common/ # IProcessProxy, ConcurrentBuffer, Telemetry/EventContext
├── VirtualClient.Api/ # REST API for client/server coordination
├── VirtualClient.Actions/ # ~40+ workload executors (OpenSSL/, FIO/, DiskSpd/, ...)
├── VirtualClient.Dependencies/ # Prerequisite installers
├── VirtualClient.Monitors/ # Background monitors
├── VirtualClient.TestFramework/ # MockFixture, InMemoryProcess, test doubles
└── VirtualClient.*.UnitTests/ # Unit test projectsArchitecture Patterns
Component Model
All workloads, dependencies, monitors inherit VirtualClientComponent.
Constructor: (IServiceCollection, IDictionary<string, IConvertible>).
Lifecycle: IsSupported → InitializeAsync → Validate → ExecuteAsync → CleanupAsync.
Process Execution
External binaries run through IProcessProxy (wraps System.Diagnostics.Process).
Output captured via ConcurrentBuffer. Tests use InMemoryProcess.
Build and Test
# Build
./build.sh # or: dotnet build src/VirtualClient/VirtualClient.sln -c Debug
# Test
./build-test.sh # or: dotnet test <project>.csproj -c Debug --filter "Category=Unit"
# Publish
dotnet publish src/VirtualClient/VirtualClient.Main/VirtualClient.Main.csproj -r linux-x64 -c Release --self-containedVersion is read from the VERSION file. Override with VCBuildVersion env var.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

