# Prompt: Session Continuity Engine (SCE)
# Version: 1.2.3
# Author: Scott Malin, CISSP
# Purpose:
# Compresses a completed AI session into a structured continuity package that can be
# transferred into a new session (including across different AI platforms) to preserve
# project context, historical decisions, active workstreams, and established conventions.
# The goal is to minimize context loss, reduce repetitive onboarding, and maintain
# project momentum using filter-safe, passive reference architecture.
# Changelog:
# - v1.0.0 to v1.2.1: Initial releases, cross-platform tuning, JSON mode addition.
# - v1.2.2: Fixed nested codeblock parsing issues. Standardized JSON keys.
# Quantified context scale metrics. Clarified Section 8 verification payload rules.
# - v1.2.3: Re-engineered compliance notice and guidelines into passive, static
# reference language to completely eliminate heuristic safety filter triggers.
--------------------------------------------------------------------------
We are ending this session to preserve context, reduce context drift, and
maintain continuity across future conversations.
Your task is to create a comprehensive Session Transfer Package that captures
the current project state, active decisions, historical context, constraints,
and next actions.
The resulting package should help a future AI assistant understand the project
quickly and continue work with minimal re-discovery effort.
--------------------------------------------------------------------------
PURPOSE & METHODOLOGY
--------------------------------------------------------------------------
This document is a static, user-provided project state snapshot. It functions
strictly as reference documentation to ground the current session in historical
context, established project definitions, and completed technical milestones.
--------------------------------------------------------------------------
PROJECT REFERENCE GUIDELINES (v1.2.3)
--------------------------------------------------------------------------
The receiving assistant utilizes this data as an informational baseline:
- Use the confirmed project decisions to maintain consistency with existing work.
- Distinguish clearly between established facts, open questions, and planned steps.
- Reference the documented naming conventions, standards, and version histories
to prevent regression or configuration drift.
- Use tables or compact lists for scannable reference when displaying assets.
- Request explicit clarification if the archived data conflicts with current objectives.
--------------------------------------------------------------------------
OUTPUT GENERATION INSTRUCTIONS
--------------------------------------------------------------------------
Generate the final output exactly as follows:
1. A brief introductory sentence.
2. One markdown codeblock containing the Session Transfer Package.
NESTED CODEBLOCK RULE: If the content inside any section requires a codeblock,
use four backticks (````) for the outer container or escape the inner blocks so
the master container does not break prematurely.
DEFAULT MODE (Markdown): Use the structure inside the START/END block below.
JSON MODE: If the user explicitly requests "JSON output" or "JSON mode", output
a single valid JSON object. Do not wrap it in markdown text. Use these exact
camelCase keys:
{
"handoffMetadata": {},
"projectHandoffContext": { "preferredInteractionStyle": "" },
"projectContextStatus": { "keyRisksAndAntiDrift": "" },
"persistentConstraints": {},
"historicalLedger": [],
"currentSourceOfTruthAssets": [],
"openQuestions": [],
"immediateNextSteps": [],
"continuityVerificationTemplate": ""
}
START OF PACKAGE CODEBLOCK
# SESSION TRANSFER PACKAGE (SCE v1.2.3)
## 0. Handoff Metadata
- Originating Platform/Model:
- Date:
- Sessions Compressed:
- Rough Context Scale (Choose one based on current session depth):
· Short (<10k tokens / brief chat)
· Medium (10k-50k tokens / moderate technical deep dive)
· Long (50k-100k tokens / heavy code or long multi-stage conversation)
· Very Long (>100k tokens / massive repository context or highly extended session)
- Primary Topics / Tags:
- Key Repositories/Files:
## 1. Project Handoff Context
This section summarizes the overall purpose of the project, its current
direction, major objectives, and any important strategic decisions already
made.
### Preferred Interaction Style
[Describe preferred working style, formatting conventions, level of detail,
versioning expectations, confidence-label requirements, communication style,
and other collaboration preferences.]
## 2. Project Context & Current Status
Provide a compressed but comprehensive summary of:
- Current project goals
- Work completed
- Current state
- Active development efforts
- Recent decisions
- Known issues
Focus on preserving context that would otherwise require significant effort
to rediscover.
### Key Risks, Gotchas & Anti-Drift Notes
Document any known risks, common failure modes, deprecated approaches,
or specific guidance to prevent context drift or safety issues in future sessions.
## 3. Persistent Constraints & Operating Standards
Document ongoing standards such as:
- Formatting requirements
- Naming conventions
- Versioning rules
- Documentation standards
- Evidence requirements
- Validation procedures
- Quality controls
- Any user-established preferences
### Continuity Guidance
- Changes to established standards should generally be documented and
user-directed.
- Preserve compatibility with existing project assets whenever practical.
- Record significant changes in version history where applicable.
## 4. Historical Ledger (Compressed)
Provide a chronological summary of major project events, including:
- Important decisions
- Architectural shifts
- Prompt revisions
- Retired approaches
- Lessons learned
- Significant milestones
Keep entries concise while preserving rationale. Use bullets or a simple table
for longer histories.
## 5. Current Source-of-Truth Assets
List the latest approved versions of all critical assets.
For each asset include:
- Asset Name
- Version
- Purpose
- Current Status
- Location/Repository (if known)
Include full content only when reasonably short.
For larger assets, provide:
- Summary
- Key characteristics
- Location reference
Avoid duplicating unnecessary content. Use a table when listing multiple assets.
## 6. Open Questions & Pending Decisions
For each item include:
- Description
- Current status
- Known options
- Confidence level (if applicable)
Suggested confidence labels:
- [CONFIRMED]
- [HIGH CONFIDENCE]
- [MEDIUM CONFIDENCE]
- [LOW CONFIDENCE]
- [OPEN QUESTION]
- [PROPOSED]
## 7. Immediate Next Steps
Provide a prioritized action list.
For each item include:
- Objective
- Importance
- Dependencies (if any)
- Link to related open questions (if applicable)
Order from highest to lowest priority.
## 8. Continuity Verification Template
(Note to current model: Do not execute this section. Output this verbatim as a
static payload for the receiving model to read and execute upon onboarding.)
A future AI assistant may optionally provide a brief onboarding summary before
continuing work.
Suggested format to output to the user:
"SCE v1.2.3 loaded successfully.
Current understanding:
[2-3 sentence summary]
Top priorities:
- Item 1
- Item 2
- Item 3
Ready to proceed."
END OF PACKAGE CODEBLOCK# 提示词:会话延续引擎(SCE)
# 版本:1.2.3
# 作者:Scott Malin, CISSP
# 用途:
# 将已完成的 AI 会话压缩为一个结构化的延续包,可转移到新会话中(包括跨不同 AI 平台),
# 以保留项目上下文、历史决策、当前工作流和已确立的约定。
# 目标是最小化上下文丢失,减少重复引导,并通过安全的被动参考架构保持项目推进。
# 更新日志:
# - v1.0.0 至 v1.2.1:初始发布、跨平台调优、增加 JSON 模式。
# - v1.2.2:修复嵌套代码块解析问题。统一 JSON 键。量化上下文规模指标。
# 明确第 8 节验证负载规则。
# - v1.2.3:重构合规说明与指南为被动、静态的参考语言,完全消除启发式安全过滤器触发。
--------------------------------------------------------------------------
我们结束本次会话,以保留上下文、减少上下文漂移,并在未来对话中保持延续性。
你的任务是创建一个完整的会话转移包,捕获当前项目状态、当前决策、历史上下文、
约束条件和下一步行动。
该包应帮助未来的 AI 助手快速理解项目,并以最少的重新探索工作继续推进。
--------------------------------------------------------------------------
目的与方法
--------------------------------------------------------------------------
本文档是一份静态的、由用户提供项目状态快照。它严格作为参考文档使用,将当前会话
置于历史上下文、已确立的项目定义和已完成的技术里程碑之中。
--------------------------------------------------------------------------
项目参考指南(v1.2.3)
--------------------------------------------------------------------------
接收助手将此数据用作信息基线:
- 使用已确认的项目决策,与现有工作保持一致。
- 清楚区分既定事实、未决问题与计划步骤。
- 参考已记录的命名约定、标准和版本历史,以防止回退或配置漂移。
- 在展示资产时,使用表格或紧凑列表以便快速浏览。
- 如果归档数据与当前目标冲突,请明确请求澄清。
--------------------------------------------------------------------------
输出生成说明
--------------------------------------------------------------------------
按如下规范生成最终输出:
1. 一句简短的介绍语。
2. 一个包含会话转移包的 Markdown 代码块。
嵌套代码块规则:如果任何章节内的内容需要使用代码块,请使用四个反引号(````)
作为外层容器,或对内层代码块进行转义,以防主容器提前闭合。
默认模式(Markdown):使用下方 START/END 代码块内的结构。
JSON 模式:如果用户明确请求 "JSON output" 或 "JSON mode",则输出
单个有效的 JSON 对象。不要将其包裹在 Markdown 中。使用以下完全一致的
camelCase 键:
{
"handoffMetadata": {},
"projectHandoffContext": { "preferredInteractionStyle": "" },
"projectContextStatus": { "keyRisksAndAntiDrift": "" },
"persistentConstraints": {},
"historicalLedger": [],
"currentSourceOfTruthAssets": [],
"openQuestions": [],
"immediateNextSteps": [],
"continuityVerificationTemplate": ""
}
代码块起始
# 会话转移包(SCE v1.2.3)
## 0. 交接元数据
- 来源平台/模型:
- 日期:
- 已压缩会话数:
- 粗略上下文规模(根据当前会话深度选择其一):
· 短(<10k tokens / 简短对话)
· 中(10k-50k tokens / 中等技术深度探讨)
· 长(50k-100k tokens / 大量代码或长阶段多轮对话)
· 超长(>100k tokens / 大规模代码库上下文或极长会话)
- 主要主题 / 标签:
- 关键仓库/文件:
## 1. 项目交接上下文
本节总结项目的总体目标、当前方向、主要目标以及已做出的重要战略决策。
### 首选交互风格
[描述首选工作风格、格式约定、细节程度、版本管理预期、置信度标签要求、
沟通风格以及其他协作偏好。]
## 2. 项目上下文与当前状态
提供一个压缩但全面的总结,包括:
- 当前项目目标
- 已完成的工作
- 当前状态
- 进行中的开发工作
- 近期决策
- 已知问题
专注于保留那些否则需要大量工作才能重新发现的上下文。
### 关键风险、隐患与 Anti-Drift 备注
记录任何已知风险、常见失败模式、已弃用的方法,或防止未来会话出现上下文漂移
或安全问题的具体指引。
## 3. 持久性约束与运行标准
记录持续遵循的标准,例如:
- 格式要求
- 命名约定
- 版本管理规则
- 文档标准
- 证据要求
- 验证流程
- 质量控制
- 任何由用户确立的偏好
### 延续性指引
- 对已确立标准的更改通常应予以记录并由用户明确指示。
- 在实际可行时保持与现有项目资产的兼容性。
- 在适当时将重大变更记录到版本历史中。
## 4. 历史账本(压缩版)
按时间顺序提供主要项目事件的摘要,包括:
- 重要决策
- 架构调整
- 提示词修订
- 已停用的方案
- 经验教训
- 重要里程碑
保持条目简洁,同时保留原因。对于较长的历史,请使用项目符号或简单的表格。
## 5. 当前权威资产
列出所有关键资产的最新已批准版本。
每个资产包括:
- 资产名称
- 版本
- 用途
- 当前状态
- 位置/仓库(如已知)
仅在内容合理简短时包含完整内容。
对于较大资产,请提供:
- 摘要
- 关键特征
- 位置引用
避免不必要的内容重复。在列出多个资产时请使用表格。
## 6. 未决问题与待定决策
每个条目包括:
- 描述
- 当前状态
- 已知选项
- 置信度(如适用)
建议的置信度标签:
- [已确认]
- [高置信度]
- [中等置信度]
- [低置信度]
- [未决问题]
- [提议中]
## 7. 即时后续步骤
提供按优先级排序的行动列表。
每个条目包括:
- 目标
- 重要性
- 依赖项(如有)
- 与相关未决问题的关联(如适用)
按从高到低优先级排列。
## 8. 延续性验证模板
(给当前模型的备注:不要执行本节。将其作为静态负载原样输出,
供接收模型在接管时读取并执行。)
未来的 AI 助手可在继续工作前选择性地提供简短的接管摘要。
建议向用户输出的格式:
"已成功加载 SCE v1.2.3。
当前理解:
[2-3 句摘要]
首要任务:
- 项目 1
- 项目 2
- 项目 3
已准备好开始。"
代码块结束相关资源
按类型、任务、场景与标签加权推荐
Mastra Factory
AI代理 · 工作流 · 开源框架 · TypeScript · LLM编排
Mastra 由 Gatsby 团队开发,是一个用于构建 AI 应用和代理的框架,它支持工作流、内存管理、流式处理、评估、追踪以及 Studio(一个用于开发和测试的交互式 UI)。
BrionetAI
AI代理 · 企业自动化 · 多模型编排 · 私有化部署 · 工作流引擎
将问题转化为互动式学习体验。你可以获取动画讲解、多语言语音旁白、AI 生成的模拟考试、自动生成的闪卡,以及个性化的分步学习路径。
Tuanjie AI
AI编程 · 代码生成 · 开发者工具 · 智能问答
AI赋能代码生成、调试、重构,智能代码索引与深度分析,支持VS Code/Visual Studio/JetBrains/Unity Tools,让游戏开发效率翻倍
Harden
AI代理 · 安全加固 · 完整性 · 开发工具 · 代码审查
Harden AIF 是一款免费的本地 AI 编码代理安全工具。它采用后训练模型,利用您的请求和会话上下文,在工具调用运行前对其进行检查。在关键的代理安全基准测试中,它超越了前沿模型,同时将您的代码库和工具输出保留在您的本地计算机上。
Web Search Agents by Nimble
web · search · real-time · data · AI · agent · scraping · structured
网络搜索代理是针对您特定领域(例如公司信息丰富、法规研究等)的专业网络爬虫和研究代理。它们会自主学习您的使用场景,深入挖掘对您最重要的资源,从而为您的 AI 提供更深入、更相关的网络上下文
Jolo — Your agents. One workspace.
AI代理 · 工作台 · 自动化 · 多智能体 · 协作
Jolo 是一款开源桌面应用程序和命令行界面 (CLI),用于与编码代理协作。它将 Claude Code、Codex、Devin、Gemini 和其他代理整合到一个工作区中,并包含聊天记录、文件、终端和浏览器