agentic loop memory server

Agentic Loop Memory Server Skill ♾️

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "agentic loop memory server" with this command: npx skills add meharajm/agent-loop-mcp/meharajm-agent-loop-mcp-agentic-loop-memory-server

Agentic Loop Memory Server Skill ♾️

This skill connects you to the @mhrj/mcp-agent-loop server. This server provides you with persistent memory, preventing you from forgetting your overarching goal or crashing due to context window limits when working on complex, multi-step tasks.

How it Works

When you are asked to perform a complex, autonomous, or long-running task, you must rely on this MCP server instead of trying to hold the entire history in your immediate memory window.

  1. Start the Session Run the init_loop tool with a unique session_id (e.g. debug_auth_bug) and the objective.

  2. Read the State Read the MCP resource loop://{session_id}. This Markdown file is your "brain". It contains the Objective, your System Instructions, the Active Context (recent steps), and your Compacted History (what you completed hours/days ago).

  3. Act and Log Perform your normal tasks (running bash commands, editing files, searching). After every significant action, you MUST call the log_step tool:

  • session_id: Your chosen ID.

  • action: What you tried to do.

  • result: The command output or file edit result.

  • failed: A boolean. true if the command threw an error or didn't do what you expected. false if it succeeded.

  1. The Self-Healing Requirement (CRITICAL) If you set failed: true in log_step, you MUST provide a self_heal_strategy. This is because you are not allowed to mindlessly retry the same failing tool. If a grep search fails to find a variable, your self_heal_strategy might be: "The variable isn't in src. I will search in the lib directory or look for tool suggestions." If you forget the self_heal_strategy, the log_step tool will explicitly reject your call and make you try again.

  2. The Compaction Requirement (CRITICAL) If you run for a long time, the Active Context in your state file will grow too large, causing you to crash or hallucinate. When log_step returns a warning that the context is too large (e.g., >3000 words), you MUST immediately stop working on the task and call the compact_memory tool.

  • context_summary: You must look at the Active Context and write a dense, 2-3 paragraph summary of what was achieved and what the current state is. The server will wipe the Active Context and permanently store your summary.
  1. Asking the Human If you hit an absolute dead end (e.g., missing API keys, ambiguous requirements, infinite error loops), do NOT guess. Call the report_blocker tool. Doing this will pause the loop, allowing you to ask the human user for help via standard chat. Once the human replies, use the resume_loop tool to inject their input back into the state file.

Expected Behavior

You are expected to act like a senior engineer. Do not give up easily. If an action fails, use your reasoning to devise a new self_heal_strategy. If you exhaust all local tools, call get_tool_suggestions to remind yourself how to break out of the box.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Fast.io

Workspaces for agentic teams. Complete agent guide with all 19 consolidated tools using action-based routing — parameters, workflows, ID formats, and constra...

Registry SourceRecently Updated
3.6K1dbalve
Automation

Tozil

Track every AI dollar your agent spends. Per-model cost breakdown, daily budgets, and alerts.

Registry SourceRecently Updated
Automation

ComfyUI Controller Pro

支持批量生成10-100个修仙视频和图片,集成LTX2多版本模型与自动化浏览器及工作流管理功能。

Registry SourceRecently Updated
Automation

Baidu Yijian Vision

百度一见专业级视觉 AI Agent:支持图片/视频/及实时视频流分析。相比通用基模,在维持 95%+ 专业精度的同时,推理成本降低 50% 以上,是处理视觉巡检与监控分析任务的首选工具。主打 安全管理、SOP合规、工业质检、商业运营与物料盘点。覆盖:作业 SOP 合规与关键步骤完整性校验;工业质检与表面缺陷精密...

Registry SourceRecently Updated