Smiler AGENTS.md

Project instructions for Smiler, a Reddit-style social platform built as a pnpm monorepo, meaning one repository containing multiple related packages. Its backend uses Express, TypeScript, MongoDB, and sessions; its frontend uses Vue, Vite, and Pinia.

In plain words
What is it for?
Use them when developing Smiler features, running the backend and frontend, building the project, checking code and types, or running unit, integration, and browser tests.
Why use it?
They give coding agents the project's structure, commands, build process, lint checks, and test expectations. This reduces guesswork when changing either package.

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/darkzarich/smiler/agents-md
Clone the repo
git clone --depth 1 https://github.com/Darkzarich/Smiler

Made for: Codex, OpenCode.

Per session 2,190 This file is loaded in full into every session.
When invoked 2,190 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.02190 $0.02190
Opus 5 $0.01095 $0.01095
Sonnet 5 $0.00438 $0.00438
Haiku 4.5 $0.00219 $0.00219

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

Security

Grade A, and why

Smiler 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 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.

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 · 126 lines

How it starts

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

AGENTS.md

Project overview

pnpm monorepo — a Reddit-style social platform (MEVN stack). Two packages: packages/backend (Express 5 + TypeScript + MongoDB/Mongoose + sessions) and packages/frontend (Vue 3 + Vite + Pinia).

Common commands

pnpm install                # install all workspace deps
pnpm dev                    # runs backend + frontend concurrently
pnpm build                  # builds backend, then frontend

# Linting (the pre-commit hook only lints staged files, this is the whole repo)
pnpm lint                   # all three passes below, in order
pnpm lint:spell             # cspell spellcheck (root)
pnpm lint:code              # eslint on backend + eslint+stylelint on frontend
pnpm lint:types             # tsc --noEmit on both packages

# Testing
pnpm test                   # backend jest + frontend playwright e2e + frontend vitest
pnpm test:prepush           # backend jest + frontend vitest unit (what pre-push runs)

Backend (packages/backend)

  • Entry: index.ts (cluster mode) → src/app.ts
  • Dev server: pnpm --filter backend dev (ts-node)
  • Build: tsc && tsc-alias — output goes to dist/
  • Tests: Jest integration tests using mongodb-memory-server (no external DB needed). Requires NODE_OPTIONS="--experimental-vm-modules".
    • Test files: tests/**/*.spec.ts
    • Global setup spins up an in-memory MongoDB on port 27018; sets DB_URL automatically.
    • Run single test: pnpm --filter backend test -- tests/integration/some-file.spec.ts
  • Path aliases (tsconfig + ts-node): @config/*, @routes/*, @controllers/*, @middlewares/*, @libs/*, @models/*, @utils/*, @validators/*, @constants/*, @type/*, @errors, @test-utils/*, @test-data-generators
  • .env file required at repo root (copy from .env.example). Backend reads it via dotenv.
  • Swagger docs at /api-docs/ when running.

Frontend (packages/frontend)

  • Dev server: pnpm --filter frontend dev (Vite, port 8080)
  • Build: vite build
  • Unit tests: Vitest with jsdom — files matching src/**/*.spec.ts or src/**/*.test.ts
    • Run single: pnpm --filter frontend test:unit:ci -- src/path/to/test.spec.ts
  • E2E tests: Playwright against the built app (vite preview on port 4173). Files in tests/integration/.
    • Run: pnpm --filter frontend test:e2e:ci
  • Path aliases: @/*, @components/*, @common/*, @icons/*, @utils/*
  • Linting: separate ESLint (.js/.ts/.vue) and Stylelint (.css/.scss/.vue) passes
  • Vue component style: PascalCase component names in templates; blank lines between <template>/<script>/<style> blocks.
  • [email protected] is patched — see patches/ directory.

Read the full file on GitHub · 126 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 · 126 lines · 2,190 tokens per session scan A 7aa728d1e117

Subscribe to this mod's changes

Smiler AGENTS.md is an instructions file published in the GitHub repository Darkzarich/Smiler (11 stars, last pushed 2d ago), licensed MIT. It adds 2,190 tokens to every session, about $0.0110 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.