Epoch AGENTS.md

Epoch AGENTS.md is an instructions file for Codex, OpenCode from KyaniteLabs/Epoch. It costs 648 tokens per session, scanned A, original, Apache-2.0.

A project instruction file for Epoch, a TypeScript server that provides tools for time estimates, date calculations, analytics, costs, risks, and comparing estimates with actual results.

In plain words
What is it for?
Use it when building, testing, type-checking, registering tools, or changing business logic in the Epoch codebase.
Why use it?
It tells a coding agent which commands, architecture boundaries, schemas, tests, and feedback rules must remain consistent.

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/kyanitelabs/epoch/agents-md
Clone the repo
git clone --depth 1 https://github.com/KyaniteLabs/Epoch

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/kyanitelabs/epoch/agents-md.svg)](https://agentmods.dev/instructions/kyanitelabs/epoch/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/kyanitelabs/epoch/agents-md"><img src="https://agentmods.dev/badge/instructions/kyanitelabs/epoch/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 648 This file is loaded in full into every session.
When invoked 648 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.00648 $0.00648
Opus 5 $0.00324 $0.00324
Sonnet 5 $0.00130 $0.00130
Haiku 4.5 $0.00065 $0.00065

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

Security

Grade A, and why

Epoch 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 · 58 lines

How it starts

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

Epoch agent contract

Epoch is a TypeScript MCP server for structured time estimation, temporal math, analytics, cost, risk, and estimate-vs-actual feedback.

Commands and public skill

  • pnpm run build — tsup bundle
  • pnpm test — Vitest
  • pnpm run typecheck — TypeScript check
  • node canary-runner.mjs — function-calling canary
  • skills/epoch/SKILL.md is the public agent skill; keep it aligned with the MCP tool list, CLI commands, and feedback-token workflow.

Architecture

  • src/index.ts — stdio MCP entry point
  • src/dispatcher/ — tool registry and routing
  • src/schemas/ — centralized Zod schemas
  • src/lib/ — pure business logic for estimation, temporal, analytics, cost, risk, profiles, calendar, feedback, self-improvement, and telemetry
  • src/tools/ — MCP registration
  • src/data/ — reference databases

Schemas and tool registrations are shared hot paths. Register tools through the existing server pattern; keep library code independent of MCP concerns. Use co-located Vitest tests and preserve the estimate-vs-actual feedback contract.

Do not put current tool counts, provider endpoints, quotas, release state, or task status in this file. Preserve dirty work, verify current branch/remote/CI and runtime state, and run focused checks before claims. Stop before external, credentialed, public, financial, or destructive actions without approval.

Empower the Orchestrator

This repository is governed by the Empower Orchestrator law. Every top-level/orchestrator agent session is an audition to improve the system, not only finish the current task.

When you notice a repeatable task done 3+ times or a recurring agent failure mode, consider shipping the smallest durable artifact that prevents the repetition: a tool, skill, slash command, hook, guardrail, memory entry, test, verifier, or doctrine doc.

This applies to top-level/orchestrator sessions. Background workers execute their assigned slice and do not independently widen scope.

Read the full file on GitHub · 58 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 · 58 lines · 648 tokens per session scan A bb33bee11035

Subscribe to this mod's changes

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