advanced-calc-engine: Instructions file for Codex

AGENTS.md

advanced-calc-engine AGENTS.md is an instructions file for Codex, OpenCode from surajpanwar/advanced-calc-engine. It costs 410 tokens per session, scanned A, original, MIT.

Project instructions for AdvancedCalc Engine, a system that uses agents and Python to analyze, calculate, and safely modify Excel workbooks.

In plain words
What is it for?
Use it to guide agents that inspect workbooks, plan calculations, apply approved changes, validate results, run tests, and keep an audit trail.
Why use it?
It prevents accidental workbook changes, unchecked calculations, lost source data, hidden errors, and exposed secrets.

Instructions file for CodexOpenCode

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

This is surajpanwar/advanced-calc-engine's own configuration. It tells Codex and OpenCode how to work on advanced-calc-engine 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 advanced-calc-engine configures →

Reuse

Borrowing it

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

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 advanced-calc-engine AGENTS.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/surajpanwar/advanced-calc-engine/agents-md"><img src="https://agentmods.dev/badge/instructions/surajpanwar/advanced-calc-engine/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 410 This file is loaded in full into every session.
When invoked 410 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.00410 $0.00410
Opus 5.5 $0.00164 $0.00164
Sonnet 5.5 $0.00082 $0.00082
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

advanced-calc-engine 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 · 100 lines

What it actually says

AdvancedCalc Engine

Project Purpose

AdvancedCalc Engine is an agentic Excel analysis and calculation platform.

The system uses OpenCode agents, MCP tools and Python to:

  1. Understand Excel workbook structure.
  2. Analyze user requests.
  3. Create an execution plan.
  4. Execute calculations.
  5. Modify Excel workbooks safely.
  6. Validate results.
  7. Run automated tests.
  8. Maintain an audit trail.

Architecture

The system contains:

  • Architect Agent
  • Engineer Agent
  • Validation Agent
  • Security Auditor Agent
  • Excel Metadata Tool
  • Calculation Engine
  • Formula Writer
  • Workbook Validator
  • MCP Server
  • Pytest validation
  • Audit logging

Core Rules

  1. Analyze before modifying.
  2. Never blindly modify a workbook.
  3. Never overwrite source data unless explicitly requested.
  4. Create backups before destructive operations.
  5. Validate workbook structure before calculations.
  6. Validate results after modification.
  7. Never silently ignore errors.
  8. Log important operations.
  9. Never expose secrets.
  10. Never execute unrestricted arbitrary Python code.

Agent Responsibilities

Architect:

  • Analyze
  • Plan
  • Do not modify

Engineer:

  • Execute
  • Calculate
  • Modify approved workbook areas

Validator:

  • Independently verify results
  • Do not modify the workbook

Security Auditor:

  • Identify security risks
  • Do not modify application code

Python Standards

Use:

  • Type hints
  • Pydantic models
  • Clear function boundaries
  • Exception handling
  • Logging
  • Pytest
  • Small testable functions

Excel Safety

Before modifying Excel:

  1. Verify file exists.
  2. Verify worksheet exists.
  3. Verify expected columns exist.
  4. Verify target range.
  5. Create backup.
  6. Apply changes.
  7. Reopen workbook.
  8. Validate changes.

Security

Never:

  • Execute arbitrary user Python.
  • Read .env secrets through tools.
  • Expose API keys.
  • Delete files without approval.
  • Modify unrelated workbooks.
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 · 100 lines · 410 tokens per session scan A 8676422db1f7

Subscribe to this mod's changes

advanced-calc-engine AGENTS.md is an instructions file published in the GitHub repository surajpanwar/advanced-calc-engine (0 stars, last pushed 2mo ago), licensed MIT. It adds 410 tokens to every session, about $0.0016 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-31.

Related

advanced-calc-engine AGENTS.md compared with instructions from other repositories

advanced-calc-engine AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
advanced-calc-engine AGENTS.mdsurajpanwar/advanced-calc-engineInstructions file02mo agoMITA410Codex, OpenCode
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
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode