better-auth-firebase-auth AGENTS.md

better-auth-firebase-auth AGENTS.md is an instructions file for Codex, OpenCode from yultyyev/better-auth-firebase-auth. It costs 2,238 tokens per session, scanned A, original, MIT.

Repository instructions for Better Auth Firebase Auth, a plugin that connects Better Auth to Firebase sign-in services. They document the project state and the supported Google, email/password, and password-reset flows.

In plain words
What is it for?
Useful when changing, testing, or extending the plugin's server endpoints, hooks, client methods, documentation, or examples.
Why use it?
They give a coding agent the project context needed to work on the plugin without guessing which authentication providers and features are implemented.

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/yultyyev/better-auth-firebase-auth/agents-md
Clone the repo
git clone --depth 1 https://github.com/yultyyev/better-auth-firebase-auth

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 better-auth-firebase-auth AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/yultyyev/better-auth-firebase-auth/agents-md.svg)](https://agentmods.dev/instructions/yultyyev/better-auth-firebase-auth/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/yultyyev/better-auth-firebase-auth/agents-md"><img src="https://agentmods.dev/badge/instructions/yultyyev/better-auth-firebase-auth/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,238 This file is loaded in full into every session.
When invoked 2,238 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.02238 $0.02238
Opus 5 $0.01119 $0.01119
Sonnet 5 $0.00448 $0.00448
Haiku 4.5 $0.00224 $0.00224

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

Security

Grade A, and why

better-auth-firebase-auth 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 · 242 lines

How it starts

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

AI Assistant Guidelines

This document provides additional context for AI assistants working on this Better Auth Firebase Auth plugin project. Please read README.md first for project overview and features.

Note: All planned phases are complete. The plugin is fully implemented and ready for use.

Quick Reference

Current Project State

Phase 1: Project Foundation ✅ Complete Phase 2: Types and Core Structure ✅ Complete Phase 3: Server Plugin - Endpoints ✅ Complete Phase 4: Server Plugin - Hooks ✅ Complete Phase 5: Client Plugin - Methods ✅ Complete Phase 6: Tests ✅ Complete Phase 7: CI/CD and Example Project ✅ Complete

Supported Firebase Auth Providers

The plugin currently implements a subset of Firebase Authentication methods:

Implemented Providers

  • Google OAuth (/firebase-auth/sign-in-with-google endpoint)
  • Email/Password (/firebase-auth/sign-in-with-email endpoint)
  • Password Reset with email verification and custom URLs
    • /firebase-auth/send-password-reset - Send reset email
    • /firebase-auth/verify-password-reset-code - Verify reset code
    • /firebase-auth/confirm-password-reset - Complete password reset

Not Implemented (but available in Firebase Auth)

Social Providers:

  • Facebook, GitHub, Twitter/X, Microsoft, Apple, Yahoo, LinkedIn

Phone/SMS Authentication:

  • Phone number sign-in with SMS verification
  • Multi-factor authentication (MFA)

Other Methods:

  • Anonymous authentication
  • Custom authentication tokens
  • SAML/OIDC providers
  • Game Center (iOS), Play Games (Android)

Key Implementation Pattern

All authentication methods follow the same core flow:

Read the full file on GitHub · 242 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 · 242 lines · 2,238 tokens per session scan A e8a414fcbb41

Subscribe to this mod's changes

better-auth-firebase-auth AGENTS.md is an instructions file published in the GitHub repository yultyyev/better-auth-firebase-auth (19 stars, last pushed 3d ago), licensed MIT. It adds 2,238 tokens to every session, about $0.0112 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-30.