Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add instructions/carina-studio/ulogviewer/agents-mdgit clone --depth 1 https://github.com/carina-studio/ULogViewerWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/carina-studio/ulogviewer/agents-md)<a href="https://agentmods.dev/instructions/carina-studio/ulogviewer/agents-md"><img src="https://agentmods.dev/badge/instructions/carina-studio/ulogviewer/agents-md.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.08483 | $0.08483 |
| Opus 5 | $0.04241 | $0.04241 |
| Sonnet 5 | $0.01697 | $0.01697 |
| Haiku 4.5 | $0.00848 | $0.00848 |
Grade A, and why
ULogViewer AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 343 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md
This file provides guidance to AI coding agents when working with code in this repository.
Coding Style
Naming
| Element | Convention | Example |
|---|---|---|
| Public properties | PascalCase | AllLogCount, IsActivated |
| Private fields (instance and static) | camelCase; instance fields always qualified with this. |
this.logs, latestPanelSizeKey, defaultTimestampCultureInfo |
| Internal / protected / public fields | PascalCase | TimestampAsc |
Static ObservableProperty fields |
PascalCase + Prop suffix |
AllLogCountProp |
| Private/helper methods | PascalCase | ChangeState(), OnDataSourcePropertyChanged() |
| Public methods | PascalCase | ClearLogs(), Pause() |
| Async methods | Must end with Async |
OnPrepareShuttingDownAsync() |
| Constants | PascalCase | DefaultSidePanelSize |
| Parameters & local variables | camelCase | cancellationToken, logReader |
| Interfaces | I prefix + PascalCase |
ILogDataSource, IDisplayableLogProcessor |
| Event handlers | On prefix |
OnDataSourcePropertyChanged |
All methods use PascalCase regardless of accessibility, per the standard .NET naming convention — a private or internal helper method is named exactly like a public one (ChangeState(), not changeState()). camelCase is reserved for private fields, parameters, and local variables; there is no case in which a method is camelCase. Some existing types still use camelCase for their private methods — that is legacy, not a convention to match, and new methods in those types are PascalCase too.
Field casing follows accessibility, not lifetime — a field is camelCase when it is private (instance or static alike) and PascalCase when it is internal, protected, or public. When adding a field to an existing type, follow the convention already used in that type.
Formatting & Structure
- File-scoped namespaces — use
namespace Foo.Bar;(not block-scoped). usingdirectives outside the namespace declaration. Always import the correct namespace when using a new type; after any code modification, audit every edited file and removeusingdirectives that are no longer referenced.- Allman-style braces — opening brace on its own line for types and methods; single-statement bodies may omit braces, but only when that single statement fits on one line. If the inner statement spans multiple lines (e.g. the outer of a stacked
usingwhose innerusinghas a multi-line block), the outer statement must use braces. try/catch/finallyblocks always use full braces even when the body is a single statement or empty.this.prefix on all instance member accesses (fields and properties). It does not apply to primary-constructor parameters, which are accessed directly by name.- Static members are accessed through the type that declares them, never through a derived type that merely inherits them.
CurrentOrNullis declared onCarinaStudio.Application, whichAppinherits it from, so writeApplication.CurrentOrNull— notApp.CurrentOrNull. Both spellings bind to the identical member, so this is purely about showing the reader where the member actually lives, and about not implying that the derived type adds something it does not.using CarinaStudio;resolves the bareApplicationname; qualify it in a file that also importsAvalonia, whereAvalonia.Applicationwould collide. - Primary constructors preferred over explicit constructors when the body would only assign fields.
- Expression-bodied members for concise single-expression properties and methods.
- Assignments are dedicated statements — never combine an assignment with a value read in the same expression. Do not consume the result of an assignment (
=,??=,++,--, etc.) as a sub-expression (method argument, condition, initializer, return value, expression-bodied member, etc.). Assign on its own line first, then read the variable/field on the following line. This also rules out returning an assignment: a lazily-initialized property must use a block getter that assigns on one line and returns on the next (get { field ??= …; return field; }), not an expression body that consumes the assignment (=> field ??= …). - Enum members are listed consecutively with no blank line between them, even when each carries an XML doc comment.
- Blank lines between members — two blank lines between members of a top-level type; one blank line between members of an inner (nested) type.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen · 343 lines · 8,483 tokens per session scan A df1f943e5712
ULogViewer AGENTS.md is an instructions file published in the GitHub repository carina-studio/ULogViewer (596 stars, last pushed yesterday), licensed MIT. It adds 8,483 tokens to every session, about $0.0424 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
maui uitests.instructions.md
Instructions for dotnet/maui, covering ui testing guidelines for .net maui, ui test structure, two-project requirement, base class and infrastructure and naming conventions.
maui ci-copilot-pipeline-security.instructions.md
Security rules for the Copilot PR-review pipeline. Read before editing.
maui performance-hotpaths.instructions.md
Instructions for dotnet/maui, covering performance-critical path rules, hot paths in maui, allocation avoidance, caching and invalidation and collection iteration.
maui collectionview-windows.instructions.md
Instructions for dotnet/maui, covering collectionview — windows (items/ handler), winui listview/itemsrepeater patterns, data source and change notifications, layout configuration and cross-platform consistency.
Exceptionless AGENTS.md
AGENTS.md instructions for exceptionless/Exceptionless, covering exceptionless, start here, common commands, project map and frontend direction.
codex-provider-sync AGENTS.md
AGENTS.md instructions for Dailin521/codex-provider-sync, covering ai / agent operator guide, vnext architecture baseline, goal, choose the interface and safe operating flow.