SuperAPI AI Directory

loopsense

Feedback loop for coding agents: CI monitoring, process watching, file change detection and HTTP polling.

Open website

About this tool

Purpose

LoopSense is an open-source MCP server used to close the feedback loop for AI coding agents, enabling agents to perceive CI results, deployment status, test results, and file system changes in real time. When an agent pushes code, runs tests, or triggers a deployment, LoopSense monitors the downstream impact and feeds the results back to the agent, avoiding blind operations.

Main Capabilities

Supported monitoring sources include:

  • GitHub Actions CI runs (polling, by default polling once every 30 seconds, emitting events when the status changes)
  • Local processes (capturing stdout/stderr and exit codes)
  • File system changes (via chokidar)
  • HTTP endpoints (polling, supporting status code and response body assertions)
  • A lightweight HTTP server that receives webhooks (by default listening on http://localhost:9876)

The provided MCP tools include:

  • watch_ci: monitor GitHub Actions workflow runs
  • spawn_process: start a local process and capture its output and exit code
  • watch_file: monitor file or directory changes
  • poll_http: poll an HTTP endpoint and detect status code or response body changes
  • start_webhook_server: start a local HTTP server to receive webhook payloads
  • check_consequences: get events for a specific action or all recent events
  • list_watches: list all active watches
  • stop_watch: stop a watch by ID
  • get_events_since: get events after a specified timestamp (for clients that do not support notifications)

MCP resources (reactive updates):

  • loopsense://timeline/recent — the last 100 events across all watches
  • loopsense://watches/active — all currently active watches
  • loopsense://consequences/{action_id} — events for a specific action

How to Use

It can be run directly via npx, or installed and configured into an MCP host. It supports one-line command configuration for Claude Code, and can also be manually added to claude_desktop_config.json or an equivalent MCP host configuration; if installed globally, it can also be used directly. Configure it via environment variables.

Example agent workflow:

  1. The agent pushes code to a branch
  2. The agent calls watch_ci, passing action_id: "my-pr-123"
  3. LoopSense polls GitHub Actions every 30 seconds
  4. After CI completes, the agent calls check_consequences, passing action_id: "my-pr-123"
  5. The agent sees the test failure and fixes it

Applicable Scenarios

Suitable for development workflows that need to let AI coding agents perceive downstream results such as code pushes, tests, and deployments, helping agents adjust based on real feedback.

Limitations

Events and watch records are persisted to ~/.loopsense/events.db (SQLite), and active watches are automatically restored after the server restarts. Other limitations are not yet provided.