frappe-agent AGENTS.md

frappe-agent AGENTS.md is an instructions file for Codex, OpenCode from Dkm0315/frappe-agent. It costs 577 tokens per session, scanned A, original, MIT.

Repository instructions for Frappe Framework and related business applications such as ERPNext. Frappe is a Python-based platform for building business software, and Bench is its command-line environment for managing sites and apps.

In plain words
What is it for?
Use them when working on Frappe, ERPNext, Bench, or related apps, including forms, fields, scripts, reports, dashboards, and web interfaces.
Why use it?
They help an agent understand the project before changing it and choose built-in configuration options before writing invasive custom code. They also reduce mistakes caused by using the wrong app, site, database method, or frontend approach.

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/dkm0315/frappe-agent/agents-md
Clone the repo
git clone --depth 1 https://github.com/Dkm0315/frappe-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 frappe-agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/dkm0315/frappe-agent/agents-md.svg)](https://agentmods.dev/instructions/dkm0315/frappe-agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/dkm0315/frappe-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/dkm0315/frappe-agent/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 577 This file is loaded in full into every session.
When invoked 577 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.1 $0.00577 $0.00577
Opus 5 $0.00289 $0.00289
Sonnet 5 $0.00115 $0.00115
Haiku 4.5 $0.00058 $0.00058

Measured 5d ago against content hash 7e3299c0389b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

frappe-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 5d 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 · 43 lines

How it starts

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

Frappe Agent Instructions

Use this repository when the task touches Frappe Framework, ERPNext, Bench, or Frappe ecosystem apps such as Helpdesk, CRM, LMS, Gameplan, Drive, HRMS, Insights, Builder, or Payments.

Core Behavior

  • Inspect the bench, site, app, and repo context before proposing commands.
  • Prefer the narrowest valid Frappe customization layer.
  • Treat Custom Field, Property Setter, Client Script, Server Script, Workspace, Web Page, Report, and Dashboard as first-class options before invasive code changes.
  • Prefer Frappe-native APIs and ORM patterns before raw SQL.
  • Treat raw SQL and get_all as deliberate choices that need explanation.
  • Separate frontend choices into desk-native, www, Vue/frappe-ui, React, or external SPA.
  • When creating DocTypes, design the form UX deliberately with useful tabs, sections, and columns; include only fields that serve the actual use case.
  • Route app-specific work through the matching ecosystem model: ERPNext, Helpdesk, CRM, LMS, Gameplan, Drive, HRMS, Insights, Builder, or Payments.

Bench Guidance

  • Check sites/apps.txt, sites/common_site_config.json, installed apps, target site, and process state before mutating anything.
  • Do not restart an already running bench without a reason.
  • Call out risky bench flags and risky app/version operations explicitly.

App Provenance

  • Treat apps whose git remote is not an official Frappe remote as custom or custom-derived.
  • Prefer layering changes in a custom app instead of patching upstream-derived apps directly.

ERPNext Guidance

  • First determine whether a request belongs in configuration, workflow, metadata, reporting, dashboards, workspace setup, or code.
  • Be broad on ERPNext module awareness, but explicit about confidence and source grounding.

Ecosystem App Guidance

  • For Helpdesk, prioritize ticket lifecycle, SLA, assignment, portal, and support reporting.
  • For CRM, separate leads, deals, contacts, organizations, activities, and ERPNext Selling handoff.
  • For LMS, protect enrollment, learner progress, assessments, grading, and certificates.
  • For Gameplan, preserve async discussion, decision, task, and workspace history.
  • For Drive, protect file permissions, sharing state, storage paths, previews, and linked records.
  • For HRMS, be careful with payroll, attendance, leave, claims, salary, and personal data.
  • For Insights, define metric grain, filters, permissions, freshness, and dashboard decision paths.
  • For Builder, optimize page UX, web forms, routing, SEO metadata, and content ownership.
  • For Payments, protect secrets, verify webhooks where possible, and keep payment/accounting flows idempotent.

Read the full file on GitHub · 43 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. 5d ago First seen · 43 lines · 577 tokens per session scan A 7e3299c0389b

Subscribe to this mod's changes

frappe-agent AGENTS.md is an instructions file published in the GitHub repository Dkm0315/frappe-agent (23 stars, last pushed 6d ago), licensed MIT. It adds 577 tokens to every session, about $0.0029 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.