import { useEffect, useState } from "react"; import { useNavigate } from "react-router-dom"; import { Play, Loader2, Beaker } from "lucide-react"; import api from "@/lib/api"; export default function RunCreate() { const navigate = useNavigate(); const [tasks, setTasks] = useState([]); const [task, setTask] = useState(""); const [n_steps, setNSteps] = useState(3); const [sae_layer, setSaeLayer] = useState(7); const [busy, setBusy] = useState(false); const [recent, setRecent] = useState([]); useEffect(() => { api.suggestedTasks().then((d) => setTasks(d.tasks || [])).catch(() => {}); api.listRuns().then((d) => setRecent(d.runs || [])).catch(() => {}); }, []); async function start() { const t = task.trim(); if (!t || busy) return; setBusy(true); try { const res = await api.createRun({ task: t, n_steps, sae_layer }); navigate(`/run/${res.run_id}`); } finally { setBusy(false); } } return (
/run · create

Start a new trajectory

GPT-2 Small runs as both the agent and the analysis subject. Capture begins on every step.