TimeCapsule-Pi: Instructions file for Codex

AGENTS.md

TimeCapsule-Pi AGENTS.md is an instructions file for Codex, OpenCode from rizal72/TimeCapsule-Pi. It costs 2,682 tokens per session, scanned B, original, MIT.

Project instructions for TimeCapsule-Pi, a Raspberry Pi backup server built with Bash and configuration files for Samba and Avahi.

In plain words
What is it for?
They guide changes and manual checks for the backup server, network file sharing, service status, configuration validity, and local share access.
Why use it?
They explain the project's unusual manual workflow, including where the code lives, how it reaches the Raspberry Pi, and which checks are available without an automated test system.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: positional $N argument; mentions AGENTS.md.

This is rizal72/TimeCapsule-Pi's own configuration. It tells Codex and OpenCode how to work on TimeCapsule-Pi 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 TimeCapsule-Pi configures →

Reuse

Borrowing it

Nothing to install: this file belongs to rizal72/TimeCapsule-Pi. 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/rizal72/TimeCapsule-Pi/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/rizal72/TimeCapsule-Pi

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 TimeCapsule-Pi AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/rizal72/timecapsule-pi/agents-md/github.svg)](https://agentmods.dev/instructions/rizal72/timecapsule-pi/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/rizal72/timecapsule-pi/agents-md"><img src="https://agentmods.dev/badge/instructions/rizal72/timecapsule-pi/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 TimeCapsule-Pi AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/rizal72/timecapsule-pi/agents-md"><img src="https://agentmods.dev/badge/instructions/rizal72/timecapsule-pi/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 2,682 This file is loaded in full into every session.
When invoked 2,682 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.02682 $0.02682
Opus 5.5 $0.01073 $0.01073
Sonnet 5.5 $0.00536 $0.00536
Haiku 4.5 $0.00268 $0.00268

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

Security

Grade B, and why

TimeCapsule-Pi AGENTS.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 24d 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.

# Usage: sudo ./install.sh
AGENTS.md · 389 lines

How it starts

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

AGENTS.md - Guidelines for Agentic Coding Assistants

This file provides coding conventions and guidelines for TimeCapsule-Pi, a Raspberry Pi-based Time Machine backup server.

Project Overview

Technology Stack:

  • Language: Bash scripting
  • Configuration: INI (Samba), XML (Avahi)
  • Target OS: Raspberry Pi OS (Debian-based)
  • Services: Samba, Avahi
  • No: build system, automated tests, package managers

Repository & Deployment:

  • The repo lives ONLY on this Mac (MacBook of Riccardo)
  • The Pi4 (100.124.43.88 / pi4.tail9350d7.ts.net via Tailscale) does not have the repo cloned
  • Code deployed on Pi4 is applied manually or via install.sh
  • SSH: ssh [email protected] (or direct IP 100.124.43.88)
  • Public repo (MIT, github.com/rizal72/TimeCapsule-Pi): everything committed is visible to anyone

Commands

No Build/Lint/Test Framework

This project uses shell scripts and configuration files. No automated build, lint, or test commands exist.

Manual Testing Commands

# Validate Samba configuration
testparm

# Check Samba version and vfs_fruit support
smbd --version
smbd -b | grep vfs_fruit

# Check service status
systemctl status smbd nmbd avahi-daemon

# Test Samba share locally
smbclient -L localhost -U username

# List available Samba shares
smbclient -L localhost -U username% -c 2>/dev/null

# Check mount point
mountpoint -q /mnt/timecapsule
df -h | grep timecapsule

# Browse Avahi services
avahi-browse -a --terminate

# Check USB drives
lsblk
lsusb

Tailscale / Remote Access

# SSH to Pi4
ssh [email protected]
# or
ssh [email protected]

# Check Samba reachable via Tailscale from Mac
nc -zv pi4.tail9350d7.ts.net 445

# Mount Time Capsule share via Tailscale
open smb://pi4.tail9350d7.ts.net/TimeCapsule

Testing Single Functions in install.sh

To test specific functions manually:

# Source the script to access functions
source ./install.sh

# Call individual functions (may require root)
check_system
detect_usb_drives

Read the full file on GitHub · 389 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. 24d ago Changed · +6 lines · +121 tokens per session aa9bd6400858
  2. 2mo ago First seen · 383 lines · 2,561 tokens per session scan B d3a93399dc26

Subscribe to this mod's changes

TimeCapsule-Pi AGENTS.md is an instructions file published in the GitHub repository rizal72/TimeCapsule-Pi (51 stars, last pushed 25d ago), licensed MIT. It adds 2,682 tokens to every session, about $0.0107 per session on Opus 5.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-08-30.

Related

TimeCapsule-Pi AGENTS.md compared with instructions from other repositories

TimeCapsule-Pi AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
TimeCapsule-Pi AGENTS.mdrizal72/TimeCapsule-PiInstructions file5125d agoMITB2,682Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot