forge-monitor
Skill1 starsChanged 6 months agoMITView on GitHub
Single-shot poll of the running training job — checks PID liveness via SSM, parses loss + step from the last 200 lines of train.log, syncs newly-completed checkpoints to S3, computes ETA. Returns in-progress / completed / failed; dispatch-v2 re-invokes on a 120s interval until terminal. 60s silent-OOM detector hard-fails on stuck launches.
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 19
Read tail (200 lines) of /workspace/logs/train.log via SSM
- Very specific: line 25
Update manifest.training_runtime heartbeat fields
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
forge-monitor
When this fires
Phase position: MONITOR — after forge-train. dispatch-v2 polls
this skill on a 120-second interval (configurable via
FORGE_MONITOR_POLL_SECONDS) until it returns terminal status.
What it does
Each invocation is stateless and single-shot:
ssm exec "ps -p $PID"to check PID liveness on the instance- Read tail (200 lines) of
/workspace/logs/train.logvia SSM - Parse the last loss + step — also detect "no progress" (PID alive but loss/step unchanged for > 60 s → silent OOM / hang → fail)
- Detect new checkpoints under
/workspace/checkpoints/and trigger asyncaws s3 synctos3://.../checkpoints/ - Compute ETA = (max_steps − current_step) × seconds_per_step
- Update
manifest.training_runtimeheartbeat fields - Decision matrix:
- alive + no final-weights yet → return
in-progress(dispatcher loops) - dead + final weights synced → return
completed, advance toEVAL - dead + no final weights → return
failed(recoverable viaforge-resume)
- alive + no final-weights yet → return
Inputs
$1= forge-idmanifest.training_runtime.{pid, instance_id}- Remote
/workspace/logs/train.log
Outputs
manifest.training_runtime.{last_loss, last_step, eta_minutes, last_checkpoint_step, last_heartbeat}- On completion:
manifest.artifacts.{final_weights_s3, checkpoints_s3} - On completion:
manifest.state.current_phase = EVAL
Idempotency
Stateless — each call is a fresh poll. Safe to invoke any number of times.
Failure modes
| Exit | Reason | Recoverable? |
| 0 | in-progress OR completed cleanly | – |
| 1 | PID alive 60+ s with no loss/step movement (silent OOM/hang) OR PID dead without final weights (training crashed) | yes — try forge-resume |
| 64 | no forge-id provided | no |
External resources
- AWS EC2 (SSM RunCommand for
ps,tail,ls) - AWS S3 (sync checkpoints + final weights)
Cost class
spends GPU time — instance is still running and billing.
Depends on
forge-train (PID + log path required)
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- tonmoy007/forge-plugins★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- slm-forgeSkill
- forge-analyzeSkill
- forge-architectSkill
- forge-auditSkill
- forge-bootstrapSkill
- forge-card-validatorSkill
- forge-curateSkill
- forge-estimateSkill
- forge-evalSkill
- forge-ingest-dbSkill
- forge-ingestSkill
- forge-intakeSkill
- forge-plan-fitSkill
- forge-planSkill
- forge-preflightSkill
- forge-prepSkill
- forge-provisionSkill
- forge-publishSkill
- forge-quantizeSkill
- forge-registerSkill
- forge-reportSkill
- forge-resumeSkill
- forge-shapeSkill
- forge-smoketestSkill
- forge-sourceSkill
- forge-statusSkill
- forge-synthSkill
- forge-teardownSkill
- forge-trainSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

