pyFit-agentic-polygon-nesting: Instructions file for Codex

AGENTS.md

pyFit-agentic-polygon-nesting AGENTS.md is an instructions file for Codex, OpenCode from badass-data-science/pyFit-agentic-polygon-nesting. It costs 4,051 tokens per session, scanned A, original, MIT.

A developer guide for pyFit, a Python tool that places irregular 2D shapes onto rectangular sheets while reducing unused material. It accepts DXF files, a common CAD drawing format, or shape data, and produces DXF layouts plus a JSON usage report.

In plain words
What is it for?
Preparing pyFit for development or publication, running its tests, and understanding its inputs and outputs. It is also a starting point for using the nesting tool or its command-line commands.
Why use it?
It explains how to install, package, test, and use a project whose package, command-line names, and PyPI name differ. It also records that the project is standalone despite its history beside another project.

Instructions file for CodexOpenCode

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

This is badass-data-science/pyFit-agentic-polygon-nesting's own configuration. It tells Codex and OpenCode how to work on pyFit-agentic-polygon-nesting 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 pyFit-agentic-polygon-nesting configures →

Reuse

Borrowing it

Nothing to install: this file belongs to badass-data-science/pyFit-agentic-polygon-nesting. 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/badass-data-science/pyFit-agentic-polygon-nesting/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/badass-data-science/pyFit-agentic-polygon-nesting

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 pyFit-agentic-polygon-nesting AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/badass-data-science/pyfit-agentic-polygon-nesting/agents-md/github.svg)](https://agentmods.dev/instructions/badass-data-science/pyfit-agentic-polygon-nesting/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/badass-data-science/pyfit-agentic-polygon-nesting/agents-md"><img src="https://agentmods.dev/badge/instructions/badass-data-science/pyfit-agentic-polygon-nesting/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 pyFit-agentic-polygon-nesting AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/badass-data-science/pyfit-agentic-polygon-nesting/agents-md"><img src="https://agentmods.dev/badge/instructions/badass-data-science/pyfit-agentic-polygon-nesting/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4,051 This file is loaded in full into every session.
When invoked 4,051 The same file — it is already loaded in full.
Security scan A 1 finding. 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.04051 $0.04051
Opus 5.5 $0.01620 $0.01620
Sonnet 5.5 $0.00810 $0.00810
Haiku 4.5 $0.00405 $0.00405

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

Security

Grade A, and why

pyFit-agentic-polygon-nesting AGENTS.md scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`curl -s https://pypi.org/pypi/<name>/json` — a 404 means available), not
AGENTS.md · 254 lines

How it starts

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

AGENTS.md

Agent-facing guide to working in this repo. For user-facing docs (CLI usage, job spec format, algorithm explanation, known limitations) see README.md.

What this is

pyFit (directory pyFit-agentic-polygon-nesting; importable package and CLI command are pyfit/pyfit-mcp, but the PyPI distribution name is pyfit-agentic-polygon-nesting — see "Naming note" below for why it diverges) is a general-purpose 2D irregular-polygon nesting (bin-packing) tool: given a set of 2D shapes and how many of each are needed, it arranges them onto rectangular sheet stock with minimal wasted material, via a no-fit-polygon (NFP) bottom-left-fill heuristic. It reads part outlines from DXF files or inline polygons and writes one DXF per sheet used plus a JSON utilization report.

It was originally a sibling project to pyLair (pyLair-agentic-geodesics, a geodesic dome calculator) in this same Engineering repo, but has zero code dependency on it — the only link is file-level (pyLair's cutting-template DXF output can be fed in as job-spec input). pyLair has since moved to its own repo; this project is standalone.

Setup

pip install -e ".[test]"

Optional extras: mcp (mcp<2.0 — pinned like pyLair's own mcp extra, since mcp 2.0.0 removed mcp.server.fastmcp entirely; pyfit/mcp_server.py's FastMCP/Image imports and tests/test_mcp_server.py both 404 on 2.0.0's new module layout), and lint (ruff, mypy, types-shapely — what CI runs). test also pulls in pytest-cov; run pytest --cov=pyfit --cov-report=term-missing for a coverage report (note pyfit/cli.py will show as ~0% covered even though tests/test_cli.py exercises it thoroughly — those tests invoke it as a subprocess, which coverage.py can't see into without extra COVERAGE_PROCESS_START plumbing this project doesn't bother with; it's a measurement gap, not an actual testing gap).

Packaging / PyPI readiness

pyproject.toml has PyPI-ready metadata: classifiers, keywords, [project.urls] (Homepage/Repository/Issues/Changelog, all pointing at this GitHub repo), and [tool.setuptools.package-data] shipping pyfit/py.typed (PEP 561 — this package's type hints are meant to be consumed by downstream type checkers, not just its own CI). Verify packaging changes with python -m build (needs the build package) followed by twine check dist/* (needs twine) before trusting them — pyproject.toml syntax errors and missing files don't otherwise surface until an actual publish attempt. Nothing has been published to PyPI yet; publishing is a separate, deliberate step (not something to do as a side effect of a metadata change).

Read the full file on GitHub · 254 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 · 254 lines · 4,051 tokens per session scan A fafbccfde3a4

Subscribe to this mod's changes

pyFit-agentic-polygon-nesting AGENTS.md is an instructions file published in the GitHub repository badass-data-science/pyFit-agentic-polygon-nesting (0 stars, last pushed 3mo ago), licensed MIT. It adds 4,051 tokens to every session, about $0.0162 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

pyFit-agentic-polygon-nesting AGENTS.md compared with instructions from other repositories

pyFit-agentic-polygon-nesting AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pyFit-agentic-polygon-nesting AGENTS.mdbadass-data-science/pyFit-agentic-polygon-nestingInstructions file03mo agoMITA4,051Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,649GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
vscode model-prompts.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA2,022GitHub Copilot