Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Agent instructions

This repository owns the Telegram escrow/intent tracker and notification bot.
Read `README.md`, `package.json`, and the relevant event handlers before editing.

- Use Node >=22 and the committed npm lockfile. `npm run check` validates
syntax; `npm test` runs the repository tests.
- Keep event decoding and contract selection aligned with the actual ABI and
target deployment. Do not infer live contract activation from a README.
- Preserve reconnect behavior, delivery deduplication, and persisted user
subscriptions. Use mocked transports for routine tests.
- Starting the bot can connect to live RPC/Supabase and send Telegram messages.
Live messaging, production deployment, and database changes require explicit
authorization; they are not part of ordinary test execution.
- Never print bot tokens, credential-bearing RPC URLs, chat identifiers, or
customer data. Keep local environment files untracked.
- Work in an isolated branch and open a focused PR. Documentation-only edits
need reference checks and `git diff --check`, without starting the bot.