Overview
The file system agent demonstrates ICRL’s training and inference flows using a simulated filesystem environment. The agent learns to navigate directories, read files, and perform operations likels, cd, cat, find, mkdir, and cp. Successful trajectories are stored and retrieved for similar future tasks.
Source Files
Run With Mock LLM (No API Keys)
- Training phase with trajectory accumulation
- Database persistence across sessions
- Trajectory retrieval for in-context examples
- Evaluation on held-out tasks
Run With Real Model
- Training — The agent completes several tasks. Successful runs are stored.
- Evaluation — Held-out tasks are run with retrieval enabled. The agent uses stored trajectories as examples.
Environment Behavior
FileSystemEnvironment accepts command-like actions:
Each task has a
verify function that determines success based on the final FileSystemState.
