<?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: okko bokko</title>
    <description>The latest articles on DEV Community by okko bokko (@okko_bokko_f3c5ba605c8a9a).</description>
    <link>https://dev.to/okko_bokko_f3c5ba605c8a9a</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%2F4188525%2F8f0887c1-a4a7-4fa9-80d8-4e28d29aa2fd.png</url>
      <title>DEV Community: okko bokko</title>
      <link>https://dev.to/okko_bokko_f3c5ba605c8a9a</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/okko_bokko_f3c5ba605c8a9a"/>
    <language>en</language>
    <item>
      <title>GentleSort: A Local AI File Tidier That Never Moves Your Files</title>
      <dc:creator>okko bokko</dc:creator>
      <pubDate>Sun, 25 Oct 2026 17:52:45 +0000</pubDate>
      <link>https://dev.to/okko_bokko_f3c5ba605c8a9a/gentlesort-a-local-ai-file-tidier-that-never-moves-your-files-2imh</link>
      <guid>https://dev.to/okko_bokko_f3c5ba605c8a9a/gentlesort-a-local-ai-file-tidier-that-never-moves-your-files-2imh</guid>
      <description>&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;GentleSort is a small, local file-organizing prototype built for the “Slow and Steady” theme.&lt;/p&gt;

&lt;p&gt;It looks at filenames and suggests four categories: Agreements, Correspondence, Invoices, and Reports. It produces a review plan instead of moving files.&lt;/p&gt;

&lt;p&gt;The goal is to make an annoying task easier to start. There are no complicated sorting rules to configure and no bulk changes to undo. A person reviews the suggestions and decides what to do next.&lt;/p&gt;

&lt;p&gt;GentleSort does not read document contents, rename files, move files, or delete anything. There is no apply command.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Demo video:&lt;/strong&gt; &lt;strong&gt;Demo video:&lt;/strong&gt; &lt;a href="https://github.com/okkobokko8-svg/gentlesort/blob/main/GentleSort_Demo_20261020.mp4" rel="noopener noreferrer"&gt;Watch the demo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The 73-second demonstration replays actual command-line output from eight synthetic files. Five receive folder suggestions; three remain for review. Filenames and SHA-256 hashes match before and after the run.&lt;/p&gt;

&lt;p&gt;This is a replay of captured output with reading pauses, not a desktop recording or a performance benchmark. The fixture extensions are labels, not valid sample PDF or Word documents.&lt;/p&gt;

&lt;p&gt;A later addition generates an offline HTML review report. Items needing attention appear before the folder suggestions. The report can be opened in a browser without installing Python; running the classifier still requires Python and its dependencies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Code
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Source code:&lt;/strong&gt;  &lt;a href="https://github.com/okkobokko8-svg/gentlesort" rel="noopener noreferrer"&gt;GentleSort on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;p&gt;The classification core uses scikit-learn: character TF-IDF features and logistic regression trained on 48 original synthetic filenames.&lt;/p&gt;

&lt;p&gt;There is no cloud model API and no pretrained model download. The model learns from the labeled examples. An automated test checks that changing the training labels changes its prediction.&lt;/p&gt;

&lt;p&gt;A prediction is only a suggestion. Low confidence, a narrow classification margin, or weak similarity to the training examples sends an item to review. Unsupported extensions, control characters, case collisions, and symbolic links also require review. The tool does not scan folders recursively.&lt;/p&gt;

&lt;h3&gt;
  
  
  What Was Checked
&lt;/h3&gt;

&lt;p&gt;The recorded validation includes:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;26 passing automated tests.&lt;/li&gt;
&lt;li&gt;A command-line run on ten synthetic files, with all filenames and file hashes preserved.&lt;/li&gt;
&lt;li&gt;Checks that hostile filename markup remains literal text in the HTML report.&lt;/li&gt;
&lt;li&gt;Checks that the HTML decisions match the generated JSON plan.&lt;/li&gt;
&lt;li&gt;Targeted Chromium layout checks at 1280px, 375px, and 320px, including keyboard focus and report links.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A public synthetic holdout set contains 16 filenames. All 16 candidate labels matched their expected categories; 15 became suggestions and one remained for review.&lt;/p&gt;

&lt;p&gt;That is a small prototype check, not evidence of production accuracy. There has been no real-user time-savings study. Native Windows, real-device, screen-reader, and comprehensive accessibility testing remain outstanding.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Does Open Innovation Matter?
&lt;/h2&gt;

&lt;p&gt;The training examples, feature extraction, and classifier can be inspected and changed. Someone can adjust the categories and retrain the model without sending business filenames to a remote service.&lt;/p&gt;

&lt;p&gt;Once the dependencies are installed, the application can run offline.&lt;/p&gt;

&lt;p&gt;The limitation is equally visible: a filename may contain too little information, or it may be misleading. A confident-looking prediction cannot resolve that problem reliably.&lt;/p&gt;

&lt;p&gt;GentleSort keeps uncertainty in the review plan and leaves the original files unchanged. Its useful result is a starting point for a decision.&lt;/p&gt;

&lt;p&gt;The prototype uses classical open-source machine learning, not an LLM. No partner technology is claimed. AI assistance was used in preparing the implementation and write-up.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
    <item>
      <title>ReviewQueue: the most useful AI feature was refusing to rewrite the data</title>
      <dc:creator>okko bokko</dc:creator>
      <pubDate>Fri, 16 Oct 2026 10:04:49 +0000</pubDate>
      <link>https://dev.to/okko_bokko_f3c5ba605c8a9a/reviewqueue-the-most-useful-ai-feature-was-refusing-to-rewrite-the-data-4oil</link>
      <guid>https://dev.to/okko_bokko_f3c5ba605c8a9a/reviewqueue-the-most-useful-ai-feature-was-refusing-to-rewrite-the-data-4oil</guid>
      <description>&lt;p&gt;This is a submission for the Hacktoberfest Open-Source AI Challenge Week 2: Side Hustle.&lt;/p&gt;

&lt;p&gt;What I Built&lt;/p&gt;

&lt;p&gt;A repeated ID is easy to spot. An amount that looks reasonable but belongs to the wrong transaction is much harder. And a tool that silently fixes either one creates another question: what exactly changed?&lt;/p&gt;

&lt;p&gt;ReviewQueue is a small offline tool for freelancers who review structured business exports. It combines a locally trained scikit-learn Isolation Forest with explicit checks for repeated IDs and unclear numeric fields.&lt;/p&gt;

&lt;p&gt;Its output is a queue of review hints alongside every original record. It does not correct amounts, merge duplicate rows or strip leading zeros from identifiers.&lt;/p&gt;

&lt;p&gt;The potential paid service is configuring the input mapping and reference records for one repeatable review workflow, then supporting that workflow. This is a business hypothesis: I have no paying customer or revenue to report. The Python input format is JSON; CSV and spreadsheet import are not implemented.&lt;/p&gt;

&lt;p&gt;Demo&lt;/p&gt;

&lt;p&gt;&lt;a href="https://reviewqueue.rahmat19800402.chatgpt.site" rel="noopener noreferrer"&gt;https://reviewqueue.rahmat19800402.chatgpt.site&lt;/a&gt;&lt;br&gt;
Start with “Normal example,” then “Unusual example.” The page runs 100 exported Isolation Forest trees in JavaScript. They were trained in scikit-learn on fictional USD records. Change the amount or quantity and run the model again.&lt;/p&gt;

&lt;p&gt;The fixed demo reference has quantities of one and amounts from 80 to 158. It illustrates the mechanism; it does not represent visitors’ businesses.&lt;/p&gt;

&lt;p&gt;Next, try the six-record review workflow:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Review the full report, including an unusual amount, two rows with a repeated ID, an ambiguous decimal and a currency with insufficient reference data.&lt;/li&gt;
&lt;li&gt;Inspect the original values, flags and model metadata.&lt;/li&gt;
&lt;li&gt;Confirm that snapshot and download the review JSON.&lt;/li&gt;
&lt;li&gt;Reset the session. Export closes until another review and confirmation.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The report retains all six original objects and both repeated-ID rows. A SHA-256 digest binds the complete report bytes. Confirmation is a local UI state; it neither certifies correctness nor authenticates a reviewer.&lt;/p&gt;

&lt;p&gt;For your own batch and same-context historical reference records, the Python CLI fits and runs the model locally:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;python reviewqueue.py sample_input.json &lt;span class="nt"&gt;--output&lt;/span&gt; my_review.json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Dependencies must be installed first. The analysis itself makes no network calls.&lt;/p&gt;

&lt;p&gt;Code&lt;br&gt;
&lt;a href="https://reviewqueue.rahmat19800402.chatgpt.site/source/index.html" rel="noopener noreferrer"&gt;https://reviewqueue.rahmat19800402.chatgpt.site/source/index.html&lt;/a&gt;&lt;br&gt;
Public code repository and source browser — BSD-3-Clause.&lt;/p&gt;

&lt;p&gt;The source page links to the self-hosted Git repository, a Git bundle and a ZIP. It includes the Python engine, synthetic data, browser model exporter, JavaScript evaluator, review UI, tests and dependency notices.&lt;/p&gt;

&lt;p&gt;The project began on 14 October 2026, during this challenge window.&lt;/p&gt;

&lt;p&gt;How I Built It&lt;/p&gt;

&lt;p&gt;The model uses three numeric features: signed-log amount, log quantity and signed-log unit amount. It trains separately for each currency. Without at least 20 valid same-currency reference records and enough numeric variation, it abstains.&lt;/p&gt;

&lt;p&gt;The first development audit exposed a bad queue: 17 of 25 ordinary-by-construction rows received model hints. Preserving records was working; reducing someone’s workload was not.&lt;/p&gt;

&lt;p&gt;I added a conservative promotion policy. A model hint enters the review queue only when:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The Isolation Forest decision score is negative.&lt;/li&gt;
&lt;li&gt;At least one feature lies outside the reference’s observed numeric support.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Raw model candidate status remains visible. Repeated-ID and invalid-number checks run separately.&lt;/p&gt;

&lt;p&gt;On the same development fixture, the result changed to:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;0 of 25 ordinary rows flagged.&lt;/li&gt;
&lt;li&gt;All 10 extreme numeric rows flagged.&lt;/li&gt;
&lt;li&gt;None of five plausible-valued rows flagged when their notes asserted an unverifiable business error.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The last result matters: numeric anomaly detection cannot establish whether a note tells the truth.&lt;/p&gt;

&lt;p&gt;These are regression results on a fixture that informed development, not independent accuracy measurements. The conservative gate can miss unusual records inside the reference range. Authorized examples and independent reviewer labels would be needed before claiming better error detection or reduced customer workload.&lt;/p&gt;

&lt;p&gt;There are 52 passing Python tests and 24 passing Node test cases. The Node suite includes 204 numerical probes matching exported JavaScript forest scores to scikit-learn within 1e-8, plus report-byte and UI event-flow checks.&lt;/p&gt;

&lt;p&gt;The UI tests use a simulated DOM. Native-browser layout, accessibility and saved-file behavior were not verified in the development environment, so those tests are not counted as browser QA.&lt;/p&gt;

&lt;p&gt;The CLI also rejects duplicate JSON keys and numbers that would lose precision during decoding. It refuses to overwrite a source or existing result. Source-file bytes remain untouched, while the report records their hash. Output JSON whitespace and numeric spelling may differ from the input serialization.&lt;/p&gt;

&lt;p&gt;Why Does Open Innovation Matter?&lt;/p&gt;

&lt;p&gt;An inspectable local model makes a small review service practical. The operator can examine the features, replace the model, change the queue policy and rerun a batch without a per-record API bill.&lt;/p&gt;

&lt;p&gt;After installing dependencies, the Python workflow can keep client records on the operator’s computer.&lt;/p&gt;

&lt;p&gt;For this task, fluent generated text would not solve the main engineering problem. I need predictable numeric handling and a traceable connection between a hint and an original record. Open scikit-learn tooling provided that starting point, including exporting a small synthetic forest and checking its browser calculations against Python.&lt;/p&gt;

&lt;p&gt;These benefits come with responsibilities: reference selection, thresholds and evaluation belong to the operator. The earlier noisy audit is included in the project history because that tradeoff should be visible.&lt;/p&gt;

&lt;p&gt;AI Assistance and Credits&lt;/p&gt;

&lt;p&gt;AI assistance was used to implement, test and document the project.&lt;/p&gt;

&lt;p&gt;The core open-source AI component is scikit-learn’s Isolation Forest. NumPy, SciPy, joblib and threadpoolctl are credited in the dependency notices. The included model was trained on this project’s original synthetic records.&lt;/p&gt;

&lt;p&gt;I am entering the overall category. No partner prize category, customer validation or guaranteed earnings are claimed.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>hf26challenge</category>
    </item>
  </channel>
</rss>
