Logo: Obsidian Experiment Log

Obsidian Experiment Log

Communautéit
shkodnik1917
obsidian-experiment-log

Keeps a monitored training run's live page in its own folder <work>/runs/<E-code>/ with progress snapshots and a convergence plot that Obsidian shows like a W&B run page. Use when the user launches, monitors, or finishes a training run, asks to log an experiment, update a results table, or promote a finished result into a stable finding.

Iwwersiicht

Editeurshkodnik1917
Repositoryclaude-brainlab
Skill-Nummobsidian-experiment-log
Stären
35
Forks
5
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    shkodnik1917 huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Obsidian Experiment Log an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/shkodnik1917/claude-brainlab/tree/main/skills/obsidian-experiment-log
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/shkodnik1917/claude-brainlab.git /tmp/claude-brainlab
mkdir -p .claude/skills
cp -r /tmp/claude-brainlab/skills/obsidian-experiment-log .claude/skills/obsidian-experiment-log
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Obsidian Experiment Log an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Obsidian Experiment Log automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Obsidian Experiment Log net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Obsidian Experiment Log

Use this skill whenever project work changes the experimental state — either because a new run is being designed, launched, monitored, or completed, or because results need to be promoted into stable findings.

Role in the workflow

Covers two layers:

  1. Operations — how to launch, monitor, and chain real training runs on remote servers
  2. Notes — the run's live page with its convergence plot, inside the work in ~/brainlab

Both layers must be applied together. A finished experiment with no notes is invisible to future agents; a beautifully written note with no actual run is fiction.


Layer 1 — Operations (running the experiments)

Two execution modes — pick by user intent

ModeWhen to useReference
Live monitor with /loopMulti-hour runs needing post-finish actions (kill tmux, refresh plot, launch next from queue, write final into table). User says "следи / поставь N ранов / запусти когда освободится".[[handbook/pipelines/long-runs]]
Push queue (per-GPU lane)Set-and-forget N items, no trigger logic, no chained actions. User says "поставь очередь на ночь".[[handbook/pipelines/long-runs]]

The live-monitor mode is the default for warmup-style hypothesis studies. The push queue is for compute-burning ablations where order matters but events don't.

Launch primitive (tmux + pipe-pane)

Every training run = one tmux session whose pane is piped to a log file. Survives ssh drop, log stays parseable.

bash
ssh SERVER "tmux new-session -d -s SESSION_NAME && \
  tmux pipe-pane -t SESSION_NAME:0 'cat >> /abs/path/logs/RUN.txt' && \
  tmux send-keys -t SESSION_NAME 'source ~/venv/bin/activate' Enter && sleep 1 && \
  tmux send-keys -t SESSION_NAME 'cd ~/repo' Enter && \
  tmux send-keys -t SESSION_NAME 'GPU=N WS=X LR=Y SEED=Z bash scripts/param_run.sh' Enter"

Critical ordering:

  • tmux new-session -d -s NAME first, then pipe-pane, then send-keys. Collapsing them (tmux new -d -s NAME 'cmd') races the pane setup → empty log.
  • Verify within 60–90 s: tmux capture-pane -t NAME:0 -p | tail -10 should show Iter= lines. If only optimizer-init lines after 60 s, the run is stuck — kill and investigate before scheduling the next tick.

Parametrized launcher (one script per experiment family)

Don't write one bash script per run. One parametrized script per family, env-var-controlled:

bash
ITERS=${ITERS:-32000}
GPU=${GPU:-0}
LR=${LR:-1e-3}
WS=${WS:-10}
SEED=${SEED:-0}
# ... --lr $LR --warmup_steps $WS --seed $SEED ...

Adding SEED=42 for reproducibility reruns becomes a one-line edit (SEED=${SEED:-0} + --seed $SEED). No fork. Default unchanged so prior runs unaffected.

The /loop prompt (state lives in the prompt, not the agent)

AUTONOMOUS <study> on <server>.

CURRENT active runs (N):
- `session_1` (GPU X, ~Ys/iter, last iter, last val)

DONE so far: <seed=0 finals>

PLANNED queue: <ordered list of configs>

GPU plan: <which finish → which launch>

Each tick: ssh SERVER 'grep ">Eval" logs/<files>; nvidia-smi'

TRIGGERS:
(a) GPU >50GB free AND <30% util AND next item not running → launch
(b) running session hits target iter → record final, kill tmux, refresh plot, launch next
(c) ALL queue done → write final results section, STOP loop

Launch template: <one-line tmux+pipe-pane command>

CONSTRAINTS: paper-canonical hypers only. 30-min cadence. NO other launches.

The agent re-receives this verbatim every 30 min via ScheduleWakeup(1800, /loop ...). Nothing in the model's head; state lives entirely in server logs + the prompt itself.

Trigger semantics

TriggerActionDon't forget
last_eval_iter == target_iterrecord final, tmux kill-session -t NAME, refresh plotcheck pane shows wandb sync + shell prompt — confirms clean exit, not OOM
GPU >50GB free AND <30% utillaunch next queued configre-check 60 s after launch that Iter= appears in log
Same iter for two consecutive ticksinvestigate stall before next tickcheck pane (tmux capture-pane) for traceback; check df -h /data for disk-full
All queue items finishedwrite final summary section + STOP loop (no ScheduleWakeup)refresh plot one last time, add MemPalace drawer

GPU contention on shared servers

Other users grab freed GPUs in seconds. Two rules:

  1. Don't assume the GPU you freed is the GPU you'll reclaim. After kill-session, log GPU map immediately. If now-owned by someone else, find a different free GPU.
  2. Safe envelope on H200 (141GB): >50GB free AND <30% util for ~24GB models. Tighten or loosen per server class.
bash
# GPU state
ssh SERVER 'nvidia-smi --query-gpu=index,memory.used,memory.free,utilization.gpu --format=csv,noheader'

# Ownership (who runs what)
ssh SERVER 'nvidia-smi --query-compute-apps=gpu_uuid,pid,used_memory,process_name --format=csv,noheader'

Map UUID → index using --query-gpu=index,gpu_uuid.

Two failure modes to design for

Same iter as last tick — process is stuck or dead. Don't blindly schedule another tick. Capture the pane (tmux capture-pane -t NAME:0 -p | tail -20), look for: Python traceback, wandb upload + shell prompt (= clean finish you didn't notice), or silence (= true hang).

Disk full mid-checkpoint. torch.save fails partial writes with RuntimeError: [enforce fail at inline_container.cc:...] . unexpected pos N vs 0. Check df -h /data. If >95% full, do not restart — it will crash again. Accept partial result, document, move on.

Brutal honest reporting

If a run crashed, write "crashed at iter X with traceback Y", not "may not have completed". If a finding rests on a partial trajectory, say so explicitly — "Q3 didn't finish; trajectory at 84% (val 3.072) consistent with Q1 at same %; inferred final ~3.04". Reviewers see through hedge-words; agents shouldn't generate them.

Constraints worth always restating in the /loop prompt

  • Paper-canonical hyperparameters only (no off-paper "fixes" without explicit user approval)
  • NO other launches without explicit user instruction
  • Cadence 30 min (1800 s): under 5 min wastes prompt-cache, over 60 min misses contention windows

Layer 2 — Notes: the run's own folder, with a live convergence plot

The vault is the lab tree ~/brainlab, so a monitored run is watched in Obsidian like a W&B run page. Owner 26-10-2026: «удобно что логи рисуются в обсидиане… чтобы у рана если я попросил его мониторить прям в E- папке экспа рисовался бы какой то график сходимости в md файле».

Where it lives

One folder per run, named by its E-code, in the work's local shelf (closed from git):

<работа>/runs/<E-код>/
  README.md                  # status, progress table, plot embed, decisions
  curves-<YYYYMMDD-HHMM>.png # current convergence plot, one file at a time

A series of runs watched together gets one folder for the series (runs/<S-код>/) with one plot, and each run's row in its table.

README.md of the run folder

  • one line: what is checked and what the result will mean (the recorder's objective);
  • status (running, done, failed, killed), server, GPU, tmux session, log path;
  • the plot embed ![[curves-<stamp>.png]] right under the status;
  • ## Progress snapshots — timestamped table: step, train loss, val metric, s/iter, ETA;
  • decisions and crashes, 2-3 lines each, with the time.

The plot

  • Refresh it on every tick and on every progress report to the owner, in the same turn. A number without the matching curve is half a report.
  • Draw from what the code wrote: the recorder's metrics.csv or the server log. Never from numbers typed by hand.
  • House style and the plotter: handbook/tools/plot-curves.md (main panel + zoom on running tips, big fonts, narrow figure).
  • Obsidian caches embeds by file name: write a new timestamped file, rewrite the embed, delete the previous file. Keep the note closed in Obsidian while the loop writes it.

When the run is finished

The run enters the lab base through lab-knowledge: the recorder's page goes to claims/<H>/runs/<E>.md, and a figure that carries a conclusion goes to claims/<H>/figures/F-….svg (SVG only, data only from that series). The local folder stays as the run's diary; nothing from it is copied into the base by hand.

Post-mortem ritual (after every meaningful event)

  1. Append a snapshot row and refresh the plot.
  2. If a decision (restart? give up? accept partial?): 2-3 lines of reasoning in the run's README.
  3. When the run or series is done: carry it into the base via lab-knowledge, and a mempalace_add_drawer with the stable numbers.

Skill activation

Trigger this skill on user phrases like:

  • "запусти параллельно X, Y, Z и следи"
  • "поставь раны на N часов и сделай Q когда добежит"
  • "сделай seed reruns после того как закончится текущий sweep"
  • "проверь как идёт " / "как там дела"
  • "запиши результаты эксперимента в таблицу"
  • "у меня крашнулся ран — что делать"

Workflow when activated:

  1. Identify mode (live-monitor vs push-queue) from user intent
  2. Find the work in ~/brainlab and the run's E-code; create runs/<E-код>/README.md
  3. For live-monitor: build /loop prompt → launch first runs via tmux+pipe-pane primitive → ScheduleWakeup(1800s)
  4. For push-queue: follow [[server-run-queue]]
  5. On every tick: snapshot row + refreshed plot in runs/<E-код>/; on finish: final numbers, then lab-knowledge
  6. Stop the loop only after writing the final summary section (no orphaned ScheduleWakeup calls)

Cross-references:

  • [[handbook/pipelines/long-runs]] — full operations playbook
  • [[handbook/pipelines/long-runs]] — push-queue alternative
  • [[handbook/tools/plot-curves]] — refresh_plot.sh patterns + iCloud gotchas
  • [[agents/claude-brainlab/notes/mac-and-harness]] — keeping local /loop session alive

Last revised 14-06-2026 based on the 583M Muon warmup study (loop ran for 3+ days, 13 finished runs, 1 disk-full crash handled).

Heefeg gestallte Froen

Wat mécht de KI-Skill Obsidian Experiment Log?

Keeps a monitored training run's live page in its own folder <work>/runs/<E-code>/ with progress snapshots and a convergence plot that Obsidian shows like a W&B run page. Use when the user launches, monitors, or finishes a training run, asks to log an experiment, update a results table, or promote a finished result into a stable finding.

Firwat Obsidian Experiment Log op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Obsidian Experiment Log besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Obsidian Experiment Log an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/shkodnik1917/claude-brainlab/tree/main/skills/obsidian-experiment-log an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Obsidian Experiment Log benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Obsidian Experiment Log benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Obsidian Experiment Log domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Obsidian Experiment Log gratis?

Jo. shkodnik1917 huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇