Portable headless coding-agent runner — polls CognitionDesk for pending claude_code-target loops and executes them via pluggable engines (claude-cli today; agent-sdk later). Extracted and generalized from mcp-mounaji-rag's loop-runner.ts.
Review flagged AI-agent configuration or capability changes. This remains warn-only unless evidence shows foreign-agent hijack through preinstall/install/postinstall, hidden persistence, exfiltration, remote code execution, or other concrete malicious behavior.
`src/index.js` polls configured CognitionDesk loops and passes claimed prompts to the engine.
src/index.jsView on unpkg`src/prompts.js` polls Supabase `desired_config` and executes remotely supplied prompt text.
src/prompts.jsView on unpkg`src/engines/claudeCli.js` spawns configurable `claude` in the supplied working directory with `process.env`.
src/engines/claudeCli.jsView on unpkg`src/index.js` polls configured CognitionDesk loops and passes claimed prompts to the engine.
src/index.jsView on unpkg`src/prompts.js` polls Supabase `desired_config` and executes remotely supplied prompt text.
src/prompts.jsView on unpkg`src/engines/claudeCli.js` spawns configurable `claude` in the supplied working directory with `process.env`.
src/engines/claudeCli.jsView on unpkg