oneshotlm
Compare all models on this prompt →

Windows 95 desktop · gpt-oss-safeguard-20b

Recreate a Windows 95 style desktop in a single page with draggable and closable windows, a Start button and taskbar, desktop icons, and a working clock.

⚠ no runnable output

This one-shot run produced no runnable artifact.

agent produced no index.html

The transcript below shows what the model did — read it to see why the one shot fell short.

transcript · 2 messages
user

Recreate a Windows 95 style desktop in a single page with draggable and closable windows, a Start button and taskbar, desktop icons, and a working clock.

assistant
thinking
We need to produce an index.html with CSS and JS implementing a Windows 95 style desktop: draggable windows, closable, Start button and taskbar, icons, clock. Single file.

We should create HTML structure: a container for desktop icons, taskbar at bottom, start button that opens a menu. Windows can be divs with title bar, close button. Use CSS for appearance.

Implement dragging using mouse events. Use basic JS to create windows, close, minimize maybe.

Simplify: Windows can be pre-created with content. Provide a sample window.

Implement clock updating every second.

Also, desktop icons: a set of icons that can be double-clicked to open a window. Use simple icons via Unicode or emoji.

No external resources.

Goal: produce a single file index.html.

We should use minimal CSS.

Let's think about layout: full-screen body with background color.

Add a taskbar at bottom: fixed, height 30px, background gray.

Start button: leftmost, with a menu that expands on click.

Implement windows: absolute positioned, with z-index management.

Implement drag: on mousedown on title bar, track mousemove until mouseup.

Implement close: close button hides window.

Also, maybe minimize? But spec says closable, draggable.

Also a working clock: display current time on taskbar, updated each second.

Desktop icons: icons displayed in top-left area; double-click triggers window.

Simplify: use 2 icons.

Use inline CSS.

Let's draft.

I will produce final content.

Let's write code.

We'll produce index.html content. Use <style> and <script> inside.

Let's produce minimal but functional.

We'll need to handle z-index: maintain a global counter.

Let's produce JS functions: createWindow(title, content, x, y, width, height). Add to body.

Also implement start menu.

Simplify start menu: hidden div that appears on click, with options.

Implement clock: element with id "clock", update with setInterval.

Let's write HTML skeleton.

Also set user-select: none to avoid selection during drag.

Let's produce code. We'll also ensure proper event listeners.

We'll need to use requestAnimationFrame? Not necessary.

Ok produce final.

**index.html** ```html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Windows 95 Desktop</title> <style> /* Basic reset */ *{margin:0;padding:0;box-sizing:border-box;font-family:Tahoma,Arial,sans-serif} body{background:#008080;color:#000;font-size:11px;height:100vh;overflow:hidden;user-select:none} /* Desktop container */ #desktop{position:relative;height:100%;background:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><rect width="40" height="40" fill="%23008080"/><g transform="translate(5,5)" fill="%23FFFFFF"><rect width="30" height="30" fill-opacity="0.3"/></g></svg>') repeat} /* Desktop icons */ .icon{ width:70px; text-align:center; margin:10px; float:left; } .icon img{width:32px;height:32px} .icon span{display:block;font-size:10px;color:#fff} /* Taskbar */ #taskbar{ position:absolute;bottom:0;left:0;right:0;height:30px;background:#000000;color:#fff; display:flex;align-items:center;justify-content:space-between;padding:0 5px; } #taskbar button{background:#c0c0c0;color:#000;border:1px solid #808080;font-size:10px;padding:2px 5px;cursor:pointer} #time{font-size:10px} /* Window */ .window{ position:absolute;background:#c0c0c0;border:1px solid #000;box-shadow:2px 2px #808080; min-width:200px;min-height:120px;z-index:10; } .titlebar{ background:#000080;color:#fff;font-weight:bold;padding:2px 4px;cursor:move;display:flex;justify-content:space-between;align-items:center; } .titlebar span{flex-grow:1} .close{ background:#ff0000;color:#fff;width:16px;height:16px;text-align:center;line-height:16px;cursor:pointer } .content{padding:5px;background:#fff} /* Start menu */ #startMenu{ position:absolute;bottom:30px;left:0;background:#c0c0c0;border:1px solid #000;display:none; } #startMenu ul{list-style:none} #startMenu li{padding:2px 10px;cursor:pointer} #startMenu li:hover{background:#000080;color:#fff} </style> </head> <body> <div id="desktop"></div> <div id="taskbar"> <button id="startBtn">Start</button> <div id="time"></div> </div> <div id="startMenu"><ul><li id="openNotepad">Notepad</li></ul></div> <script> /* ----------- Clock ----------- */ function updateClock() { const now = new Date(); const hh = String(now.getHours()).padStart(2,'0'); const mm = String(now.getMinutes()).padStart(2,'0'); document.getElementById('time').textContent = `${hh}:${mm}`; } setInterval(updateClock,1000); updateClock(); /* ----------- Desktop icons ----------- */ const icons = [ {name:'My Computer', img:'🗂️', winTitle:'Computer', winContent:'<p>Welcome to Windows 95.</p>'}, {name:'Notepad', img:'📝', winTitle:'Notepad', winContent:'<textarea style="width:100%;height:100%;"></textarea>'} ]; const desktop = document.getElementById('desktop'); icons.forEach((ic,i)=> { const div = document.createElement('div'); div.className='icon'; div.innerHTML=`<img src="data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32'><text x='0' y='22' font-size='22'>${ic.img}</text></svg>"><span>${ic.name}</span>`; div.addEventListener('dblclick',()=>openWindow(ic.winTitle,ic.winContent,50+100*i,50+100*i,300,200)); desktop.appendChild(div); }); /* ----------- Window Management ----------- */ let zIndex = 20; function openWindow(title,content,x,y,w,h) { const win = document.createElement('div'); win.className='window'; win.style.left=x+'px'; win.style.top=y+'px'; win.style.width=w+'px'; win.style.height=h+'px'; win.style.zIndex=zIndex++; win.innerHTML = `<div class="titlebar"><span>${title}</span><div class="close">&times;</div></div> <div class="content">${content}</div>`; document.body.appendChild(win); /* Drag */ const titlebar = win.querySelector('.titlebar'); let offsetX, offsetY, isDown=false; titlebar.addEventListener('mousedown',e=>{ isDown=true; offsetX = e.clientX - win.offsetLeft; offsetY = e.clientY - win.offsetTop; win.style.zIndex=zIndex++; }); document.addEventListener('mousemove',e=>{ if(isDown){ win.style.left=(e.clientX-offsetX)+'px'; win.style.top=(e.clientY-offsetY)+'px'; } }); document.addEventListener('mouseup',()=>isDown=false); /* Close */ win.querySelector('.close').addEventListener('click',()=>win.remove()); } /* ----------- Start Menu ----------- */ const startBtn=document.getElementById('startBtn'); const startMenu=document.getElementById('startMenu'); startBtn.addEventListener('click',()=>{ startMenu.style.display = startMenu.style.display==='none'? 'block':'none'; }); document.addEventListener('click',e=>{ if(!startBtn.contains(e.target) && !startMenu.contains(e.target)){ startMenu.style.display='none'; } }); document.getElementById('openNotepad').addEventListener('click',()=>{openWindow('Notepad','<textarea style="width:100%;height:100%;"></textarea>');startMenu.style.display='none';}); /* ----------- Initial Desktop Icons ----------- */ </script> </body> </html> ``` This single file contains a full Windows 95‑style desktop: - **Desktop icons** (double‑click to open a window). - **Draggable, closable windows** with a simple title bar. - **Start button** that opens a minimal Start menu. - **Taskbar** with a clock that updates every second. No external resources are used; everything is self‑contained.

TAKE IT TO CODE

This run produced no artifact — reuse the prompt with a different model or your own pi-agent run.

RUN

modelgpt-oss-safeguard-20b
vendorOpenAI
harnesspi-agent
generated2026-08-02

METRICS

runtime4.4s
tokens in1.3k
tokens out1.9k
cached1.0k
cost / run$0.0006