caelo: Instructions file for Claude Code

CLAUDE.md

caelo CLAUDE.md is an instructions file for Claude Code from AuraVixStudio/caelo. It costs 18,293 tokens per session, scanned A, original, Apache-2.0.

Project instructions for Caelo, a desktop app for Grok that supports chat, media generation and editing, and coding tasks with local files. It is being rebuilt as an Electron frontend with a Python FastAPI backend in a monorepo, meaning several related parts live in one repository.

In plain words
What is it for?
Use them when changing Caelo's Electron interface, Python backend, shared xAI features, packaging, or the documented rebuild phases.
Why use it?
They identify the main architectural boundary: shared xAI code is kept at the repository root and reused by the backend. This prevents changes that would break imports, packaging, or the rebuild plan.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

This is AuraVixStudio/caelo's own configuration. It tells Claude Code how to work on caelo itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything caelo configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is npm run pack:sidecar # PyInstaller onedir → ../dist/caelo-core/caelo-core.exe (from caelo_core/.venv).

Reuse

Borrowing it

Nothing to install: this file belongs to AuraVixStudio/caelo. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/AuraVixStudio/caelo/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/AuraVixStudio/caelo

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for caelo CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/auravixstudio/caelo/claude-md/github.svg)](https://agentmods.dev/instructions/auravixstudio/caelo/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/auravixstudio/caelo/claude-md"><img src="https://agentmods.dev/badge/instructions/auravixstudio/caelo/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for caelo CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/auravixstudio/caelo/claude-md"><img src="https://agentmods.dev/badge/instructions/auravixstudio/caelo/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 18,293 This file is loaded in full into every session.
When invoked 18,293 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What 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.

ModelPer sessionOnce invoked
Fable 5.1 $0.18293 $0.18293
Opus 5.5 $0.07317 $0.07317
Sonnet 5.5 $0.03659 $0.03659
Haiku 4.5 $0.01829 $0.01829

Measured 24d ago against content hash 97d79f6c17ab, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

caelo CLAUDE.md 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 24d 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.

CLAUDE.md · 744 lines

How it starts

The opening of the file, as written. The whole thing — 744 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.


⚠️ READ FIRST — this repo is Caelo 2.0, not Caelo 1.x

This repository is a clone of grok_desktop_app (Caelo 0.1.5) taken as the foundation for Caelo 2.0, whose goal is merging Caelo with gemini-desktop-studio into one multi-provider app (xAI + Google). Everything below this banner still describes the code as it stands, and is accurate — but the target architecture is different, and the decisions in this section override anything below them when the two disagree.

Plan (source of truth for the integration): docs/plans/PLAN_INTEGRACJI.md

Git: the remote caelo-1x points at the local 1.x repo (for cherry-picking fixes). Since 2026-09-22 origin is the public repo AuraVixStudio/caelo (the user selected it) and Caelo 2.0 lives on its main. Upstream tracking is still deliberately off — git push alone does nothing, so publishing is always an explicit git push origin main. Never push to caelo-1x, and treat every push to origin as publishing: main is protected by 6 required status checks, so a push that bypasses them leaves CI to catch up afterwards.

The central idea

Caelo is the host. gemini-desktop-studio is the donor of the media architecture. xAI loses its privileged path.

The last part is the one that gets missed. Today api_manager.APIManager is called directly from backend_media.py, and responses_client.py says in its own docstring that it is „nie multi-provider". If Google is simply bolted on next to that, we get two parallel code paths inside one process — the exact problem the merge exists to remove. So xAI moves behind the new provider abstraction too. Refactoring xAI is part of the work, not a side effect.

Architecture decisions (ADR-1…8)

Full context and consequences in the plan; this is the binding summary.

# Decision Consequence for you
ADR-1 Google via raw REST (requests), not an SDK. Every xAI call in this repo is already hand-rolled requests — no SDK anywhere. Keep it that way. @google/genai is documentation of the wire shape only. GCP/Vertex AI through ADC is required; google-auth is allowed only for acquiring/refreshing ADC credentials, while API calls remain raw requests. Phase-0 live result: Omni works through Agent Platform v1beta1 global Interactions with delivery: inline (URI requires gcs_uri) — but on Vertex the model id is gemini-omni-1.1-flash-preview, NOT the bare gemini-omni-1.1-flash the AI Studio catalog uses (LIVE 2026-09-01: bare id → 400 Unsupported model interaction). Mapped on the wire by VERTEX_OMNI_IDS, like VERTEX_VEO_IDS — the catalog/pricing id stays bare. Omni also needs a Vertex quota increase for that preview base model; with the default 0 quota every submit is 429; Veo uses regional Vertex v1, predictLongRunning + fetchPredictOperation, and the GA veo-3.1-fast-generate-001 model.
ADR-2 The Gemini queue model wins; caelo_core/genjobs.py is replaced, not extended. Port the state machine from JobQueue.ts + JobRecovery.ts + RetryPolicy.ts. xAI becomes a handler under it, exactly like Google.
ADR-3 Gemini's normalized media schema wins; Caelo's history/FTS5/embeddings stay. Add generations / generation_inputs / generation_outputs / jobs / … to caelo_history.db. Do not touch history_events, history_fts, event_embeddings. artifacts stays as the gallery index.
ADR-4 Model registry + capability guard live in Python and are the only source of truth. The renderer holds no model lists. It reads /providers + /models at runtime; TS types are generated from the Python definitions and checked in CI.
ADR-5 Electron safeStorage is the secret vault; the sidecar receives secrets in memory. No more plaintext keys in caelo_settings.json / caelo_auth.json. Pass them over the authenticated handshake channel — never via environment variables (they leak to the process list).
ADR-6 Gemini's React pages are NOT ported — only their logic. Caelo's UI kit (Tailwind 4, components/ui/*) is the target. Zustand and TanStack Query do not enter. Exceptions: Asset Inspector and Diagnostics are new screens, built from scratch in Caelo's kit.
ADR-7 No Google code in the repo-root modules. Nothing Google-related may touch config.py, api_manager.py, oauth_manager.py, chats_manager.py, history_manager.py (see "The single most important structural fact" below). Google lives only in caelo_core/providers/google/. The xAI provider is an adapter wrapping APIManager, not a rewrite of it.
ADR-8 Neutral tool-calling format at the agent boundary. agent/session.py must see only the neutral format; each provider supplies a two-way adapter. xAI is OpenAI-shaped; Google uses functionCall/functionResponse parts. Phase-0 live result (gemini-3.5-flash): preserve native functionCall.id and copy it to functionResponse.id; synthesize an id only for older responses that omit it. Preserve the full model part with thoughtSignature, keep all parallel calls before their responses, and assemble streamed partialArgs by JSONPath.

Read the full file on GitHub · 744 lines

Changes

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.

  1. 24d ago Changed · +7 lines · +217 tokens per session 97d79f6c17ab
  2. 1mo ago Changed · +134 lines · +3,030 tokens per session 08d4cb18aade
  3. 2mo ago First seen · 603 lines · 15,046 tokens per session scan A 7f55cd631b38

Subscribe to this mod's changes

caelo CLAUDE.md is an instructions file published in the GitHub repository AuraVixStudio/caelo (25 stars, last pushed 25d ago), licensed Apache-2.0. It adds 18,293 tokens to every session, about $0.0732 per session on Opus 5.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.

Related

caelo CLAUDE.md compared with instructions from other repositories

caelo CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
caelo CLAUDE.mdAuraVixStudio/caeloInstructions file2525d agoApache-2.0A18,293Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode