Skip to content

Track artifacts in recap #351

@acreeger

Description

@acreeger

Summary

Add an artifacts array to the recap schema to track things created during a loom session (comments, issues, PRs, etc.). This enables:

  • Quick reference links in the recap panel (filter by type for display)
  • Audit trail of what got created during the session
  • Foundation for future reset capability

Schema Addition

{
  "filePath": "...",
  "goal": null,
  "entries": [...],
  "artifacts": [
    {
      "id": "IC_kwDON...",
      "type": "comment",
      "primaryUrl": "https://github.com/owner/repo/issues/123#issuecomment-...",
      "urls": {},
      "description": "Progress update: completed API integration",
      "timestamp": "2025-12-15T10:23:45Z"
    },
    {
      "id": "349",
      "type": "issue",
      "primaryUrl": "https://github.com/owner/repo/issues/349",
      "urls": {
        "api": "https://api.github.com/repos/owner/repo/issues/349"
      },
      "description": "Follow-up: Add retry logic to API client",
      "timestamp": "2025-12-15T11:45:00Z"
    }
  ]
}

Artifact Types

  • comment - Issue or PR comment
  • issue - New issue created
  • pr - Pull request created
  • (extensible for future types)

URL Structure

  • primaryUrl - Main URL for display/navigation (required)
  • urls - Object with optional named URL variants (can be empty {}):
    • web - Browser URL (if different from primaryUrl)
    • api - API endpoint
    • (extensible for other contexts)

Implementation

  1. Update recap schema - Add artifacts array with type and URL fields
  2. Add MCP tool - add_artifact tool that Claude calls after creating things
  3. Update prompts - Tell Claude to log artifacts after creating them (coordinate with Update prompts to use Loom Recap MCP #347)

Prompt Updates Required

The issue, PR, and branch prompts must be updated to instruct Claude to:

  • Call add_artifact after creating comments via issue management MCP
  • Call add_artifact after creating issues or PRs
  • Include meaningful descriptions for each artifact

UI Usage

The recap panel can filter artifacts by type:

  • Comments section: artifacts.filter(a => a.type === 'comment')
  • Related issues: artifacts.filter(a => a.type === 'issue')

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions