# Function saveStageCheckpoint

- saveStageCheckpoint(
  sessionId: string,
  stage: CheckpointPipelineStage,
  data: PipelineStageData,
  customDir?: string,
  ): boolean

  Append a stage checkpoint to disk.

  #### Parameters

  - sessionId: string
  - stage: CheckpointPipelineStage
  - data: PipelineStageData
  - `Optional` customDir: string

  #### Returns boolean

  - Defined in packages/nexus-agents/src/pipeline/pipeline-checkpoint.ts:90