🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

sentoagent

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sentoagent - npm Package Compare versions

Comparing version
2.2.1
to
2.2.2
+1
-1
package.json
{
"name": "sentoagent",
"version": "2.2.1",
"version": "2.2.2",
"description": "Agents sent to fight your battles. Self-improving AI agents powered by Claude Code.",

@@ -5,0 +5,0 @@ "author": "Gabriel Gil",

@@ -40,2 +40,17 @@ export function renderStartAgent(config) {

while true; do
# ── Kill any stray channel bridge from a previous session BEFORE launching ──
# When claude is KILLED (watchdog, OOM, crash) rather than exiting cleanly, its channel
# bridge child (bun run .../discord|telegram|slack|imessage/...) can be ORPHANED and keep
# its gateway connection alive. The next loop then spawns a SECOND bridge on the SAME bot
# token. Discord allows one gateway session per token, so the two connections kick each
# other and re-IDENTIFY in a tight loop, burning through Discord's hard cap of 1000
# IDENTIFYs per token per day in minutes — at which point Discord force-RESETS the token
# and the agent goes dark until a human pastes a new one. The busiest / most-restarted
# agent hits this first (it happened repeatedly to one family-assistant agent).
#
# -u "$(whoami)" scopes the kill to THIS agent's own bridges, never a sibling's. On a
# clean first start there is nothing to kill; the sleep lets the socket close before the
# new bridge dials in, so there is never a two-bridge overlap on one token.
pkill -u "$(whoami)" -f 'discord/|telegram/|slack/|imessage/' 2>/dev/null && sleep 2
claude --dangerously-skip-permissions --model ${config.model || "sonnet"} --channels ${channelPlugin}

@@ -42,0 +57,0 @@ sleep 15