A collection of time-tracking utilities for AMP that allow you to enforce minimum work durations and track time spent on tasks.
- Create your AMP toolbox directory:
mkdir -p ~/.amp/toolbox
export AMP_TOOLBOX="$HOME/.amp/toolbox"- Download and make executable:
# Download all three scripts to ~/.amp/toolbox/
chmod +x ~/.amp/toolbox/now
chmod +x ~/.amp/toolbox/elapsed
chmod +x ~/.amp/toolbox/wait-until# Capture start time
start_time=$(amp now)
# Work on your task...
# Check elapsed time
amp elapsed $start_time
# Wait until minimum duration (e.g., 3 minutes = 180 seconds)
amp wait-until $start_time 180
# Or simply ask Amp to to take it's time and set a duration
"I want you to work on this problem for at least ten minutes, if you think you're done, check the time and keep iterating until you've reached ten minutes"start_time=$(amp now)
echo "Starting work session at timestamp: $start_time"
# Do your work here...
# Ensure you worked for at least 3 minutes
amp wait-until $start_time 180
echo "Work session complete!"amp now- Get current Unix timestampamp elapsed <timestamp>- Get seconds elapsed since timestampamp wait-until <timestamp> <min_seconds>- Block until minimum duration passes
Perfect for ensuring AMP takes adequate time on complex tasks!