apple-calendar-cli: Instructions file for Codex

AGENTS.md

apple-calendar-cli AGENTS.md is an instructions file for Codex, OpenCode from sichengchen/apple-calendar-cli. It costs 585 tokens per session, scanned A, original, MIT.

Repository instructions for developing a Swift command-line program that accesses Apple Calendar. They describe the code layout, build commands, tests, permissions, and release checks.

In plain words
What is it for?
Use them when building, testing, organising, or releasing the apple-calendar-cli project.
Why use it?
They give a coding agent the project-specific rules it needs before editing or testing the repository. This reduces mistakes such as putting code in the wrong directory or using the wrong verification command.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is sichengchen/apple-calendar-cli's own configuration. It tells Codex and OpenCode how to work on apple-calendar-cli 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 apple-calendar-cli configures →

Reuse

Borrowing it

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

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 apple-calendar-cli AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/sichengchen/apple-calendar-cli/agents-md"><img src="https://agentmods.dev/badge/instructions/sichengchen/apple-calendar-cli/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 585 This file is loaded in full into every session.
When invoked 585 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.00585 $0.00585
Opus 5.5 $0.00234 $0.00234
Sonnet 5.5 $0.00117 $0.00117
Haiku 4.5 $0.00059 $0.00059

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

Security

Grade A, and why

apple-calendar-cli 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 29d 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 · 39 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

This Swift 6 package targets macOS 14+ and uses ArgumentParser and EventKit. Sources/apple-calendar-cli/AppleCalendarCLI.swift registers subcommands and global options. Keep CLI parsing in Commands/, Calendar access and skill installation in Services/, output representations in Models/, and shared helpers in Utilities/.

XCTest files live in Tests/apple-calendar-cli-tests/. The bundled agent reference is skills/apple-calendar-cli/SKILL.md. Info.plist supplies embedded Calendar permission metadata; scripts/ and .github/workflows/ handle verification and releases.

Build, Test, and Development Commands

  • make build: build the debug executable with SwiftPM.
  • swift run apple-calendar-cli --help: run locally and inspect available commands.
  • swift test: run the XCTest suite.
  • swift test --filter DateParserTests: run a focused test class.
  • make release: build an optimized executable and apply its local code signature.
  • bash scripts/verify-permissions.sh .build/release/apple-calendar-cli: verify embedded permission metadata and signing identity.
  • make install PREFIX="$HOME/.local": build and install into a custom prefix.
  • swiftlint lint: check style when SwiftLint is installed.

Coding Style & Naming Conventions

Use four-space indentation, UpperCamelCase types, and lowerCamelCase properties and functions. Match filenames to their primary type, such as CreateEventCommand.swift. Use kebab-case CLI names and flags, such as create-event and --all-day.

Follow .swiftlint.yml: line lengths warn at 120 characters and fail at 150; trailing commas are allowed. Preserve existing JSON field names and date/time behavior. Update README usage and the bundled skill when command behavior changes.

Testing Guidelines

Name test files <Type>Tests.swift and test methods test<Behavior>. Cover invalid inputs, timezone behavior, and filesystem edge cases when relevant. Use temporary directories for installer tests and remove them during teardown. No numeric coverage threshold is configured. Before submitting code changes, run the tests, release build, and permission verification used by CI.

Read the full file on GitHub · 39 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. 29d ago First seen · 39 lines · 585 tokens per session scan A 4cbd87b85dfd

Subscribe to this mod's changes

apple-calendar-cli AGENTS.md is an instructions file published in the GitHub repository sichengchen/apple-calendar-cli (9 stars, last pushed 13d ago), licensed MIT. It adds 585 tokens to every session, about $0.0023 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-10-09.

Related

apple-calendar-cli AGENTS.md compared with instructions from other repositories

apple-calendar-cli AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
apple-calendar-cli AGENTS.mdsichengchen/apple-calendar-cliInstructions file913d agoMITA585Codex, OpenCode
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