personal-context-agent

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Personal 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 → Integrate
Chat Exports → Process → Extract → Chunk → Integrate

Reference Files

参考文件

FilePurpose
references/transcript-processor.md
Convert JSON/text exports to clean transcripts
references/context-extractor.md
Extract personal facts from conversations
references/context-chunker.md
Split context into themed markdown files
references/batch-processing.md
Handle multiple transcripts, merge context
文件用途
references/transcript-processor.md
将JSON/文本导出文件转换为整洁的聊天记录
references/context-extractor.md
从对话中提取个人信息
references/context-chunker.md
将上下文拆分为主题化Markdown文件
references/batch-processing.md
处理多份聊天记录,合并上下文

Quick Start

快速开始

Single Transcript

单份聊天记录

  1. Process: Convert export to clean text (see
    transcript-processor.md
    )
  2. Extract: Pull out personal context (see
    context-extractor.md
    )
  3. Chunk: Split into themed files (see
    context-chunker.md
    )
  1. 处理:将导出文件转换为整洁文本(详见
    transcript-processor.md
  2. 提取:提取个人上下文(详见
    context-extractor.md
  3. 拆分:拆分为主题化文件(详见
    context-chunker.md

Multiple Transcripts

多份聊天记录

See
batch-processing.md
for:
  • 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.md
,
technical-stack.md
Standard categories:
  • personal-background.md
    - Name, location, family
  • work-context.md
    - Job, role, company
  • technical-stack.md
    - Languages, tools, frameworks
  • current-projects.md
    - Active work with details
  • preferences.md
    - Likes, dislikes, opinions
  • constraints.md
    - Limitations, requirements
  • goals.md
    - Objectives
  • communication-style.md
    - Interaction preferences
使用短横线命名法:
work-context.md
technical-stack.md
标准分类:
  • personal-background.md
    - 个人背景(姓名、所在地、家庭情况)
  • work-context.md
    - 工作上下文(职位、角色、公司)
  • technical-stack.md
    - 技术栈(编程语言、工具、框架)
  • current-projects.md
    - 当前项目(进行中的工作及详情)
  • preferences.md
    - 偏好(喜好、厌恶、观点)
  • constraints.md
    - 约束条件(限制、要求)
  • goals.md
    - 目标(工作/个人目标)
  • communication-style.md
    - 沟通风格(互动偏好)

Integration

集成

PlatformLimitMethod
Claude ProjectsNoneProject Knowledge
Custom GPTs10 filesKnowledge upload
Gems10 filesContext files
Claude CodeNoneCLAUDE.md or docs/
平台限制方法
Claude Projects项目知识库
Custom GPTs10个文件知识库上传
Gems10个文件上下文文件
Claude CodeCLAUDE.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以内
  • 使用提供的精准提示词
  • 必要时手动审核并合并输出内容