Arch-Sense: Instructions file for Gemini CLI

GEMINI.md

Arch-Sense GEMINI.md is an instructions file for Gemini CLI from CPT-Dawn/Arch-Sense. It costs 735 tokens per session, scanned B, original, MIT.

A set of project instructions for Gemini CLI, a command-line tool for working with code, describing Arch-Sense and its Rust-based laptop hardware-control application. It documents the project structure, technologies, and how components communicate.

In plain words
What is it for?
Use it when working on the Arch Linux laptop control center, its terminal interface, command-line interface, USB and system interfaces, or background hardware worker.
Why use it?
It gives an agent the project context needed to make changes that fit the existing application and hardware design.

Instructions file for Gemini CLI

Written for Gemini CLI: the file is GEMINI.md.

This is CPT-Dawn/Arch-Sense's own configuration. It tells Gemini CLI how to work on Arch-Sense 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 Arch-Sense configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CPT-Dawn/Arch-Sense. 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/CPT-Dawn/Arch-Sense/main/GEMINI.md
Clone the repo
git clone --depth 1 https://github.com/CPT-Dawn/Arch-Sense

Made for: Gemini CLI.

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 Arch-Sense GEMINI.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/cpt-dawn/arch-sense/gemini-md.svg)](https://agentmods.dev/instructions/cpt-dawn/arch-sense/gemini-md)
Your own site
<a href="https://agentmods.dev/instructions/cpt-dawn/arch-sense/gemini-md"><img src="https://agentmods.dev/badge/instructions/cpt-dawn/arch-sense/gemini-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 735 This file is loaded in full into every session.
When invoked 735 The same file — it is already loaded in full.
Security scan B 1 finding. 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.00735 $0.00735
Opus 5 $0.00367 $0.00367
Sonnet 5 $0.00147 $0.00147
Haiku 4.5 $0.00073 $0.00073

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

Security

Grade B, and why

Arch-Sense GEMINI.md scanned grade B with 1 finding 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

- **Service Management:** `sudo systemctl enable --now arch-sense` (applies settings on boot)
GEMINI.md · 66 lines

How it starts

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

Arch-Sense Project Context

Project Overview

Arch-Sense is a professional, high-performance hardware control center for Acer Predator laptops running Arch Linux. It replaces the Windows-only "PredatorSense" utility.

Core Technologies

  • Language: Rust (2021 Edition)
  • TUI Framework: ratatui with crossterm backend
  • CLI Framework: clap (v4 with derive API)
  • Hardware I/O:
    • rusb (libusb) for per-key RGB lighting via HID protocol
    • sysfs for thermal profiles, fan speeds, and battery management (requires linuwu_sense kernel module)
  • Architecture: Modular and thread-safe. A dedicated hardware worker thread manages blocking I/O (USB/sysfs) and communicates with the main TUI thread via mpsc channels.

System Components

  • src/main.rs: Entry point and CLI argument dispatch.
  • src/cli.rs: Declarative CLI definition using clap.
  • src/commands.rs: Headless CLI command implementations.
  • src/app.rs: Main TUI state machine, event loop, and animation logic.
  • src/hardware.rs: Background worker loop and low-level hardware drivers.
  • src/permissions.rs: Udev, polkit (pkexec), and systemd integration for rootless access.
  • src/ui.rs: Declarative UI rendering layer using ratatui.

Building and Running

Development Commands

  • Build: cargo build
  • Release Build: cargo build --release
  • Run TUI: cargo run
  • Run Tests: cargo test
  • Linting: cargo clippy -- -D warnings
  • Formatting: cargo fmt

Production Commands

  • Check Status: arch-sense --doctor
  • Install Permissions: arch-sense --install-permissions
  • Apply Saved RGB: arch-sense --apply
  • Service Management: sudo systemctl enable --now arch-sense (applies settings on boot)

Development Conventions

Coding Standards

  • Error Handling: Strictly use anyhow::Result for error propagation. Avoid unwrap() and expect() in library modules; use unwrap_or or ? with context.
  • Performance:
    • Prefer borrowing (&T) over cloning where possible.
    • RgbSettings and small data structs should implement Copy.
    • Minimize allocations within the ui.rs rendering loop (use .into_iter() on fixed arrays).
  • Concurrency: Hardware I/O must never block the main thread. Always use the worker pattern in hardware.rs.
  • Types: Use Newtypes and Enums (e.g., ControlId, RgbField) instead of raw strings or magic numbers for hardware attributes.

Read the full file on GitHub · 66 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. 2d ago First seen · 66 lines · 735 tokens per session scan B a716c0ac1298

Subscribe to this mod's changes

Arch-Sense GEMINI.md is an instructions file published in the GitHub repository CPT-Dawn/Arch-Sense (12 stars, last pushed 4mo ago), licensed MIT. It adds 735 tokens to every session, about $0.0037 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.

Related

Other instructions, from other repositories

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens