Gravity-SaaS-Agent: Instructions file for Codex

AGENTS.md

Gravity-SaaS-Agent AGENTS.md is an instructions file for Codex, OpenCode from mangeshraut712/Gravity-SaaS-Agent. It costs 414 tokens per session, scanned A, original, MIT.

A repository instruction file for Gravity SaaS Agent, a project organized as a monorepo: one repository containing several related applications and shared packages. It documents the layout, setup commands, verification commands, and rules coding agents must follow.

In plain words
What is it for?
Use it when working on the gateway, dashboard, shared packages, or database files in this repository, especially when setting up or validating changes.
Why use it?
It gives agents project-specific context and prevents changes that bypass required checks, database tenant isolation, rate limits, or other safeguards.

Instructions file for CodexOpenCode

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

This is mangeshraut712/Gravity-SaaS-Agent's own configuration. It tells Codex and OpenCode how to work on Gravity-SaaS-Agent 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 Gravity-SaaS-Agent configures →

Reuse

Borrowing it

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

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 Gravity-SaaS-Agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/mangeshraut712/gravity-saas-agent/agents-md/github.svg)](https://agentmods.dev/instructions/mangeshraut712/gravity-saas-agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/mangeshraut712/gravity-saas-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/mangeshraut712/gravity-saas-agent/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 Gravity-SaaS-Agent AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/mangeshraut712/gravity-saas-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/mangeshraut712/gravity-saas-agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 414 This file is loaded in full into every session.
When invoked 414 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.00414 $0.00414
Opus 5.5 $0.00166 $0.00166
Sonnet 5.5 $0.00083 $0.00083
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

Gravity-SaaS-Agent 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 1mo 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 · 39 lines

What it actually says

AGENTS.md — Gravity SaaS Agent

Guidance for coding agents working in this monorepo.

Layout (npm workspaces)

  • apps/gateway — Express API gateway: channel adapters (web, WhatsApp, Telegram, API), rate limiter, circuit breaker, skills engine, MCP client, caching.
  • apps/dashboard — Next.js 15.5 operator dashboard.
  • packages/db, packages/mcp-client, packages/memory, packages/types — shared libraries.
  • supabase/ — schema and Row Level Security policies.

Setup and verification

npm install
npm run dev                # gateway + dashboard concurrently
npm run validate           # typecheck + lint + test (also runs on pre-push)
npm run test:ci            # coverage
npm run docker:up          # full stack via docker-compose

Hard rules

  1. Tenant isolation is enforced in the database. Every new table needs an RLS policy in supabase/; never rely on application-level filtering alone.
  2. Keep the guardrails on the model path: tier-based rate limits (Free 10 / Pro 100 / Business 1000 req/min), the circuit breaker, and the OpenRouter multi-model fallback. A feature that bypasses them is a bug.
  3. Treat billing_events and analytics events as append-only (they are event logs); add new rows rather than mutating history, and add a policy in supabase/schema.sql if you need to enforce it.
  4. Secrets come from environment variables only. No keys in code, fixtures, or docs.
  5. Run npm run validate before proposing a change; workspaces must typecheck independently.

Where to look first

  • README.md → Architecture section for the request path (channel adapter → gateway → skills/MCP → model).
  • SECURITY.md for disclosure and hardening notes.
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. 1mo ago First seen · 39 lines · 414 tokens per session scan A 95e418d7e30b

Subscribe to this mod's changes

Gravity-SaaS-Agent AGENTS.md is an instructions file published in the GitHub repository mangeshraut712/Gravity-SaaS-Agent (8 stars, last pushed 3d ago), licensed MIT. It adds 414 tokens to every session, about $0.0017 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-09-17.

Related

Gravity-SaaS-Agent AGENTS.md compared with instructions from other repositories

Gravity-SaaS-Agent AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Gravity-SaaS-Agent AGENTS.mdmangeshraut712/Gravity-SaaS-AgentInstructions file83d agoMITA414Codex, OpenCode
plan-forge deploy.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,667GitHub Copilot
plan-forge azd.instructions.mdsrnichols/plan-forgeInstructions file62d agoMITA1,500GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot