FlyCrys AGENTS.md

FlyCrys AGENTS.md is an instructions file for Codex, OpenCode from SergKam/FlyCrys. It costs 3,102 tokens per session, scanned A, original, MIT.

Project instructions for FlyCrys, including its technology choices, architecture, and rules for building a GTK4 desktop interface in Rust. GTK4 is a toolkit for creating graphical desktop applications.

In plain words
What is it for?
Use them when changing FlyCrys UI or architecture, checking current GTK4 APIs, handling errors, or working with its layered design.
Why use it?
They help prevent use of outdated GTK4 APIs and require application errors to be shown clearly instead of being hidden.

Instructions file for CodexOpenCode

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/sergkam/flycrys/agents-md
Clone the repo
git clone --depth 1 https://github.com/SergKam/FlyCrys

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 FlyCrys AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/sergkam/flycrys/agents-md.svg)](https://agentmods.dev/instructions/sergkam/flycrys/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/sergkam/flycrys/agents-md"><img src="https://agentmods.dev/badge/instructions/sergkam/flycrys/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,102 This file is loaded in full into every session.
When invoked 3,102 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 $0.03102 $0.03102
Opus 5 $0.01551 $0.01551
Sonnet 5 $0.00620 $0.00620
Haiku 4.5 $0.00310 $0.00310

Measured 4d ago against content hash 6f01fa415497, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

FlyCrys 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 4d 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 · 252 lines

How it starts

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

AGENTS.md - FlyCrys

Instructions for AI agents working on this codebase.

Rules

  • NEVER use deprecated GTK4 APIs. No TreeView, TreeStore, CellRenderer*, ListStore (deprecated one). Use modern replacements: ListView, ColumnView, TreeListModel, SignalListItemFactory, TreeExpander, gio::ListStore. No #[allow(deprecated)] annotations.

  • ALWAYS check latest GTK4 API docs before using any GTK API. Do NOT rely on memory or training data — GTK4 APIs change between versions and many are deprecated. Use Context7 (resolve-library-id + query-docs for gtk4-rs) or fetch the official docs at https://docs.rs/gtk4 and https://docs.gtk.org/gtk4/ to verify that the API you're about to use is current and not deprecated. When in doubt, look it up.

  • Handle errors properly — show the reason to the user. Never silently swallow errors. Follow these rules:

    In UI code: Show meaningful error messages to the user. Use gtk::AlertDialog (NOT the deprecated MessageDialog):

    // Correct pattern — AlertDialog with detail
    let dialog = gtk::AlertDialog::builder()
        .message("Operation failed")
        .detail(&format!("Could not open file: {err}"))
        .build();
    dialog.show(Some(&window));
    

    For errors inside the agent panel, use agent_widgets::create_system_message() to display the error inline with the reason.

    In service code: Return Result<T, String> (or a proper error type) with a descriptive message that includes the underlying cause. Never discard the why:

    // Bad — reason is lost
    fs::read_to_string(path).ok();
    command.spawn().ok();
    
    // Good — reason is propagated
    fs::read_to_string(path).map_err(|e| format!("Failed to read {}: {e}", path.display()))?;
    

    Specifically:

    • eprintln!() is acceptable for debug/logging but is NOT a substitute for user-visible feedback
    • .unwrap() is only acceptable on infallible operations (e.g., GTK widget downcasts inside factory callbacks where the type is guaranteed). Never on I/O, parsing, or network operations.
    • .ok() that discards a result is a code smell — justify it with a comment or handle the error
    • For async dialog callbacks (FileDialog, AlertDialog), check for GtkDialogError::Dismissed — that's the user choosing to cancel, not an error worth reporting

Read the full file on GitHub · 252 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. 4d ago First seen · 252 lines · 3,102 tokens per session scan A 6f01fa415497

Subscribe to this mod's changes

FlyCrys AGENTS.md is an instructions file published in the GitHub repository SergKam/FlyCrys (31 stars, last pushed 2mo ago), licensed MIT. It adds 3,102 tokens to every session, about $0.0155 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.