Skip to content

Basic Concepts

Script eligibility

RighToGo only runs files that match executable script criteria:

  • Go language file
  • .go extension
  • first valid code line is package main

Two execution modes

Uses the file directory when go.mod exists.

go run <file.go>

Creates a temporary environment when go.mod is missing.

go mod init rightogo_temp_run
go mod tidy
go run <file.go>

Local error context

The latest failed run snapshot is persisted for the LLM/MCP bridge flow (local MVP placeholder).

Temporary cleanup

rightogo.cleanupTemporaryDirectory controls whether ephemeral directories are removed after execution.

  • default: true