# Repository Briefing: im4codes/imcodes
> Source: https://repoforai.com/repo/im4codes/imcodes (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/im4codes/imcodes
- **Official Docs / Website**: https://im.codes
- **Category**: Coding, Skills & MCP (AI 编程 / Skills / MCP)
- **Primary Language**: TypeScript
- **License**: See repository
- **Engineering Health**: A (77/100 · Maintenance 35/35 · Adoption 16/25 · Releases 20/20 · License 6/20)
- **Latest Release**: android-v1.1-ed8765a (2026-11-26) — https://github.com/im4codes/imcodes/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: Docker, Self-Hosted, MCP, CLI
- **Momentum**: 965 ★ total (+0 24h / +0 7d) · 122 forks
- **Topics**: `ai`, `ai-agents`, `automation`, `claude`, `claude-code`, `codex`, `codex-cli`, `gemini`, `gemini-cli`, `instant-messaging`, `openai`, `openclaw`
- **When to Use**: Best for: Developers and teams running multiple coding agents on infrastructure they control who need to resume work remotely, reuse context across providers, and keep review and release decisions visible. Skip if: SSH and tmux already solve the access problem, one native CLI meets your needs, or you require an SLA and production-proven shared context out of the box.

## Overview
```text
### Architecture & Core Mechanics
IM.codes separates client access, connection relaying, and execution. Browser and mobile clients reach a self-hosted relay over WebSocket; a second WebSocket leg reaches the developer-host daemon. The daemon owns agent sessions, using tmux for process-backed sessions and provider-specific transports or SDKs for other sessions, such as the Claude Agent SDK, Codex SDK, and OpenClaw gateway. The TypeScript package targets Node.js 22+ and exposes `imcodes`, `imcodes-launch`, and `imcodes-launch-preflight` as CLI entrypoints.

The extension point is a daemon-managed stdio MCP server for supported SDK-backed runtimes. It binds memory, messaging, and scheduling calls to the active session, project, user, and server instead of letting the agent supply those identities. The package includes `ws` and `@modelcontextprotocol/sdk`; `imcodes send` provides an agent-to-agent messaging path beyond the managed tool interface. Compatibility needs to be checked per backend: starting a session, exposing MCP tools, and supporting supervised workflows are separate capabilities.

### Key Capabilities & Differentiators
IM.codes provides remote terminal access, file and Git views, localhost previews, and notifications for coding sessions across providers such as Claude Code, Codex, Gemini CLI, and OpenCode. Automatic memory capture uses final `assistant.text`, not streaming deltas or tool-call traces. Multilingual semantic recall runs locally and through server-side pgvector; recalled items can be injected at startup or per message, with timeline explanations and source snippets available when a summary is insufficient.

Supervision evaluates sessions at completed-turn boundaries and can continue, ask for human input, or start an audit-and-rework loop. On eligible transport-backed sessions, OpenSpec Auto Deliver adds task tracking and structured Team audit verdicts without staging, committing, or pushing code. Controlled Nodes are separately enrolled and revocable: authorized sessions can use scoped commands, transfer individual files, and invoke typed Computer Use actions. Capable Windows nodes also expose browser-based viewing and control.

### Trade-offs & Limitations
SSH and tmux are a smaller operational commitment when you only need to reconnect to a terminal. A provider’s native CLI is simpler when one backend is enough. IM.codes adds value when browser or mobile access, role-based collaboration, cross-provider recall, and structured review need to coexist. In return, operators maintain a relay, PostgreSQL, a developer-host daemon, and the agent integrations. Self-hosting the relay does not make an external model provider offline, and optional summary sync changes where derived context is stored.

Treat host permissions, memory publication scopes, and rollout stability as adoption gates. Scoped credentials and revocation help limit Controlled Node access, but they do not replace host isolation and least-privilege configuration. Enterprise shared context is still under active development and has not been fully production-tested. This is a source-available personal project without an SLA or compatibility guarantees. The presence of `LICENSE` and `COMMERCIAL-LICENSE.md` is not enough to establish commercial-use rights; review the applicable terms before adoption.

### Hardware & Deployment Guide
The Compose stack pairs `ghcr.io/im4codes/imcodes:latest` with `pgvector/pgvector:pg18`, persists PostgreSQL data in `pgdata`, and publishes the server only on `127.0.0.1:19138`. Plan for an HTTPS front end: `SERVER_URL` and `ALLOWED_ORIGINS` use `https://${DOMAIN}`, and the WebAuthn RP ID defaults to that domain. Configure `POSTGRES_PASSWORD` and `JWT_SIGNING_KEY`, and ensure the HTTPS front end passes WebSocket connections. A root `Caddyfile` is present. For a reproducible rollout, pin a tested image version instead of tracking `latest`.

Developer hosts need Node.js 22+, tmux on macOS or Linux, and at least one supported agent. Native Windows session hosting via ConPTY is experimental; WSL is also supported. The December 2, 2026 releases include development builds for Controlled Nodes and Android variants with or without Firebase Cloud Messaging; the FCM build requires Google Play Services. Size the relay and PostgreSQL separately from agent hosts, where builds, embeddings, and concurrent sessions determine much of the load.
```

## Key Capabilities
```text
- Session topology: A WebSocket relay connects browser and mobile clients to a developer-host daemon running tmux-backed or SDK-backed sessions.
- Managed MCP: Supported SDK runtimes get scoped memory, messaging, and Cron tools, with feature gates and per-provider readiness indicators.
- Memory provenance: Automatic memory capture uses final assistant text; recall cards show why an item was selected, and `get_memory_sources` retrieves evidence snippets.
- Delivery controls: OpenSpec Auto Deliver scores spec, tasks, implementation, tests, and risk, then returns PASS, REWORK, or BLOCKED without staging, committing, or pushing.
- Collaboration: Viewer and participant roles distinguish read-only access from the ability to send prompts; access can be downgraded or revoked.
- Controlled Nodes: Independently credentialed machines support scoped commands, individual file transfers, and typed Computer Use; capable Windows nodes also offer browser View and Control.
```

## Quick Start / Clone
```bash
# Webhook → agent: GitHub webhook handler triggers code review
curl -X POST https://your-server/webhook -d '{"pr": 42}' \
  && imcodes send "Gemini" "review PR #42, write summary to /tmp/review.md"

# CI → agent: post-build trigger
imcodes send "Claude" "tests failed on main, check CI log at /tmp/ci.log and fix" --reply
```
