1. Conduid
  2. AI
  3. A Modular Kingdom
MCP server · AI

A Modular Kingdom

A Codex-based coding-agent TUI with explicit context control, auditable Smart Prune, and local session continuity.

53Fair

Scored 22 hours ago · breakdown

About A Modular Kingdom

A Modular Kingdom is an MCP server published by MasihMoafi in the AI category: a Codex-based coding-agent TUI with explicit context control, auditable Smart Prune, and local session continuity.

The repository has 46 stars and 2 forks, with the last commit 3 days ago. Recent commit activity is the strongest signal that reported issues will get attention.

Install

From source
git clone https://github.com/MasihMoafi/Elpis

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about A Modular Kingdom

Powered by Claude · Grounded in docs

I know everything about A Modular Kingdom. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

Static checks derived from the repository 2 days ago. Heuristics on the source, not an audit.

  • ✓README presentThe repository ships documentation.
  • ✓License declaredUsable under a stated license.
  • ✓Tests presentA test suite exists in the repository.
  • ✓Dependencies pinnedA lockfile pins dependency versions.
  • !Scoped permissionsDoesn't declare a permission scope. Assume it can do anything its process can.

1 check has not been run yet.

Releases

v0.4.1Elpis v0.4.1 · 4 Oct 2026Elpis v0.4.1 moves the terminal runtime to Codex rust-v0.160.0 and adds `elpis claude`. State from v0.4.0 stays compatible. Changes since v0.4.0: `elpis claude` starts the Claude Code CLI and runs Smart Prune on its requests through a…
v0.4.0Elpis v0.4.0 · 1 Oct 2026Elpis v0.4.0 moves the terminal runtime onto Codex rust-v0.159.0 while retaining Elpis's identity, Context Ledger, explicit responding-agent memory saves, compaction instructions, Smart Prune, provider picker and local dashboard. Masih…
v0.3.0Elpis v0.3.0 · 24 Sep 2026Elpis v0.3.0 Elpis is a terminal environment for coding agents. The agent runs the model loop; Elpis owns context, memory, continuity, retrieval, permissions, and provider choice. Install Linux x86_64. The installer checks the downloaded…
extension-v0.1.17Elpis for VS Code 0.1.17 (Linux x64) · 9 Sep 2026Elpis for VS Code now includes its Smart Pruning runtime, Context Ledger, goal controls, model and thinking-level selection, and live editor tools with inline runtime approvals. Smart Pruning compresses fresh tool output before admission…
v0.2.0Elpis v0.2.0 · 5 Sep 2026Elpis v0.2.0 Elpis v0.2.0 is a Linux-first coding-agent TUI centered on explicit context control and auditable tool-output admission. The maintainer accepted this version's local candidate before release. Smart Prune remains experimental…

README

Elpis

Elpis is a Linux coding-agent environment built on OpenAI's Codex CLI. It keeps the execution and terminal foundation while adding control over admitted context, durable memory, continuity and provider selection.

Change the runtime. Keep the thread.

See what your agent is working with. Elpis makes its admitted instructions, files and memory inspectable, lets you control that context, and keeps a working checkpoint across sessions. Its local dashboard shows activity, context and recorded usage.

Releases · Website · Technical guide · License

Install

v0.4.1 is the Linux x86_64 release, based on Codex rust-v0.160.0. Review the installer before running it:

curl -fsSL https://raw.githubusercontent.com/MasihMoafi/Elpis/v0.4.1/scripts/install-elpis.sh | bash
~/.local/bin/elpis

The installer verifies SHA-256 checksums and installs Elpis, its Code Mode host and the bundled Linux sandbox. A Debian package is also available in the release. RTK is optional and is not installed automatically. macOS and Windows binaries are not included.

Sign in or configure a provider, then choose a model with /model.

State and upgrades

Elpis uses ~/.elpis-next, or the directory explicitly selected by ELPIS_HOME. It ignores inherited CODEX_HOME. Existing next-build users keep their state there.

v0.3.0's state database is incompatible with the new foundation. Elpis refuses that database and preserves it; automatic migration is not included. Keep a backup of the old executable for rollback. The v0.3.0 guide records that release's behavior and historical evidence.

Included

The October 10 candidate restores the inherited Codex /review and /worktree menus and --worktree launch option through the local provider launcher. It refreshes admitted bridge context each turn and isolates generated goal/checkpoint files by thread. The installed candidate passed its hosted and local checks; see the contract and verification with rollback.

  • Context Ledger controls admission of workspace instructions, chosen files and memory; /add and /context expose the working set.
  • The responding agent explicitly saves durable knowledge and the workspace checkpoint through a guarded local tool. Saving and admission are separate choices.
  • /compact accepts a pressure threshold or custom instructions. Experimental Smart Prune and reasoning expiry limit disposable context.
  • /model and --provider select providers; the local gateway supports Anthropic, Gemini and OpenRouter paths alongside OpenAI.
  • /dashboard and /usage expose local session information. Subscription price remains unavailable.
  • Elpis identity, composer queuing, chosen skills and permission controls surround the selected model.

Multi-agent work is inspectable too: the agents view shows the hierarchy and each agent's model. Experimental work graphs add task dependencies, bounded write scopes and verification requirements; they are off by default. See the work-graph contract.

No model weights, retrieval engine or speech engine are bundled. External capabilities come through tools or explicitly registered integrations.

Context Ledger

Context Ledger · 13 October 2026 · light theme. Smart Prune and subagent delegation are enabled in this session. Smart Prune is experimental and off by default. Category shares and source sizes are estimates; the measured request total is separate. Open the original image to inspect it at full size.

Verification and limits

Masih tested the September 30 candidate and accepted it for release. Release CI gates publication on focused Elpis Rust checks, actual runtime evals with failing controls, installer checks and clean offline binary/Debian installations. Automated evidence does not establish general coding-quality gains.

The whole inherited Codex suite is not claimed green: appearance/snapshot differences and identity-rename failures remain. /force-prune, Auto routing and tui.appearance are not ported. Strict configuration currently misses unknown keys in gateway-provider tables. Light-theme acceptance and all historical outcome-ledger cases remain separate from this release's acceptance.

Development

Read the guide, shipping rules and local build rules before changing or building Elpis. The upstream Rust workspace version stays at 0.160.0; the Elpis product version lives in the CLI manifest and TUI branding constant.

Upstream Codex is Apache-2.0. Elpis retains its attribution and notices. See LICENSE.

README fetched from the repository 2 days ago. The original is authoritative.

Questions

About A Modular Kingdom

How do I install A Modular Kingdom?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is A Modular Kingdom safe to use with an AI agent?

Its trust score is 53 out of 100 (fair). It passes 4 of the 5 static security checks run so far; the failures are listed above. It has no ConduID identity yet, so agent calls to it are not receipted.

Is A Modular Kingdom still maintained?

Yes — the latest release is v0.4.1 (4 Oct 2026), and the last commit was 3 days ago. The repository has 46 stars and 1 open issues.