GPaste AGENTS.md

A repository guide for working on Keruspe/GPaste, a clipboard manager for Linux. It documents the build commands, code conventions, D-Bus interfaces, and optional features.

In plain words
What is it for?
Use it when building, configuring, or changing GPaste with Meson and Ninja, or when working on its GNOME, encryption, database, or keyring features.
Why use it?
It gives coding agents the project rules and build details they need, including which missing dependencies can silently disable features.

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/keruspe/gpaste/agents-md
Clone the repo
git clone --depth 1 https://github.com/Keruspe/GPaste

Made for: Codex, OpenCode.

Per session 39,656 This file is loaded in full into every session.
When invoked 39,656 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.39656 $0.39656
Opus 5 $0.19828 $0.19828
Sonnet 5 $0.07931 $0.07931
Haiku 4.5 $0.03966 $0.03966

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

Security

Grade A, and why

GPaste 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 3d 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 · 407 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Build

GPaste uses Meson + Ninja:

meson setup build
ninja -C build

The build directory is build, not builddir.

Build options (meson setup build -Doption=value, or meson configure build). The feature ones default to auto: enabled when the dependency is found, skipped otherwise, so a build silently loses a feature if its dependency is missing — pass enabled to make that fatal.

Option Type Default Description
encryption feature auto libsodium-based history encryption (G_PASTE_ENABLE_ENCRYPTION)
sqlite feature auto SQLite storage backends, needs SQLite ≥ 3.35 (G_PASTE_ENABLE_SQLITE)
libsecret feature auto passphrase in the keyring, only with encryption (G_PASTE_ENABLE_LIBSECRET)
pwquality feature auto passphrase strength rating, only with encryption (G_PASTE_ENABLE_PWQUALITY)
gnome-shell bool true GNOME Shell extension + mutter clipboard backend (G_PASTE_ENABLE_GNOME_SHELL)
introspection bool true Generate GIR data
vapi bool true Generate Vala bindings (errors out without introspection)
systemd bool true systemd user unit
bash-completion, zsh-completion, fish-completion bool true Shell completions

Four string options — dbus-services-dir, dbus-interfaces-dir, control-center-keybindings-dir and systemd-user-unit-dir — override install paths that are otherwise queried from dbus-1 (the first two), gnome-keybindings and systemd via pkg-config. Setting them is how a packager avoids pulling those in as build dependencies; they are still required at runtime.

For a lighter build that skips the GNOME Shell extension, GIR introspection data and Vala bindings (the daemon, UI and preferences apps are always built):

meson setup build -Dgnome-shell=false -Dintrospection=false -Dvapi=false

Read the full file on GitHub · 407 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. 3d ago First seen · 407 lines · 39,656 tokens per session scan A a1e6c7a107db

Subscribe to this mod's changes

GPaste AGENTS.md is an instructions file published in the GitHub repository Keruspe/GPaste (920 stars, last pushed 3d ago), licensed BSD-2-Clause. It adds 39,656 tokens to every session, about $0.1983 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.