Cleo-AI-agent
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Gecti
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
An integration platform for agent harness orchestration: run Codex, Claude Code, and ACP agents from one desktop workspace, with shared sessions, memory, and subtask routing across them.
Cleo AI Agent
中文 | Documentation | Architecture
Cleo is an integration platform for agent harness orchestration. It runs Codex, Claude Code, and ACP agents from one desktop workspace, alongside general chat, with shared sessions, memory, and subtask routing across them. It is local-first: teams supply their own models, tools, harnesses, and data boundaries.
The project supports native desktop builds for Windows, macOS and Linux, backed by a local Python service, plus a stdio MCP entry point. User data stays on the local device by default; inference is provided by the API provider or external agent harness selected by the user.
Current version: v0.15.5 · Download the desktop app
A development task picks a harness and then one of its models from one menu; reasoning effort is a control of its own beside it. Codex conversations toggle Fast mode in the reasoning-effort menu, saved per conversation. Fast mode consumes more credits; availability depends on the model and account, and the switch is hidden where it is unsupported.
Codex and Claude share their native login, configuration and session directories, honoring CODEX_HOME and CLAUDE_CONFIG_DIR. Portable history from retired Cleo homes migrates without overwriting native data; originals remain available for recovery. See the configuration guide.
What Cleo solves
General assistants and coding agents usually keep separate histories, permissions, and project context. Cleo adds a consistent product layer across them:
- One workspace for general chat and Productivity development workflows.
- Resumable sessions with normalized provider events, projects, titles, history, and recovery.
- Scoped memory with current preferences in Markdown per
space + project, changes recorded in embedded Git, and work facts retrieved from original sessions. - Replaceable models and harnesses for foreground Cleo, DreamAgent, Codex, Claude SDK, and ACP agents.
- Local auditability for configuration, sessions, tool logs, and memory without a Cleo-hosted account service.
Product surfaces
| Surface | Audience | Primary use |
|---|---|---|
| Cleo Desktop | End users and developers | Conversation and project management, chat, Productivity, memory inspection, model settings, and updates |
cleo-codex-mcp |
Integrators | Expose codex and codex-reply over stdio MCP |
Highlights
- Streaming chat and one-shot tasks with JPEG, PNG, WebP, and GIF attachments.
- Codex subscription chat sends images through the Codex runtime and retains image context when restoring history or asking follow-up questions.
- Paginated message history and native Codex/Claude questions. A running turn shows its thinking as prose with each run of tool calls on one line, and folds behind a summary once the reply arrives.
- One context measure for every harness, shown as a ring beside the send button; its panel also lists the Codex or Claude account's usage windows and reset times.
- Edit an earlier message to rewind the conversation to that point and resend it; queue follow-ups while a turn runs and steer them in when you choose.
- Local skill discovery, search, and invocation in native Claude/Codex development sessions.
- Constrained subtask routing: the session's model stays the coordinator and delegates subtasks to connected harness models. See subtask routing (Chinese).
- Computer use in a target the agent picks per task: the built-in per-conversation browser, your own Chrome or Edge through the Cleo extension (background tabs, per-site approval), or the local Windows desktop.
- Official updates with a visible restart, automatic rollback to the previous program, and an independent recovery entry point.
- A provider-neutral coding-harness data plane plus optional Codex-specific controls.
- An append-only
events.jsonlsource of truth, atomic manifests, and rebuildable SQLite indexes. non_productivityandproductivitymemory spaces, with explicit project filters for applicable preferences.- Deterministic compaction, secret redaction, and DreamAgent preference edits with evidence validation and conflict handling.
- Project preferences, optional background consolidation, native memory sources and indexed history retrieval. Retired persona data is preserved without being read or injected.
- Local shell controls for allowlists, path boundaries, timeouts, output limits, and audit logging.
- Per-thread browser sessions with public/private-network and domain boundaries.
- Self-contained platform-specific desktop packages with verified updates and separate user data.
- Daily background SDK and browser-tool updates, validated before activation on the next launch; UI and Electron updates arrive with new Cleo releases. See dependency management.
Start in five minutes
Download the desktop app
Open the Cleo website. It offers the installer for the system and architecture your browser reports, and its download section lists every platform: macOS Apple Silicon / Intel, Windows x64, and the Debian / Ubuntu deb package.
The downloads are double-click installers: Windows EXE, macOS PKG, and Debian/Ubuntu DEB. These download the program and a tested dependency snapshot, verifying them before opening the app.
When a browser cannot identify a Mac's chip, the page shows the Apple silicon and Intel installers side by side. Native detection scripts are also available; they need no Python or Node.js, download the matching program package to your Downloads directory, verify SHA-256, and leave installation to you. The commands are in the platform and installation details. macOS packages currently use development signing without Apple notarization. See platform and installation details.
Direct downloads remain available on GitHub Releases. Windows users can also run the existing verified installer from a source checkout:
Set-ExecutionPolicy -Scope Process Bypass
.\scripts\download.ps1 -Launch
This Windows installer places program files under %LOCALAPPDATA%\Programs\Cleo. Configuration, sessions, memory, and model caches live under %LOCALAPPDATA%\Cleo; updates replace the program directory without overwriting user data.
On first launch, open Settings → Models, configure a provider, model, API key, and optional base URL, then select profiles for Cleo and DreamAgent. API keys are written only to local configuration and are never returned in plaintext by the desktop read API.
Run from source
Python 3.12 is required. Node.js and agent-browser are needed for browser tools.
git clone https://github.com/StDoses72/Cleo-AI-agent.git
Set-Location Cleo-AI-agent
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -e ".[dev]"
npm install -g [email protected]
Copy-Item cleo\config\templates\cleo.example.json config\cleo.json
Copy-Item cleo\config\templates\harnesses.example.json config\harnesses.json
Add at least one working agent profile to config/cleo.json, then start the desktop app against this checkout:
Set-Location ui
npm install
npm start
The desktop app starts the Python backend (python -m cleo.desktop.server) from the source tree. Cleo no longer ships a terminal CLI; the backend is used only through the desktop app and the MCP entry points.
Linux and macOS use the same Python package and JSON formats. See platform support for native builds, installation formats and signing boundaries. Available prebuilt assets depend on the current GitHub Release.
Common workflows
Desktop
Interface language: choose Settings → Appearance → Language (
设置 → 外观 → 语言) and select 简体中文 or English. The explicit choice is saved asui_languagein the configured runtime state file (normallydata/runtime.json) and survives restarts and upgrades. The operating system language does not change it. Switching preserves active tasks and drafts; conversation content, project names, and model replies are not translated.System tray: closing the main window keeps Cleo running in the Windows tray or macOS menu bar; Linux requires a desktop environment with tray support. Use the tray menu to reopen Cleo, open memory management, or explicitly quit.
Background memory: enable it in Settings → Models → Memory consolidation. It is off by default; manual consolidation remains available while it is off. Once enabled, consolidation starts every 30 minutes or when 5 eligible sessions are waiting, whichever comes first. Both thresholds are adjustable. Foreground conversations take priority; errors and pending sources remain visible in memory management. Explicitly quitting stops background consolidation without starting a separate worker; saved checkpoints allow it to resume when Cleo next runs with automatic consolidation enabled and a trigger is met. Consolidation uses the selected memory model and may incur provider charges.
Messages: hover a message to copy it. Hover one of your earlier messages and choose Edit to rewind the conversation to that point and resend the new text. This works for Cleo chat and for Codex and Claude development tasks after the latest harness switch; files already written by later turns are not reverted.
While Cleo is working: new messages go into a queue above the input. Press Steer to deliver a queued message into the running turn; otherwise the queue is sent as the next message when the turn finishes. A stopped or failed turn keeps the queue so you can send, edit, or remove each message.
Development and skills: select a working directory and a Claude/Codex harness, type
/to find a local skill, then select it, add arguments, and send. Reopen the session after installing a skill to refresh the catalog. See local skills.Context and usage: the ring beside the send button shows the input the latest request put in the context window over the window the harness reports. Click it for the figures and, on Codex and Claude, the account's usage windows. A value that cannot be read is not shown.
Version updates: check official releases in Settings → Updates and pick an earlier or pre-release version under Other versions. Cleo restarts into the selected program, returns to the previous one if it fails to start, and keeps a fallback program reachable from a separate recovery entry point. Switching program versions does not roll chats, memory, or configuration back to an earlier snapshot. See program versions and recovery.
Architecture at a glance
Desktop / MCP
│
├── Cleo Chat ─────── Deep Agents + configured LLM
│
└── Productivity ──── AgentAdapter ─── Codex / Claude / ACP
│
▼
SessionStore: manifest + append-only event log
│
compact projection + local indexes
│
DreamAgent consolidation
│
project preferences + source references
Four rules define the system:
events.jsonlis the session source of truth; manifests, compact views, SQLite, and Markdown are projections.- Every session and memory record belongs to
space + project + session_id. - Provider-native output is translated into canonical Cleo events before storage.
- Automatic memory never edits
AGENTS.md, grants permissions, or creates skills.
See the architecture guide for component and data-flow details.
Data, privacy, and security boundaries
Local-first does not mean fully offline:
- Configuration, sessions, memory, runtime state, and tool audits are stored locally by default.
- Prompts, attachments, and tool context are sent to the selected model or harness provider and remain subject to that service's policies.
- Browser tools can access the network; localhost, private networks, link-local addresses, and cloud metadata endpoints are denied by default.
- Shell and coding harnesses can run commands or modify files according to
cleo.json,harnesses.json, and provider sandbox/approval settings. config/cleo.jsoncontains API keys and must not be committed or shared.
Review configuration and security boundaries before deployment.
Repository map
Cleo-AI-agent/
├── cleo/ # Python backend service: agents, desktop service, sessions, memory, harnesses
├── ui/ # Electron + React desktop client
├── config/ # Local configuration, ignored by default
├── docs/ # User, architecture, development, and design-decision docs
├── memory/ # Memory policy and local runtime data
├── scripts/ # Dependency, release, download, uninstall, and cleanup scripts
├── skills/ # Local skills loadable by Cleo
├── tests/ # Tests organized by production responsibility
└── pyproject.toml # Python metadata and direct dependencies
Documentation
- Documentation index
- Getting started
- Platforms and installation
- Configuration and security
- Architecture
- Development and releases
- Backend contributor guide
- Runtime and data maintenance guide
- Memory-system design record
- Program versions and recovery
- Local skills
- Architecture decision records (Chinese)
- Release notes for v0.15.5
The main usage guides are available in Chinese and English. Internal development references and research notes retain their original language.
Development
Run python scripts/update_project.py --local-resolver to refresh dependency locks and upgrade stable development dependencies in an existing .venv. --check leaves the environment unchanged.
pip install -e ".[dev]"
ruff check cleo tests
pytest -q
Set-Location ui
npm install
npm run typecheck
npm run test:backend
npm run smoke
On the target OS and architecture, run npm run package:portable from ui/ to build the full release into the repository-level release/ directory. See the development guide and desktop subsystem guide.
Contributing
Task completion includes cleanup. Keep test, debug, and build scratch files in one designated
temporary directory, never scattered alongside repositories or in the workspace's parent.
After verification and delivery, remove temporary test data, throwaway applications, logs,
screenshots, PR drafts, patch/archive copies, and obsolete build/review/backup directories.
Retain only requested deliverables; use Git for versioning and review instead of extra backups.
Verify deletion targets and preserve user data, real repositories, development dependencies,
and active resources. Recheck Git status and directories; explicitly report any blocked cleanup.
Issues and pull requests are welcome. Before changing the code, read AGENTS.md, the development guide, and the relevant tests. Changes to session, memory, or provider protocols should include focused regression tests and documentation updates.
Licensed under the MIT License.
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi