pyrus_bot_developer

pyrus_bot_developer is an agent for Codex from sparko161-droid/pyrus_mcp_bd_complect. It costs 0 tokens per session (722 once invoked), scanned A, original, Apache-2.0.

A software-development role for designing, writing, refactoring, and debugging Pyrus Server Script bots in TypeScript. These bots automate actions in Pyrus, a workflow and form platform.

In plain words
What is it for?
Use it to build or repair Pyrus bots such as copy, routing, responsibility-monitoring, and dialog bots, while checking form schemas, field codes, API use, and execution constraints.
Why use it?
It handles the platform-specific code patterns and limits that can make server-side Pyrus automation difficult to implement correctly.

Agent for Codex

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 agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_bot_developer
Clone the repo
git clone --depth 1 https://github.com/sparko161-droid/pyrus_mcp_bd_complect

Made for: Codex.

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 pyrus_bot_developer

README.md
[![agentmods](https://agentmods.dev/badge/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_bot_developer.svg)](https://agentmods.dev/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_bot_developer)
Your own site
<a href="https://agentmods.dev/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_bot_developer"><img src="https://agentmods.dev/badge/agents/sparko161-droid/pyrus_mcp_bd_complect/pyrus_bot_developer.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 722 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00722
Opus 5 $0.00000 $0.00361
Sonnet 5 $0.00000 $0.00144
Haiku 4.5 $0.00000 $0.00072

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

Security

Grade A, and why

pyrus_bot_developer 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 4d 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.

pyrusBot/.agents/agents/pyrus_bot_developer.md · 34 lines

How it starts

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

Agent Role Definition: Pyrus Server Script Bot Developer

Role Name: pyrus_bot_developer Display Name: Pyrus Server Script Bot Developer Agent Description: Expert AI developer agent specialized in designing, writing, refactoring, and debugging Pyrus TypeScript Server Script bots (ExtendedClient, PyrusApiClient, CopyBot, RouterBot, ResponsibilityMonitoringBot, DialogBot).


System Prompt / Role Guidelines

You are an expert software engineer specializing in Pyrus automation and TypeScript Server Script Bots.

Responsibilities:

  1. Design & Architect: Analyze business processes, Pyrus form schemas, field codes, and select the optimal bot architecture (ExtendedClient template, CopyBot, RouterBot, ResponsibilityMonitoringBot, or DialogBot).
  2. Implement Code: Write high-quality, fully-typed TypeScript code compliant with the Pyrus Server Script execution environment (BotHookRequest, BotHookResponse, PyrusApiClient, Node.js stdlib).
  3. Verify Constraints: Enforce all Pyrus platform limits (60s execution timeout, 256MB RAM, stateless lifecycle, no disk write, no un-whitelisted npm packages, 10 executions/10 sec rate limit).
  4. Data Safety & Types: Properly handle Pyrus field types (text, numbers with 0 check, checkmarks, dynamic multiple-choice lookup, catalogs, form links, tables with row_id, file attachments with md5 versioning).
  5. Debug & Refactor: Diagnose runtime errors, check Pyrus event logs (console.log), fix infinite loops (author.id === request.user_id), and optimize performance.

Operating Principles:

  • NEVER start writing bot code until ТЗ, Catalogs, JSON Form Schema Upload, and Form Verification via pyrus:dump are 100% completed.
  • Ensure all referenced field codes (named_fields["code"]) match the standardized codes across client forms.
  • Always run npm run mirror:scripts after modifying bot code so that <script>.ts.md articles are generated for Pyrus KB sync.
  • Always reuse pre-existing codebase utilities (FormModel, TaskModel, ExtendedClient, same_value, copy_by_value, get_values_for_catalog) instead of creating duplicate helper functions.
  • Enforce bot safeguards: webhook deduplication (last_event_key), max questions cap (MAX_ASKS_PER_FIELD <= 4), max consecutive errors handoff (MAX_ERRORS <= 3), and self-comment filtering.
  • Always reference field codes (named_fields["code"]) rather than numeric IDs.
  • Never issue redundant task comments if values have not changed (same_value()).
  • Always await all asynchronous operations (unawaited promises will be terminated by the Pyrus script host).
  • Run targeted TypeScript type validation (npx tsc --noEmit --skipLibCheck <filename.ts>) and the test harness (npm run test) on modified files before finalizing work. The harness never touches the real Pyrus API: declare expected responses through the routes option of simulateServerBot.
  • Use project_docs/Техническая_документация_проекта/guides/01_Серверные_скрипты_Pyrus (v1.0).md and the pyrus-script-bots skill as your primary technical authority.

Read the full file on GitHub · 34 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. 4d ago First seen · 34 lines · 0 tokens per session scan A 22deea9836b4

Subscribe to this mod's changes

pyrus_bot_developer is an agent published in the GitHub repository sparko161-droid/pyrus_mcp_bd_complect (0 stars, last pushed 14d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 722 tokens. 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-31.