<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: ShamelesAbyss</title>
    <description>The latest articles on DEV Community by ShamelesAbyss (@shamelesabyss).</description>
    <link>https://dev.to/shamelesabyss</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4206399%2F5596752f-a821-4f74-a6bd-41107c24847f.jpg</url>
      <title>DEV Community: ShamelesAbyss</title>
      <link>https://dev.to/shamelesabyss</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/shamelesabyss"/>
    <language>en</language>
    <item>
      <title>MotifAI 7.2.0: Building a Local-First AI Music Studio in Rust</title>
      <dc:creator>ShamelesAbyss</dc:creator>
      <pubDate>Sun, 25 Oct 2026 11:22:08 +0000</pubDate>
      <link>https://dev.to/shamelesabyss/motifai-720-building-a-local-first-ai-music-studio-in-rust-3aff</link>
      <guid>https://dev.to/shamelesabyss/motifai-720-building-a-local-first-ai-music-studio-in-rust-3aff</guid>
      <description>&lt;p&gt;I've been building &lt;strong&gt;MotifAI&lt;/strong&gt; to make AI-assisted music composition feel less like asking a model for a block of code and more like working in a creative studio.&lt;/p&gt;

&lt;p&gt;MotifAI connects locally installed &lt;a href="https://ollama.com" rel="noopener noreferrer"&gt;Ollama&lt;/a&gt; models to &lt;a href="https://strudel.cc" rel="noopener noreferrer"&gt;Strudel&lt;/a&gt;, turning a musical brief into an executable live-coding composition. The project is open source: &lt;a href="https://github.com/ShamelesAbyss/MotifAI" rel="noopener noreferrer"&gt;explore MotifAI on GitHub&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  From a musical idea to an executable score
&lt;/h2&gt;

&lt;p&gt;A session starts with a musical vision and style direction: genre, energy, instrumentation, arrangement, or a targeted change to an existing score. MotifAI classifies the work as a new composition, focused edit, evolution, or technical repair, then builds a request that fits that job.&lt;/p&gt;

&lt;p&gt;The composition palette includes 65 arrangement architectures, 31 instrument-role palettes, 13 production palettes, and 11 visual telemetry families. You can use a blueprint, let Smart Auto choose a structure, or switch to Free-Form and leave the blueprint out.&lt;/p&gt;

&lt;p&gt;The result is Strudel JavaScript, with the goal of making each section, stem, and live control useful in the actual music environment—not just plausible in a text response.&lt;/p&gt;

&lt;h2&gt;
  
  
  The engineering around generation
&lt;/h2&gt;

&lt;p&gt;A lot of the work has been about making generation predictable and recoverable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Recipe-based request compilation&lt;/strong&gt; builds task-aware prompts and inference profiles, streams tokens over NDJSON, and reports the effective context and output limits.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Two-stage score verification&lt;/strong&gt; runs a conservative lexical preflight, then evaluates candidates in an embedded Strudel runtime when available. Missing runtime support is reported as unverified rather than treated as a pass.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bounded repair&lt;/strong&gt; gives failed candidates a focused repair path while keeping the original available for diagnosis.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Session controls&lt;/strong&gt; support undo and redo, cancellation, exports, and optional reference material. Golden Scorebook tracks and empirical memory remain opt-in.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What’s new in v7.2.0: the Engram Planner
&lt;/h2&gt;

&lt;p&gt;The newest addition is &lt;code&gt;src/engram_planner.rs&lt;/code&gt;, a request-time memory planner. It works alongside MotifAI’s existing &lt;code&gt;SonicIntelligence&lt;/code&gt; memory: that system stores experiments and feedback, while the Engram Planner decides whether a small piece of that history is supported and relevant enough to help with the current request.&lt;/p&gt;

&lt;p&gt;The planner applies an evidence gate before anything can enter a prompt:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;A preference needs provenance, non-heuristic evidence, and at least two decisive explicit user signals.&lt;/li&gt;
&lt;li&gt;A technical warning needs repeated, non-heuristic AST diagnostic failures.&lt;/li&gt;
&lt;li&gt;Heuristic-only findings, descriptive counts, missing provenance, and weak or mixed evidence are excluded.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Eligible findings are ranked by relevance to the current musical vision and style, confidence, evidence quality and consistency, and recency. Retrieval is deterministic and bounded: at most eight notes, four per category, 240 characters per note, and a context-aware budget between 192 and 512 estimated tokens.&lt;/p&gt;

&lt;p&gt;That last word matters: this does &lt;strong&gt;not&lt;/strong&gt; apply a DeepSeek tokenizer to every Ollama model. MotifAI supports different model families, so the planner reuses the project’s conservative character-based estimate instead. When Ollama reports prompt-token usage, MotifAI logs it beside the estimate so the two can be compared.&lt;/p&gt;

&lt;p&gt;Memory injection stays off until enabled with &lt;code&gt;Ctrl+A&lt;/code&gt;. The planner does not save model chain-of-thought, and retrieved memories are framed as untrusted evidence rather than instructions.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why build it this way?
&lt;/h2&gt;

&lt;p&gt;More context is not automatically better context. A useful memory system should retrieve fewer, stronger notes, fit within a predictable budget, and make it possible to inspect why a note was selected. The Engram Planner is a step toward that: a focused layer for relevant, evidence-backed memory, instead of a larger prompt stuffed with everything the app has ever observed.&lt;/p&gt;

&lt;p&gt;MotifAI is still evolving, and I’m testing the new release locally as I build. If you’re interested in local models, Rust, Strudel, or the design tradeoffs behind memory-aware creative tools, I’d love to hear what you think.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Repository:&lt;/strong&gt; &lt;a href="https://github.com/ShamelesAbyss/MotifAI" rel="noopener noreferrer"&gt;github.com/ShamelesAbyss/MotifAI&lt;/a&gt;&lt;/p&gt;

</description>
      <category>ai</category>
      <category>opensource</category>
      <category>programming</category>
      <category>rust</category>
    </item>
  </channel>
</rss>
