corresync AGENTS.md

corresync AGENTS.md is an instructions file for Codex, OpenCode from nkiyohara/corresync. It costs 1,305 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for Corresync, a local-first service that connects accounts for email, calendars, tasks, and limited messaging. They define its supported scope, safety rules, architecture, and development process.

In plain words
What is it for?
Building or reviewing Corresync provider integrations, calendar links, task and messaging routes, release gates, and synthetic contract tests.
Why use it?
They prevent unsupported account access and features from being treated as available before the required tests and evidence exist.

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/nkiyohara/corresync/agents-md
Clone the repo
git clone --depth 1 https://github.com/nkiyohara/corresync

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nkiyohara/corresync/agents-md.svg)](https://agentmods.dev/instructions/nkiyohara/corresync/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nkiyohara/corresync/agents-md"><img src="https://agentmods.dev/badge/instructions/nkiyohara/corresync/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,305 This file is loaded in full into every session.
When invoked 1,305 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.01305 $0.01305
Opus 5 $0.00652 $0.00652
Sonnet 5 $0.00261 $0.00261
Haiku 4.5 $0.00130 $0.00130

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

Security

Grade A, and why

corresync 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 · 110 lines

How it starts

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

Repository instructions

Scope

Build Corresync, a local-first, provider-neutral mail, calendar, task, and messaging CLI and MCP server for accounts the signed-in human already controls. Mail and calendar are in scope across providers, including a provider-native Teams or Google Meet join link provisioned as a property of one calendar event. Tasks and the evidence-gated messaging domain are defined in ADRs 0028 and 0034. See ADR 0008 for the accepted scope and ADR 0011 for the rename.

Scope is not capability. Development-route claims require synthetic fixture contract tests and remain live-unobserved until a documented opt-in live observation exists. A route that lacks the complete release evidence remains unreachable even when its adapter code is present.

Teams calls, recordings, presence surveillance, and meeting lifecycle management stay out of scope. Provider-neutral chat and channel messaging is permitted only through the bounded contracts and immutable release gates in ADR 0034; it does not broaden the calendar operation in ADR 0005. Hosted relays, multi-user servers, unattended credential login, TLS interception, tenant-wide or administrative access, and any bypass of authentication, MFA, Conditional Access, a disabled service, or a permission the user does not already have are permanently out of scope. Microsoft Graph is never an implicit dependency, an automatic fallback, or a capability probe; it is used only on explicit user selection or with an authorization the user already granted.

Architecture invariants

  • Dependencies point inward: adapters and transports may depend on application ports; the domain must not import them. Provider adapters translate and hold no policy.
  • CLI and MCP must call the same typed application use cases. No provider gets an escape hatch, an arbitrary action, or a generic property API.
  • Where a web adapter is used, authentication is interactive and browser-owned. Never request or persist a password, app-specific password, OAuth token, cookie, or refresh token in core, and never introduce TLS interception. The configuration schema cannot represent a secret; a standards provider that needs one reads it through the consent-gated external credential port in ADR 0012.
  • Discovery is credential-free, requires valid TLS, and never triggers an administrator-consent or admin-review flow. Automatic selection never starts a Graph or managed Google authorization.
  • Accounts are isolated: opaque stable identity independent of address and alias, with separate sessions, profiles, cursors, caches, and audit context. Reads may aggregate; every write resolves one exact account and container first.
  • Consequential writes use the server-enforced preview/commit protocol, and the approval token stays bound to the exact previewed account, target, and payload.
  • Capabilities are observed per account after sign-in, never inferred from branding. Degradation is reported explicitly and never normalized away.
  • Import scanning is read-only and never reuses another application's secrets. Monitoring, agent dispatch, and data egress are separate opt-ins that default to disabled, and MCP can never enable them.
  • MCP annotations describe effects but never replace core policy checks.
  • Live mailbox tests are opt-in and cannot run in the default test command or CI.
  • Fixtures are synthetic and contain no credentials or personal data.

Read the full file on GitHub · 110 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 · 110 lines · 1,305 tokens per session scan A d436aab5e2be

Subscribe to this mod's changes

corresync AGENTS.md is an instructions file published in the GitHub repository nkiyohara/corresync (1 stars, last pushed 2d ago), licensed Apache-2.0. It adds 1,305 tokens to every session, about $0.0065 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-31.