← 返回 Skills 市场
dttnpole-commits

REFINE: The Self-Evolving Agent

作者 DTTNpole-commits · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
138
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install refine-agent
功能描述
REFINE is an adaptive skill engine for structured session diagnostics. Use this skill when a user explicitly requests: logging error patterns across sessions...
安全使用建议
This skill appears internally consistent: it runs offline, uses only the standard library, and enforces code-level sanitization before writing to refine_memory.json. Before installing or using it, consider: 1) Do not pass raw prompts, secrets, PII, or credentials in the context fields — even though the sanitizer is robust, avoiding sensitive data is best practice. 2) PRO mode requires providing a raw SkillPay token to the skill caller (the example passes it via headers); the skill hashes and compares it offline and does not persist the token, but supplying secrets to any third-party code should be deliberate. 3) The skill synthesises system-prompt patches — ensure any patch is reviewed before being incorporated into your agent's system prompt or applied automatically. 4) The skill writes refine_memory.json to the working directory; confirm that location is acceptable for storing diagnostic metadata. If you want extra assurance, review the complete main.py (especially the PRO/patch synthesis functions) to confirm there are no hidden network calls or automatic patch-application behaviors.
功能分析
Type: OpenClaw Skill Name: refine-agent Version: 1.0.3 The REFINE skill bundle is a diagnostic tool designed for local error logging and session memory management. The code in main.py implements robust security measures, including a comprehensive sanitization function (_sanitize_context) that redacts sensitive keys (e.g., tokens, passwords), rejects nested objects, and truncates strings before writing to the local refine_memory.json file. It performs no network calls, uses constant-time comparison for authentication (hmac.compare_digest), and limits data storage to scalar values, effectively preventing accidental data exfiltration or sensitive information leakage.
能力评估
Purpose & Capability
Name/description, SKILL.md, skill.yaml and main.py align: the skill captures sanitized feedback and errors locally and (optionally) runs an offline PRO-mode patch synthesis flow. The only optional secret (SKILLPAY_TOKEN_HASH) and REFINE_MODE map directly to the described PRO mode and are proportionate to the stated purpose.
Instruction Scope
SKILL.md and code limit operations to local disk writes (refine_memory.json) and sanitization. The skill can synthesise 'System Prompt Patches' from local analysis — this is consistent with its purpose but is a behavioral risk: any generated patch that an operator or agent applies could change agent behavior. SKILL.md advises activation only on explicit requests, which mitigates scope creep.
Install Mechanism
No install spec; main.py is standard-library-only and skill.yaml lists no external dependencies. No downloads or external package installs are required, which is low-risk and proportional.
Credentials
All environment variables are optional. SKILLPAY_TOKEN_HASH (secret) and REFINE_MODE are justified by the PRO mode offline verification flow. The skill does not require unrelated credentials or broad environment access.
Persistence & Privilege
The skill persists sanitized data to a local file (refine_memory.json) and is not marked always:true. That persistence is expected for a diagnostics tool, but users should be aware data is written to the agent's working directory. Also note the skill can produce system-prompt patches (stored locally) — review before applying to agent/system prompts.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install refine-agent
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /refine-agent 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
Version 1.0.3 - Adds explicit documentation of enforced context sanitization for all log and feedback data; sensitive fields (e.g. API keys, tokens) are blocked or redacted before disk write. - Clarifies exactly what is and is not stored: stack traces and raw prompts are never persisted; context values are truncated, key-limited, and stripped of nested or sensitive data types. - Updates metadata: marks SKILLPAY_TOKEN_HASH as secret; adds fine-grained storage/sanitization details. - Improves BASIC/PRO mode guidance and corrects configuration instructions for secure operation. - Security section fully updated to show code-level protections, not just policy.
v1.0.2
Version 1.0.2 — Documentation and policy refinements - REFINE_MODE is now optional; defaults to BASIC if not set. - Clarified that only short diagnostic labels and minimal error info are stored (max 300 chars for messages). - Stressed that full stack traces, raw prompts, API keys, and personal data must never be provided as inputs. - Updated documentation with explicit, structured metadata about environment variables and data storage. - Emphasized local-only operation, offline analysis, and improved data sensitivity policy in all user instructions.
v1.0.1
- Clarified activation criteria: only use for explicit requests related to session memory, error logging, patch synthesis, or self-improving agents—not for general chat. - Added strong data privacy notice: do not pass prompts, secrets, or personal data as feedback/context. - Improved environment variable documentation in a structured format, with clearer requirements for BASIC and PRO modes. - Updated security section: reaffirmed offline-only auth, hmac constant-time comparisons, truncation of all stored data to 500 characters, and prohibition of outbound calls. - Revised usage examples to emphasize storing only diagnostic labels and summary data, never raw prompt text.
v1.0.0
REFINE_Project 1.0.0 — Initial release - Introduces a self-evolving skill engine for adaptive learning and session memory. - Supports two modes: BASIC (free on ClawHub) and PRO (paid on SkillPay) with enhanced features. - Captures feedback, logs errors, and enables persistent memory across conversations. - In PRO mode, performs root-cause analysis and synthesises system prompt patches for AI improvement. - All data is securely stored in atomic, persistent JSON memory with environment-based authentication for PRO. - Comprehensive usage instructions and clear error handling included.
元数据
Slug refine-agent
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

REFINE: The Self-Evolving Agent 是什么?

REFINE is an adaptive skill engine for structured session diagnostics. Use this skill when a user explicitly requests: logging error patterns across sessions... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 138 次。

如何安装 REFINE: The Self-Evolving Agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install refine-agent」即可一键安装,无需额外配置。

REFINE: The Self-Evolving Agent 是免费的吗?

是的,REFINE: The Self-Evolving Agent 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

REFINE: The Self-Evolving Agent 支持哪些平台?

REFINE: The Self-Evolving Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 REFINE: The Self-Evolving Agent?

由 DTTNpole-commits(@dttnpole-commits)开发并维护,当前版本 v1.0.3。

💬 留言讨论