-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Native Markdown-Agent Runtime for Gemini CLI #1806
Description
Native Markdown-Agent Runtime for Gemini CLI
(Achieve with first-class support what I can only do via a “Claude Code hack” today)
Background
I maintain LLMunix and its spinoff Framework Core — experimental OS-style frameworks where every agent, tool, and state file is written in Markdown.
Although Claude Code was never intended to act as a full OS runtime, a custom boot prompt I wrote “hacks” it into:
- Parsing
components/agents/*.mdandcomponents/tools/*.md. - Entering an EXECUTION MODE loop that updates
workspace/state/{plan,context,history,constraints}.md. - Generating new agents/tools on-the-fly by writing more Markdown, then invoking them.
It works surprisingly well, but it’s fragile, undocumented, and relies on prompt gymnastics.
What Gemini CLI needs
| Capability | How my Claude hack handles it | Desired Gemini CLI behavior |
|---|---|---|
| Markdown runtime flag | Boot prompt + manual dir map | gemini run-os <root_dir> --goal "…", auto-loads agents & tools |
| Stateful loop / resume | File mutations; reload by hand | Built-in loop, --continue resumes state seamlessly |
| Dynamic tool stubs | I wrap new .md into shell/py |
Watch for new tool files, register shell/python/js stubs automatically |
| Constraint evolution | Claude edits constraints.md; prompt enforces |
Expose constraints via JSON/ENV so external tools read live values |
| Firmware / safety rules | Ad-hoc Firmware.md, no guard |
Honor immutable guardrails & rate-limits out-of-the-box |
| Multi-LLM routing (future) | N/A | Allow `model: gemini-pro |
Why it matters
- Beyond coding — Enables Gemini to automate research briefs, DevOps runbooks, content creation, etc.
- Showcases long context — Perfect demo for Gemini-Pro’s million-token window.
- Ecosystem boost — All existing LLMunix / Framework Core libraries become plug-and-play with Gemini.
Minimal PoC (using the LLMunix repo)
# 1 — Grab the full Markdown OS prototype
git clone https://github.com/EvolvingAgentsLabs/llmunix
cd llmunix
# 2 — Boot the OS with Gemini CLI (proposed)
gemini run-os --goal "Monitor 5 tech news sources, extract trending topics, and generate an intelligence briefing"
# ↳ Expected CLI behaviour:
# • Parse all agents/tools under components/ and system/
# • Spin up an EXECUTION MODE loop, creating workspace/state/{plan,context,history,constraints}.md
# • Adapt constraints live (e.g., priority, persona) while running
# • Write the final briefing to workspace/outputs/intel_briefing.mdResult
Gemini interprets every Markdown spec, maintains live state, self-adapts through constraints.md, and produces the briefing—without relying on the brittle prompt hack currently required in Claude Code.
Why is this needed?
This feature is needed to enable agentic behavior driven by Markdown documents, using an auto-generated framework of agent- and tool-definition files that democratizes the Gemini CLI for any user or agent task that can be executed within an AI workflow.
Additional context
I’ve already accomplished this using Claude Code, which is closed-source and relies on a model with a shorter context window. That success proves the approach is feasible and offers tremendous utility for end users and a far wider audience—not just developers.