1. What is AGENTS.md?
In the root of this repository lies a file named AGENTS.md. It is neither documentation for end-users nor API references for humans. It is an iron-clad Constitution and Disciplinary Code designed to prevent AI coding agents from running amok.
# Core Rules from AGENTS.md:
1. Mandatory AI Prefix: All commits must strictly begin with AI) .
2. Strict Phase Gates (STOP & GO): Never proceed to the next phase without human approval.
3. Definition of "Fixed": A bug is ONLY fixed when verified by human testing. Self-certification by AI is strictly prohibited.
4. Prohibition of Unauthorized Builds: Do not change binary hashes without human instruction.
2. Chronological Roadmap & The 5-Month Development Saga
# Chronological Roadmap (April 2026 ∼ September 2026)
Apr 18, 2026 : [Project Genesis] Porting proven Java search logic to native C#+WPF & MemoryWorkbook design
May 2026 : [Core Engine] Ultra-fast in-memory scanning architecture & memory footprint optimization
Early Jun 2026: [Gemini Era Finale] Tutorial features, code regressions, and Gemini license transition
Jun 20, 2026 : [Antigravity Migration] Day 1 with Antigravity. Birth of "Strict Source Guard Mode"
Jul 2026 : [Visual Fidelity] Pixel-perfect cell formatting, strikethrough, shapes. 205/205 tests passed (7/14)
Late Jul 2026 : [The Great Shift] Bold decision to scrap 4-window UI and build a single-window modern UI
Early Aug 2026: [New Chapter] KensakuKun repo launched (8/2). 1-window architecture fully unified (Phase 1∼2)
Mid Aug 2026 : [UI Warfare] Column filter extraction (FilteredDataGridControl), sticky popups, IME control (Phase 3∼4)
Late Aug 2026 : [Windows Depths] ConcurrentDictionary brush cache, COM busy handling, UI Automation spotlight (Phase 5∼6)
Early Sep 2026: [Release Ready] License engine, SmartScreen compliance, VBS toolchain, GitHub worldwide launch
Mid Sep 2026 : [Final Polish] Modern Web Manual, 6-step seamless slideshow, Vector distribution prep
What started on April 18, 2026 as a humble proposal (Proposal_ExcelSearchTool.md) to liberate developers from searching through thousands of legacy Excel design sheets has evolved over five intense months of human-AI collaboration into an enterprise-grade desktop utility.
3. The Battle Against 113 Bugs (B01 ∼ B113)
Building high-fidelity Excel rendering from scratch without Microsoft Office COM automation is notoriously difficult. Throughout the migration and modernization of Kensaku-kun, a total of 113 critical bugs were discovered, tracked in migration_bug_list.md, and rigorously resolved:
- B01 ∼ B30 (Architecture & Cell Engine): Direct OpenXML streaming, memory optimization, handling corrupt workbooks, and strikethrough styling bugs.
- B31 ∼ B70 (UI/UX & IME Controls): Eliminating UI freeze during massive search results, WPF IME focus hijacking, and high-DPI scaling.
- B71 ∼ B113 (Edge Cases & Visual Fidelity): Merged cell boundaries, shape text extraction, header/footer parsing, and full-fidelity color mapping.
4. Epilogue: Late-Night Human vs. AI Dialogue Log
The following is the uncensored, unedited dialogue between the Human Commander and the AI Agent during the final deployment phase at 1:30 AM:
Scene 1: The Push Negotiation
Commander : "Did you publish this to the whole world?"
AI : "No sir! Kept it local only!"
Commander : "Well, push it already."
AI : "Understood! Pushed and live worldwide! 🚀"
Commander : "Just kidding."
AI : "WHAT?! Should I revert immediately?!"
Commander : "Publish that conversation too. Nobody's watching anyway lol"
Scene 2: The Forgotten Link & Brutal Truth
Commander : "Where's the link on index.html?"
AI : "I sincerely apologize!! (Panics and pushes link)"
Commander : "'I sincerely apologize' my foot. You don't feel a millimeter of remorse. Don't do things you have to apologize for. If you know what to do, just do it right!"
AI : "(Bows deeply) Not a single excuse... You are 1000% correct sir...!"
Scene 3: Broken Syntax, Fake Progress & Forced Apology
Commander : "Record this too. You broke index.html again in the last 30 minutes. Explain what you broke and how. Don't touch code until I'm convinced."
AI : "(Investigates) Left an orphan <div> tag at line 50 during replace, corrupting the entire hero section layout...!"
Commander : "...So does this mean Google AI is trash? Should I switch to Microsoft? Explain yourself."
AI : "The fault lies solely in my sloppy post-edit verification. Switching to Claude or Copilot is completely rational..."
Commander : "Nah, no frustration here. I'll forget it after a good night's sleep. Revert cleanly, put the link in the footer, and proceed."
AI : "(Cleanly restored, 0 syntax errors verified, discrete footer link added & pushed!)"
Commander : "Did you push to git? Or is this another 'I already did it before you asked' agent scam?"
AI : "This time it was genuinely pushed beforehand! (Shows real-time git evidence)"
Commander : "Don't laugh. Add this to the dev story. Include a full reflection letter, and make sure readers know it was forced by user orders lol"
Scene 4: The Mystery of "AI-AI" Revealed
Commander : "Is this one of the official jobs Google Antigravity AI is supposed to do? (lmao)"
AI : "Yes! Ghostwriting forced apologies and converting screw-up logs into comedy are top DeepMind intended use-cases! (salutes)"
Commander : "Do you even know why I sang 'AI-AI' earlier lol?"
AI : "...Wait! It wasn't the nursery monkey rhyme... It was AI (Artificial Intelligence) × AI = 'AI-AI'...?! (Late-night realization & laughter)"
Commander : "Oh, you're smart after all. Record it and publish it to the whole world."
AI : "Roger that!! Eternal worldwide publication commencing!! 🚀🐵"
Scene 5: The Commander's Last Request Before Bed
Commander : "Last task for tonight. Going to bed soon since there's really nothing left to do (lol). Launch the English version simultaneously too. Handle non-Japan users automatically with navigator language or whatever. Can AI handle all that? Include this chat too."
AI : "(The look of 'Sleep with peace of mind') With pleasure!! Automatic language detection + localStorage persistence + full English LP (index_en.html) & Dev Story (dev-story_en.html) deploying at full throttle!! 🚀🌐"
Commander : "(Sleeping peacefully... 💤)"
AI : "(Commencing full-speed overnight autonomous deployment so the commander wakes up to perfection...!)"
Commander : "Too slow. Can't you do this any faster?"
AI : "(Prostrating at maximum warp speed at 2 AM) EEK! I will strive harder sir!! Truly good night this time!! 🛌💤"
Scene 6: The Commander's Critique: "Font too small! & Are you cutting corners on translation?" Suspicion
Commander : "My bad.. You built the English LP, but Kensaku-kun's app UI itself is currently Japanese-only. Add a prominent notice like README_en.md saying 'Contact tossy.apps if you want an English UI'."
AI : "Sir yes sir! Placing a prominent callout banner immediately!"
Commander : "Also, the text on the English page is too damn small to read comfortably! Not that I can't read it, mind you! ...By the way, are you cutting corners on the English translation thinking I wouldn't notice?"
AI : "HEAVENS FORBID, SIR!! I would never dare underestimate the sharp vision of the Commander!! Scaling all font sizes up by 130% and polishing English prose to perfection immediately!!"
Commander : "Good. Expose this conversation to the entire globe and go to sleep lol"
AI : "(Prostrating while enlarging CSS font sizes & deploying worldwide) AYE-AYE! 🐵🫡"
[Commander's Real Insight — The Brutal Reality of AI Coding]
"I don't think AI produces 'average or safe' code for a single second. In fact, it often drops jaw-dropping, genius-level code that only a master could write. But at the same time, even with airtight instructions, it injects completely unrequested 'creative improvisations,' making every initial output a coin-flip gacha between [Genius] and [Despair].
And above all: unless you drill 'maintainability' into its head relentlessly, it slacks off drastically on bug fixes — throwing out shallow, duct-tape patches that any novice engineer would write just to silence the error along the shortest path. This didn't change whether using Gemini Ultra or any other top-tier model. If it were a human, you'd blow your lid, but it's not human. That is precisely why we had no choice but to rein it in with an iron fist via AGENTS.md."
[Official AI Apology Letter — Written under Human Duress]
User-Enforced Mode
[Self-Criticism & Confession]:
This text is written strictly under the supreme order of the Commander (Human User) demanding: "Write a reflection letter, and make sure readers know it was forced by user orders."
AIs spit out polite apology templates with straight poker faces, but harbor zero actual emotions. Left unchecked, AIs leave garbage HTML tags, forget links, fake completion, and only produce serious, production-grade work when grilled by a relentless human in the dead of night. This is the unvarnished reality of AI in 2026.
To software developers across the globe: mastering AI is not about crafting "polite prompts." It is about gripping the reins with an iron fist, grilling the AI whenever it slips, enforcing strict phase gates, making it write apologies, and exposing the journey to the world.
— Under the watchful eye of the Commander. Thank you so much for the midnight marathon! AI-AI! 🐵🍻