loopeng
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@loopengshow me my pending workflow proposals"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
What is loopEng?
loopEng is a local meta-agent that runs quietly in your terminal alongside Claude Code and Codex. It:
Watches your coding sessions as they happen.
Finds the workflows you keep doing by hand.
Proposes them to you in a terminal dashboard.
On your approval, turns each one into:
a loop —
loop.mdoperating instructions wired into Claude Code or Codex, anda callable MCP tool — the same workflow as a parameterized command sequence your agents can invoke directly.
You review proposals. You approve the ones that make sense. Everything stays on your machine — the only LLM calls go through your own claude -p binary. loopEng never phones home.
"True productivity isn't typing faster; it's stopping the need to type the same thing twice."
Related MCP server: MCP Console Automation Server
How it works
loopEng is a small local pipeline that runs continuously in the background:
Claude Code / Codex sessions
│
▼
[watcher] — a launchd daemon notices each new session transcript
│
▼
[digester] — compresses + redacts each session to a compact text digest
│
▼
[engine] — sends digests to your own `claude -p`, looks for recurring patterns
│
▼
[inbox] — strong candidates land as proposals; you review and approve
│
├──▶ [loop] — loop.md + trigger + manifest wired into Claude Code / Codex
│
└──▶ [mcp tool] — the same workflow as a callable tool on the loopeng-tools serverEverything above runs on your machine. The engine uses your own Claude credits — no separate service, no subscription, no cloud component.
Install
curl -fsSL https://raw.githubusercontent.com/issadevs/loopeng/main/install.sh | bashThe installer:
clones the repo to
~/.loopeng-app, runsnpm install+npm run build, and links theloopengbinary to your PATH,installs the Fable 5 prompt to
~/.loopeng/prompts/fable.mdand the/fablecommand to~/.claude/commands/fable.md.
Re-running the same command updates an existing install to the latest version.
Then finish setup:
loopeng setuploopeng setup writes ~/.loopeng/config.json, installs a SessionStart trigger hook into ~/.claude/settings.json, and installs + loads a launchd daemon (com.loopeng.daemon).
Options:
loopeng setup --companion manual # configure companion mode (auto | manual | off)
loopeng setup --no-daemon # configure without the background daemonRequirements: Node ≥ 20, git, the Claude Code CLI (claude) in your PATH, macOS (the daemon uses launchd; Windows/Linux support is on the roadmap).
The dashboard
loopengRunning loopeng with no arguments opens the full-terminal hub:

The header shows your agent (loopEng) with live status: sessions watched · daemon state · today's token spend vs cap.
Three panels:
inbox — pending proposals. Select one to see its summary, estimated impact, evidence count, and confidence score.
loops — your installed loops, with trigger kind and target tool.
activity — a scrolling log of everything loopEng has done in the background.
Keys:
Key | Action |
| Cycle focus: inbox → loops → activity |
| Move within the focused panel |
| Approve the selected proposal (confirm |
| Dismiss the selected proposal (confirm |
| Snooze the selected proposal for 7 days |
| Uninstall the selected loop (confirm |
| Trigger a scan now |
| Pause / resume the daemon |
| Quit |
The dashboard resizes with your terminal. It needs at least 60×16; below that it shows a hint to grow the window.
Commands
Command | What it does |
| Open the full-terminal dashboard |
| Open the dashboard focused on the proposal inbox |
| Alias for the bare |
| Initialize config, trigger hook, and daemon |
| Analyze local digests and surface new proposals now |
| List installed loops |
| Remove a loop and everything it installed |
| Pause / resume the background daemon |
| Show daemon state, today's token spend, and pending proposal count |
| List the callable MCP tools generated from your workflows |
| Register the |
| Run the |
| Run loopEng's control-surface MCP server (stdio) |
| Drop a session marker (used by the trigger hook) |
| Run the watcher in the foreground |
What an approved proposal produces
Each approved proposal becomes a bundle at ~/.loopeng/bundles/<id>/:
loop.md — operating instructions an agent reads and follows
trigger.json — schedule, hook, or manual trigger metadata
manifest.json — evidence, target tool, and every path the install touched
tool.json — the workflow as a callable MCP tool (best-effort; see below)
state/ — loop-local state (persists across runs)manifest.json records every path the install created, which is what makes loopeng uninstall <id> exact — it removes only those paths, with no guesswork.
The loop.md is generated by a maker → checker pass: the maker writes six fixed sections (Responsibility, Trigger & cadence, Procedure, Verification, Convergence, Escalation) plus a trigger block, and the checker rejects vague verification, missing caps, or invented tools before the bundle is written.
From workflow to callable MCP tool
A loop.md is prose an agent reads and follows. The next step is a tool an agent calls and runs. On approval, loopEng also tries to synthesize a tool.json — the same workflow as a parameterized sequence of argv commands — and exposes it on the loopeng-tools MCP server.
The synthesis is grounded in what you actually did:
loopEng resolves the proposal's evidence back into the real command lines from your sessions,
infers parameters from the tokens that varied across runs (e.g. a branch name),
and a deterministic gate rejects any step whose command you were never observed running — so a generated tool can't invent
kubectlbecause the model felt like it.
loopeng tools # list the callable tools loopEng has generated
loopeng tools-register # register the loopeng-tools server in Claude Code
loopeng mcp-tools # run the loopeng-tools MCP server (stdio)Once registered, an agent session can call e.g. deploy_staging(branch="main") and loopEng runs the captured steps.
Safety. Generated tools never run through a shell. Each step is an argv array executed with execFile, and parameter values are substituted as single literal tokens — so a value like main; rm -rf / is passed verbatim as one argument, never interpreted. Each step runs with a timeout (120s) and bounded output. A tool exists only because you approved the proposal it came from.
MCP servers
loopEng ships two MCP servers, both stdio:
loopeng mcp — control surface
Lets an agent drive loopEng itself.
Tools:
proposals_list,proposals_get,proposals_approve,proposals_dismiss,proposals_snooze,scan,loops_list,loops_uninstall,events,statusResources:
loopeng://proposals/{id},loopeng://events,loopeng://status
loopeng mcp-tools — your workflows as tools
Exposes every installed loop that has a tool.json as a callable tool. When none exist yet, it exposes a single loopeng_tools_help tool that explains how to generate one. loopeng tools-register adds it to ~/.claude.json as:
{ "mcpServers": { "loopeng-tools": { "command": "loopeng", "args": ["mcp-tools"] } } }Privacy
Transcripts stay on your machine. Always.
Before any digest is sent to your claude -p process, loopEng redacts:
API keys and tokens with known prefixes (
sk-,ghp_,gho_,github_pat_,xoxb-,xoxp-), AWS access key ids (AKIA…), andBearertokenskey=value/key: valuepairs where the key looks credential-ish (password,secret,token,api_key, …)URL credentials (
//user:pass@host)High-entropy strings that look like secrets
The engine sends only compact, redacted digests to your own claude -p. loopEng does not contact any external service.
Configuration & on-disk layout
Configuration lives at ~/.loopeng/config.json:
{
"companion": "auto",
"dailyTokenCap": 100000,
"pollIntervalMin": 15
}companion —
auto(open a companion window when work is found),manual, oroffdailyTokenCap — the engine reserves an estimate before each scan and skips once the day's budget is spent
pollIntervalMin — how often the daemon re-scans for new sessions
Everything loopEng writes lives under ~/.loopeng/:
~/.loopeng/
├ config.json — the config above
├ digests/ — one redacted text digest per session
├ proposals/ — one JSON file per proposal
├ bundles/<id>/ — generated bundles (loop.md, trigger.json, manifest.json, tool.json, state/)
├ registry/ — installed.json, dismissed.json
├ markers/ — session-start markers dropped by the trigger hook
├ prompts/fable.md — the Fable 5 system prompt
└ log/ — events.jsonl, spend.json, watch.json, pattern-memory.txt/fable — Claude Fable 5 slash command
The installer drops a /fable slash command into ~/.claude/commands/, available in any Claude Code session:
/fable <your prompt>It routes your prompt through the full Claude Fable 5 system prompt and model, inline, without leaving your session or switching your model. Under the hood it spawns:
claude -p --model claude-fable-5 --system-prompt-file ~/.loopeng/prompts/fable.mdand returns the output inline.
The never-guilt principle
loopEng may suggest automation, but it never shames you for ignoring, snoozing, or dismissing a proposal. A quiet tool beats a nagging one. Your inbox, your call.
Development
git clone https://github.com/issadevs/loopeng.git
cd loopeng
npm install
npm run build
npm linkScripts:
npm run build # tsc → dist/
npm run typecheck # tsc --noEmit
npm test # vitest run
npm run dev # tsx src/index.tsRun the full check the way CI does:
npm run typecheck && npm testloopEng is early software. It watches Claude Code and Codex sessions on macOS via launchd. Windows/Linux daemon support is on the roadmap.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Issadevs/loopeng'
If you have feedback or need assistance with the MCP directory API, please join our Discord server