Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/marko-php/marko/gemini-cligit clone --depth 1 https://github.com/marko-php/markoWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00025 | $0.00836 |
| Opus 5 | $0.00013 | $0.00418 |
| Sonnet 5 | $0.00005 | $0.00167 |
| Haiku 4.5 | $0.00003 | $0.00084 |
Grade A, and why
gemini-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 64 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Gemini CLI is Google's open-source agentic terminal tool powered by Gemini models. devai:install configures it with a GEMINI.md project guidelines file, MCP server registration via the gemini mcp add CLI, and Marko skills distributed to .gemini/skills/.
Prerequisites
- Gemini CLI installed:
npm install -g @google/gemini-cli - Authenticated:
gemini auth login(Google account or API key) marko/devaiinstalled (see Installation)
What devai:install writes
Running marko devai:install with Gemini CLI detected produces the following:
GEMINI.md # Project guidelines for Gemini CLI
.gemini/skills/ # Marko skill files distributed for Gemini CLI
AGENTS.md # Shared guidelines file (devai-managed marker block)
MCP registration is performed via the Gemini CLI (gemini mcp add) rather than by writing a config file. Gemini CLI does not implement LSP registration.
GEMINI.md
The root GEMINI.md file receives Marko project guidelines inside a <!-- BEGIN/END marko:devai --> marker block, so your own edits outside the markers survive re-runs (see Editing generated files):
- Module structure and naming conventions
- Available MCP tools and their usage patterns
- Project-specific guidelines from every installed package's
resources/ai/guidelines.md
MCP registration
The installer calls gemini mcp add -s project -t <transport> <serverName> <command> [args] to register marko mcp:serve as a project-scoped MCP server. Gemini CLI stores this registration in its own configuration; no .gemini/settings.json file is written by devai:install.
Skills
Marko skill bundles are written to .gemini/skills/ so Gemini CLI can reference them during agentic tasks.
AGENTS.md
devai:install writes the shared AGENTS.md guidelines inside a <!-- BEGIN/END marko:devai --> marker block: created if absent, and on later runs only the marked region is refreshed, so content you add outside the markers is preserved. Remove the markers to take full ownership — devai then leaves the file alone. See Editing generated files.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2d ago First seen · 64 lines · 25 tokens per session scan A 2ab457b47e8f
gemini-cli is an agent published in the GitHub repository marko-php/marko (393 stars, last pushed 3d ago), licensed MIT. It adds 25 tokens to every session and 836 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other agents, from other repositories
fixture-reviewer
Audits .test integration fixtures under tests/php/Integration/Fixtures for drift against the current compiler output. Use after lexer, parser, analyzer, or emitter changes.
module-docs-sync
Audits and updates CLAUDE.md files in src/php/ modules to match the actual code. Use after large refactors, new modules, or periodic maintenance.
tdd-coach
Guides test-driven development with red-green-refactor discipline. Use when implementing features or fixes with TDD.
quick-syntax
One-screen cheatsheet. For exhaustive rules see RULES.md; for typing details see tasks/typed-defn.md.
index
Agent "index" from phel-lang/phel-lang, covering agent index, intent map and examples.
changelog-keeper
Maintains CHANGELOG.md by analyzing commits since last release. Use when updating changelog, preparing releases, or reviewing what changed.