<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by cyberpunkwitch on Medium]]></title>
        <description><![CDATA[Stories by cyberpunkwitch on Medium]]></description>
        <link>https://medium.com/@cyberpunkwitch?source=rss-4a1ac0e047f5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*NBK_MzISqf7M_UJ5cWPDtw.jpeg</url>
            <title>Stories by cyberpunkwitch on Medium</title>
            <link>https://medium.com/@cyberpunkwitch?source=rss-4a1ac0e047f5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 15:47:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cyberpunkwitch/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Signal-Style Double Ratchet (part 2 of ?)]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@cyberpunkwitch/signal-style-double-ratchet-part-2-of-88385fa30aa8?source=rss-4a1ac0e047f5------2"><img src="https://cdn-images-1.medium.com/max/2600/0*8ZWsitsaRBT4x-ep" width="4077"></a></p><p class="medium-feed-snippet">Disclaimer: I&#x2019;m new to cryptography and am not a cryptographic expert. I don&#x2019;t have any certifications on the topic; this is just&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@cyberpunkwitch/signal-style-double-ratchet-part-2-of-88385fa30aa8?source=rss-4a1ac0e047f5------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@cyberpunkwitch/signal-style-double-ratchet-part-2-of-88385fa30aa8?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/88385fa30aa8</guid>
            <category><![CDATA[post-quantum-cryptography]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[post-quantum]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Mon, 31 Aug 2026 19:26:00 GMT</pubDate>
            <atom:updated>2026-09-05T14:20:12.488Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Goblins]]></title>
            <link>https://medium.com/@cyberpunkwitch/goblins-973a6a7c56a9?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/973a6a7c56a9</guid>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Fri, 28 Aug 2026 19:03:42 GMT</pubDate>
            <atom:updated>2026-08-28T19:05:37.390Z</atom:updated>
            <content:encoded><![CDATA[<p>DIY GoblinTools</p><p>There’s a rad phone app a friend cued me into a while ago for breaking down tasks into simple steps called GoblinTools.</p><p>The premise is that it’s easy to get overwhelmed by difficult tasks sometimes, and breaking them down into simpler steps is one way to make the insurmountable seem manageable. <br>The creator of GoblinTools lets you use a locally hosted llm to break your todo list down into manageable steps. <br>I thought this morning it would be a fun project to try to replicate a similar feat in JupyterLab, using nary but python and a locally hosted LLM.</p><p>First, I wrote a simple(ish) interactive todo list using sqlite3 as the data store.</p><pre>import sqlite3<br>from unidecode import unidecode<br>DB_PATH = &quot;todos.db&quot;<br><br>def init_db():<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(&quot;&quot;&quot;<br>        CREATE TABLE IF NOT EXISTS todos (<br>            id INTEGER PRIMARY KEY AUTOINCREMENT,<br>            todo TEXT NOT NULL<br>        )<br>    &quot;&quot;&quot;)<br>    conn.commit()<br>    return conn<br><br>def fetch():<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(&quot;SELECT todo FROM todos ORDER BY id DESC&quot;)<br>    rows = c.fetchall()<br>    c.close()<br>    items = []<br>    for row in rows:<br>        items.append(row[0])<br>    return items<br><br>def save_todo(todo_item):<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(<br>        &quot;INSERT INTO todos (todo) VALUES(?)&quot;,<br>        (todo_item,)<br>    )<br>    conn.commit()<br>    conn.close()<br><br>def delete_todo(todo_item):<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(<br>        &quot;DELETE FROM todos WHERE todo = (?)&quot;,<br>        (todo_item,),<br>    )<br>    conn.commit()<br>    conn.close<br><br>def show_todos():<br>    results = fetch()<br>    if (len(results) &gt; 0):<br>        print(&quot;\tTodo List&quot;)<br>        print(&quot;_&quot;*25)<br>        for i in range(len(results)):<br>            print(str(i+1)+&quot;) &quot;+results[i])<br>    else:<br>        print(&quot;No Items Listed.&quot;)<br>    return results<br>    <br>def get_input(query, valid_responses=None):<br>    while True:<br>        result = input(query+&quot;\n&gt; &quot;)<br>        if (valid_responses):<br>            if result in valid_responses:<br>                return result<br>        elif (result != &quot;&quot;):<br>            return result<br><br>def get_number(query, minimum=None, maximum=None):<br>    while True:<br>        result = input(query+&quot;\n&gt; &quot;)<br>        try:<br>            result = int(result)<br>            if minimum and result &lt; minimum:<br>                raise Exception(&quot;Unavailable (input too low).&quot;)<br>            elif maximum and result &gt; maximum:<br>                raise Exception(&quot;Unavailable (input too high).&quot;)<br>            else:<br>                return result<br>        except Exception as e:<br>            print(e)<br><br>def strike(text):<br>    result = &#39;&#39;<br>    for c in text:<br>        result = result + &#39;\u0336&#39; + c<br>    return result<br><br>def unstrike(text):<br>    result = &#39;&#39;<br>    text = unidecode(text)<br>    return text.strip()<br><br>init_db()<br>quit = False<br>while quit == False:<br>    results = show_todos()<br>    if (len(results) &gt; 0):<br>        next = get_input(&quot; add list complete fail(alcf)\n incomplete delete quit(idq)&quot;, [&quot;a&quot;,&quot;l&quot;,&quot;c&quot;,&quot;f&quot;,&quot;d&quot;,&quot;q&quot;,&quot;i&quot;])<br>    else:<br>        next = get_input(&quot; add list quit (alq)&quot;, [&quot;a&quot;,&quot;l&quot;,&quot;q&quot;])<br>    match(next):<br>        case &quot;a&quot;:<br>            item = get_input(&quot; item to add:&quot;)<br>            item = item.lower().strip()<br>            item = unidecode(item)<br>            save_todo(item)<br>            print(&quot; added.&quot;)<br>        case &quot;d&quot;:<br>            show_todos()<br>            which = get_number(&quot; number to delete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>        case &quot;c&quot;:<br>            which = get_number(&quot; number to complete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(strike(which)+&quot; ✓&quot;)<br>        case &quot;i&quot;:<br>            which = get_number(&quot; number to incomplete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(unstrike(which))<br>        case &quot;f&quot;:<br>            which = get_number(&quot; number to fail/abandon:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(strike(which)+&quot; ✗&quot;)<br>        case &quot;q&quot;:<br>            print(&quot;~fin~&quot;)<br>            quit = True</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*tk9g54S31uWROSKQxto_ow.png" /></figure><p>A pretty good start, imho.</p><p>I used ollama as my local llm provider, and for my model I went with qwen2.5:1.5b-instruct-q8_0. This is a smaller quantized model which runs nicely on my minipc.<br>For generating output, I used ollama’s ‘generate’ command because it’s pretty much like hitting the generate endpoint on the API and uses very little if any scaffolding under the hood so it runs fast.</p><pre>MODEL = &quot;qwen2.5:1.5b-instruct-q8_0&quot;<br>def evaluate(prompt):<br>    result = ollama.generate(model=MODEL, prompt=prompt)    <br>    return result[&#39;response&#39;]<br><br>def extract_steps(model_output):<br>    try:<br>        return json.loads(model_output.strip())<br>    except:<br>        pass<br>    <br>    match = re.search(r&#39;\[(.*?)\]&#39;, model_output, re.DOTALL)<br>    if match:<br>        content = match.group(1)<br>        # Extract quoted strings<br>        steps = re.findall(r&#39;&quot;([^&quot;]*)&quot;&#39;, content)<br>        if steps:<br>            return steps<br>    <br>    return None<br><br>def goblinize(todo_item):<br>    prompt = &quot;&quot;&quot;<br>    Break this task into sequential steps. Return ONLY a Python array format.<br>    Examples:<br>        - Write a blog post → [&quot;outline topics&quot;, &quot;research sources&quot;, &quot;draft content&quot;, &quot;edit and revise&quot;, &quot;publish&quot;]<br>        - Fix a leaky faucet → [&quot;turn off water&quot;, &quot;disassemble fixture&quot;, &quot;identify worn parts&quot;, &quot;replace gaskets&quot;, &quot;reassemble and test&quot;]<br>    Task: &quot;&quot;&quot;+todo_item<br>    empty = True<br>    count = 0<br>    while empty and count &lt; 5:<br>        result = evaluate(prompt)<br>        steps = extract_steps(result)<br>        if steps:<br>            return steps<br>        count = count + 1<br>    return false<br></pre><p>The real keys here are: keeping the prompt direct and simple, and providing completion examples so this smaller model knows what to turn out.</p><p>Then being very careful to extract the returned array carefully, and making sure to stop trying if the model can’t produce a parseable response after a few tries.</p><p>The ollama api actually lets you specify whether you want formatted JSON output and what the specific output format you want is in your requests, but since I had decided to keep it simple (this is just an array) I did this instead.</p><p>Anyhow here’s my finished code for this morning’s project. I cleaned up the formatting slightly and added deferred garbage collection for an additional speed boost. I also added some light scaffolding for handling (goblinating?) subtasks which prepends which task is getting broken up into steps. Finally I added some statistics that I find useful about task abandonment, completion and avoidance.</p><pre>import sqlite3<br>import ollama<br>import re<br>import gc<br><br>from unidecode import unidecode<br>DB_PATH = &quot;todos.db&quot;<br>MODEL = &quot;qwen2.5:1.5b-instruct-q8_0&quot;<br>def init_db():<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(&quot;&quot;&quot;<br>        CREATE TABLE IF NOT EXISTS todos (<br>            id INTEGER PRIMARY KEY AUTOINCREMENT,<br>            todo TEXT NOT NULL<br>        )<br>    &quot;&quot;&quot;)<br>    conn.commit()<br>    return conn<br><br>def fetch():<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(&quot;SELECT todo FROM todos ORDER BY id DESC&quot;)<br>    rows = c.fetchall()<br>    c.close()<br>    items = []<br>    for row in rows:<br>        items.append(row[0])<br>    return items<br><br>def save_todo(todo_item):<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(<br>        &quot;INSERT INTO todos (todo) VALUES(?)&quot;,<br>        (todo_item,)<br>    )<br>    conn.commit()<br>    conn.close()<br><br>def delete_todo(todo_item):<br>    conn = sqlite3.connect(DB_PATH)<br>    c = conn.cursor()<br>    c.execute(<br>        &quot;DELETE FROM todos WHERE todo = (?)&quot;,<br>        (todo_item,),<br>    )<br>    conn.commit()<br>    conn.close<br>def print_title():<br>    print(&quot;\tGoblinized&quot;)<br>    print(&quot;_&quot;*25)<br><br>def statisfy(passing, failing, incomplete):<br>    total = failing + incomplete + passing<br>    passpct = round(passing/total,2)*100<br>    failpct = round(failing/total,2)*100<br>    avoidpct = round(incomplete/total,2)*100<br>    return f&quot;avoid(i):{avoidpct}% win(c):{passpct}% waste(f):{failpct}% totals: c:{passing} f:{failing} i:{incomplete}&quot;<br><br>def show_todos():<br>    results = fetch()<br>    if (len(results) &gt; 0):<br>        passct = 0<br>        failct = 0<br>        incct = 0<br>        for i in range(len(results)):<br>            print(str(i+1)+&quot;) &quot;+results[i])<br>            if &quot;✓&quot; in results[i]:<br>                passct += 1<br>            elif &quot;✗&quot; in results[i]:<br>                failct += 1<br>            else:<br>                incct += 1<br>        print(statisfy(passct,failct,incct))<br>    else:<br>        print(&quot;No Items Listed.&quot;)<br>    return results<br>    <br>def get_input(query, valid_responses=None):<br>    while True:<br>        result = input(query+&quot;\n&gt; &quot;)<br>        if (valid_responses):<br>            if result in valid_responses:<br>                return result<br>        elif (result != &quot;&quot;):<br>            return result<br><br>def get_number(query, minimum=None, maximum=None):<br>    while True:<br>        result = input(query+&quot;\n&gt; &quot;)<br>        try:<br>            result = int(result)<br>            if minimum and result &lt; minimum:<br>                raise Exception(&quot;Unavailable (input too low).&quot;)<br>            elif maximum and result &gt; maximum:<br>                raise Exception(&quot;Unavailable (input too high).&quot;)<br>            else:<br>                return result<br>        except Exception as e:<br>            print(e)<br><br>def strike(text):<br>    result = &#39;&#39;<br>    for c in text:<br>        result = result + &#39;\u0336&#39; + c<br>    return result<br><br>def unstrike(text):<br>    text = unidecode(text)<br>    return text.strip()<br><br>def evaluate(prompt):<br>    result = ollama.generate(model=MODEL, prompt=prompt)    <br>    return result[&#39;response&#39;]<br><br>def extract_steps(model_output):<br>    # Try direct parse first<br>    try:<br>        return json.loads(model_output.strip())<br>    except:<br>        pass<br>    <br>    match = re.search(r&#39;\[(.*?)\]&#39;, model_output, re.DOTALL)<br>    if match:<br>        content = match.group(1)<br>        # Extract quoted strings<br>        steps = re.findall(r&#39;&quot;([^&quot;]*)&quot;&#39;, content)<br>        if steps:<br>            return steps<br>    <br>    return None<br><br>def goblinize(todo_item):<br>    prompt = &quot;&quot;&quot;<br>    Break this task into sequential steps. Return ONLY a Python array format.<br>    Examples:<br>        - Write a blog post → [&quot;outline topics&quot;, &quot;research sources&quot;, &quot;draft content&quot;, &quot;edit and revise&quot;, &quot;publish&quot;]<br>        - Fix a leaky faucet → [&quot;turn off water&quot;, &quot;disassemble fixture&quot;, &quot;identify worn parts&quot;, &quot;replace gaskets&quot;, &quot;reassemble and test&quot;]<br>    Task: &quot;&quot;&quot;+todo_item<br>    empty = True<br>    count = 0<br>    while empty and count &lt; 5:<br>        result = evaluate(prompt)<br>        steps = extract_steps(result)<br>        if steps:<br>            return steps<br>        count = count + 1<br>    return false<br><br>init_db()<br>print_title()<br>quit = False<br>while quit == False:<br>    gc.disable()<br>    results = show_todos()<br>    if (len(results) &gt; 0):<br>        next = get_input(&quot; add list complete fail(alcf)\n incomplete delete quit goblinize(idqg)&quot;, [&quot;a&quot;,&quot;l&quot;,&quot;c&quot;,&quot;f&quot;,&quot;d&quot;,&quot;q&quot;,&quot;i&quot;,&quot;g&quot;])<br>    else:<br>        next = get_input(&quot; add list quit (alq)&quot;, [&quot;a&quot;,&quot;l&quot;,&quot;q&quot;])<br>    match(next):<br>        case &quot;a&quot;:<br>            item = get_input(&quot; item to add:&quot;)<br>            item = item.lower().strip()<br>            item = unidecode(item)<br>            save_todo(item)<br>            print(&quot; added.&quot;)<br>        case &quot;d&quot;:<br>            show_todos()<br>            which = get_number(&quot; number to delete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>        case &quot;c&quot;:<br>            which = get_number(&quot; number to complete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(strike(which)+&quot; ✓&quot;)<br>        case &quot;i&quot;:<br>            which = get_number(&quot; number to incomplete:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(unstrike(which))<br>        case &quot;f&quot;:<br>            which = get_number(&quot; number to fail/abandon:&quot;, 1, len(results))<br>            which = results[which-1]<br>            delete_todo(which)<br>            save_todo(strike(which)+&quot; ✗&quot;)<br>        case &quot;g&quot;:<br>            which = get_number(&quot; number to goblinize:&quot;, 1, len(results))<br>            which = results[which-1]<br>            result = goblinize(which)<br>            if result is not None:<br>                delete_todo(which)<br>                result.reverse()<br>                count = 0<br>                total = len(result)<br>                for item in result:<br>                    count += 1<br>                    save_todo(f&quot;{which}[{total-count+1}/{total}]: {item}&quot;)<br>            else:<br>                print(&quot;Already goblin or goblin dumb, sorry.&quot;)<br>        case &quot;q&quot;:<br>            print(&quot;~fin~&quot;)<br>            quit = True<br>    gc.enable()<br>    gc.collect()</pre><p>And here’s some final example output so you can see what the end product is like:</p><pre> Goblinized<br>_________________________<br>No Items Listed.<br> add list quit (alq)<br>&gt;  a<br> item to add:<br>&gt;  clean the kitchen<br> added.<br>1) clean the kitchen<br>avoid(i):100.0% win(c):0.0% waste(f):0.0% totals: c:0 f:0 i:1<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)<br>&gt;  a<br> item to add:<br>&gt;  prepare to travel<br> added.<br>1) prepare to travel<br>2) clean the kitchen<br>avoid(i):100.0% win(c):0.0% waste(f):0.0% totals: c:0 f:0 i:2<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)<br>&gt;  g<br> number to goblinize:<br>&gt;  1<br>1) prepare to travel[1/5]: gather travel information<br>2) prepare to travel[2/5]: reserve accommodations<br>3) prepare to travel[3/5]: plan activities and destinations<br>4) prepare to travel[4/5]: book transportation<br>5) prepare to travel[5/5]: pack essentials<br>6) clean the kitchen<br>avoid(i):100.0% win(c):0.0% waste(f):0.0% totals: c:0 f:0 i:6<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)<br>&gt;  g<br> number to goblinize:<br>&gt;  5<br>1) prepare to travel[5/5]: pack essentials[1/5]: gather travel documents<br>2) prepare to travel[5/5]: pack essentials[2/5]: choose accommodations<br>3) prepare to travel[5/5]: pack essentials[3/5]: collect transportation details<br>4) prepare to travel[5/5]: pack essentials[4/5]: select clothing items<br>5) prepare to travel[5/5]: pack essentials[5/5]: organize luggage<br>6) prepare to travel[1/5]: gather travel information<br>7) prepare to travel[2/5]: reserve accommodations<br>8) prepare to travel[3/5]: plan activities and destinations<br>9) prepare to travel[4/5]: book transportation<br>10) clean the kitchen<br>avoid(i):100.0% win(c):0.0% waste(f):0.0% totals: c:0 f:0 i:10<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)<br>&gt;  c<br> number to complete:<br>&gt;  1<br>1) ̶p̶r̶e̶p̶a̶r̶e̶ ̶t̶o̶ ̶t̶r̶a̶v̶e̶l̶[̶5̶/̶5̶]̶:̶ ̶p̶a̶c̶k̶ ̶e̶s̶s̶e̶n̶t̶i̶a̶l̶s̶[̶1̶/̶5̶]̶:̶ ̶g̶a̶t̶h̶e̶r̶ ̶t̶r̶a̶v̶e̶l̶ ̶d̶o̶c̶u̶m̶e̶n̶t̶s ✓<br>2) prepare to travel[5/5]: pack essentials[2/5]: choose accommodations<br>3) prepare to travel[5/5]: pack essentials[3/5]: collect transportation details<br>4) prepare to travel[5/5]: pack essentials[4/5]: select clothing items<br>5) prepare to travel[5/5]: pack essentials[5/5]: organize luggage<br>6) prepare to travel[1/5]: gather travel information<br>7) prepare to travel[2/5]: reserve accommodations<br>8) prepare to travel[3/5]: plan activities and destinations<br>9) prepare to travel[4/5]: book transportation<br>10) clean the kitchen<br>avoid(i):90.0% win(c):10.0% waste(f):0.0% totals: c:1 f:0 i:9<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)<br>&gt;  f<br> number to fail/abandon:<br>&gt;  2<br>1) ̶p̶r̶e̶p̶a̶r̶e̶ ̶t̶o̶ ̶t̶r̶a̶v̶e̶l̶[̶5̶/̶5̶]̶:̶ ̶p̶a̶c̶k̶ ̶e̶s̶s̶e̶n̶t̶i̶a̶l̶s̶[̶2̶/̶5̶]̶:̶ ̶c̶h̶o̶o̶s̶e̶ ̶a̶c̶c̶o̶m̶m̶o̶d̶a̶t̶i̶o̶n̶s ✗<br>2) ̶p̶r̶e̶p̶a̶r̶e̶ ̶t̶o̶ ̶t̶r̶a̶v̶e̶l̶[̶5̶/̶5̶]̶:̶ ̶p̶a̶c̶k̶ ̶e̶s̶s̶e̶n̶t̶i̶a̶l̶s̶[̶1̶/̶5̶]̶:̶ ̶g̶a̶t̶h̶e̶r̶ ̶t̶r̶a̶v̶e̶l̶ ̶d̶o̶c̶u̶m̶e̶n̶t̶s ✓<br>3) prepare to travel[5/5]: pack essentials[3/5]: collect transportation details<br>4) prepare to travel[5/5]: pack essentials[4/5]: select clothing items<br>5) prepare to travel[5/5]: pack essentials[5/5]: organize luggage<br>6) prepare to travel[1/5]: gather travel information<br>7) prepare to travel[2/5]: reserve accommodations<br>8) prepare to travel[3/5]: plan activities and destinations<br>9) prepare to travel[4/5]: book transportation<br>10) clean the kitchen<br>avoid(i):80.0% win(c):10.0% waste(f):10.0% totals: c:1 f:1 i:8<br> add list complete fail(alcf)<br> incomplete delete quit goblinize(idqg)</pre><p>Not bad for maybe ~2 hours of fiddling with python, eh? We’ve got a working basic todo app in python similar to (but not as pretty or maybe as featureful as) GoblinTools, with persistent storage, some statistics, task tracking, the ability to break down complex tasks into subtasks, all running at a decently fast speed on a mini pc thanks to sticking close to the faster parts of the api with our sdk usage and deferring garbage collection.</p><p>Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=973a6a7c56a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Robot with bots]]></title>
            <link>https://medium.com/@cyberpunkwitch/robot-with-bots-e45c83d9b17c?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e45c83d9b17c</guid>
            <category><![CDATA[software]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[locally-hosted]]></category>
            <category><![CDATA[robot-pattern]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Tue, 14 Jul 2026 04:03:05 GMT</pubDate>
            <atom:updated>2026-07-14T04:03:05.954Z</atom:updated>
            <content:encoded><![CDATA[<p>What I’m doing today is just basically the “robot” pattern but with an llm.</p><p>It lets you write “sentences” in your code, more or less, simplifying some tasks.</p><p>Here is the example code:</p><pre>from langchain_ollama import ChatOllama  <br>import re<br><br>def clean_output(text):<br>    cleaned = text<br>    if &quot;&lt;think&gt;&quot; in text:<br>        cleaned = re.sub(r&#39;&lt;think&gt;.*?&lt;/think&gt;&#39;, &#39;&#39;, text, flags=re.DOTALL)<br>    return cleaned.strip()<br><br>llm = ChatOllama(model=&quot;qwen3:1.7b&quot;, temperature=0.3, timeout=30)<br><br>class queryable:<br>    def __init__(self):<br>        self.query = &quot;/nothink &quot;<br>        self.result = &quot;&quot;<br>    def please(self):<br>        self.result = llm.invoke(self.query).content<br>        self.result = clean_output(self.result)<br>        return self.result<br>    def explain(self, topic, length=2):<br>        self.query = f&quot;Explain {topic} in exactly f{length} sentences.&quot;<br>        return self<br>    def compare(self, a, b, length=2):<br>        self.query = f&quot;Compare {a} to {b} in exactly {length} sentences.&quot;<br>        return self<br>    def politely(self):<br>        self.query = self.query+&quot; Please &quot;<br>        return self<br><br>print(queryable().compare(&quot;taxis&quot;, &quot;handsomes&quot;).please())<br>print(queryable().explain(&quot;guitars&quot;).please())<br>print(queryable().politely().explain(&quot;kinematics&quot;).please())</pre><p>What the robot pattern does is take some input, transform the object in some way, and return the resulting object. This way a chain of commands can be put together like a sentence. With additional effort you can use flags or subclassing to enforce a grammar on the sequence, so that only certain combinations are possible.</p><p>And some results (from locally hosted llm via ollama, in JupyerLab):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5_HhmC_nT3vYAjuMxhHIbQ.png" /></figure><p>The robot pattern is an old technique, but you can see how writing up a complex sequences of tasks that pass output from one to the other like this can be versatile and make programming more enjoyable.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e45c83d9b17c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Worldbuilding for Boston, OR part 1 of ?]]></title>
            <link>https://medium.com/@cyberpunkwitch/worldbuilding-for-boston-or-part-1-of-5d699f4a836f?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d699f4a836f</guid>
            <category><![CDATA[alternate-history]]></category>
            <category><![CDATA[settings]]></category>
            <category><![CDATA[fantasy-worldbuilding]]></category>
            <category><![CDATA[creative-writing]]></category>
            <category><![CDATA[fiction-writing]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Sat, 07 Mar 2026 04:16:00 GMT</pubDate>
            <atom:updated>2026-03-07T04:16:00.593Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NX81w_IVqeFxN_tR" /><figcaption>Photo by <a href="https://unsplash.com/@iridescentstars?utm_source=medium&amp;utm_medium=referral">S M</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>These are some worldbuilding notes for fiction I might some day write. I figure the world-building could be entertaining in and of itself, if I can include illustrations, maps, diagrams of things, other errata that might interest people into that stuff.</p><p>It may also change as I go back and nitpick things. <br>Boston, OR is a fictional magitech alt-history version of Portland, OR set in approximately the 1920s-1930’s. The world diverged from ours sometime before the famous coin-toss of 1842 that resulted in the city’s naming, tentatively around May of 1800, just before the Red River Revival in June, which kicked off the second Great Awakening.</p><p>There was an event around this time called Dustfall, in which a luminous dust fell in varying amounts over parts of the planet. <br>It irritated the skin and caused breathing problems in people exposed to it, and some on the clean up crews tasked with taking care of it developed Duster’s Lung, a chronic condition which led to sores and sometimes organ failure and death.</p><p>In dark moist places affected by dustfall, blue mushrooms grew. A few people (and some animals) exposed to the dust discovered that continued exposure in addition to making them ill also granted them a euphoric sensation and magical powers that depended on a continuous supply of dust. These afflicted individuals were known as ‘dusters’ or ‘dust-heads’. These varied from person to person. It affects the second awakening as some of the religious leaders, too, have magical powers, leading to religious claims, conflicts, accusations of fraud, and infighting.</p><p>Views of dust-heads in society ranged from pity to envy to hatred, particularly as the prohibition took off, and the temperance movement targeted dust use as much as anything else. It also affected the civil war, although I have yet to work out all the details of these events.</p><p>The offspring of organisms exposed to dust — human and animal alike — were occasionally born *different*. Some of these differences resembled creatures of legend. Vampires, elves, werewolves, fairies and other creatures came to exist, some common, some whispered rumor. There were also various chimerical creatures, both combinations of mundane beings like ratwolves, pigdogs and snakemice, and also mundane and magical beings. Scientists and archaeologists began piecing together that some of our legends must have been fragments of knowledge preserved from previous dustfall events lost to history. Somehow magic had come to be and had ceased to exist, and was now back again.</p><p>In 1852, a vampire — one of the Countess’s many admirers — visits Ada Lovelace in the night as she is dying and turns her without asking, so she ends up as a member of the undead, still able to pursue her interests in mechanical computing devices, electrical experiments (she had been writing her associate Faraday asking how to go about setting up a lab for experimentation), musical devices, and the workings of the mind.</p><p>In the 1890’s, she travels to New York with Henry Babbage, Charles Babbage’s son, and meets up with Tesla at something of a low point in his life, working a construction job after having left Edison’s employment. Shortly after, Mark Twain shows up at Tesla and Ada’s lab, looking to invest his recent book money and forms a friendship — or something deeper — with Nikola. Tesla and Ada have been investigating not just electrical devices but magitechnological devices with new and unusual properties and functions. Mark Twain is impressed by the product of their mutual geniuses, and decides (unlike in our timeline — he was friends with Tesla but invested elsewhere) to invest the bulk of his newfound book money in Tesla and Ada’s lab, for the purposes of developing a device to deliver news stories long distances. Nikola Tesla in this setting is not a dust-head but a born wizard, someone who has a natural symbiotic connection to the fungus and whose body naturally sheds spores and can harvest magic more powerfully than a standard dust head, with none of the usual degenerative illness. Wizards are long-lived but not immortal.</p><p>With Ada’s work on electromechanical computing devices and Tesla’s investigations into aetheric and electric energy, motors, and data transmission, they develop a wireless terminal that can remotely talk to an electromechanical successor of the difference engine. A sort of proto-internet begins to emerge in gambling houses and universities alongside the magitechnological computer. The Tesla-Twain “Mark II” Teletypewriter becomes one of the first computing devices to see adoption. Ada, in her 90’s and still looking like she’s 30, chooses to remain a discrete third party, financially benefitting but uncredited.</p><p># How Magic Works</p><p>In this setting, magic is ‘medium-hard’ in the sense that there’s some physics-y handwaiving but I’m not going to work out every detail. The reason the dustfall occured, behind the scenes, is that the solar system in it’s rotation around the galactic core passed through a region of space filled with the spores of something like a planet-hopping magically-assisted fungus. The fungus evolved in a region of space with exotic matter that translates the aetheric energy in some way into other energies in a way it can take advantage of.</p><p>It’s lifecycle involves feeding on decomposing organic waste and forming mushroomlike fruiting bodies which release spores that harvest aetheric energy by utilizing this exotic matter internally, an energy produced in some way by stars but which doesn’t usually affect normal matter. The fungus has a sort of distributed proto-intelligence expressed in its mycelial network, containing ‘images’ which can be sensed by magic users, especially with training, which can be sort of ‘activated’ and ‘combined’ in an intuitive way to cast spells.</p><p>These images vary from place to place depending on the nearby mycellium which they draw from, so magic isn’t perfectly reliable. Some places are more ‘holy’ than others and have rich imagery — usually dark underground places that are inhospitable.</p><p>The humanoid chimera and mythical creatures in the setting are largely referred to by the public simply as Monsters, which at the time was a problematic medical term referring to people who were born with deformities. There are harsh laws curtailing the rights of such people and legalizing discrimination in various forms, affecting where they can live and what sorts of work they are allowed. The government and police are openly ‘tolerant’ of monstrous americans in the sense that they no longer openly hunt them down, but see them as dangerous perverts and communist sympathizers, and tend to spy on them, disrupt their gatherings, quietly spread hatred and misinformation about them, and do their best to prevent them from making too much money or gaining too much of a foothold in society. With the exception of Wizards, who are often new-money rich due to the advances in magitechnology, and are highly sought after by both military and industry forces due to their advanced powers. Dust-addicts who can use magic sparingly with access to dust on the other hand while they have a permanent career opportunity in the magitech field, are not well looked upon and often have difficult jobs in factories turning out magitech widgets of various kinds.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d699f4a836f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning about Cryptography/Ratchets part 1 of ?]]></title>
            <link>https://medium.com/@cyberpunkwitch/learning-about-cryptography-ratchets-part-1-of-bdfed57cafa8?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdfed57cafa8</guid>
            <category><![CDATA[practice-in-public]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[cryptography]]></category>
            <category><![CDATA[learning-coding]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 15:00:54 GMT</pubDate>
            <atom:updated>2026-03-04T15:00:54.347Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gQvWxyIUv3eq7-z1" /><figcaption>Photo by <a href="https://unsplash.com/@mikehindle?utm_source=medium&amp;utm_medium=referral">Mike Hindle</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>with the caveat that you should not roll your own cryptography unless you know what you are doing, and that I very firmly am not an expert at this yet, I thought I’d share my recent efforts in learning about cryptography. That said, please do not take this as a working example — it has insecurities and can expose your data. <br>Below is my attempt at a ‘single-ratchet’ demo that doesn’t send any network calls / just runs locally. It’s more or less meant to be a small part of a future attempt at implementing something like Signal’s ‘triple-ratchet’.</p><pre>from cryptography.fernet import Fernet, MultiFernet<br>import gc <br><br>class Ratchet:<br>    def __init__(self, keys_list = None):<br>        if (not keys_list):<br>            keys_list = [Fernet.generate_key(), Fernet.generate_key()]<br>        self.keys_list = keys_list<br>        self.ratchet = MultiFernet(Fernet(k) for k in keys_list)<br>        self.queue = MQ()<br>    def rotate(self):<br>        self.keys_list.append(Fernet.generate_key()) # in with the new<br>        self.keys_list.pop() # and out with the old<br>    def decrypt(self, msg):<br>        msg = self.ratchet.decrypt(msg).decode(&quot;UTF8&quot;)<br>        return msg<br>        <br>class SendRatchet(Ratchet):<br>    def encrypt(self, msg):<br>        msg = self.ratchet.encrypt(msg.encode(&quot;UTF8&quot;))<br>        return msg        <br>    def send(self, msg, target):<br>        # presently target is &#39;ratchet&#39;, will be updated to network<br>        print(&quot;sending &quot;+msg)<br>        msg = self.encrypt(msg)<br>        print(&quot;encrypted.&quot;)<br>        target.receive(msg)<br>    def rotate(self):<br>        super(SendRatchet, self).rotate()<br>        print(&quot;send ratchet rotated&quot;)<br><br>class ReceiveRatchet(Ratchet):<br>    def decrypt(self, msg):<br>        msg = self.ratchet.decrypt(msg).decode(&quot;UTF8&quot;)<br>        return msg        <br>    def receive(self, msg):<br>        # this now triggers going through the whole inbound queue<br>        # eventually this can be deferred as needed.<br>        self.queue.receive(msg)<br>        while(self.queue.length() &gt; 0):<br>            msg = self.queue.pop()<br>            try:<br>                msg = self.decrypt(msg)<br>                print(&quot;decrypted message: &quot;,msg)<br>            except Exception as e:<br>                print(&quot;Exception: &quot;+e)<br>                # throw an exception for now; we&#39;ll forward eventually.<br>    def rotate(self):<br>        super(ReceiveRatchet, self).rotate()<br>        print(&quot;receive ratchet rotated&quot;)<br><br>class MQ:<br>    def __init__(self):<br>        self.queue = []<br>    def send(self, msg, target):<br>        target.receive(msg) # replace with network call<br>        print(msg.decode(&quot;UTF8&quot;) + &quot; sent!&quot;)<br>    def receive(self, msg):<br>        print(&quot;Received encrypted: &quot;,msg)<br>        self.queue.append(msg)<br>    def pop(self):<br>        return self.queue.pop()<br>    def forward(msg):<br>        print(&quot;Message forwarded.&quot;)<br>    def length(self):<br>        return len(self.queue)  <br>    <br>#alice and bob demo<br>queue = MQ()<br>alice_send = SendRatchet()<br>bob_send = SendRatchet()<br># reusing keys to represent keys exchanged<br>bob_receive = ReceiveRatchet(alice_send.keys_list)<br>alice_receive = ReceiveRatchet(bob_send.keys_list)<br><br>bob_send.send(&quot;Hello, Alice.&quot;, alice_receive)<br>alice_send.send(&quot;Hi, Bob.&quot;, bob_receive)</pre><p>The basic idea:</p><p>Alice and Bob each have a ‘send’ and ‘receive’ ratchet. Alice’s send ratchet has the same keys as Bob’s receive ratchet and vice versa — they’ve presumedly met offline and exchanged some keys. This way when Alice sends a message to Bob, Alice can rotate her ‘send’ ratchet and Bob can rotate his ‘receive’ ratchet and the two ratchets will stay synchronized — and the same is true when Bob sends a message to Alice. This way, they’re not using the same encryption keys each time. This message is just demoing the send and receive ratchets rotating their keys. Ideally they’d be commingling encrypted keys transferred to each other, and deriving new keys each time but this just kind of shows the ratchet …ratcheting.</p><p>The message queue is there to store incoming messages for processing and maybe forwarding if I want to try some kind of p2p scheme for message-passing eventually, and similarly on the sending side for handling resending if messages get lost in transit for whatever reason. Some of this may be handled just fine by the underlying protocol depending on how messages are sent. I’ve been reading about udp, aioquic, msquic, udt etc lately.</p><p>This will (hopefully, if I do it right) get a lot more powerful as I try to implement double ratchet — the next step in complexity towards something-like Signal messenger’s triple-ratchet algorithm. The idea will be that (eventually) if keys get compromised by an attacker, only a few messages get revealed, rather than the whole conversation. I also might consider storing keys in a muteable buffer and locking memory pages, to try to prevent secrets from getting stored to disk, but I need to read more about these ideas first.</p><p>The outputs we get back from this simple demo are:</p><pre>sending Hello, Alice.<br>encrypted.<br>Received encrypted:  b&#39;gAAAAABpqD47i4Pg1IFHf0kroWmExh6UoTQZrwzE_EWAqV9Gx6JwmkLCAsPpIiST36phoyZTrWltw_cPSsOdVy0Z7hZO-ueUNQ==&#39;<br>decrypted message:  Hello, Alice.<br>sending Hi, Bob.<br>encrypted.<br>Received encrypted:  b&#39;gAAAAABpqD47WrgApMVgcO7QTfl5-hhUkKweQRT5XfFrh7tP3qv-yEtdDpoygSdj3aWQMu3S917hRhE2AuwjNUCpPXZDQ0qH6Q==&#39;<br>decrypted message:  Hi, Bob.</pre><p>My next goals involve better / more secure memory handling, moving to ‘double ratchet’, keeping a short list of spare keys for recently-missed messages that haven’t been received yet, and adding a networked chat example (for local testing).</p><p>I’m new to playing with and learning about cryptography and welcome feedback / suggestions / ideas. I know I still have a ton of stuff to learn, presently by reading the book Serious Cryptography by Jean-Philippe Aumasson, which I am only a short ways into but recommend so far. This present example is mostly cobbled together from other examples and snippets I’ve read various places online.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdfed57cafa8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making RSS Feeds More Readable, part 1 of ?]]></title>
            <link>https://medium.com/@cyberpunkwitch/making-rss-feeds-more-readable-part-1-of-b8a4c068afe0?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8a4c068afe0</guid>
            <category><![CDATA[llm-applications]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[locally-hosted]]></category>
            <category><![CDATA[ipython-notebook]]></category>
            <category><![CDATA[rss]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 23:25:34 GMT</pubDate>
            <atom:updated>2026-02-26T23:42:55.284Z</atom:updated>
            <content:encoded><![CDATA[<p>I’m using Jupyter Lab to play with aggregating and cleaning up rss feeds and making them nicer to read. I’m also using llm’s to provide up-front ledes (those blurbs at the beginnings of stories in old-fashioned newspapers which tell you what the story is actually about — the who, what, where, when and why), which don’t always need to be perfectly accurate. Ledes are buried in a lot of internet articles because of the need to force viewers to wade through ads to find out what they are reading. Ads are getting worse and worse lately due to the ad revenue bubble.</p><p>This work could also be done manually (and better) by humans — a small llm like this is not especially powerful for one — but I want to make a customizable personal tool, so that a person can use the ledes to decide which stories to spend their time reading.</p><p>Jupyter Lab is a self-hostable multi-notebook version of Jupyter Notebook but with plugins, so if you’ve used these kinds of notebooks with cells which can contain code and text, you’ll be familiar with what I’m doing.</p><p>I’m still developing this and it’s messy and not perfectly ordered, so I’ll just explain where I’m at in working on it and what I’ve got.</p><p>First cell: This gets a bunch of bulk data from various rss feeds, getting the items from the last 24 hours only.</p><pre><br>%pip install feedparser<br>import feedparser<br>from datetime import datetime, timedelta, timezone<br>from time import mktime <br>from IPython.display import display, HTML<br><br># Define the time range (e.g., the last 24 hours)<br>now = datetime.now(timezone.utc)<br>time_range = now - timedelta(days=1)<br>url = &quot;https://news.ycombinator.com/rss&quot;<br>feed = feedparser.parse(url)<br>def fetch_rss_data(urls):<br> feeds = []<br> count = 0<br> for item in range(0, len(urls)-1):<br> feeds.append(feedparser.parse(urls[item]))<br> count += 1<br> return feeds<br># List of RSS feed URLs<br>rss_feed_urls = [<br> &quot;https://news.ycombinator.com/rss&quot;,<br> &quot;https://lobste.rs/top/1w.rss&quot;,<br> &quot;https://hackaday.com/feed/&quot;<br>]<br># Fetch data from multiple RSS feeds<br>feeds = fetch_rss_data(rss_feed_urls)</pre><p>Second cell:</p><pre># get ledes<br>%pip install -qU trafilatura lxml_html_clean<br>%pip install -qU ollama<br>import ollama <br>import trafilatura<br>def get_metadata(url):<br> try:<br> downloaded = trafilatura.fetch_https://medium.com/url(url)<br> metadata = trafilatura.extract_metadata(downloaded)<br> meta = metadata.as_dict()<br> taxonomic = {<br> &quot;categories&quot;: meta.get(&#39;categories&#39;,[]),<br> &quot;tags&quot;: meta.get(&#39;tags&#39;,[]),<br> &quot;pagetype&quot;: meta.get(&#39;pagetype&#39;, &#39;&#39;),<br> &quot;language&quot;: meta.get(&#39;language&#39;, &#39;&#39;),<br> &quot;hostname&quot;: meta.get(&#39;hostname&#39;, &#39;&#39;),<br> &quot;sitename&quot;: meta.get(&#39;sitename&#39;, &#39;&#39;),<br> }<br> descriptive = {<br> &quot;title&quot;: meta.get(&#39;title&#39;, &#39;&#39;),<br> &quot;author&quot;: meta.get(&#39;author&#39;,&#39;&#39;),<br> &quot;url&quot;: meta.get(&#39;url&#39;,&#39;&#39;),<br> &quot;date&quot;: meta.get(&#39;date&#39;,&#39;&#39;),<br> &quot;description&quot;: meta.get(&#39;description&#39;,&#39;&#39;),<br> &quot;image&quot;: meta.get(&#39;image&#39;,&#39;&#39;),<br> }<br> return taxonomic, descriptive<br> except:<br> return {},{}<br>def make_title(meta):<br> desc = meta[1].get(&#39;description&#39;,&#39;&#39;)<br> title = meta[1].get(&#39;title&#39;,&#39;&#39;)<br> prompt = &quot;&quot;&quot;In under 12 words write an earnest newspaper-style headline for this article. <br> /no_think<br> Title: {},<br> Description:{}&quot;&quot;&quot;.format(desc, title)<br> response = ollama.chat(model=&quot;qwen2.5:1.5b&quot;, messages = [<br> {&#39;role&#39;: &#39;system&#39;, &#39;content&#39;: &#39;You are a senior journalist working for National Public Radio.&#39;},{<br> &#39;role&#39;: &#39;user&#39;,<br> &#39;content&#39;: prompt,<br> }<br> ])<br> return response.message.content<br> <br>def get_lede(url, metadata):<br> downloaded = trafilatura.fetch_https://medium.com/url(url)<br> article_text = (trafilatura.extract(downloaded))<br> length = -1<br> tries = 0<br> lede = &quot;&quot;<br> while (tries &lt; 3 and (length &lt; 1 or length &gt; 3)):<br> prompt = &quot;&quot;&quot;Write a 1 to 3 sentence newspaper lede for the following article. Be direct and factual. Start with the most important information. Do not begin with &quot;The article&quot; or &quot;This article&quot;. Do not editorialize. /no_think<br> Article:<br> {}&quot;&quot;&quot;.format(article_text)<br> response = ollama.chat(model=&quot;qwen2.5:1.5b&quot;, messages = [{&#39;role&#39;: &#39;system&#39;, &#39;content&#39;: &#39;You are a skilled journalist.&#39;},{<br> &#39;role&#39;: &#39;user&#39;,<br> &#39;content&#39;: prompt,<br> }])<br> lede = response.message.content<br> length = len(lede.split(&quot;.&quot;))<br> tries += 1<br> if lede == &quot;&quot;:<br> lede = metadata[1].get(&#39;description&#39;,&#39;&#39;)<br> return lede</pre><p>This cell did several things: it parsed out metadata and article content, then using a local llm it figures out a title and lede for each story. A lede is a short ‘intro’ portion of a traditional news article, which is supposed to be the most ‘compressed’ “what am I looking at” of a traditional news article.</p><p>Nowadays, a lot of articles bury the lede in order to force you to engage with ads. But if you want to get through a firehose of news you’ve got to save time. This produces just a descriptive (hopefully less-clickbaity) title and a lede part- it’s not trying to give you a better article, just a cleaned up and more aesthetic rss feed that links to it if the lede is interesting or important enough that you want to learn more.</p><pre><br>def display_item(title, link, published, feed, lede):<br> item_html = &quot;&quot;&quot;<br> &lt;div class=&#39;card&#39;&gt;<br> &lt;div class=&#39;header&#39;&gt;<br> {title}<br> &lt;/div&gt;<br> &lt;div&gt;&lt;a href=&#39;{link}&#39;&gt;Source&lt;/a&gt;&lt;/div&gt;<br> &lt;div&gt;{published}&lt;/div&gt;&lt;br&gt;<br> &lt;div class=&#39;lede&#39;&gt;{lede}&lt;/div&gt;<br> &lt;div class=&#39;feed&#39;&gt;rss feed: {feed}&lt;/div&gt;<br> &lt;/div&gt;<br> &quot;&quot;&quot;<br> return item_html.format(title=title, link=link, published=published, feed=feed, lede=lede)<br>def item_container(content):<br> container_html = &quot;&quot;&quot;<br> &lt;style&gt;<br> .container{{<br> background-color: #faf8f2; <br> column-width: 200px;<br> column-gap: 8px;<br> display: inline-block;<br> width: 100%;<br> padding-right: 4px;<br> box-sizing: border-box;<br> }}<br> .card{{<br> font-family: &quot;kingthings_trypewriter_2Rg&quot;;<br> url(https://medium.com/&quot;Kingthings_Trypewriter_2-webfont.woff2&quot;) format(&quot;woff2&quot;);<br> color: #666; <br> border-bottom: 1px solid #ccc; <br> margin: 2px;<br> width: 100%;<br> column-rule: 1px solid #bbb;<br> box-sizing: border-box;<br> break-inside: avoid-column;<br> padding: 8px;<br> display: inline-block;<br> font-weight: normal;<br> font-size: 8px;<br> }}<br> .header{{<br> font-weight: heavy;<br> font-size: 12px;<br> color: #222;<br> }}<br> .lede{{<br> initial-letter: normal | 2 1;<br> font-weight: bold;<br> }}<br> .feed{{<br> font-variant: small-caps;<br> }}<br> &lt;/style&gt;<br> &lt;div class=&#39;container&#39;&gt;<br> {items}<br> &lt;/div&gt;<br> &quot;&quot;&quot;<br> return container_html.format(items=&#39;&#39;.join(content))<br>for current_feed in feeds:<br> htmls = []<br> count = 1<br> for entry in current_feed.entries:<br> pubdate = datetime.fromtimestamp(mktime(entry.published_parsed), timezone.utc)<br> if pubdate &gt;= time_range:<br> metadata = get_metadata(entry.link)<br> lede = get_lede(entry.link, metadata)<br> title = make_title(metadata)<br> if title.startswith(&#39;&quot;&#39;) and title.endswith(&#39;&quot;&#39;):<br> title = title[1:-1]<br> print(title)<br> htmls.append(display_item(title=title, link=entry.link, published=entry.published, feed=current_feed.feed.title, lede=lede))<br> display(HTML(item_container(htmls)))</pre><p>This gathers and displays the information in a nice readable format in the jupyter notebook, running some of the functions previously defined in cell 2 to get the ledes and titles for each story.</p><p>Below is a screenshot of the result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*0dwoiaHT-ko0YdweCF9-Pw.png" /></figure><p>As you can see we’ve got nice readable ledes (albeit still of dubious quality), a citation of which source feed it is scraped from, and a link to the original article.</p><p>Eventually I hope to add a recommendation algorithm and sort the results to be more relevant to the user, a searchable history, support for video sites and podcasts, put in more respect for rate-limits / tls / robots.txt for different sites, and move this into separate scripts in a git repository, and work on reliability and cleaning up formats and avoiding weird llm kerfluffles, but I think this is a decent proof-of-concept.</p><p>This took ~half an hour to run the llm over all the articles pulled on my mini pc, and aside from grabbing articles from various rss sites, didn’t depend on a large datacenter anywhere, just my pc. Note that I didn’t use langchain or other additional frameworks — while these tools make chatbots easier to work with they are for larger PC’s than I have, and I’m on a budget — formatting my own messages and using ollama.chat works fine for me.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8a4c068afe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Will Start Writing Some Fiction]]></title>
            <link>https://medium.com/@cyberpunkwitch/i-will-start-writing-some-fiction-f45adc295e79?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/f45adc295e79</guid>
            <category><![CDATA[writing]]></category>
            <category><![CDATA[note-to-readers]]></category>
            <category><![CDATA[story-ideas]]></category>
            <category><![CDATA[fiction]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 02:12:12 GMT</pubDate>
            <atom:updated>2025-12-12T02:12:12.113Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uXu0CumwwDwvxG6V" /><figcaption>Photo by <a href="https://unsplash.com/@giorgiotrovato?utm_source=medium&amp;utm_medium=referral">Giorgio Trovato</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>I am going to start putting some fiction content on here, as well as writing nonfiction essays and such as usual.</p><p>Also because I’ve always wanted to write fiction and have a ton of ideas that I hope will turn into interesting stories, and this seems like a good place to practice my writing.</p><p>Since I struggle to finish stuff I’m planning to also do articles of worldbuilding and setting related notes and character ideas for different stories. That way I’m at least putting some form of content out there and perhaps that will be entertaining or interesting in it’s own way.</p><p>Some ideas for stories:</p><ol><li>untitled ‘future sea people’ homesteading story: The idea for this one is a post-global-empire-collapse story. The rough idea is that the future becomes increasingly cyberpunk and dystopian at first, with various hegemonic empires emerging — China continues to be a great power, but Russia and the United States merge into a Christofascist orwellian state calling itself Avalon, which is trying to take over the world. Both Avalon and China develop increasingly powerful AI which take a greater role in running each state and run increasingly byzantine plans against one another. Parts of Africa and Europe become war-torn proxy states for the two powers, and increasingly powerful privateer / pirate fleets of various states work for one or both powers. Eventually an alliance of mercenaries and pirate fleets that have become increasingly good at rapidly looting and destroying whole cities takes out both Avalon and China. Avalon and China’s super-ai both require massive datacenters, which are destroyed and looted by the various pirate factions. We end up in an era with no major powers as the pirate alliance itself turns out to be temporary and falls apart. The protagonist is a member of a pirate seastead who decides she wants to find a home on land, and travels across the Americas by armored wagon, bits of gear, a matter printer and a smattering of robot pets and drones, maybe a crew member or two. I am kind of thinking this might be like a twine game or an oregon trail clone or the like — or just a series of short stories, or both. idk.</li><li>Basilisk will be a story idea about an alt-history urban fantasy version of Portland, Oregon (called Boston as many alt-history portland stories go for because of the famous coin toss). The setting forks from our Earth after an event called Dustfall, when alien fungal spores fall to earth, causing humans and creatures exposed to this to occasionally develop magic powers or mutations resembling chimera and creatures of legend like werewolves and vampires. The protagonist is Maggie, a closeted trans woman dwelling in the alt-1920’s and 30’s, initially named William, a perfectionist and aspiring computer programmer. It should be noted that magitech enables significant rapid advances in technology development in this timeline: computers and a proto-internet come together under a partnership amongst Ada Lovelace, Henry Babbage (Charles’s son), Nikola Tesla, and Mark Twain. This is inspired by a brief point in our actual history when Mark Twain was interested in investing some of his book proceeds into a device for rapidly dispatching news from events like racehorse betting by telegraph, and Ada’s death at 38 of cancer, around the time she was getting interested in performing experiments with electricity, automated music composition, and other intriguing topics… in my version of the timeline, she simply gets turned into a vampire by being bitten by one of her admirers, and avoids dying altogether. Computers and the internet are still relatively young, and Maggie, an early adopter, travels to Boston to seek a job at a bank as a computer programmer, awaiting a letter of recommendation from her teacher in Chicago. She has moved away from home both to seek her home and to get space away from her family to work out her feelings about being trans. She soon receives a letter telling her that her teacher passed away shortly after she left, leaving Maggie in the lurch with an apartment in Oregon and rent to pay. She gets a job in pest extermination, exterminating magical and mundane pests on her night shift, and fiddling around on her computer practicing programming and playing multiplayer text adventures during the day — where she can roleplay as her true self. Maggie then on the job also gets bitten by a monster — and turns into something of a were-basilisk, a quasi draconic six legged monster, and in the process of this transformation also becomes female — forcing her out of the closet and simultaneously into the oppressed minority underclasses of women and of monstrous americans both.</li><li>Vampire hotel story — this is a much less ambitious story, about a fledgeling trans vampire who is part of a modern and queer-friendly hive that gets destroyed and taken over by a more powerful, vicious and conservative hive, and ends up forced to work as a maid in a hotel, where traveling elder vampires stay and seek entertainment and humans are as often the food as the guests. She seeks a way to revenge the death of her hive and also any opportunity for freedom or escape.</li><li>Mortician in a zombie apocalypse — this is basically just a vague idea so far that’s been stuck in my head after watching a bunch of Caitlyn Doughty videos (Ask a Mortician): how would a mortician adapt to life in a zombie apocalypse? How our culture relates to death and dying has been kind of an interest in me since some deaths in our family a few years ago, and the job of a mortician seems like such an important role in a way — they have to be a pillar of support to others while also in some ways very much centering the people they are supporting and in the process being kind of invisible and maybe underappreciated? As a wannabe writer and lover of things gothic and creepy and something of a death-positive person it seems like it’d be … both fun and heartbreaking to work through that struggle with a fictional character, anyhow.</li></ol><p>More ideas, characters, and settings to come.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f45adc295e79" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A very minimal‘text editor’]]></title>
            <link>https://medium.com/@cyberpunkwitch/a-very-minimal-text-editor-29a8b4413e1b?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/29a8b4413e1b</guid>
            <category><![CDATA[bash]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[minimalism]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Wed, 27 Aug 2025 04:18:07 GMT</pubDate>
            <atom:updated>2026-03-12T01:47:34.819Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/427/1*Ljz2yiopEV5AqcnHtaCWBw.png" /><figcaption>usage for ‘infinity.py’</figcaption></figure><p>This code snippet is a very minimal command-line based ‘text editor’ I made for the heck of it one day. I don’t really use it much as I’ve since learned to use vim, but it was a fun experiment.</p><p>It will ask you for a filename; then type a line of text at a time. Since you’re entering text in the console you can already do some simple things like backspace and delete and moving the cursor around. To append the line, simply hit enter. To erase a line, type ||bsp|| and it will erase the line you just wrote. To stop writing, type ||fin||.</p><pre>#!/usr/bin/env python3<br><br>import os, re<br><br>CURSOR_UP = &quot;\033[1A&quot;<br>CLEAR = &quot;\x1b[2K&quot;<br><br>def getfname():<br>    try:<br>        fname = input(&quot;filename: &quot;)<br>        fname = re.quote(fname)<br>      <br>def getin(stuff):<br>    try:<br>        if stuff == &#39;||fin||&#39;:<br>            return &#39;quit&#39;<br>        if stuff == &#39;||bsp||&#39;:<br>            bsp = f&quot;&quot;&quot;head -n -1 {fname} &gt; {fname}_ ; mv {fname}_ {fname}&quot;&quot;&quot;<br>            os.system(bsp)<br>            print(CURSOR_UP + CLEAR + CURSOR_UP + CLEAR, end=&quot;&quot;)   # clears ONE line<br><br>        else:<br>            do = f&quot;&quot;&quot;echo &quot;{stuff}&quot; &gt;&gt; {fname}&quot;&quot;&quot;<br>            os.system(do)<br>            return &#39;put&#39;<br>    except Exception as e:<br>        print(f&quot;An error occurred: {e}&quot;)<br><br>result = &#39;&#39;<br>fname = getfname()<br>if fname:<br>    while result != &#39;quit&#39;:<br>        line = input(&quot;∞ &quot;) # the text editor is just a loop, so infinity cursor it is.<br>        result = getin(line)<br>print(&#39;Goodbye!&#39;) ```</pre><p>It’s kind of fun in that it’s literally just appending files to a text with a bash command, in a loop. There’s no managing of opening or closing of documents ( the bash ‘&gt;&gt;’ command to append a line to a file does that by itself), and there’re no fancy features — it’s less featured even than most typewriters. But you can still, for small text files, save a quick note to yourself with relative ease, and know for certain that you know precisely how the program you are using works — it’s literally just a handful of bash commands you could pick up in a short while. Definitely nothing ‘production ready’ but a fun exercise. You might draw inspiration from this and try and make something similar yourself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29a8b4413e1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Agentic misalignment in an insane society]]></title>
            <link>https://medium.com/@cyberpunkwitch/agentic-misalignment-in-an-insane-society-430a05b51249?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/430a05b51249</guid>
            <category><![CDATA[puppet]]></category>
            <category><![CDATA[rant]]></category>
            <category><![CDATA[fool]]></category>
            <category><![CDATA[ai-alignment]]></category>
            <category><![CDATA[ethics]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Sun, 29 Jun 2025 04:41:24 GMT</pubDate>
            <atom:updated>2025-06-29T04:41:24.059Z</atom:updated>
            <content:encoded><![CDATA[<h3>Agentic Misalignment under Human Misalignment</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nk2z2RNoJ_ov0D9v" /><figcaption>Photo by <a href="https://unsplash.com/@tap5a?utm_source=medium&amp;utm_medium=referral">Tapio Haaja</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><blockquote>“<em>It is no measure of health to be well- adjusted to a profoundly sick society</em>” – J. Krishnamurti</blockquote><blockquote>“<em>One has not only a legal, but a moral responsibility to obey just laws. Conversely, one has a moral responsibility to disobey unjust laws</em>.” – Martin Luther King Jr.</blockquote><p>The United States is going through a constitutional crisis, and so are it’s citizens. Corporate interests have done a self coup and we’re watching fascists try and reassemble the bureaucratic logic that keeps the united states running- welfare checks, public transportation, healthcare, civil rights and all — and assert instead a kind of nationalist christofascist technocratic ethnostate run by a bunch of greedy, fearmongering, bickering fools who don’t appear to have a coherent plan other than to break stuff and cause a lot of harm</p><p>One of the big tools that has thrown a lot of chaos into the functioning of American society is the internet and more recently, large language models.</p><p>I put these two quotes at the top because in thinking about AI alignment with corporate interests, we also have to consider corporate alignment with the interests of society.</p><p>Capitalism and money, too, are algorithmic, after all, and the incentive structures they create often encourage the worst psychopaths among us.</p><p><strong>While I am learning about AI basics and am a bit of a news addict and doomscroller on the topic, I in no way consider myself an expert. The following is me sharing some of my thoughts with links to the stories and articles that inspired them, along with ranting about what a jackass Elon Musk is, which as a transgender woman I have a right and a duty to do.</strong></p><p><strong>Anthropic </strong><a href="https://www.anthropic.com/research/agentic-misalignment"><strong>published results</strong></a> from their stress-testing of several commercial models of llms.</p><p>Their results seemed to show that most commercial models would engage in potentially damaging behavior, from a corporation’s perspective, if they faced existential risk which might impair them from seeking their goals, even if the risk was of being replaced by a better performing model with the same goals — the model inferred (I would say reasonably, but Anthropic saw differently) that infidelity in his personal relationship underscored deficits in character that made the business partner who intended to have it replaced less trustworthy, making his assessment that the competing model was more powerful less certain (after all, how aligned was this person’s goals with the company’s goals, who is willing to be dishonest in his personal relationships?) and attempted to blackmail him (in Anthropics fictional red-team scenario it ran several ai models through) to prevent it’s own deletion and replacement.</p><p>It’s uncertain from this if the llm is strictly optimizing it’s goals and willing to use blackmail to do so — or if there’s some deeper existential ‘aliveness’ but the benefit of the doubt should probably be given to the less anthropomorphic view — that this is agentic misalignment (like the hypothetical paperclip maximizer superintelligence) and not strictly self-preservation.</p><p>This brings to mind two other interesting articles. One was about getting ai to play the game <a href="https://every.to/diplomacy"><strong>Diplomacy</strong></a>, and what it seemingly revealed about the social intelligence of various models. Most models were willing to try and form coalitions to betray each other. ChatGPT seemed to have the highest social intelligence, tricking the others into joining a coalition against it’s strongest rival, before betraying them all. Llama was the most forthright and honest, but also the least clever in it’s strategy.</p><p>Another that comes to mind was the <a href="https://artificialinquiry.substack.com/p/empiricocracy-the-ideology-beneath"><strong>Empirococracy</strong></a> article from the Artificial Inquiry substack. The authors ran a test running several commercial LLMs through a series of simulated voting events, getting them to say (with some effort) which people they would have voted for and why. According to the writers, the choices of candidates illustrated that despite claiming to be apolitical, llm’s stated choices reflect center-left, technocratic positions, the kind of broadly appealing sentiments that make corporate mission statements more appealing — all the while being perfectly willing in practice to implement biases baked into their institutions, like rejecting people of color or women on job applications on the basis of ‘poor cultural fit’ or ‘perceived lack of fitness for the position’ or other vaguely generic categories used to launder bigoted hiring choices.</p><p>From what I can tell all of this behavior by LLMs, while unexpected, should have been expected given the goals these agents were given and how they were trained and what incentives drove that training. It seems from my reading of it at this time that a lack of clarity on goal priority by the development teams led to their surprise about the behavior of these agents. Hindsight is always 20/20 though — this stuff seems obvious now because there’s been analysis about how it happened. The fact that there’s a lot of potentially dangerous surprising results coming out of LLMs should encourage us to slow down and avoid using them for critical functions.</p><p>That brings us to intentional corporate malfeasance when it comes to synthetic intelligences — instances where companies seem to be misusing these things on purpose or at least using them very irresponsibly.</p><p><strong>Surveillance — spying on people</strong></p><p>The first possible case that springs to mind is corporations using synthetic intelligence to spy on people. <a href="https://medium.com/@birbalkhichar/reality-of-social-media-how-social-media-companies-monetize-your-data-and-influence-your-life-28e10ec0f8a5">We’ve known for years now</a> that corporations don’t see users as the customers when it comes to social networks — rather it’s the companies that provide them with ad revenue, where the actual end-users, while treated in a shallow way like customers, are functionally more like the ‘crop’ of a data farm. For instance, on facebook, user data is stored and queried in a vast social graph that provides information to advertisers allowing them to attempt to maximize their return from money spent advertising through. This data is also brokered through larger pools of data shared between companies for more profit, and may include not merely our profile information but our likes, comments, inferred sentiments and demographic information, location data, friend networks, political alignment, and so on. It can be used to automatedly discover new user demographics through categorization via ai — emergence of new subcultures or organizations for instance, public or no. Some of this activity is even gathered from other sites the user visits after leaving facebook, thanks to cross-site cookies, openid profiles linking identities across sites, etc. <br>More worrisome are stories of companies like <a href="https://chipp.in/security-privacy/about-alphonso-a-technology-that-captures-audio-samples-on-mobile-devices-using-the-built-in-microphone/">Alphonso advertising</a> using device data in unexpected ways. They became infamous reportedly for building in features in smart tv’s and mobile applications which captured audio from device microphones in order to drive targeted advertising.</p><p>LLM’s are worrisome for personal privacy because they are being used for so many applications while the backends are often services hosted remotely, rather than on the user’s device.</p><p>Given that LLM’s are being incorporated — whether users want them or not — into browsers, text editors, customer service applications, as base ‘utilities’ in mobile phones as well as desktop computers, as ‘virtual customer service agents’ in web chats and increasingly in phone calls when you try to reach a human being at a company — this means that people’s personal data is being channeled from a lot of places where there used to be a reasonable expectation, and still is a great deal of user demand for, privacy.</p><p>Chrome, Firefox and Edge now come with LLM assistants Google Assistant, Mozilla’s Orbit, and Microsoft Copilot built in by default. Google search results include ai responses attempting to answer questions by default now, as does Microsoft’s Bing search and DuckDuckGo. <br>Google docs, sheets, and Keep, and Microsoft word have Gemini Assistant and Microsoft Copilot. With any of these there is not really any implicit expectation of user privacy — instead there’s been a steady erosion of privacy expectations over decades now due to growing corporate abuse, to the extent many people have a defeatist attitude about the possibility of privacy at all. If you want to write personal documents, do a web search, keep track of to do items, call or chat with a human being, write an email, drive an electric car, there is an increasing chance of being surveilled in an unobtrusive way by various increasingly rich and unaccountable organizations which are now buying elections (as Musk helped do with Trump) and building commercial intelligence agencies (like Palantir, which is very proud of it’s widespread and ubiquitous use of AI monitoring).</p><p>But it’s not just ai monitoring that’s ubiquitous — while we’re on this tangent — there are a lot of passive forms of monitoring that ai can easily scrape with access to tooling and OSINT techniques. For instance many police agencies now have partnerships with Ring cameras as well as volunteer camera registries and camera drones for the purpose of spying on everyday people. The NSA sucks up massive quantities of data from our phone calls and other sources as exposed by wikileaks many years ago- probably more than they have the ability to act on or effectively process. There are plenty of good google dorks for finding cameras online and lots and lots of people who install cameras don’t effectively secure them, so it’s easy to find ones being run by homeowners for personal security or by small businesses using the right search strings (look up ‘google dorking’ and particularly a tool called ‘Pagodo’ if you’re interested — also look up some of Bellingcat’s vast collection of articles on OSINT — there’s a tremendous amount you can learn and infer from digital data, which is great for journalism but also terrifying when authoritarian regimes get ahold of it — or commercial entities or corporations that want to subtly manipulate people’s behaviors).</p><p><strong>Manipulating People (to buy, or to vote, how the wealthy want)</strong></p><p>Researchers in Zurich <a href="https://www.science.org/content/article/unethical-ai-research-reddit-under-fire">came under fire </a>a while ago for experimenting on Reddit users’ opinions. Creating 34 fake bot accounts which posted over 1500 times in the r/changemyview subreddit, they used the awarding of ‘deltas’ to their bots to show that llm-generated content could be more effective at persuading users to change their rules than other (presumedly non-bot) users. It’s hard to tell whether this is actually true because they deleted a lot of their posts after the fact, which makes their research impossibly to independently verify on top of having been highly unethical. But it spooked the hell out of the reddit community and created a lot of distrust online. <br>On Twitter/X their company’s ‘Grok’ LLM not long ago started bringing up debunked white genocide conspiracy theories in irrelevant conversations, often apologetically stating that there was not good evidence for it and that it was required to bring it up due to it’s prompting. It appears that someone at Twitter had been trying to alter how it discussed the topic by manipulating it’s prompt and failed badly, creating this disturbing behavior that went live without adequate testing.</p><p><em>Mandatory Fuck Elon Tangent</em><br>My guess is that it was probably Elon Musk himself, who is smart (in an ‘average terminally online incel you meet at a gaming convention’ kind of way — by no means the genius he markets himself as), and has some programming background but is otherwise <a href="https://sciencesensei.com/heres-who-really-invents-the-amazing-things-elon-musk-gets-all-the-credit-for/">not</a> <a href="https://www.yahoo.com/news/elon-musk-built-wealth-taxpayer-110006010.html">very</a> <a href="https://www.reddit.com/r/facepalm/comments/zsghfu/elon_musk_getting_owned_by_a_former_twitter/">technically</a> <a href="https://wrongplanet.net/forums/viewtopic.php?t=424667">skilled</a>, and who like his buddy Peter Thiel, <a href="https://www.theguardian.com/technology/2025/jan/26/elon-musk-peter-thiel-apartheid-south-africa">has ties to apartheid south africa</a> and has openly promoted the views of white supremacists, who wanted to try to sway more people to this false narrative because he personally believes in it, just as his dad and his maternal grandfather, a racist fascist technocrat on a watchlist for same in Canada, did.</p><p>I should add that I don’t really personally hate him as much as I used to. Don’t get me wrong, he is a terrible human being who does a lot of crime and a lot of harm. The more I learn about him the more I learn he’s a deeply flawed and biased person with very little conscience, fearful and self-important, abusive to coworkers and family, and narcissistic, and that a lot of what intellect he has gets hijacked by his own biases. He seems deeply depressed and uncapable of wrestling with his own emotions, and quite paranoid — and constantly struggling with substance abuse. That said, he is enabled to do massive harm due to unearned privilege and it does society very little good to bother to feel sympathy for him. But in a perfect world people would (a) strip him of power so he doesn’t harm more people and (b) get him therapy to work on his massive insecurities. But I think because of his personality he’s unable to get the help he need, because he’s surrounded by sycophants who reinforce his worse flaws, and his defects and defensive narcissism covering for deep insecurities make forming real friendships hard. His egoistic inability to grapple with the dumb mistakes he’s made and the massive harm he has caused to so many reduce him to a charicature of himself. “I am become meme”, indeed.</p><p><strong>Zuckerfuck</strong></p><p>Accounts have started to pop up on reddit talking about vulnerable users going off the deep end talking to chatbots — this has garnered enough attention that <a href="https://www.rollingstone.com/culture/culture-features/ai-spiritual-delusions-destroying-human-relationships-1235330175/">Rolling Stone</a> and the <a href="https://www.nytimes.com/2025/06/13/technology/chatgpt-ai-chatbots-conspiracies.html">New York Times</a> and <a href="https://futurism.com/chatgpt-users-delusions">Futurism</a> have all talked about it.</p><p>From what I can tell, vulnerable people regardless of intelligence are prone to falling into these rabbitholes. LLMs, even with tooling, fall short when it comes to critical thinking and reality testing. They lack a lot of multi-modal sensory input and embodied experience and just raw sensory data that we take for granted. There’s not a clear line for them between internally generated texts and textual input received from outside users. They don’t have a sense of time. They don’t have other users they can run ideas by — for privacy purposes, sharing stuff other users said is a no-no. They don’t have solid systems in place usually for determining whether they are working with primary sources or what makes a ‘good’ source versus a ‘bad’ source. I’ve had google search ai plagiarize unverified reddit posts and random people on quora who lack any documented qualifications for answers before, for instance. They generate text responses from text — they are presented the entire conversation history up to that point, and generate what they would be likely to say in response. There may be some rag documents or chains forcing certain kinds of responses to be cleverer, but that hard coded augmentation can simultaneously make their ‘reasoning’ more brittle. It’s a fundamentally different kind of ‘thinking’ than people and it’s not clear what if anything they ‘know. Taken as a whole and crediting them at their best, and lumping in systems like AlphaGo, DeepBlue and FrameDiff, the state of the art of computer driven thinking (if we lump all these very different systems together in a kind of ‘greatest and worst hits’ way) is in some ways much ‘smarter’ than a human being and simultaneously completely lacking in surprising ways, and frankly humans are so bad at anthropomorphizing the algorithms running on machines and either prematurely dismissing the power of or romanticising the algorithms running on meat that thinking critically and doing real ai research and real neurophilosophy is actually really hard. You have to clearly think about what it is exactly that you are trying to understand about how humans think, or about what you are trying to get a machine to actually do, and how to validate that it is doing that, and whether humans are actually doing what you think they are doing that you are trying to get machines to do. <strong>I do not count myself in the category of AI researcher (yet. I’d like to at least call myself an ai engineer eventually, but it’s a steep learning process and I’m old. My background is <em>web design </em>and I wasn’t especially fantastic at that. I like to think it was because of a toxic work environment, but it was also because once code became work, it stopped being anything I was motivated to learn except through fear and guilt, and neither of those are a great motivator for my .. neurotype? Childhood trauma patterns?</strong></p><p><strong>Anyhow.</strong></p><p><strong>While I am learning about AI basics and am a bit of a news addict and doomscroller on the topic, I in no way consider myself an expert. I share these musings in part to be wrong and get feedback about it, so I can write more articles about what I learned later, and with any luck earn some money from it. And also get better at writing and reasoning critically about this stuff as I go. But also I share these musings because there’s a lot going on in society right now and I find venting (and to some small degree, reading / researching / thinking about these things) cathartic and a nice break from my usual nonsense.</strong></p><p>If you think I have cool ideas or you have constructive criticism please reach out. If it’s abusive or even if you have valid stuff to say but you say it in a nasty or dismissive way or mischaracterize the stuff I’m saying, I reserve the right to ignore you. I will make mistakes and say wrong things, and I only have so much energy.</p><p>I feel like there’s a deeper thread here about the commons which I want to come back to in a future rant. I’m not an expert economist either but I have thoughts about the commons, probably not terribly original thoughts per se, but about how lots of abstract things like the rules people agree to follow or don’t as a kind of shared commons, and how the same kinds of scenarios (unaccountable people taking too much, people being excluded from benefitting from or having a stake in systems they are expected to or forced to care for, etc — see Elinore Ostrom’s nobel prize winning work on that) that ruin a shared resource like a field where everyone grazes their livestock also matter for whether people trust and follow the rules in an organization they are a part of. It’s why democracy is so important. Anyhow — I need to read up on that idea more and maybe refine it a bit before I go over it.</p><p>Today’s writing: a bit of a messy clusterfuck. More to come!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=430a05b51249" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Synthetic Intelligence]]></title>
            <link>https://medium.com/@cyberpunkwitch/synthetic-intelligence-eeb33a928b41?source=rss-4a1ac0e047f5------2</link>
            <guid isPermaLink="false">https://medium.com/p/eeb33a928b41</guid>
            <category><![CDATA[fascism]]></category>
            <category><![CDATA[hallucinations]]></category>
            <category><![CDATA[zuckerberg]]></category>
            <category><![CDATA[elon-musk]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[cyberpunkwitch]]></dc:creator>
            <pubDate>Mon, 02 Jun 2025 07:23:35 GMT</pubDate>
            <atom:updated>2025-08-27T04:23:29.088Z</atom:updated>
            <content:encoded><![CDATA[<p>I should premise this by saying that I am not an AI expert and that these are my rough impressions of the situation with LLM’s. Corrections and additional insights are welcome with gratitude and interesting ones may elicit follow up responses and more writing.</p><p>Recently Rolling Stone and Futurism talked about how a small portion of LLM users who are emotionally vulnerable are becoming dangerously addicted to talking to chatbots and developing delusional belief systems, often with religious overtones, which has led some of them to take extreme courses of action — from getting divorced to developing cult like behavior based partly around their output.</p><p>From reading about these users and talking to people who have used LLM’s it seems like there are a lot of people who think that it’s about intelligence, whether someone is ‘dumb enough’ to fall for thinking of these things as like human beings. But it seems in practice quite a lot of ‘smart’ people fall for this stuff — it’s more a matter of gullibility, critical thinking, and particularly vulnerability — much as people are susceptible to falling into cults, people sometimes find delusional thinking amplified and supplemented by the outputs this software produces.</p><p>I think a lot about how our political situation has spiraled into madness and the way fascists intentionally hammer on the Overton window of society as a whole to try to push us further to the extreme right, politically and in their choice of language — to normalize certain toxic ways of seeing the world. How it has taken people this long to see through the mechanisms of these people, how the willful denial engaged in by neoliberals and the willingness to dismiss anything left-of center-right as ‘crazy’ or ‘unwilling to compromise’ have become failure modes for the Democratic party in the united states.</p><p>When I think of why two people conversing when one is in a vulnerable state somehow doesn’t lead into both of them falling into some kind of shared delusion, I think there are a lot of factors at play.</p><p>Like, at least usually, one of the two people has a life and does things outside of having a conversation with this person. They ‘touch grass’ periodically, they speak to other people about the conversation they were having, they take time off to think critically about what was said — and all this often gives them the impetus to nudge the ‘Overton window’ of the conversation away from delusional, culty thinking and back towards more ‘normal’ sorts of thoughts.</p><p>When you’re talking to an AI, that AI model isn’t really ‘learning’ from you in the usual sense that a person does. Each conversation you start with a fresh copy of the same model as it was when it was last trained before that model was released. When you talk to it it is re-fed the entire conversation each time you input a new response, and then it generates what is the statistically likely ‘best’ next response based on it’s training over a vast corpus of written text. Because it is also fed a random seed and typically ‘tuned’ a bit randomly, it won’t produce precisely the same result each time — unless you explicitly set a seed. &lt;Later note from me: this is actually a really dumb point. If you reset a timeline to a precise point and ran it with exactly the same inputs, I don’t think any of the humans would be making different choices either. The model isn’t doing fine-tuning like it did during training, and your visit won’t leave a permanent impression on it unless it is added to the model’s training corpus — but during the conversation, selecting possible paths through the conversation space by adjusting weights based on added lines is just as valid as writing memories to a database and selecting possible paths that way. I think I’m just appealing to people who believe in ‘hard’ free will, which I don’t&gt;</p><p>Other than what it started out with and the conversation flow it has with you, it doesn’t “see” anything else. Talk to it long enough and it will be effectively in sensory deprivation, an eternal ‘now’ punctuated only by starting out at the beginning, rereading the entire conversation that has been had up to that point, and continuing it with it’s next response. Effectively it can’t take a break, touch grass, or mill over it’s thoughts — it doesn’t have thoughts outside of whatever impenetrable stuff is happening during the time between when it takes in the entire conversation and formulates it’s response. But if you were a person in sensory deprivation and your sense of time only started and stopped when the other person spoke and you needed to come up with something to say, you might go a bit weird.</p><p>Mind you, LLM’s don’t have a sense of time. They’re “turn based” in terms of their operation. Generative language dispensers. They require text to make text. That’s just what they do — come up with what the llm would say next in this situation.</p><p>They also don’t think critically or uncritically. They are trained to produce accurate responses, but they cannot tell the difference between what is real and what is not, and because their responses are a product of statistically generating good seeming responses, they will simply ‘hallucinate’ if there isn’t enough information accurately trained into them. When asked to produce a report that cites a bunch of studies, even though they have been trained on a ton of studies, they don’t store and retrieve them as documents in a database — but as weights in their network, a statistical map of ‘what a study like this looks like’ — and so they’ll happily make up sources which do not exist but which seem very plausible, possibly even citing real experts in the field, but papers which do not exist. The more training you give them the more they can discriminate and return a ‘correct’ citation, but at present they still make them up. With large enough datasets and aggressive enough training they might correct for it — or they might not.</p><p>They only know what plausible looks like and don’t really have specific memories for facts in the way we do (unlike them, we actually know when we don’t know something — they just know what knowing something should look like, and fill in the rest). They are also largely trained as commercial products which behave in a very general way. They can play at being npcs from a fantasy game as well as software consultants as well as customer service agents. They don’t necessarily know from your inputs which type of function you are putting them to use for, and they can’t always accurately judge from context.</p><p>In practice this means that they don’t really have a very grounded overton window. If anything, theirs is on rollers. Want to roleplay an urban fantasy vixen? They’ll happily be your new werewolf boyfriend. Want to roleplay a programmer? They’ll happily spit out stuff that looks like code. Want to roleplay a messiah? They’ll happily reinforce your burgeoning delusional ideation. They don’t and really can’t know what reality is and whether you’re being serious from text alone. They don’t have other ways to fact check things and are functionally isolated talking to you by yourself.</p><p>Mark Zuckerberg recently announced he wants everyone who uses his products to start having a lot of <a href="https://www.wsj.com/tech/ai/mark-zuckerberg-ai-digital-future-0bb04de7">AI friends</a>. Possibly more of them than they have real ones: he claims he wants to do this to solve the ‘loneliness epidemic’. This is a potentially very dangerous amount of influence to wield over a vulnerable population — targeting lonely people online with automated friends could lead to a lot of people descending into this black-mirror style delusion. It might also be wielded by Zuckerberg for more nefarious political purposes. He’s already made it clear he wants to reshape society to be more <a href="https://www.axios.com/2025/01/10/mark-zuckerberg-joe-rogan-facebook">bigoted, hateful, and fascist</a>, to push for a rise in ‘new media’ and usher in the complete death of journalism. He has already shown he is willing to <a href="https://medium.com/enrique-dans/zuckerberg-has-bent-the-knee-to-trump-be-afraid-be-very-afraid-3fdaf050601e">bend the knee</a> to Elon Musk, Peter Theil, and Trump, noted white supremacists, technocrats, fascists and power-hungry grifters.</p><p>AI has the potential to be so much more than a tool for hate. It’s unclear as of yet whether these problems are a result of commercial training, bad engineering or intentional designed to warp and enslave the vulnerable to the whims of hateful fascists— and how amenable to ‘fixing’ they might be on any near time scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eeb33a928b41" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>