Recollect.Handoff (recollect v0.5.1)

Copy Markdown View Source

Session handoff for continuing work across sessions.

Stores "what I was doing", "what's next", and "artifacts to continue with" so that when a session resumes, the context is immediately available.

Usage

# At end of session
Recollect.Handoff.create(workspace_id,
  what: "Implementing user auth",
  next: ["Add login controller", "Create session middleware"],
  artifacts: ["lib/auth/user.ex", "lib/auth/token.ex"],
  blockers: ["Waiting on API spec"]
)

# At start of next session
{:ok, handoff} = Recollect.Handoff.get(workspace_id)

Summary

Functions

Delete old handoffs, keeping only the most recent N.

Create a handoff for a scope.

Get the most recent handoff for a scope.

Get handoffs since a date.

Functions

cleanup(scope_id, list)

Delete old handoffs, keeping only the most recent N.

create(scope_id, opts \\ [])

Create a handoff for a scope.

Options

  • :what - What you were working on (required)
  • :next - List of next steps (optional)
  • :artifacts - Files/links to continue with (optional)
  • :blockers - What's blocking progress (optional)
  • :session_id - Current session ID (optional)

get(scope_id)

Get the most recent handoff for a scope.

recent(scope_id, since \\ ~D[2024-01-01])

Get handoffs since a date.