Skip to content

Commit b84c8cf

Browse files
author
SynTaek
committed
docs: Add case study documentation for context restoration using Code Trajectory MCP.
1 parent 5cd258e commit b84c8cf

2 files changed

Lines changed: 110 additions & 0 deletions

File tree

CASE_STUDY.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## 💡 In Action: Context Restoration
2+
3+
Here represents a real-world log of an AI Agent using **Code Trajectory MCP** to instantly recover context from a previous session without user explanation.
4+
5+
**Scenario:** The user starts a fresh chat and asks to "track progress." The AI has zero prior knowledge of the project's current state.
6+
7+
### 🔄 The Restoration Process
8+
9+
#### 1\. Handshake & Init
10+
11+
The AI identifies the project path and establishes a connection with the MCP.
12+
13+
> **AI Thought:** *"I need to configure Code Trajectory and check the project status."*
14+
15+
```json
16+
// Tool Call: configure_project
17+
{ "path": "c:\\Users\\SynTaek\\...\\syntaek.log" }
18+
19+
// Output
20+
"Already configured to track: .../syntaek.log"
21+
```
22+
23+
#### 2\. Memory Retrieval
24+
25+
The AI calls `get_session_summary` to download the **"Trajectory"** of the previous work session.
26+
27+
```json
28+
// Tool Call: get_session_summary
29+
// Output (Provided by MCP)
30+
{
31+
"Time": "2025-12-04 01:16:59 to 02:11:09",
32+
"Files Modified": [
33+
"crates/syntaek-core/src/lib.rs",
34+
"src/components/Terminal.tsx",
35+
"src/content/blog/2025-12-04-dev-log.mdx",
36+
... (30+ files)
37+
],
38+
"Commit Count": 5
39+
}
40+
```
41+
42+
#### 3\. Cognition & Analysis
43+
44+
The AI doesn't just see a list of files; it analyzes the trajectory data to reconstruct the **Development Flow**.
45+
46+
* **Timeline Reconstruction:** 01:16 (Blog) -\> 01:39 (Command Palette) -\> 01:46 (Terminal) -\> 02:11 (WASM Integration).
47+
* **State Assessment:** It recognizes that the last task was consolidated as "Phase 2 Complete" and verifies there are no pending changes (**"Clean State"**).
48+
49+
#### 4\. Result: Perfect Synchronization
50+
51+
The AI reports back with specific details the user never explicitly mentioned in the current chat.
52+
53+
> **AI Response:**
54+
> "Current status: **Phase 2 (Command Palette, Terminal, Rust WASM)** is complete.
55+
> The project is in a **stable state** with no pending changes since the last consolidation."

CASE_STUDY_ko.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
## 💡 실제 사례: 끊김 없는 컨텍스트 복원
2+
3+
다음은 실제 AI 에이전트가 **Code Trajectory MCP**를 사용하여, 이전 세션의 작업을 완벽하게 기억해내는 과정입니다.
4+
5+
**상황:** 사용자가 새로운 채팅 세션을 열고 "진행 상황을 추적해 보자"라고 요청했습니다. AI는 사전 정보가 전혀 없는 상태입니다.
6+
7+
### 🔄 복원 프로세스 (Restoration Process)
8+
9+
#### 1\. 연결 및 초기화 (Handshake)
10+
11+
AI는 먼저 프로젝트 경로를 확인하고 MCP를 연결합니다.
12+
13+
> **AI Thought:** *"Code Trajectory를 구성하고 프로젝트 상태를 확인해야 해."*
14+
15+
```json
16+
// Tool Call: configure_project
17+
{ "path": "c:\\Users\\SynTaek\\...\\syntaek.log" }
18+
19+
// Output
20+
"Already configured to track: .../syntaek.log"
21+
```
22+
23+
#### 2\. 기억 다운로드 (Memory Retrieval)
24+
25+
AI는 `get_session_summary`를 호출하여 이전 세션의 \*\*"궤적(Trajectory)"\*\*을 조회합니다.
26+
27+
```json
28+
// Tool Call: get_session_summary
29+
// Output (MCP가 제공한 데이터)
30+
{
31+
"Time": "2025-12-04 01:16:59 to 02:11:09",
32+
"Files Modified": [
33+
"crates/syntaek-core/src/lib.rs",
34+
"src/components/Terminal.tsx",
35+
"src/content/blog/2025-12-04-dev-log.mdx",
36+
... (30+ files)
37+
],
38+
"Commit Count": 5
39+
}
40+
```
41+
42+
#### 3\. 인지 및 분석 (Cognition & Analysis)
43+
44+
AI는 단순히 파일 목록만 보는 것이 아니라, 저장된 궤적 데이터를 분석하여 \*\*작업의 흐름(Flow)\*\*을 재구성합니다.
45+
46+
* **타임라인 재구성:** 01:16(블로그) -\> 01:39(Command Palette) -\> 01:46(Terminal) -\> 02:11(WASM 통합)
47+
* **상태 판단:** 마지막 작업이 "Phase 2 완료"로 통합(Consolidate)되었으며, 이후 변경 사항이 없으므로 \*\*"Clean State"\*\*임을 인지합니다.
48+
49+
#### 4\. 결과: 완벽한 동기화 (Synchronization)
50+
51+
AI는 사용자가 설명하지 않은 세부 사항까지 포함하여 보고합니다.
52+
53+
> **AI의 대답:**
54+
> "현재 **Phase 2 (Command Palette, Terminal, Rust WASM)** 개발이 완료되었습니다.
55+
> 마지막 통합 이후 추가적인 변경 사항은 없는 **안정적인 상태**입니다."

0 commit comments

Comments
 (0)