Skip to main content
All agentic interactions are logged for training data generation and fine-tuning.

What Gets Logged

DataDescription
InputsPrompts, injected context, agent/model used
OutputsLLM responses, proposed files, explanations
DecisionsWhich files were accepted/rejected
EditsUser modifications to proposed content

DPO Pair Types

TypeDescription
accept_rejectUser accepted some files, rejected others
user_editUser modified the LLM’s proposed content
full_rejectUser rejected all proposed files

CLI Commands

# TUI
/observe                    # Open observation panel
/observe summary            # Show statistics
/observe list 10            # List recent observations
/observe export data.jsonl  # Export to file
/observe preferences        # Export DPO pairs

# CLI
puzldai observe summary
puzldai observe list
puzldai observe export observations.jsonl
puzldai observe preferences preferences.jsonl

Export Formats

FormatExtensionUse Case
JSONL.jsonlTraining pipelines
JSON.jsonAnalysis
CSV.csvSpreadsheets

Programmatic Export

import { exportObservations, exportPreferencePairs } from 'puzldai/observation';

// Export all observations
exportObservations({
  outputPath: 'observations.jsonl',
  format: 'jsonl'
});

// Export DPO training pairs
exportPreferencePairs({
  outputPath: 'preferences.jsonl',
  format: 'jsonl'
});

Storage

Observations are stored in the main database:
~/.puzldai/puzldai.db
The observations table contains all logged interactions for training data generation.