temporal-mcp AGENTS.md

temporal-mcp AGENTS.md is an instructions file for Codex, OpenCode from stevekinney/temporal-mcp. It costs 1,359 tokens per session, scanned A, original, MIT.

Project instructions for using Bun, a JavaScript runtime and toolkit, in place of Node.js, npm, pnpm, Vite, and several common libraries.

In plain words
What is it for?
Use them when installing dependencies, running tests, building files, serving applications, accessing databases, or checking that paths stay inside an allowed folder.
Why use it?
They keep development commands and built-in APIs consistent with the project's chosen tools and reduce accidental use of unsupported alternatives.

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

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 temporal-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/stevekinney/temporal-mcp/agents-md.svg)](https://agentmods.dev/instructions/stevekinney/temporal-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/stevekinney/temporal-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/stevekinney/temporal-mcp/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,359 This file is loaded in full into every session.
When invoked 1,359 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.01359 $0.01359
Opus 5 $0.00679 $0.00679
Sonnet 5 $0.00272 $0.00272
Haiku 4.5 $0.00136 $0.00136

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

Security

Grade A, and why

temporal-mcp 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

AGENTS.md · 145 lines

How it starts

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

Default to using Bun instead of Node.js.

  • Use bun <file> instead of node <file> or ts-node <file>
  • Use bun test instead of jest or vitest
  • Use bun build <file.html|file.ts|file.css> instead of webpack or esbuild
  • Use bun install instead of npm install or yarn install or pnpm install
  • Use bun run <script> instead of npm run <script> or yarn run <script> or pnpm run <script>
  • Use bunx <package> <command> instead of npx <package> <command>
  • Bun automatically loads .env, so don't use dotenv.

APIs

  • Bun.serve() supports WebSockets, HTTPS, and routes. Don't use express.
  • bun:sqlite for SQLite. Don't use better-sqlite3.
  • Bun.redis for Redis. Don't use ioredis.
  • Bun.sql for Postgres. Don't use pg or postgres.js.
  • WebSocket is built-in. Don't use ws.
  • Prefer Bun.file over node:fs's readFile/writeFile
  • Bun.$ls instead of execa.

Path Containment Safety

  • When containment checks are based on path.relative, treat absolute outputs (including Windows drive-letter forms) as outside the root boundary.
  • Normalize path separators before prefix checks so containment logic remains separator-agnostic across platforms.

Review Memory Invariants

  • Resolve policy scope first, then use the resolved profile/namespace consistently for policy evaluation, audit context, and client acquisition.
  • Evaluate Temporal policy against resolved profile/namespace values, not raw optional inputs.
  • Enforce policy documentation and behavior that allowPatterns and denyPatterns run before mode checks in every mode.
  • Treat policy allowlist misses as a distinct decision code from deny-pattern matches.
  • Keep capability-matrix contract lookup fail-closed (TOOL_NOT_FOUND) and centralized in shared helpers such as requireToolContract.
  • Never skip policy evaluation when a tool/resource contract lookup fails.
  • Resources must enforce the same policy and redaction guarantees as equivalent tools.
  • Resource resolvers must emit audit tool_call, policy_decision, and tool_result events with request context.
  • Build request context exactly once per handler, then mutate requestContext.profile after scope resolution.
  • Emit exactly one tool_call before any tool_result; if early scope resolution can throw, add catch-path fallback tool_call logging.
  • Emit tool_result logs on all early-error returns so failed paths remain observable.
  • Reuse the original request context through helper-based policy checks to preserve request IDs.
  • Keep audit argument-redaction and response-redaction pattern sets aligned.
  • For unsafe/break-glass gating, check environment-variable presence (=== undefined) rather than truthiness.
  • Documentation path validation must include realpath boundary checks to block symlink escapes.
  • Keep path-containment logic separator-agnostic and avoid redundant/dead traversal guards once normalized boundary checks exist.
  • Status endpoints that summarize index data must rely on metadata persisted at index-build time.
  • Any refresh flow that claims search readiness must rebuild and persist the index in the same operation.
  • Recovery after failed repository sync/subprocess steps must validate exit codes and return structured errors.
  • Decode subprocess Uint8Array output explicitly with TextDecoder before parsing stderr/stdout-derived metadata.
  • SSRF guards for codec endpoints must normalize IPv6 hostnames and treat IPv6-mapped IPv4 addresses as the underlying IPv4 for private-range checks.
  • Codec decode paths must treat any defined payload (including falsy values) as valid; only undefined is an empty result.
  • Legacy registration entrypoints must delegate to the shared ToolRegistrationContext pipeline to preserve policy/audit/redaction behavior.
  • Package export maps must reference real entrypoint files; maintain the src/index.ts barrel when exporting ".".
  • Legacy registration tests should verify stable workflow-level behavior and mock policy-scope connection methods used by shared registration.

Read the full file on GitHub · 145 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 · 145 lines · 1,359 tokens per session scan A 5ae1433e1e43

Subscribe to this mod's changes

temporal-mcp AGENTS.md is an instructions file published in the GitHub repository stevekinney/temporal-mcp (5 stars, last pushed 7d ago), licensed MIT. It adds 1,359 tokens to every session, about $0.0068 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.