ULogViewer: Instructions file for Codex

AGENTS.md

ULogViewer AGENTS.md is an instructions file for Codex, OpenCode from carina-studio/ULogViewer. It costs 8,507 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.

This is carina-studio/ULogViewer's own configuration. It tells Codex and OpenCode how to work on ULogViewer itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything ULogViewer configures →

Reuse

Borrowing it

Nothing to install: this file belongs to carina-studio/ULogViewer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/carina-studio/ULogViewer/master/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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ULogViewer AGENTS.md

Your own site · 80×15
<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="Reviewed on agentmods" width="80" height="20"></a>
Per session 8,507 This file is loaded in full into every session.
When invoked 8,507 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.08507 $0.08507
Opus 5.5 $0.03403 $0.03403
Sonnet 5.5 $0.01701 $0.01701
Haiku 4.5 $0.00851 $0.00851

Measured 25d ago against content hash e70a0fed4db3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 25d 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 · 344 lines

How it starts

The opening of the file, as written. The whole thing — 344 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.CurrentOrNull — not 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 · 344 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. 25d ago Changed · -104 tokens per session e70a0fed4db3
  2. 2mo ago Changed · +1 lines · +128 tokens per session 3ffe3942086c
  3. 2mo 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 (599 stars, last pushed 9d ago), licensed MIT. It adds 8,507 tokens to every session, about $0.0340 per session on Opus 5.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.

Related

ULogViewer AGENTS.md compared with instructions from other repositories

ULogViewer AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ULogViewer AGENTS.mdcarina-studio/ULogViewerInstructions file5999d agoMITA8,507Codex, OpenCode
plan-forge dapr.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA4,975GitHub Copilot
plan-forge database.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,890GitHub Copilot
plan-forge naming.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,453GitHub Copilot
plan-forge caching.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA733GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode