ApplicationInsights-JS
Copilot instructions685 starsChanged 3 months agoMITView on GitHub
Detailed step-by-step workflow instructions are available as prompt files in .github/prompts/. When asked to perform one of these tasks, always read and follow the corresponding prompt file:
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
79 rules. About 0 are common, 49 are distinctive, and 30 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈49
Distinctive · estimate
This author's own choices. Worth a look.
30
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 33
Do not commit any changes that are only end-of-file whitespace changes
- Very specific: line 34
Ensure all TypeScript files are formatted and imports are reordered correctly by running npm run lint-fix before committing
- Distinctive: line 39
Use ES5-compatible syntax for browser support and target ES5 for modern browsers
- Very specific: line 40
Prefer function declarations over arrow functions for better IE compatibility
- Very specific: line 41
Use var instead of let/const in JavaScript files for ES5 compatibility (use let/const in TypeScript files)
- Very specific: line 47
Branches: Use concise, intent-first kebab-case names that describe the change (e.g., fix-vite8-pure-annotations).
- Distinctive: line 54
Must be const enums with integer values (not strings)
- Very specific: line 55
Use createEnumStyle helper for exported enums
- Distinctive: line 56
All usage should reference the const enum directly
- Distinctive: line 87
Use this pattern for all classes
- Distinctive: line 90
Never add implementation code to the stub methods
- Very specific: line 93
Use _throwInternal for logging diagnostic errors
- Distinctive: line 94
Always include telemetry context in error messages
- Very specific: line 95
Use appropriate logging severity levels: CRITICAL, WARNING, INFORMATION
- Very specific: line 107
Use doPerf() wrapper for performance tracking
- Distinctive: line 108
Avoid synchronous operations that could block the browser
- Distinctive: line 110
Use object pooling for frequently created objects
- Very specific: line 112
Do not use the spread ... operator
- Very specific: line 113
Do not use optional chaining ?
- Very specific: line 114
Do not use the nullish coalescing ??
- Distinctive: line 128
Use existing polyfills rather than creating new ones
- Very specific: line 133
Use doAwait for await operations
- Very specific: line 134
Use doAwaitResponse to handle catch operations for asynchronous operations
- Very specific: line 135
Use createPromise, createSyncPromise, createIdlePromise instead of declaring functions as async
- Distinctive: line 156
Never collect PII (personally identifiable information) by default
- Distinctive: line 160
Follow GDPR/privacy regulations
- Very specific: line 163
Use IPerfManager and IPerfEvent for internal performance tracking
- Very specific: line 173
Use IProcessTelemetryContext for processing pipeline
- Distinctive: line 193
Use framework-agnostic test patterns
- Distinctive: line 195
Test both success and failure scenarios
- Distinctive: line 196
Verify telemetry data structure and content
- Very specific: line 199
Extend AITestClass: All test classes must extend AITestClass from @microsoft/ai-test-framework
- Very specific: line 205
Mandatory Core Cleanup: Always call appInsightsCore.unload(false) in test cleanup to prevent hook pollution between tests
- Very specific: line 206
Extension Teardown: Only call teardown() on extension instances that were NOT added to a core instance.
- Distinctive: line 211
Static Configuration: Test initial configuration setup and validation
- Distinctive: line 214
Configuration Validation: Test both valid and invalid configuration scenarios with proper error handling
- Distinctive: line 249
Respect Package Boundaries: Place tests in the package that owns the functionality being tested
- Distinctive: line 252
Import Resolution: Use proper module imports and avoid direct file path dependencies
- Very specific: line 255
Use Framework Helpers: Use this.hookFetch() instead of custom fetch mocking implementations
- Distinctive: line 256
XMLHttpRequest Testing: Use framework's built-in mechanisms for XHR validation
- Distinctive: line 257
Header Validation: Test both presence and absence of headers based on different configuration modes
- Distinctive: line 258
Network Scenarios: Test success, failure, timeout, and edge cases consistently
- Very specific: line 261
IPromise Return: Use this.testCase() and return IPromise for asynchronous operations instead of deprecated testCaseAsync
- Very specific: line 263
Timing Control: Use this.clock.tick() when useFakeTimers: true for deterministic timing
- Distinctive: line 264
Cleanup in Async: Ensure cleanup happens in both success and failure paths of async tests
- Distinctive: line 288
Comprehensive Coverage: Test all major code paths including edge cases and error conditions
- Distinctive: line 290
Telemetry Validation: Verify telemetry data structure, content, and proper formatting
- Distinctive: line 291
State Testing: Test both empty/null states and populated states for data structures
- Distinctive: line 294
Cross-browser Compatibility: Test across different browser environments and API availability
- Distinctive: line 296
Memory Leak Detection: Verify proper cleanup and resource management in long-running scenarios
- Distinctive: line 297
API Graceful Degradation: Test behavior when browser APIs are unavailable or disabled
- Very specific: line 300
Collocate Tests: Place tests in Tests/ directories within the same package as source code
- Distinctive: line 301
Descriptive Naming: Use clear, descriptive test names that explain the scenario being tested
- Very specific: line 306
Skipping Cleanup: Not calling unload() or teardown() methods leads to test interference
- Distinctive: line 343
Use rollup for optimal bundling
- Distinctive: line 346
Avoid blocking the main thread
- Distinctive: line 347
Use requestIdleCallback when available
- Distinctive: line 353
Avoid memory leaks in long-running applications
- Distinctive: line 354
Use weak references where appropriate
- Distinctive: line 359
All code should be tree-shakable - avoid global side effects
- Very specific: line 360
Use lazy initialization for any globals via ILazyValue interface or similar patterns
- Distinctive: line 363
Avoid executing code at module load time
- Distinctive: line 368
Use TypeScript interfaces for contracts
- Distinctive: line 370
Follow the plugin architecture
- Distinctive: line 371
Use performance monitoring internally
- Distinctive: line 376
Don't block the browser UI thread
- Distinctive: line 377
Avoid throwing unhandled exceptions
- Distinctive: line 378
Don't collect sensitive user data
- Distinctive: line 379
Avoid tight coupling between components
- Distinctive: line 380
Don't ignore browser compatibility
- Distinctive: line 381
Avoid memory leaks in event handlers
- Distinctive: line 386
Use TypeDoc format for public APIs
- Distinctive: line 387
Document complex algorithms and business logic
- Distinctive: line 392
Document all public interfaces thoroughly using TypeDoc comments
- Very specific: line 445
Run npm run setVersion -- -next -release to bump the version
- Very specific: line 446
Update AISKU/README.md CDN version table
- Very specific: line 447
Update RELEASES.md with the new version entry, moving the "Unreleased Changes" content into the new version section
- Very specific: line 448
Update gruntfile.js perfTestVersions array
- Very specific: line 451
Run npm run fullCleanBuild to validate (must be run outside VS Code due to file locks)
≈ “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
GitHub Copilot Instructions for Application Insights JavaScript SDK
Workflow Prompts
Detailed step-by-step workflow instructions are available as prompt files in .github/prompts/. When asked to perform one of these tasks, always read and follow the corresponding prompt file:
- Release PR:
.github/prompts/release-pr.prompt.md— Full workflow for creating a release PR (version bump, README updates, RELEASES.md, gruntfile, lint, commit, and build validation)
Project Overview
This is the Microsoft Application Insights JavaScript SDK - a browser-based telemetry library for monitoring web applications. The SDK tracks page views, user interactions, performance metrics, exceptions, and custom events.
Architecture & Structure
Monorepo Structure
- AISKU/: Main Application Insights SDK package
- AISKULight/: Lightweight version of the SDK
- shared/: Core shared libraries (AppInsightsCore, AppInsightsCommon, 1ds-core-js)
- extensions/: Plugin-based extensions (analytics, dependencies, etc.)
- channels/: Data transmission channels (online, offline, tee)
- tools/: Build and development tools
- examples/: Sample implementations
Key Technologies
- TypeScript/JavaScript: Primary languages (ES5 target for browser compatibility)
- Rush: Monorepo management tool
- Rollup: Module bundler
- Grunt: Task runner
- Dynamic Proto: Dynamic prototype pattern for performance
Code Style & Patterns
Required Before Each Commit
- Do not commit any changes that are only end-of-file whitespace changes
- Ensure all TypeScript files are formatted and imports are reordered correctly by running
npm run lint-fixbefore committing- This will apply ESLint fixes to all TypeScript files
- It will also reorder imports to maintain consistent style
TypeScript/JavaScript Conventions
- Use ES5-compatible syntax for browser support and target ES5 for modern browsers
- Prefer
functiondeclarations over arrow functions for better IE compatibility - Use
varinstead oflet/constin JavaScript files for ES5 compatibility (uselet/constin TypeScript files) - Always use semicolons
- Use 4-space indentation
- Maximum line length: 140 characters
Naming Conventions
- Branches: Use concise, intent-first kebab-case names that describe the change (e.g.,
fix-vite8-pure-annotations). Avoid generic activity names such asinvestigate-issue-2764unless the user explicitly requests them. - Classes: PascalCase (e.g.,
PageViewManager,TelemetryContext) - Interfaces: PascalCase with
Iprefix (e.g.,ITelemetryItem,IPageViewTelemetry) - Methods/Functions: camelCase (e.g.,
trackPageView,sendTelemetry) - Constants: UPPER_SNAKE_CASE (e.g.,
MAX_DURATION_ALLOWED) - Private variables: underscore prefix (e.g.,
_logger,_hasInitialized) - Enums: PascalCase with
eprefix (e.g.,eLoggingSeverity,eInternalMessageId)- Must be const enums with integer values (not strings)
- Use
createEnumStylehelper for exported enums - All usage should reference the const enum directly
Dynamic Proto Pattern
This project uses a unique dynamicProto pattern for performance optimization. This pattern should be used for all classes:
export class MyClass {
constructor() {
dynamicProto(MyClass, this, (_self, _base) => {
// Private variables should be included inside the constructor closure
// They are not publicly visible on the class
let _logger = _self._logger;
let _hasInitialized = false;
// Public methods need @DynamicProtoStub comment for TypeScript definitions
_self.myMethod = () => {
// Method implementation
};
});
}
/**
* @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging
*/
public myMethod(): void {
// This stub will be replaced by the dynamicProto implementation
}
}Key requirements:
- Use this pattern for all classes
- Private variables must be inside the constructor closure
- Public functions need
@DynamicProtoStubcomment for TypeScript definition generation - Never add implementation code to the stub methods
Error Handling
- Use
_throwInternalfor logging diagnostic errors - Always include telemetry context in error messages
- Use appropriate logging severity levels:
CRITICAL,WARNING,INFORMATION
_throwInternal(_logger,
eLoggingSeverity.WARNING,
_eInternalMessageId.InvalidDurationValue,
"Invalid page load duration value",
{ total, network, request, response, dom });Performance Considerations
- Minimize object allocations in hot paths
- Use
doPerf()wrapper for performance tracking - Avoid synchronous operations that could block the browser
- Implement lazy initialization where possible
- Use object pooling for frequently created objects
- Minimize the size of generated JavaScript by avoiding certain TypeScript features:
- Do not use the spread
...operator - Do not use optional chaining
?.operator - Do not use the nullish coalescing
??operator - use||instead - These restrictions will be removed once ES5 support is discontinued
- Do not use the spread
Browser Compatibility
Target Support
- Modern browsers: Chrome, Firefox, Safari, Edge (targeting ES5 for modern browsers)
- Legacy support: Internet Explorer 8+ (ES5 compatibility required)
- Mobile browsers: iOS Safari, Android Chrome
- Non-browser runtimes: Node.js and other browser-like environments (for worker contexts and server-side rendering)
Compatibility Patterns
- Feature detection over browser detection
- Graceful degradation for missing APIs
- Use existing polyfills rather than creating new ones
- Safe API usage with null checks
Async Operations Support
Support async operations using ts-async helpers instead of native async/await:
- Use
doAwaitforawaitoperations - Use
doAwaitResponseto handle catch operations for asynchronous operations - Use
createPromise,createSyncPromise,createIdlePromiseinstead of declaring functions asasync - Return type should use
IPromiseinstead ofPromisefor IE support
const perf = getPerformance();
if (perf && perf.timing && perf.timing.navigationStart) {
// Use performance API
}Telemetry & Data Collection
Core Telemetry Types
- Page Views:
IPageViewTelemetry- Track page navigation - Events:
IEventTelemetry- Custom user actions - Metrics:
IMetricTelemetry- Numeric measurements - Exceptions:
IExceptionTelemetry- Error tracking - Dependencies:
IDependencyTelemetry- External calls - Traces:
ITraceTelemetry- Logging messages
Data Privacy & Compliance
- Never collect PII (personally identifiable information) by default
- Sanitize URLs and remove sensitive query parameters
- Implement data sampling and throttling
- Support opt-out mechanisms
- Follow GDPR/privacy regulations
Performance Monitoring
- Use
IPerfManagerandIPerfEventfor internal performance tracking - Collect browser timing APIs (Navigation Timing, Resource Timing)
- Track page load performance metrics
- Monitor SDK overhead and impact
Plugin Architecture
Plugin Development
- Extend
BaseTelemetryPluginfor new plugins - Implement
ITelemetryPlugininterface - Use
IProcessTelemetryContextfor processing pipeline - Support plugin chaining and dependencies
export class MyPlugin extends BaseTelemetryPlugin {
public processTelemetry(evt: ITelemetryItem, itemCtx?: IProcessTelemetryContext) {
// Process telemetry
this.processNext(evt, itemCtx);
}
}Extension Points
- Telemetry Initializers: Modify telemetry before sending
- Dependency Listeners: Track AJAX/fetch calls
- Channels: Custom data transmission
Testing Patterns
Unit Testing
- Use framework-agnostic test patterns
- Mock browser APIs consistently
- Test both success and failure scenarios
- Verify telemetry data structure and content
Testing Framework Requirements
- Extend AITestClass: All test classes must extend
AITestClassfrom@microsoft/ai-test-framework - Use Framework Tools: Leverage existing framework helpers like
this.hookFetch(),this.useFakeTimers(), andthis.onDone() - Proper Registration: Implement
registerTests()method and usethis.testCase()for test registration - Async Tests: Return
IPromisefrom test functions for asynchronous operations (do not use deprecatedtestCaseAsync)
Critical Cleanup & Resource Management
- Mandatory Core Cleanup: Always call
appInsightsCore.unload(false)in test cleanup to prevent hook pollution between tests - Extension Teardown: Only call
teardown()on extension instances that were NOT added to a core instance;core.unload()handles teardown for initialized extensions - Hook Validation: The framework validates that all hooks are properly removed; tests will fail if cleanup is incomplete
- Resource Isolation: Each test must be completely isolated - no shared state or leftover hooks
Configuration Testing Requirements
- Static Configuration: Test initial configuration setup and validation
- Dynamic Configuration: REQUIRED - All tests that touch configuration must include post-initialization configuration change tests
- onConfigChange Testing: Components using
onConfigChangecallbacks must be tested for runtime configuration updates - Configuration Validation: Test both valid and invalid configuration scenarios with proper error handling
// Example dynamic configuration test pattern
public testDynamicConfig() {
// Initial setup with one config
let initialConfig = { enableFeature: false };
core.initialize(initialConfig, channels);
// Verify initial behavior
Assert.equal(false, component.isFeatureEnabled());
// Update configuration dynamically
core.config.enableFeature = true;
// Note: core.onConfigChange() only registers callbacks, it doesn't trigger changes
// To trigger config change detection, use one of these patterns:
// Option 1: Using fake timers (synchronous)
this.clock.tick(1); // Trigger 1ms timer for config change detection
// Option 2: Async test without fake timers
// return createPromise((resolve) => {
// setTimeout(() => {
// Assert.equal(true, component.isFeatureEnabled());
// resolve();
// }, 10);
// });
// Verify behavior changed (when using fake timers)
Assert.equal(true, component.isFeatureEnabled());
}Package Organization & Dependencies
- Respect Package Boundaries: Place tests in the package that owns the functionality being tested
- Dependency Injection: Extensions must include dependencies in
config.extensionsarray for proper initialization - Cross-Package Coordination: Understand which package owns which functionality when testing integrated features
- Import Resolution: Use proper module imports and avoid direct file path dependencies
HTTP API & Network Testing
- Use Framework Helpers: Use
this.hookFetch()instead of custom fetch mocking implementations - XMLHttpRequest Testing: Use framework's built-in mechanisms for XHR validation
- Header Validation: Test both presence and absence of headers based on different configuration modes
- Network Scenarios: Test success, failure, timeout, and edge cases consistently
Async Testing Patterns
- IPromise Return: Use
this.testCase()and returnIPromisefor asynchronous operations instead of deprecatedtestCaseAsync - Promise Handling: Handle both resolution and rejection paths in async tests
- Timing Control: Use
this.clock.tick()whenuseFakeTimers: truefor deterministic timing - Cleanup in Async: Ensure cleanup happens in both success and failure paths of async tests
// Example async test pattern
this.testCase({
name: "Async operation test",
test: () => {
return createPromise((resolve, reject) => {
// Setup async operation
someAsyncOperation().then(() => {
try {
// Assertions
Assert.ok(true, "Operation succeeded");
resolve();
} catch (e) {
reject(e);
}
}).catch(reject);
});
}
});Unit Testing Best Practices
- Comprehensive Coverage: Test all major code paths including edge cases and error conditions
- Mock Browser APIs: Mock browser APIs consistently using framework-provided mechanisms
- Telemetry Validation: Verify telemetry data structure, content, and proper formatting
- State Testing: Test both empty/null states and populated states for data structures
Browser Testing
- Cross-browser Compatibility: Test across different browser environments and API availability
- Performance Regression: Monitor test execution time and detect performance regressions
- Memory Leak Detection: Verify proper cleanup and resource management in long-running scenarios
- API Graceful Degradation: Test behavior when browser APIs are unavailable or disabled
Test Organization
- Collocate Tests: Place tests in
Tests/directories within the same package as source code - Descriptive Naming: Use clear, descriptive test names that explain the scenario being tested
- Logical Grouping: Group related tests in test suites within the same test class
- Documentation: Include comments explaining complex test scenarios and edge cases
Common Anti-Patterns to Avoid
- Skipping Cleanup: Not calling
unload()orteardown()methods leads to test interference - Custom Implementations: Implementing custom mocks/helpers instead of using framework-provided tools
- Configuration Gaps: Testing only static configuration without dynamic configuration change scenarios
- Hook Pollution: Leaving hooks active between tests causing false positives/negatives
- Incomplete Coverage: Missing edge cases, error conditions, or state transitions
- Deprecated Async: Using deprecated
testCaseAsyncinstead oftestCasewithIPromisereturn
Configuration & Initialization
SDK Configuration
- Support both snippet and npm installation
- Provide sensible defaults
- Allow runtime configuration changes
- Validate configuration parameters
- Configuration names should be descriptive but mindful of browser bundle size by keeping names concise and readable
const config: IConfiguration = {
instrumentationKey: "your-key",
enableAutoRouteTracking: true,
disableTelemetry: false,
samplingPercentage: 100
};Initialization Patterns
- Lazy initialization to minimize startup impact
- Graceful handling of initialization failures
- Support for multiple SDK instances
- Plugin dependency resolution
Performance Guidelines
Bundle Size Optimization
- Tree-shaking friendly exports
- Conditional feature loading
- Minimize third-party dependencies
- Use rollup for optimal bundling
Runtime Performance
- Avoid blocking the main thread
- Use requestIdleCallback when available
- Batch telemetry operations
- Implement efficient queuing mechanisms
Memory Management
- Clean up event listeners on teardown
- Avoid memory leaks in long-running applications
- Use weak references where appropriate
- Implement proper disposal patterns
Code Organization & Tree-Shaking
- Each package should be side-effect free to enable proper tree-shaking
- All code should be tree-shakable - avoid global side effects
- Use lazy initialization for any globals via
ILazyValueinterface or similar patterns - Distinguish between "value not yet checked/assigned" vs "resulting value is null/undefined"
- Export functions and classes individually rather than as default exports
- Avoid executing code at module load time
Common Patterns & Anti-Patterns
✅ Good Practices
- Use TypeScript interfaces for contracts
- Implement proper error boundaries
- Follow the plugin architecture
- Use performance monitoring internally
- Sanitize all user inputs
- Support both sync and async operations
❌ Anti-Patterns
- Don't block the browser UI thread
- Avoid throwing unhandled exceptions
- Don't collect sensitive user data
- Avoid tight coupling between components
- Don't ignore browser compatibility
- Avoid memory leaks in event handlers
Documentation Standards
Code Comments
- Use TypeDoc format for public APIs
- Document complex algorithms and business logic
- Include examples for public methods
- Explain browser compatibility considerations
Interface Documentation
- Document all public interfaces thoroughly using TypeDoc comments
- Include parameter validation requirements
- Include defaults and any relevant examples
- Specify return value contracts
- Note any side effects or state changes
Build & Deployment
Build Process
- Rush for monorepo management
- TypeScript compilation with strict settings
- Rollup bundling with multiple output formats
- Minification and size optimization
Release Process
Version Management
The project uses version.json in the root to track release versions and an automated setVersion.js script to update all packages consistently.
version.json key fields:
release: The current base version (e.g.,"3.4.0")next: The default increment type for-nextflag ("patch","minor", or"major")pkgs: Per-package version overrides (some packages like1ds-*oroffline-channelhave independent version numbers)
Using the setVersion script:
# Common release commands:
npm run setVersion -- -next # Increment based on version.json "next" field (e.g., patch: 3.3.11 => 3.3.12)
npm run setVersion -- -next -release # Increment and remove any pre-release tag
npm run setVersion -- -patch # Force patch increment (x.y.z => x.y.[z+1])
npm run setVersion -- -minor # Force minor increment (x.y.z => x.[y+1].0)
npm run setVersion -- -major # Force major increment (x.y.z => [x+1].0.0)
npm run setVersion -- 3.4.0 # Set an explicit version
# Pre-release variants:
npm run setVersion -- -next -dev # Increment + dev pre-release tag (x.y.z-dev)
npm run setVersion -- -next -beta # Increment + beta pre-release tag (x.y.z-beta)
npm run setVersion -- -next -alpha # Increment + alpha pre-release tag (x.y.z-alpha)
npm run setVersion -- -release # Strip pre-release tag from current version (x.y.z-beta => x.y.z)
# Dry run (logs changes without modifying files):
npm run setVersion -- -next -testWhat setVersion updates:
version.json— updatesreleaseand per-package versions inpkgs- All
package.jsonfiles — updatesversion,publishConfig.tag, and all internal@microsoft/applicationinsights-*and@microsoft/1ds-*dependency references - Source files (
.ts,.tsx,.html) — replaces hardcoded version strings
Creating a Release PR
For the full step-by-step release PR workflow (version bump, README updates, RELEASES.md, gruntfile, lint, commit, and build validation), see the prompt file at .github/prompts/release-pr.prompt.md.
Summary of the steps:
- Run
npm run setVersion -- -next -releaseto bump the version - Update
AISKU/README.mdCDN version table - Update
RELEASES.mdwith the new version entry, moving the "Unreleased Changes" content into the new version section - Update
gruntfile.jsperfTestVersions array - Run
npm run lint-fix - Commit all changes
- Run
npm run fullCleanBuildto validate (must be run outside VS Code due to file locks)
Publishing (post-merge)
npm run npm-package— Creates.tgzpackages for a package groupnpm run npm-publish— Publishes packages to npmnpm run npm-set-latest— Updates the npmlatesttag- Package groups are defined in
tools/release-tools/package_groups.json
General Guidelines
- Semantic versioning
- Automated testing before release
- Bundle size monitoring
- Browser compatibility verification
This document helps GitHub Copilot understand the unique patterns, architecture, and requirements of the Application Insights JavaScript SDK project.
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.

