personal-context-agent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePersonal Context Agent
个人上下文Agent
Extract personal context from AI chat transcripts and structure into themed files. Designed to work with Claude Haiku for cost-effective batch processing.
从AI聊天记录中提取个人上下文并将其结构化到主题化文件中。专为Claude Haiku设计,可实现高性价比的批量处理。
Workflow
工作流程
Chat Exports → Process → Extract → Chunk → IntegrateChat Exports → Process → Extract → Chunk → IntegrateReference Files
参考文件
| File | Purpose |
|---|---|
| Convert JSON/text exports to clean transcripts |
| Extract personal facts from conversations |
| Split context into themed markdown files |
| Handle multiple transcripts, merge context |
| 文件 | 用途 |
|---|---|
| 将JSON/文本导出文件转换为整洁的聊天记录 |
| 从对话中提取个人信息 |
| 将上下文拆分为主题化Markdown文件 |
| 处理多份聊天记录,合并上下文 |
Quick Start
快速开始
Single Transcript
单份聊天记录
- Process: Convert export to clean text (see )
transcript-processor.md - Extract: Pull out personal context (see )
context-extractor.md - Chunk: Split into themed files (see )
context-chunker.md
- 处理:将导出文件转换为整洁文本(详见)
transcript-processor.md - 提取:提取个人上下文(详见)
context-extractor.md - 拆分:拆分为主题化文件(详见)
context-chunker.md
Multiple Transcripts
多份聊天记录
See for:
batch-processing.md- Sequential processing (Haiku-friendly)
- Merging extracted context
- Incremental updates
详见中的以下内容:
batch-processing.md- 顺序处理(适配Haiku)
- 合并提取的上下文
- 增量更新
Source Formats
源文件格式
- Claude.ai JSON exports
- Claude Code session logs
- ChatGPT JSON exports
- Plain text/markdown chat logs
- Claude.ai JSON导出文件
- Claude Code会话日志
- ChatGPT JSON导出文件
- 纯文本/Markdown聊天记录
Output Files
输出文件
Use kebab-case: ,
work-context.mdtechnical-stack.mdStandard categories:
- - Name, location, family
personal-background.md - - Job, role, company
work-context.md - - Languages, tools, frameworks
technical-stack.md - - Active work with details
current-projects.md - - Likes, dislikes, opinions
preferences.md - - Limitations, requirements
constraints.md - - Objectives
goals.md - - Interaction preferences
communication-style.md
使用短横线命名法:、
work-context.mdtechnical-stack.md标准分类:
- - 个人背景(姓名、所在地、家庭情况)
personal-background.md - - 工作上下文(职位、角色、公司)
work-context.md - - 技术栈(编程语言、工具、框架)
technical-stack.md - - 当前项目(进行中的工作及详情)
current-projects.md - - 偏好(喜好、厌恶、观点)
preferences.md - - 约束条件(限制、要求)
constraints.md - - 目标(工作/个人目标)
goals.md - - 沟通风格(互动偏好)
communication-style.md
Integration
集成
| Platform | Limit | Method |
|---|---|---|
| Claude Projects | None | Project Knowledge |
| Custom GPTs | 10 files | Knowledge upload |
| Gems | 10 files | Context files |
| Claude Code | None | CLAUDE.md or docs/ |
| 平台 | 限制 | 方法 |
|---|---|---|
| Claude Projects | 无 | 项目知识库 |
| Custom GPTs | 10个文件 | 知识库上传 |
| Gems | 10个文件 | 上下文文件 |
| Claude Code | 无 | CLAUDE.md或docs/目录 |
Haiku Optimization
Haiku优化
These prompts use:
- Short, direct instructions
- Explicit output formats
- Concrete examples
- Step-by-step structure
- No ambiguity
For best results with Haiku:
- Process one transcript at a time
- Keep input under 50K tokens
- Use the exact prompts provided
- Review and merge outputs manually if needed
这些提示词采用以下设计:
- 简洁直接的指令
- 明确的输出格式
- 具体示例
- 分步结构
- 无歧义表述
为获得Haiku的最佳使用效果:
- 每次处理一份聊天记录
- 输入内容控制在5万tokens以内
- 使用提供的精准提示词
- 必要时手动审核并合并输出内容