Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

context-aware-delegation

bởi rgba-research

Productivity & Tasks
524Lượt tải do clawskills.sh công bố
1Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

Give isolated sessions (cron jobs, sub-agents, event handlers) full conversation context from your main session.

Mô tả

Kỹ năng này làm gì

Isolated sessions like cron jobs and sub-agents have no access to the main session's conversation history. Using `sessions_history`, an isolated session can pull context from the main chat before executing its task, letting it run on a cheap model (Haiku) while remaining fully aware of prior work.

Running context-aware background tasks in the main session with Sonnet costs around 10x more than delegating to a Haiku-powered isolated session that reads history on demand.

Khi nào nên dùng

  • Daily morning report that references overnight conversation work
  • End-of-day cron job summarizing what got done and what's pending
  • Background sub-agent researching a topic based on earlier discussion
  • Webhook handler acting on context from a previously agreed decision
  • Periodic email and calendar check-ins informed by current session priorities

Quy trình ví dụ

ĐẦU VÀO

User asks: Send me a morning report at 8 AM every day

AGENT
  1. 1

    Cron job triggers an isolated Haiku session at 8 AM

  2. 2

    Session calls sessions_history on the main session key to retrieve the last 50 messages

  3. 3

    Session reads yesterday's memory file for persistent decisions and notes

  4. 4

    Session fetches weather, checks email, and pulls today's calendar events

  5. 5

    Session assembles the report and sends it via the message tool

ĐẦU RA

Formatted morning report with weather, overnight work summary, memory notes, urgent emails, and calendar events delivered for ~$0.03

Cài đặt

clawhub install rgba-research/context-aware-delegation

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết