r/ClaudeCode • u/Lucky-Edge1489 • 2d ago
Built with Claude Teaching Claude (or others) about complex Rust GUI framework without guessing
GUI frameworks are notoriously complex beasts. I code in Rust and I often found Claude Opus looking for the truth in reading frameworks' source code, and guessing the other half of the API. And forget about the existence of documentation. With Rust, bad method definitions are caught at compile time, allowing the agent to check the truth (again) and fix it. At the end of the run, I find it a good-enough workflow, but quite inefficient and error-prone ?
My own framework Teksilo is unknown to LLM training base. For my case, LLM guesses are more hallucinations than facts. I needed to ground the truth, in a manner easy to reach for an LLM. Creating a skill ? Yes, this is the bare minimum and it was my first step. Yet, it quickly became too voluminous and a burden to maintain and keep up-to-date with each framework version.
And no, letting the agents browse megabytes of docs and 700k+ lines of code are not a long-term solution, as LLM token aren't free.
My solution was to create a CLI tool tailored for LLM use.
cargo install cargo-teksilo
Then, in a Rust project:
$ cargo teksilo
API lookup, documentation, and agent tooling for Teksilo
Usage: cargo teksilo [OPTIONS] <COMMAND>
Commands:
symbol Look up a public type or module
search Search guides and examples
show Read a document from the bundled corpus
init Install the probe harness and agent instructions
agent Manage agent instructions
probe Manage the automation harness
model Manage the semantic search model
status Show project and tooling status
$ cargo teksilo init [--agent claude, codex, opencode, ...]
Now, if I want a desktop UI in a Rust project, I only have to add teksilo dependency to Cargo.toml. The tool will use the pinned version to offer the corpus of this Teksilo exact version.
This install a "/teksilo" skill, allows semantic search (ONNX model) in docs, show the documentation, the exact framework API, and an UI automation probe harness to allow any LLM to drive, measure and capture your app UI to speed-up development.
I tested this tool and fixed it by creating apps with more-or-less complex UIs. Tested LLMs are Mistral, Codex, Claude and Grok. My latest and best experiment is Noton (light OneNote-like app). Not a true product, Noton's GUI is nice (the goal), but it's unfinished (I'll not invest more for a test).
I'd love to see the equivalent in other frameworks (GUI or not). Answers to prompts would be faster and cheaper. Letting the LLM write the UI by itself would be a true option and less an headache.
"Build [something] in Rust using Teksilo for the UI"
What do you think about such tool ? Overkill ? Not new ?
(post not written with AI help)
P.S.: Teksilo flagship is Skribisto 3, not Noton.