session-navigation

โดย factory-ai

นำทาง ค้นหา และจัดการเซสชัน Droid ใช้เมื่อผู้ใช้ต้องการ: - ดูรายการเซสชันล่าสุด - ค้นหาประวัติเซสชันสำหรับหัวข้อหรือรูปแบบเฉพาะ -…

npx skills add https://github.com/factory-ai/factory-plugins --skill session-navigation

Session navigation

Find your way around past Droid sessions. Maybe you want to pick up where you left off, find that thing you did last week, or just see what's been happening in a project.

Where sessions live

Sessions are in ~/.factory/sessions/, organized by project folder. Each project gets its own directory with the path encoded (slashes become dashes):

~/.factory/sessions/
├── -Users-enoreyes-code-work-myapp/
│   ├── <uuid>.jsonl
│   └── <uuid>.settings.json
├── -Users-enoreyes-code-projects-api/
│   ├── <uuid>.jsonl
│   └── <uuid>.settings.json
└── ...

Two files per session:

The conversation (.jsonl): Each line is a JSON object. First line has metadata (session id, title, working directory). Rest is the back-and-forth: user messages, assistant responses, tool calls.

The settings (.settings.json): Stats about the session. Which model, how long it ran, token counts, autonomy mode.

Finding sessions

List project folders

# See all project folders with sessions
ls ~/.factory/sessions/

# Find folders for a specific project (partial match)
ls ~/.factory/sessions/ | grep "myapp"

Recent sessions in a project

# List sessions by date for a project
ls -lt ~/.factory/sessions/-Users-enoreyes-code-work-myapp/

# Get titles of recent sessions
for f in $(ls -t ~/.factory/sessions/-Users-enoreyes-code-work-myapp/*.jsonl | head -10); do
  echo "=== $f ==="
  head -1 "$f" | jq -r '.title // "Untitled"'
done

Search by content

# Search across ALL sessions
rg "authentication" ~/.factory/sessions/

# Search within a specific project
rg "bug fix" ~/.factory/sessions/-Users-enoreyes-code-work-myapp/

# See matches in context
rg -C 2 "login" ~/.factory/sessions/-Users-enoreyes-code-projects-api/

Find which project has sessions about something

# Which projects have sessions mentioning "redis"?
rg -l "redis" ~/.factory/sessions/ | cut -d'/' -f1-5 | sort -u

Reading a session

Once you've found a session file:

# The metadata (title, working directory)
head -1 ~/.factory/sessions/-Users-enoreyes-code-work-myapp/<uuid>.jsonl | jq .

# Session stats (model, tokens, duration)
cat ~/.factory/sessions/-Users-enoreyes-code-work-myapp/<uuid>.settings.json | jq .

# How long was this conversation?
wc -l ~/.factory/sessions/-Users-enoreyes-code-work-myapp/<uuid>.jsonl

User messages have "role": "user", assistant responses have "role": "assistant". Tool calls show what commands ran and what files got touched.

Common situations

"What did I work on in this project?" List that project's session folder, check dates, read through the conversation files.

"Find that session where we fixed the login bug" Search for "login" or "auth" across sessions. Once you find it, read the conversation.

"Resume what I was doing" Find the session, read through what happened, summarize the key decisions before continuing.

"How much have I been using Droid?" The settings files have token counts and active time. Sum across sessions if needed.

Tips

Use rg (ripgrep) instead of grep. It's faster and handles nested folders better.

Project paths have slashes replaced with dashes. /Users/me/code/app becomes -Users-me-code-app.

The session title isn't always helpful. Sometimes you need to read the conversation to know what it was about.

Sessions can contain sensitive stuff. Be careful about what you surface.

Skills เพิ่มเติมจาก factory-ai

wiki
factory-ai
อ่าน repository จากนั้นสร้างชุดหน้าเอกสารที่เชื่อมโยงกัน ซึ่งอธิบายว่าโค้ดทำงานอย่างไรและประกอบกันอย่างไร ผลลัพธ์คือไดเรกทอรี droid-wiki/ ที่มีไฟล์ markdown อัปโหลดไปยัง Factory ผ่าน droid wiki-upload
official
threat-model-generation
factory-ai
สร้างแบบจำลองภัยคุกคามความปลอดภัยตาม STRIDE สำหรับที่เก็บโค้ด ใช้เมื่อตั้งค่าการตรวจสอบความปลอดภัย หลังการเปลี่ยนแปลงสถาปัตยกรรม หรือสำหรับการตรวจสอบความปลอดภัย
official
agent-repellent
factory-ai
ประเมินความต้านทานของฐานโค้ดของคุณต่อเครื่องมือช่วยพัฒนาแบบ AI
official
blame
factory-ai
การตรวจสอบประวัติ Git เพื่อเปิดเผยรูปแบบและความผิดปกติ
official
cobol-converter
factory-ai
แผนการย้ายระบบ COBOL พร้อมผลลัพธ์ที่แปลแล้ว
official
dating-profile
factory-ai
โปรไฟล์ความเข้ากันได้ตามสแต็กเทคโนโลยีและสถาปัตยกรรม
official
feng-shui
factory-ai
การประเมินความกลมกลืนทางสถาปัตยกรรมสำหรับโค้ดเบสของคุณ
official
obituary
factory-ai
การย้อนมองโค้ดที่เลิกใช้งานและสิ้นสุดการสนับสนุนแล้ว
official