Aurifex gold monogram Aurifex
A molten gold Telegram paper plane rising from an anvil on a dark atelier grid, with a cool teal rim light

From one request to a bot that fits.

Aurifex is a knowledge plugin for coding agents. It teaches the agent to interview you, build exactly the bot you asked for, and prove the result with a static check.

One installer for macOS, Linux, and Windows

macOS and Linux
curl -fsSL https://raw.githubusercontent.com/lukavtz/aurifex/main/install.sh | sh
Windows PowerShell
powershell -c "irm https://raw.githubusercontent.com/lukavtz/aurifex/main/install.ps1 | iex"

OMP, DeepSeek Harness, Claude Code, MCP

From questions to a verified bot

The agent asks, then writes, then checks. Every command returns a stable DomainResult and accepts --json.

aurifex · zsh

node dist/cli.js target --stack grammy

ok · grammY 1.46.0 · Node >=24.9.0 · Bot API 10.4

# five questions, one confirmed bot-spec-1.1.0

bun install && bun run typecheck && bun test

ok · 12 tests passed

node dist/cli.js verify .

ok: 29 pass, 0 warn, 0 fail

gate open · evidence attached

verify exits 1 on a failed check, so an agent cannot claim success without evidence.

What the plugin actually is

Knowledge, three tools, and one deterministic check. No generator, no templates, no hidden writes.

Knowledge, not scaffolding

Fifteen skills carry the procedure: discovery, stack choice, feature recipes, framework details, security, testing, delivery. The agent reads them and writes the code itself.

Interview first

The agent asks three to seven questions in one block, each with options and a recommended default. Every answer maps to a BotSpec field, and nothing is coded before you confirm it.

Exactly what you asked for

Ask for inline buttons and you get inline buttons. The recipes skill builds one vertical slice at a time, so the agent never adds scenes, payments, or a Mini App you did not request.

Evidence, not claims

verify reads file contents inside a bounded snapshot and returns 29 check identifiers. A failed check exits 1, so the agent has to fix the bot instead of asserting success.

3 tools, 4 hosts

OMP, DeepSeek Harness, Claude Code through MCP, and any MCP client expose the same three tools: resolve the pinned stack, inspect a project, run the gate.

  • telegram_bot_target_resolve
  • telegram_bot_inspect
  • telegram_bot_verify

How the agent builds a bot

Four steps, in this order. Skipping one is how a bot ends up with features nobody asked for.

Procedure

Questions 3–7, with defaults
BotSpec confirmed by you
Recipes one vertical slice
Verify 29 static checks

Result

The bot you asked for runs without Aurifex

The plugin never writes the project. It supplies the procedure and the proof; the agent owns every file.

15 skills, loaded on demand

Each skill is a short procedure with gotchas and primary sources. The agent opens only the ones the request needs, so its context stays small.

  • telegram-bot
  • telegram-bot-discovery
  • telegram-bot-sources
  • telegram-bot-stack-choice
  • telegram-bot-recipes
  • telegram-bot-failures
  • telegram-bot-api
  • telegram-bot-api-104
  • grammy
  • aiogram
  • telegram-payments
  • telegram-mini-apps
  • telegram-deploy
  • telegram-security
  • telegram-testing

Start with telegram-bot: it routes every other skill and states the hard rules. Read project-layout and the reference files only when the task reaches them.

What the agent writes

A project built from the recipes, in the canonical layout. It never imports Aurifex.

my-bot/

├── src/
│   ├── http/
│   │   ├── server.ts
│   │   ├── health.ts
│   │   ├── telemetry.ts
│   │   └── secrets.ts
│   ├── telegram/
│   │   └── api104.ts
│   ├── guard/
│   │   └── dedupe.ts
│   ├── store/
│   │   └── db.ts
│   ├── job/
│   │   ├── queue.ts
│   │   └── worker.ts
│   ├── service/
│   │   └── payments.ts
│   ├── miniapp/
│   │   └── session.ts
│   ├── config.ts
│   ├── logger.ts
│   ├── bot.ts
│   └── main.ts
├── drizzle/
│   └── 0001_runtime_schema.sql
├── tests/
│   └── callback.test.ts
├── .env.example
├── Dockerfile
├── docker-compose.yml
├── Caddyfile
├── package.json
└── bun.lock

Only the features you asked for

  • commands
  • llm
  • inline
  • payments
  • miniapps
  • moderation
  • broadcast
  • widgets
  • rich

Verification output

$ node dist/cli.js verify my-bot
ok: 29 pass, 0 warn, 0 fail

The layout reference in telegram-bot-recipes lists these paths, and a test keeps it in sync with the verifier.

29 checks before anything ships

The gate checks textual markers over a bounded snapshot. It never runs your project or calls Telegram; runtime behavior needs separate tests.

  • token.literal

    No secrets in the tree

    .env.example holds empty placeholders. Any token-shaped literal fails the build, and the checker never echoes it.

  • webhook.secret

    Webhook hardening

    A secret header, HTTPS, an allowed port, and a framework callback that compares the secret. Custom equality checks fail.

  • updates.dedupe

    One consumer, one update

    update_id claims a 24-hour Redis key with SET NX EX 86400, so a redelivered update never runs twice.

  • retry.retry_after

    Retries that respect limits

    allowed_updates is explicit and retry_after is honoured instead of hammering the API.

  • container.non_root

    Non-root container

    The Dockerfile ends on a named USER. Running as root fails verification.

  • allowlist.present

    Server-side authority

    ADMIN_IDS is checked on the server. Mini App initData is validated with HMAC-SHA256 and an auth_date freshness limit.

Check identifiers

  • token.literal
  • scan.bounded
  • env.ignored
  • webhook.secret
  • webhook.https
  • webhook.port
  • webhook.constant_time
  • container.non_root
  • updates.allowed
  • updates.dedupe
  • retry.retry_after
  • tests.present
  • botapi.104
  • botapi.104.types
  • deps.lockfile
  • queue.worker
  • queue.schema
  • payments.schema
  • payments.validation
  • secrets.file
  • telemetry.readiness
  • telemetry.metrics
  • miniapp.session
  • miniapp.csp
  • docker.healthcheck
  • dedupe.fail_closed
  • tests.infrastructure
  • logs.redaction
  • allowlist.present

4 commands, one result shape

A human summary by default, a DomainResult with --json.

aurifex target
Resolve the pinned framework, runtime, and Bot API baseline for a stack.
aurifex inspect
Detect a project's stack, mode, and storage without writing anything.
aurifex verify
Run the static file-content gate and return evidence per check identifier.
aurifex install
Install into OMP, DSH, and Claude Code in one interactive pass.

Exit codes: 0 for success, 1 for a domain error, 2 for invalid usage.

Install once, reach every host

v0.3.1 installs from the repository. The installer asks which harnesses and which scope, then exits on its own.

Run the installer

macOS and Linux

curl -fsSL https://raw.githubusercontent.com/lukavtz/aurifex/main/install.sh | sh

Windows PowerShell

powershell -c "irm https://raw.githubusercontent.com/lukavtz/aurifex/main/install.ps1 | iex"

The installer detects OMP, DSH, and Claude Code, prints every command it runs, and skips hosts that are not on PATH.

OMP

Registers the extension declared by the omp field in package.json.

omp.extensions

DeepSeek Harness

Adds the bundle to a named profile through cordis.patch.yml.

cordis.patch.yml

Claude Code

Installs the plugin that points Claude Code at the bundled MCP server through .mcp.json.

.mcp.json

MCP client

Any other MCP client connects to the built stdio server and gets the same three tools.

AURIFEX_ROOT

AURIFEX_ROOT bounds every read and write. It defaults to the working directory.

Before you install

What does Aurifex ship?

Fifteen skills, three MCP tools, four CLI commands, and one static verifier. No project generator and no templates.

Is there a project generator?

No. Version 0.3 removed it. The agent writes the bot from the recipe skills, and the plugin only checks the result.

Does the agent ask before writing code?

Yes. Discovery produces three to seven questions with recommended defaults, every answer maps to a BotSpec field, and nothing is built until you confirm the spec.

Which Bot API version is supported?

10.4, through a typed raw adapter. grammY 1.46 and aiogram 3.31 declarations cover 10.3, so the knowledge never claims native 10.4 types.

Does verify run my bot?

No. It reads file contents inside a bounded snapshot: 64 MiB total, 1 MiB per file. No network and no Telegram call; runtime behavior belongs to the testing skill.

What is out of scope for v0.3.1?

MTProto and userbot automation. Aurifex targets the Bot API only, and it is not a sandbox: the host extension process is trusted code.

Can I install from a source checkout?

Yes. Clone the repository, run pnpm install and pnpm build, then node dist/cli.js install --host all. Per-host commands are listed in the README.