Quick Start
Your First Monitored Job
Once NIKI is installed and configured, monitoring a job is simple:
niki watch -- python train.py --epochs 1000That’s it! NIKI will:
- Start your command in the background
- Capture stdout/stderr
- Extract key metrics when it finishes
- Send you a notification with an AI-powered summary
Basic Usage
Watch a Command
# Basic syntaxniki watch -- <your command>
# With a custom nameniki watch --name "Training ResNet" -- python train.py
# With timeoutniki watch --timeout 3600 -- python long_job.pyAttach to Running Process
Already have a job running? Attach to it:
# By PIDniki attach 12345 --name "Alignment job"
# Find running Python processesps aux | grep pythonCheck Status
# See running/recent tasksniki status
# Query historyniki history --last 7dniki history --name "train*"What You’ll Receive
When your job completes, you get a notification like this:
✅ Training Complete (2h 34m)
📍 workstation📊 Loss: 0.0023 (↓ from 0.847)🎯 Accuracy: 98.7%💾 Best checkpoint: epoch 847
Reply "logs", "rerun", or ask a questionJupyter Integration
For Jupyter notebooks:
%load_ext niki
%%niki_watch preprocessingimport scanpy as scadata = sc.read_h5ad("data.h5ad")sc.pp.filter_cells(adata, min_genes=200)sc.tl.umap(adata)The cell runs normally, and when it completes, you get a notification with any plots captured.
Reply Commands
You can interact with NIKI via Telegram/Slack:
- “logs” - Get the last 50 lines of output
- “rerun” - Rerun the last job
- “show loss plot” - Ask for specific information
- “what was the final accuracy?” - Natural language queries
Next Steps
- Telegram Setup - Configure Telegram bot
- Slack Setup - Configure Slack
- CLI Reference - All commands