Source Intelligence

DisclaimerUnofficial, and not affiliated with Anthropic. Nearly all of this is read straight out of what ships: npm bundles, captured prompts, published docs. Anthropic's own notes go in verbatim, marked as theirs. The rest is my reading, and every entry carries the strings behind it. If one looks wrong, vote it down and say why.

All of v0.2.118 Home All releases olderv0.2.117 v0.2.119newer
Claude Code v0.2.118

Code Organization Improvements

New Attachment Processing Function

A new function uo2 has been introduced to handle all attachment types in a more modular way:

function uo2(attachment) {
  switch (attachment.type) {
    case "directory":
      // Returns directory listing tool calls
    case "file":
      // Handles both edited and new files
    case "selected_lines_in_ide":
      // Handles IDE selection events
    case "opened_file_in_ide":
      // Handles IDE file open events
    case "todo":
      // Handles todo list updates
    case "nested_memory":
      // Handles nested memory content
    case "queued_command":
      // Handles queued commands
    case "ultramemory":
      // Handles ultramemory content
  }
}

This refactoring improves code maintainability by:

  • Centralizing all attachment processing logic in one place
  • Making the main message processing function (Jw) cleaner and more focused
  • Returning arrays of messages, allowing for more flexible message composition

See this entry in the whole of v0.2.118 →