ULogViewer AGENTS.md

ULogViewer AGENTS.md is an instructions file for Codex, OpenCode from carina-studio/ULogViewer. It costs 8,483 tokens per session, scanned A, original, MIT.

A coding-style guide for ULogViewer, a .NET application for viewing logs. It defines naming, capitalization, method endings, fields, properties, interfaces, and event-handler conventions.

In plain words
What is it for?
Use it when adding or renaming classes, fields, properties, methods, asynchronous methods, interfaces, constants, or event handlers.
Why use it?
It makes new code fit the existing codebase and reduces confusion caused by inconsistent names or formatting.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions AGENTS.md.

Install

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.

agentmods
npx agentmods add instructions/carina-studio/ulogviewer/agents-md
Clone the repo
git clone --depth 1 https://github.com/carina-studio/ULogViewer

Made for: Codex, OpenCode.

Wrote 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.

agentmods badge for ULogViewer AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/carina-studio/ulogviewer/agents-md.svg)](https://agentmods.dev/instructions/carina-studio/ulogviewer/agents-md)
Your own site
<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>
Per session 8,483 This file is loaded in full into every session.
When invoked 8,483 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured 6d ago against content hash df1f943e5712, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

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.

AGENTS.md · 343 lines

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).
  • using directives outside the namespace declaration. Always import the correct namespace when using a new type; after any code modification, audit every edited file and remove using directives 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 using whose inner using has a multi-line block), the outer statement must use braces.
  • try/catch/finally blocks 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. CurrentOrNull is declared on CarinaStudio.Application, which App inherits it from, so write Application.CurrentOrNullnot App.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 bare Application name; qualify it in a file that also imports Avalonia, where Avalonia.Application would 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.

Read the full file on GitHub · 343 lines

Changes

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.

  1. 6d ago First seen · 343 lines · 8,483 tokens per session scan A df1f943e5712

Subscribe to this mod's changes

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.