LitosAiCodingAgent: Instructions file for Claude Code

CLAUDE.md

LitosAiCodingAgent CLAUDE.md is an instructions file for Claude Code from nitinmms/LitosAiCodingAgent. It costs 884 tokens per session, scanned A, original, Apache-2.0.

Project instructions for an Avalonia desktop application, a cross-platform user-interface framework, with a known scrolling-layout issue.

In plain words
What is it for?
Use them when fixing ScrollViewer layouts in Litos.Gui, especially when the last part of the content cannot be reached.
Why use it?
They identify a specific cause of content being clipped or impossible to reach and give the preferred layout fix.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is nitinmms/LitosAiCodingAgent's own configuration. It tells Claude Code how to work on LitosAiCodingAgent 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 LitosAiCodingAgent configures →

Reuse

Borrowing it

Nothing to install: this file belongs to nitinmms/LitosAiCodingAgent. 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/nitinmms/LitosAiCodingAgent/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/nitinmms/LitosAiCodingAgent

Made for: Claude Code.

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 LitosAiCodingAgent CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nitinmms/litosaicodingagent/claude-md/github.svg)](https://agentmods.dev/instructions/nitinmms/litosaicodingagent/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/nitinmms/litosaicodingagent/claude-md"><img src="https://agentmods.dev/badge/instructions/nitinmms/litosaicodingagent/claude-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 LitosAiCodingAgent CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nitinmms/litosaicodingagent/claude-md"><img src="https://agentmods.dev/badge/instructions/nitinmms/litosaicodingagent/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 884 This file is loaded in full into every session.
When invoked 884 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.00884 $0.00884
Opus 5.5 $0.00354 $0.00354
Sonnet 5.5 $0.00177 $0.00177
Haiku 4.5 $0.00088 $0.00088

Measured 1mo ago against content hash c93fea5579fe, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

LitosAiCodingAgent CLAUDE.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 1mo 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.

CLAUDE.md · 22 lines

How it starts

The opening of the file, as written. The whole thing — 22 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Guidance for Claude Code when working in this repository.

Avalonia (Litos.Gui)

  • Prefer Margin on a ScrollViewer's direct child over Padding on the ScrollViewer itself. In this project's Avalonia version, ScrollViewer.Padding is applied visually but not correctly folded into the scrollable extent calculation — content within the padding region at the trailing edge renders but is permanently unreachable by scrolling (observed as roughly the last Padding amount of content, e.g. one line of text, left as a clipped sliver no resize or layout-invalidation could recover). See ReadMe_AgentDesign.md §7.7 for the full investigation.
    • Diagnostic tell: if clipped/unreachable content is a fixed, roughly-constant amount regardless of window size or added settle time, suspect this Padding-vs-Margin issue before chasing ScrollViewer extent-staleness or virtualization theories. True extent-staleness bugs (e.g. AvaloniaUI/Avalonia#3707/#4011/#3791) are all-or-nothing — a forced relayout recovers everything or nothing, not a fixed sliver.

Context/compaction constants are mirrored in TypeScript (Litos.VsCode)

  • A change to the compaction or context-meter constants in src/Litos.Agent/Session/Compaction.cs must be mirrored by hand in src/Litos.VsCode/src/liveContextUsage.ts. The VS Code extension computes its own running context estimate client-side during a turn (extension.ts's updateLiveUsageForEvent), so liveContextUsage.ts re-implements CompactionSettings.ForContextWindow's TriggerAtTokens and ContextUsage.Compute's banding in TypeScript. Nothing enforces agreement between the two — no codegen, no shared schema, no build-time check. The C# side alone being correct is not enough.
    • Why it matters: the composer-row meter and the breakdown popup are computed by different code (client-side TS vs. server-side C#), and they reconcile only at turn end when refreshContextUsage overwrites the client estimate with the server's figure. Drift is therefore invisible in the popup and visible only mid-turn, in the row below the composer.
    • Diagnostic tell: if the composer-row context number and the "Context Usage" popup disagree while a turn is running but agree once it finishes, the client-side mirror has drifted — check liveContextUsage.ts and agentEvents.ts's messageCompleted parsing before suspecting the server.
    • The tests pin specific numbers on both sides (tests/Litos.Agent.Tests/Session/CompactionPlannerTests.cs and src/Litos.VsCode/src/__tests__/liveContextUsage.test.ts), so a one-sided change fails a test rather than silently rendering a wrong number.

Read the full file on GitHub · 22 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. 1mo ago Changed · +13 lines · +620 tokens per session c93fea5579fe
  2. 2mo ago First seen · 9 lines · 264 tokens per session scan A 3711b8f01da1

Subscribe to this mod's changes

LitosAiCodingAgent CLAUDE.md is an instructions file published in the GitHub repository nitinmms/LitosAiCodingAgent (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 884 tokens to every session, about $0.0035 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-31.

Related

LitosAiCodingAgent CLAUDE.md compared with instructions from other repositories

LitosAiCodingAgent CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
LitosAiCodingAgent CLAUDE.mdnitinmms/LitosAiCodingAgentInstructions file5yesterdayApache-2.0A884Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode