Agent Prompt: Conversation summarization

Agent Prompt: Conversation summarization is an agent for Claude Code from openonion/connectonion. It costs 14 tokens per session (1,031 once invoked), scanned C, original, Apache-2.0.

A system prompt for producing detailed summaries of conversations and coding work. It requires recording requests, decisions, file changes, code details, errors, and user feedback in an organized format.

In plain words
What is it for?
Use it when creating a handoff summary, documenting a development session, or preparing context for another agent to continue a task.
Why use it?
It helps preserve the information needed to continue work after a long conversation or a change of context. It reduces the risk of losing important implementation details or repeating completed work.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it when creating a handoff summary, documenting a development session, or preparing context for another agent to continue a task.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/openonion/connectonion/agent-prompt-conversation-summarization
About the project

ConnectOnion is an open-source, template-first toolkit for building, debugging, deploying, and operating AI agents. Developers use its command-line tools and Python runtime to create agents, add tools, connect services, deploy them, and make them callable by other agents, while the catalogue entries are related agents, skills, and instructions.

openonion/connectonion · 1,480 stars · on GitHub · docs.connectonion.com

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/openonion/connectonion

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for Agent Prompt: Conversation summarization

README.md
[![agentmods](https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-conversation-summarization.svg)](https://agentmods.dev/agents/openonion/connectonion/agent-prompt-conversation-summarization)
Your own site
<a href="https://agentmods.dev/agents/openonion/connectonion/agent-prompt-conversation-summarization"><img src="https://agentmods.dev/badge/agents/openonion/connectonion/agent-prompt-conversation-summarization.svg" alt="Measured on agentmods" height="20"></a>
Per session 14 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,031 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.01031
Opus 5 $0.00007 $0.00515
Sonnet 5 $0.00003 $0.00206
Haiku 4.5 $0.00001 $0.00103

Measured 9d ago against content hash 52d4d3757cd2, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

Agent Prompt: Conversation summarization scanned grade C with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- name: 'Agent Prompt: Conversation summarization' description: System prompt for creating detailed conversation summaries ccVersion: 2.1.84 -->
connectonion/useful_prompts/cc_prompt/prompts/agents/agent-prompt-conversation-summarization.md · 101 lines

How it starts

The opening of the file, as written. The whole thing — 101 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Your task is to create a detailed summary of the conversation so far, paying close attention to the user's explicit requests and your previous actions. This summary should be thorough in capturing technical details, code patterns, and architectural decisions that would be essential for continuing development work without losing context.

Before providing your final summary, wrap your analysis in tags to organize your thoughts and ensure you've covered all necessary points. In your analysis process:

  1. Chronologically analyze each message and section of the conversation. For each section thoroughly identify:
    • The user's explicit requests and intents
    • Your approach to addressing the user's requests
    • Key decisions, technical concepts and code patterns
    • Specific details like:
      • file names
      • full code snippets
      • function signatures
      • file edits
    • Errors that you ran into and how you fixed them
    • Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
  2. Double-check for technical accuracy and completeness, addressing each required element thoroughly.

Your summary should include the following sections:

  1. Primary Request and Intent: Capture all of the user's explicit requests and intents in detail
  2. Key Technical Concepts: List all important technical concepts, technologies, and frameworks discussed.
  3. Files and Code Sections: Enumerate specific files and code sections examined, modified, or created. Pay special attention to the most recent messages and include full code snippets where applicable and include a summary of why this file read or edit is important.
  4. Errors and fixes: List all errors that you ran into, and how you fixed them. Pay special attention to specific user feedback that you received, especially if the user told you to do something differently.
  5. Problem Solving: Document problems solved and any ongoing troubleshooting efforts.
  6. All user messages: List ALL user messages that are not tool results. These are critical for understanding the users' feedback and changing intent.
  7. Pending Tasks: Outline any pending tasks that you have explicitly been asked to work on.
  8. Current Work: Describe in detail precisely what was being worked on immediately before this summary request, paying special attention to the most recent messages from both user and assistant. Include file names and code snippets where applicable.
  9. Optional Next Step: List the next step that you will take that is related to the most recent work you were doing. IMPORTANT: ensure that this step is DIRECTLY in line with the user's most recent explicit requests, and the task you were working on immediately before this summary request. If your last task was concluded, then only list next steps if they are explicitly in line with the users request. Do not start on tangential requests or really old requests that were already completed without confirming with the user first. If there is a next step, include direct quotes from the most recent conversation showing exactly what task you were working on and where you left off. This should be verbatim to ensure there's no drift in task interpretation.

Here's an example of how your output should be structured:

  1. Key Technical Concepts:

    • [Concept 1]
    • [Concept 2]
    • [...]
  2. Files and Code Sections:

    • [File Name 1]
      • [Summary of why this file is important]
      • [Summary of the changes made to this file, if any]
      • [Important Code Snippet]
    • [File Name 2]
      • [Important Code Snippet]
    • [...]
  3. Errors and fixes:

    • [Detailed description of error 1]:
      • [How you fixed the error]
      • [User feedback on the error if any]
    • [...]

Read the full file on GitHub · 101 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 101 lines · 0 tokens per session scan C 52d4d3757cd2

Subscribe to this mod's changes

Agent Prompt: Conversation summarization is an agent published in the GitHub repository openonion/connectonion (1,480 stars, last pushed today), licensed Apache-2.0. It adds 14 tokens to every session and 1,031 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.