factoryfloor AGENTS.md

Repository instructions for Factory Floor, a macOS application built with Swift and Xcode. They document scripts for building, testing, running, releasing, and regenerating the Xcode project.

In plain words
What is it for?
Use them to build, run, test, clean, package, sign, and notarize the app, and to regenerate its Xcode project when files or project settings change.
Why use it?
They reduce setup mistakes by showing the correct development scripts and when project files must be regenerated after source or configuration changes.

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/alltuner/factoryfloor/agents-md
Clone the repo
git clone --depth 1 https://github.com/alltuner/factoryfloor

Made for: Codex, OpenCode.

Per session 2,578 This file is loaded in full into every session.
When invoked 2,578 The same file — it is already loaded in full.
Security scan C 1 finding. 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.02578 $0.02578
Opus 5 $0.01289 $0.01289
Sonnet 5 $0.00516 $0.00516
Haiku 4.5 $0.00258 $0.00258

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

Security

Grade C, and why

factoryfloor AGENTS.md scanned grade C 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 2d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

refactor: extract env var injection to WorkstreamEnvironment
AGENTS.md · 212 lines

How it starts

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

Factory Floor - Project Instructions

Development Workflow

Build, Test, Run

./scripts/dev.sh build              # debug build (xcodegen + xcodebuild)
./scripts/dev.sh br                 # build and run
./scripts/dev.sh run [dir]          # kill and relaunch (optionally with a directory)
./scripts/dev.sh test               # run XCTest suite
./scripts/dev.sh release            # release build matching CI (hardened runtime)
./scripts/dev.sh release --run      # release build and run
./scripts/dev.sh clean              # clean build artifacts
./scripts/release.sh [version]      # release build: sign, notarize, create DMG
./scripts/build-editor.sh           # rebuild Monaco editor bundle (auto-run by dev.sh)

After code changes

  1. If you added/removed files or changed project.yml: run xcodegen generate first
  2. Build and run: ./scripts/dev.sh br
  3. If tmux mode was on: tmux -L factoryfloor kill-server
  4. If you changed the tmux config: rm -f ~/Library/Caches/factoryfloor/tmux.conf

When to regenerate the Xcode project

Run xcodegen generate when:

  • Adding or removing Swift source files
  • Adding or removing localization files (lproj)
  • Changing project.yml (build settings, dependencies, targets)

Do NOT edit FactoryFloor.xcodeproj directly. It is generated from project.yml.

Developer setup

uvx prek install                    # install pre-commit hooks
uvx prek run --all-files            # run hooks on all files (optional)

Release build

./scripts/release.sh [version]   # builds, signs, notarizes, creates DMG

Git Workflow

Conventional Commits

All commits MUST use Conventional Commits format. This is required for release-please to generate changelogs and version bumps.

Format: type(scope): description

Types:

  • feat: new feature (triggers minor version bump)
  • fix: bug fix (triggers patch version bump)
  • refactor: code change that neither fixes a bug nor adds a feature
  • perf: performance improvement
  • docs: documentation only
  • ci: CI/CD changes
  • chore: maintenance, dependencies, config

Read the full file on GitHub · 212 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. 2d ago First seen · 212 lines · 2,578 tokens per session scan C d223fadab1ba

Subscribe to this mod's changes

factoryfloor AGENTS.md is an instructions file published in the GitHub repository alltuner/factoryfloor (112 stars, last pushed 4d ago), licensed MIT. It adds 2,578 tokens to every session, about $0.0129 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.