kerberos: Instructions file for Codex

AGENTS.md

kerberos AGENTS.md is an instructions file for Codex, OpenCode from mongodb-js/kerberos. It costs 854 tokens per session, scanned A, original, Apache-2.0.

Project-specific instructions for AI coding assistants working on a Node.js native add-on that provides Kerberos authentication for the MongoDB driver. Kerberos is a network login system that lets clients prove their identity to a service.

In plain words
What is it for?
Use them when installing or rebuilding the add-on, changing its Node.js or C++ wrapper, running authentication tests, linting, formatting, or regenerating its documentation.
Why use it?
They explain the required native build dependencies, authentication setup, test requirements, and formatting commands for both JavaScript and C++ code.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mongodb-js/kerberos/agents-md"><img src="https://agentmods.dev/badge/instructions/mongodb-js/kerberos/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 854 This file is loaded in full into every session.
When invoked 854 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.00854 $0.00854
Opus 5.5 $0.00342 $0.00342
Sonnet 5.5 $0.00171 $0.00171
Haiku 4.5 $0.00085 $0.00085

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

Security

Grade A, and why

kerberos 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 2mo 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 · 47 lines

How it starts

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

AGENTS.md

Instructions for AI coding agents working in this repository. This file is the source of truth. Tool-specific files (e.g. CLAUDE.md) should only import it.

Project Overview

kerberos is a Node.js native addon providing Kerberos/GSSAPI authentication, used primarily by the MongoDB Node.js driver for GSSAPI auth. The C++ addon (node-addon-api / N-API 9) wraps GSSAPI on Unix and SSPI on Windows. On install, prebuild-install looks for a prebuilt addon binary, falling back to a source build via node-gyp rebuild (requires system Kerberos dev headers, e.g. libkrb5-dev, on Unix).

Commands

All scripts from package.json:

  • npm install — installs deps and compiles the addon.
  • npx node-gyp rebuild — recompile the addon only.
  • npm test — run mocha tests. Requires a compiled addon and a reachable KDC (configured via KERBEROS_USERNAME/KERBEROS_PASSWORD/KERBEROS_REALM/KERBEROS_HOSTNAME env vars).
  • npm run check:lint — lint JS/TS.
  • npm run format-js — eslint --fix.
  • npm run format-cxx — clang-format the C++ sources in src/.
  • npm run docs — regenerate README.md from JSDoc in lib/index.js (never edit README.md directly, edit etc/README.hbs or the JSDoc).
  • npm run precommit — check-clang-format. Verifies C++ formatting, and is invoked by the pre-commit hook.
  • npm run prepare — points core.hooksPath at .githooks/ so the tracked pre-commit hook is active. Runs automatically on npm install in a clone. It does not run for downstream consumers installing the published package.
  • npm run prebuild — build prebuilt addon binaries (prebuild --runtime napi --strip --verbose --all). Used by CI and release, rarely run locally.

Structure

  • src/ — C++ addon. kerberos.cc defines the N-API bindings.
  • src/unix/ — GSSAPI implementation.
  • src/win32/ — SSPI implementation.
  • lib/index.js — entrypoint: loads the compiled .node binary and exports promisified wrappers plus GSS flag/OID constants.
  • index.d.ts — the public types.
  • binding.gyp — node-gyp config. Selects unix vs win32 sources per platform.
  • test/ — mocha tests, plus test/bundling/webpack for bundler compatibility.

Read the full file on GitHub · 47 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. 2mo ago First seen · 47 lines · 854 tokens per session scan A b30dad3260f6

Subscribe to this mod's changes

kerberos AGENTS.md is an instructions file published in the GitHub repository mongodb-js/kerberos (177 stars, last pushed today), licensed Apache-2.0. It adds 854 tokens to every session, about $0.0034 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-08-30.

Related

kerberos AGENTS.md compared with instructions from other repositories

kerberos AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
kerberos AGENTS.mdmongodb-js/kerberosInstructions file177todayApache-2.0A854Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode