future-os CLAUDE.md

Repository instructions for FutureOS, a multi-platform AI-agent application with Rust services and Tauri, React, and React Native clients.

In plain words
What is it for?
Finding the right module, understanding how FutureOS components connect, and following its coding and pull-request procedures.
Why use it?
They give the agent the project layout, architecture references, and development workflow needed to work in a large multi-platform codebase.

Instructions file

Install

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.

agentmods
npx agentmods add instructions/futuregene/future-os/claude-md
Clone the repo
git clone --depth 1 https://github.com/futuregene/future-os
Per session 2,961 This file is loaded in full into every session.
When invoked 2,961 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.02961 $0.02961
Opus 5 $0.01481 $0.01481
Sonnet 5 $0.00592 $0.00592
Haiku 4.5 $0.00296 $0.00296

Measured 2d ago against content hash 1cff5cffe2a2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

future-os 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 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.

CLAUDE.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 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.

FutureOS: one AI agent everywhere — terminal (TUI), desktop (GUI), mobile (Android/iOS), CLI, and IM bots. The core is Rust: a gRPC agent backend plus a channel bridge, loop control plane, CLI, and TUI that all connect to it. The desktop app is Tauri + React (TypeScript) and mobile is React Native (Expo). For architecture and module breakdown read docs/README.md (the docs index), docs/directory-layout.md (what lives under ~/.future/), and the code directly.

Workspace layout

The Rust workspace (Cargo.toml) members and their slice of ~/.future/ (see docs/directory-layout.md):

  • agent/future-agent, the gRPC backend. Owns ~/.future/agent/ (settings, models, auth, JSONL sessions, skills).
  • channels/future-channel, the Feishu / DingTalk IM bridge. Owns ~/.future/channels/config.json.
  • orchestration/loop/future-loop, the loop control plane (durable goals/todos/gates, deterministic should-run kernel, event-sourced state). Owns ~/.future/loop/; see docs/loop-control-plane.md.
  • tui/future-tui, the terminal UI (a gRPC client of the agent). Owns ~/.future/tui/.
  • cli/future-cli, builds the unified future binary that embeds agent/tui/channel/loop.
  • packages/rpc/future-rpc, the protobuf wire-contract crate (single source of truth; see proto notes below).

desktop/src-tauri is deliberately not a workspace member (excluded): it builds on its own schedule via npm/tauri, and membership would pull it into every root cargo invocation. packages/ also holds shared npm packages (markdown, thread-projection, json-preview) consumed by desktop/mobile; the repo-root package.json declares npm workspaces ["packages/*", "desktop", "mobile"], so a single npm install at the root hoists all deps.

Project memory

FUTURE.md is a workspace memory index → .future/memory/*.md (institutional gotchas: testing on Linux CI vs macOS, Rust toolchain quirks, GitHub CI/PR flow, future loop CLI operation, llvm-cov coverage measurement). Read the relevant entries before working in those areas — they encode hard-won, non-obvious constraints not visible in the code.

Read the full file on GitHub · 94 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. 2d ago First seen · 94 lines · 2,961 tokens per session scan A 1cff5cffe2a2

Subscribe to this mod's changes

future-os CLAUDE.md is an instructions file published in the GitHub repository futuregene/future-os (49 stars, last pushed 3d ago), licensed MIT. It adds 2,961 tokens to every session, about $0.0148 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.