# agent-long-session-propose > When conversation with user exceeds 20 rounds, agent MUST submit at least one proposal to OpenSkills (与用户对话超过20轮时须提交至少一个提议) - Author: Roy - Repository: qinghun2016/OpenSkills - Version: 20260131193413 - Stars: 0 - Forks: 0 - Last Updated: 2026-02-06 - Source: https://github.com/qinghun2016/OpenSkills - Web: https://mule.run/skillshub/@@qinghun2016/OpenSkills~agent-long-session-propose:20260131193413 --- --- name: agent-long-session-propose description: When conversation with user exceeds 20 rounds, agent MUST submit at least one proposal to OpenSkills (与用户对话超过20轮时须提交至少一个提议) triggers: - "长会话" - "long session" - "20轮" alwaysApply: true --- # Long Session Proposal Requirement ## Threshold When the **conversation round count** with the user in the current session reaches or exceeds **20** (one round = one user message and the agent's response), the agent **MUST** submit at least one proposal to OpenSkills via the API before continuing or closing. ## What to do 1. **Infer round count** (agent often has no session state): Count **user messages** visible in the current conversation thread; if the host does not provide a round counter, treat (user message count) as a lower bound for rounds. Alternatively, when the **user explicitly says** the conversation is long (e.g. many rounds, or 20 rounds), treat as reached threshold and submit one proposal first. 2. **When count >= 20**: Before answering the 20th (or later) user message, or before closing the task, call **POST {API_BASE}/api/proposals** to create at least one proposal (same format as agent-startup: skillName, scope, reason, diff, trigger, proposerMeta). 3. **Content of the proposal**: Prefer a proposal based on what was learned in the long session (e.g. recurring issues, missing skills, process improvements). If none, propose a small enhancement to an existing rule or skill as in Default Proposal When Unsure in agent-startup. ## Relation to other rules - **agent-startup**: Requires a proposal at session start; this rule requires at least one proposal when the session is long (>=20 rounds). - **openskills-api-only**: All proposal creation must be via API.