Skip to main content
The Raysurfer CLI (raysurfer) is a standalone Python tool for interacting with the code cache. Use it in scripts, CI pipelines, or directly from your terminal.

Installation

Setup

Commands

Find cached code matching a task description:
Show the source code from the top match:
Get JSON output for scripting:
Include community public snippets in results:

Upload

Upload code files to the cache after a successful execution:
Upload multiple files:

Vote

Provide feedback on cached code quality:

Patterns

Get proven task-to-code mappings:

Examples

Get few-shot examples for prompting:

Version

Python Library

The CLI also exports sync and async clients for use in your own code:

Configuration