How diasissatayev/bitrix-agent-test works
Bitrix-агент uses a low-cost scheduled monitor to detect task activity and wake Claude only when configured rules match. Claude then follows the agent routine: inspect tasks and comments, verify trust, download attachments such as résumés, and respond or send owner-only summaries. The sampled code shows the monitor, REST client, text helpers, and agent tools; the README documents the routine’s broader behavior. Browser-based posting is a documented fallback, not the main path.
Main entry points: check.mjs Activity monitor · bx.mjs Agent tools · bitrix.mjs REST client · post-comment.js Browser comment posting
Components 14
Activity monitoring
- Activity monitor
monitor/check.mjs - Rules and settings
monitor/config.json - Monitor state
- Queued events
Claude task agent
- Agent instructions
agent/ROUTINE.md - Agent tools
agent/bx.mjs - Required signature
lib/signature.json
Bitrix integration
- REST client
lib/bitrix.mjs - Text and time helpers
lib/text.mjs
Browser fallback
- Browser session
scripts/bitrix-session.js - Browser comment posting
scripts/post-comment.js
Other components
- Team members
- Bitrix24
- Claude routine
Connections 19
- Team members → Bitrix24: posts activity
- Activity monitor → Rules and settings: reads rules
- Activity monitor → Monitor state: loads and saves
- Activity monitor → REST client: connects through
- Activity monitor → Text and time helpers: uses helpers
- REST client → Bitrix24: requests task data
- Activity monitor → Claude routine: sends wake events
- Activity monitor → Queued events: writes if unconfigured
- Claude routine → Agent instructions: follows instructions
- Agent instructions → Agent tools: invokes actions
- Agent tools → Rules and settings: reads trust settings
- Agent tools → Required signature: reads prefix
- Agent tools → REST client: connects through
- Agent tools → Text and time helpers: uses helpers
- REST client → Bitrix24: reads and writes
- Bitrix24 → Team members: shows replies
- Browser comment posting → Browser session: opens session
- Browser session → Bitrix24: authenticates
- Browser comment posting → Required signature: reads prefix