instinct-cli 0.3.9

Shared local memory for coding agents. Save a fix once and find it again in a new session or another connected tool.
<!doctype html>
<html lang="en"><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1">
<title>Instinct — Decision field guide</title>
<style>
*{box-sizing:border-box}html{font-family:Inter,"Segoe UI",system-ui,sans-serif;background:#f5f5ee;color:#19251c}body{margin:0}header{background:radial-gradient(ellipse at 98% 20%,#305331 0,transparent 58%),#101c14;color:#f5f8ee;border-bottom:5px solid #bcf979}.wrap{max-width:1070px;margin:auto;padding:0 40px}.brand{display:flex;align-items:center;gap:12px;padding-top:30px;font-weight:650;letter-spacing:-.02em}.mark{width:24px;height:24px;background:repeating-linear-gradient(118deg,transparent 0 3px,#bcf979 4px 7px,transparent 8px 11px);border-radius:50%}header h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(44px,7vw,87px);letter-spacing:-.058em;line-height:1;margin:29px 0 11px}header p{margin:0;padding:0 0 27px;color:#d4dfd1;max-width:60ch;font-size:16px;line-height:1.55}.layout{display:grid;grid-template-columns:235px minmax(0,1fr);gap:45px;padding-top:30px;padding-bottom:40px}h2,label{display:block;color:#26442f;font-size:13px;font-weight:680;letter-spacing:.02em;margin:0 0 10px}.modes{display:grid;gap:2px}.modes button{border:0;background:transparent;text-align:left;padding:9px 13px;border-radius:4px;color:#28432f;font-size:15px;cursor:pointer}.modes button:hover{background:#e2ead7}.modes [aria-pressed=true]{background:#daeac8;color:#152d19;font-weight:700;box-shadow:inset 3px 0 #396c37}select{font:inherit;background:#fff;color:#152d19;border:1px solid #899889;border-radius:4px;min-height:44px;padding:8px;max-width:100%}.mobile{display:none}.topic{display:flex;align-items:center;gap:12px}.topic label{margin:0}.case{margin:20px 0 16px;font:400 clamp(27px,4.2vw,45px)/1.1 Georgia,serif;letter-spacing:-.034em;max-width:25ch}.paper{margin-top:20px;background:#fffefa;border:1px solid #c9d0c2;border-top:3px solid #436c40;padding:21px 23px}.paper h2{font-size:19px;color:#182a1c}.paper ul{padding-left:20px;margin:12px 0 0}.paper li{line-height:1.52;margin-top:8px;overflow-wrap:anywhere}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0 6px}.actions button{min-height:42px;padding:8px 14px;border:1px solid #50664f;border-radius:4px;background:transparent;color:#253f28;font:600 14px/1 system-ui;cursor:pointer}.actions button:first-child{background:#203c29;border-color:#203c29;color:white}button:focus-visible,select:focus-visible{outline:3px solid #507a13;outline-offset:3px}.message{min-height:1.4em;font-size:13px;color:#415c44;margin:7px 0}textarea{width:100%;height:130px}footer{border-top:1px solid #cbd1c4;padding:15px 0 25px;color:#586454;font-size:13px}
@media(max-width:700px){.wrap{padding-left:20px;padding-right:20px}.layout{display:block;padding-top:19px}.modes,aside h2{display:none}.mobile{display:flex;align-items:center;gap:12px;margin-bottom:12px}.mobile label{margin:0}.mobile label,.topic label{width:66px}.mobile select,.topic select{flex:1;min-width:0}.brand{padding-top:18px}header h1{margin-top:20px}header p{padding-bottom:18px}.paper{padding:16px}.case{margin-top:20px}footer{margin-top:4px}}
</style>
<header><div class="wrap"><div class="brand"><span class="mark" aria-hidden="true"></span>Instinct</div><h1>Decision field guide</h1><p>Choose a situation and a workflow. Take the next move into your own chat.</p></div></header>
<main class="wrap layout">
<aside><h2>Workflow</h2><nav class="modes" aria-label="Workflows" id="buttons"></nav><div class="mobile"><label for="mobilemode">Workflow</label><select id="mobilemode"></select></div></aside>
<section><div class="topic"><label for="topic">Situation</label><select id="topic"></select></div><h2 id="task" class="case"></h2>
<article class="paper" aria-live="polite"><h2 id="purpose"></h2><ul id="result"></ul></article>
<div class="actions"><button id="prompt">Copy prompt for my task</button><button id="copy">Copy example result</button></div><p class="message" id="message" role="status"></p><textarea id="manual" hidden aria-label="Text to copy"></textarea>
</section></main>
<footer><div class="wrap">Koscak AI Labs · 100 offline walkthroughs using fictional examples</div></footer>
<script id="catalog" type="application/json">__GUIDE_DATA__</script>
<script>
'use strict';
const data=JSON.parse(document.getElementById('catalog').textContent);
const byId=id=>document.getElementById(id);
const title=name=>name.split('-').map(word=>word[0].toUpperCase()+word.slice(1)).join(' ');
let mode='verify';
for(const item of data.modes){
 const button=document.createElement('button');button.textContent=title(item.name);button.dataset.mode=item.name;
 button.onclick=()=>{mode=item.name;render()};byId('buttons').append(button);
 byId('mobilemode').add(new Option(title(item.name),item.name));
}
for(const name of data.examples)byId('topic').add(new Option(title(name),name));
byId('topic').value='spreadsheet';
byId('mobilemode').onchange=e=>{mode=e.target.value;render()};
byId('topic').onchange=render;
function current(){return data.reports[byId('topic').value][mode]}
function render(){
 byId('mobilemode').value=mode;
 for(const b of byId('buttons').children)b.setAttribute('aria-pressed',String(b.dataset.mode===mode));
 const r=current();byId('task').textContent=r.task;byId('purpose').textContent=mode==='verify'?(r.status==='match'?'The values match':'The values differ'):data.modes.find(x=>x.name===mode).purpose;
 const list=byId('result');list.replaceChildren();
 for(const step of r.steps){if(step==='Task: '+r.task)continue;const li=document.createElement('li');li.textContent=step;list.append(li)}
 byId('message').textContent='';byId('manual').hidden=true;
}
const requests={start:'Suggest one first move and tell me what evidence supports it.',options:'Compare distinct methods and when each applies.',challenge:'What would make the proposed method fail here?',explain:'Show the evidence and exceptions behind the chosen method.',rehearse:'Compare the original and changed brief. Which methods still fit?',transfer:'Propose a falsifiable test of whether a prior method transfers to the new situation.',verify:'Compare my expected and observed values exactly. Leave a missing observation open.',retry:'Use my original task and my correction to select one relevant check.',handoff:'Write a handoff with the task, method, prior evidence, exception and what is open.',debrief:'Draft a lesson from the method tried and the observed outcome. Keep uncertain feedback open.'};
const fields={rehearse:'\nChanged brief: [fill in]',transfer:'\nSource situation: [fill in]\nTarget situation: [fill in]',verify:'\nExpected: [fill in]\nObserved: [fill in]',retry:'\nMy correction: [fill in]',debrief:'\nMethod tried: [fill in]\nExpected: [fill in]\nObserved: [fill in]'};
async function copy(text){try{await navigator.clipboard.writeText(text);byId('message').textContent='Copied.'}catch{const box=byId('manual');box.hidden=false;box.value=text;box.focus();box.select();byId('message').textContent='Select and copy the text below.'}}
byId('prompt').onclick=()=>copy('Use Instinct on this task: [describe your task]. '+requests[mode]+(fields[mode]||'')+'\nUse lessons I supply or that you can actually retrieve.');
byId('copy').onclick=()=>copy(['Instinct example · '+title(byId('topic').value),current().task,...current().steps].join('\n'));
render();
</script></html>