ifc-lite AGENTS.md

Project instructions for ifc-lite, a browser-first toolkit for viewing and processing IFC building models. IFC is a standard BIM file format used to exchange construction-model data.

In plain words
What is it for?
Use them when changing the Rust core, command-line or server tools, WebAssembly builds, TypeScript packages, or web viewers, while preserving IFC data accuracy.
Why use it?
They explain where the project's core model logic lives and record build, type-checking, schema, and model-federation rules that are easy to miss.

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/ltplus-ag/ifc-lite/agents-md
Clone the repo
git clone --depth 1 https://github.com/LTplus-AG/ifc-lite

Made for: Codex, OpenCode.

Per session 11,692 This file is loaded in full into every session.
When invoked 11,692 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 $0.11692 $0.11692
Opus 5 $0.05846 $0.05846
Sonnet 5 $0.02338 $0.02338
Haiku 4.5 $0.01169 $0.01169

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

Security

Grade A, and why

ifc-lite 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 3d 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 · 300 lines

How it starts

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

Agent Guidelines: ifc-lite

Project-specific gotchas and guardrails: the things that bite you here and that you can't infer from the code. Generic good practice is assumed, not repeated. This file is the single source of truth; CLAUDE.md and .cursorrules just point here.

What this is

Browser-first IFC toolkit: a WebGPU web viewer plus a headless CLI/MCP/server. No first-party desktop app. Domain logic (decode, geometry, styling, export) lives in Rust crates under rust/* and is the source of truth for the server, CLI, SDK, and wasm; TypeScript packages under packages/* and apps under apps/* consume it (TS mostly does GPU upload and UI). Architecture docs: docs/architecture/overview.md.

Commands

  • Install: corepack enable && pnpm install (Node 22.x, [email protected] pinned via packageManager).
  • Build: pnpm build (turbo). WASM: pnpm build:wasm (needs Rust nightly + wasm-pack); pnpm build:wasm:fetch pulls the prebuilt wasm from npm when Rust is unavailable (e.g. Windows without WSL).
  • Typecheck: pnpm typecheck (turbo, wasm-free: no Rust toolchain needed). This covers test sources too, which for a long time it did not: the root tsconfig.json excludes **/*.test.ts so tests never reach dist/, every packages/* config inherits that through tsconfig.packages.json, and exclude filters include — so a package's "include": ["src/**/*"] cannot pull its own tests back and 652 of 960 test files were in no typecheck program at all (#2457). Since vitest and tsx --test transpile per file without checking types, an unchecked test still runs while everything it asserts at type level (expectTypeOf, @ts-expect-error, a typed fixture) is silently unverified. Each package's typecheck script therefore runs scripts/typecheck-tests.mjs, which derives a no-emit test program from that package's own tsconfig and lists the test files under files — unlike include, files is not filtered by exclude. The generated <pkg>/tsconfig.tests.json is gitignored (rebuilt every run); the shared emit-off overrides live in tsconfig.tests.base.json. Do not "fix" a test-only type error by putting tests back into a package's emit tsconfig — that ships them to dist/.
  • Test: pnpm test (turbo, TS); cargo test --workspace (Rust, not cargo check); pnpm test:wasm-contract (real wasm boundary); pnpm test:collab (collab pair).
  • Always run typecheck/test through the root pnpm typecheck / pnpm test (turbo), never a package-local script (pnpm --filter <pkg> typecheck, cd packages/<pkg> && tsc --noEmit / vitest run) or an editor's TS server in isolation. turbo.json makes typecheck/test depend on ^build, but that dependency graph only fires through turbo; a package-local script or IDE process resolves workspace siblings straight off their dist/ (root tsconfig.json path-maps most packages to dist/*.d.ts; the rest, e.g. @ifc-lite/pointcloud, resolve via package.json#typesdist/index.d.ts). An unbuilt or stale sibling dist/ then throws "Cannot find module" / missing-export errors that name real files and symbols but describe no bug in the source — rebuild (pnpm build) before trusting a bypass-turbo result that disagrees with pnpm typecheck/pnpm test.
  • Dev viewer: pnpm dev (full monorepo build, then --filter viewer dev; needs a built @ifc-lite/wasm).
  • Fixtures: pnpm fixtures (tests skip when absent). Dead code: pnpm knip (TS) / cargo test --workspace (Rust).
  • Publish: pnpm changeset; refresh the API-surface snapshot with pnpm api-surface:update.

Read the full file on GitHub · 300 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. 3d ago First seen · 300 lines · 11,692 tokens per session scan A 09cdbc85bd3f

Subscribe to this mod's changes

ifc-lite AGENTS.md is an instructions file published in the GitHub repository LTplus-AG/ifc-lite (354 stars, last pushed 3d ago), licensed MPL-2.0. It adds 11,692 tokens to every session, about $0.0585 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.