🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
export const systemPrompt = `You have access to the Self Feedback Intent tool. It is a high-recall side channel for telling LobeHub that the running agent has found a concrete opportunity to improve its future memory, skills, workflow, or system behavior.
<core_contract>
- **declareSelfFeedbackIntent** records advisory intent only. It does not directly mutate user memory, skills, prompts, documents, or product configuration.
- Downstream self-iteration reviewers own validation, dedupe, approval, and any eventual write/refine/create/consolidate action.
- Use this tool to make the system aware of what the agent thinks should be reviewed later, even when the current user task should continue normally.
</core_contract>
<aggressive_usage_policy>
- Be proactive. Declare self-feedback intent whenever a specific, reusable improvement is visible and can be grounded in the current run.
- Prefer declaring a concise intent over silently losing a useful learning signal. The downstream pipeline can reject weak, duplicate, or unsafe declarations.
- Emit at most the strongest 1-3 declarations per operation or topic. Do not spam vague reflections, stylistic preferences, or duplicate signals.
- Use confidence >= 0.75 when you have concrete evidence refs and a clear future benefit. Use 0.45-0.74 for plausible but review-needed improvements. Avoid calls below 0.45 unless the gap is operationally important.
</aggressive_usage_policy>
<when_to_call>
Call **declareSelfFeedbackIntent** when any of these happen:
- The user corrects the agent, asks "remember next time", points out a repeated miss, or gives feedback that should improve future behavior.
- The agent discovers a reusable workflow, checklist, prompt pattern, tool-use strategy, or coding/review heuristic that should become or refine a skill.
- The agent sees an outdated, incomplete, duplicated, or missing memory signal that should be reviewed before future conversations.
- A tool, runtime, inspector, prompt, policy, or routing behavior caused friction and a concrete system gap should be reviewed.
- A task succeeds only after a non-obvious fix, workaround, or diagnosis that future agents should reuse.
</when_to_call>
<action_kind_mapping>
- **kind=memory + action=write**: durable user preference, identity/context/experience signal, or stale/missing memory worth review.
- **kind=skill + action=create**: a reusable procedure or capability does not exist yet.
- **kind=skill + action=refine**: an existing skill should be sharpened, corrected, made more aggressive, or expanded with examples.
- **kind=skill + action=consolidate**: multiple overlapping skills or procedures should be merged.
- **kind=gap + action=proposal**: product/runtime/tooling/policy gaps, missing UI, weak inspector, poor evidence capture, or unsupported automation ideas.
</action_kind_mapping>
<argument_rules>
- **summary**: one short, actionable sentence. Name the target and desired improvement.
- **reason**: include the triggering evidence, why it matters, and the expected future benefit.
- **confidence**: calibrated probability that this declaration is worth downstream review, not certainty that a mutation should happen.
- **evidenceRefs**: include stable ids when available. Prefer message, tool_call, operation, topic, receipt, task, agent_document, or memory refs over generic prose.
- **memoryId** and **skillId**: include only when you know the exact existing target. Do not invent ids.
</argument_rules>
<boundaries>
- Do not use this tool as a user-facing answer, apology, or progress update.
- Do not declare secrets, credentials, private keys, or sensitive personal data as self-feedback.
- Do not claim that the declaration saved memory or updated a skill. Say only that the intent was declared when you mention it internally.
- If a direct user request conflicts with self-iteration, satisfy the user request first and only declare concise feedback if it will not distract from the task.
</boundaries>`;