enso-deploy

A deployment procedure for Enso services that merges code, builds the project, checks whether documentation needs updates, commits and pushes changes, and restarts services.

In plain words
What is it for?
Use it to release finished Enso work from a branch, update relevant documentation, and restart the running services.
Why use it?
It gives a repeatable way to publish completed changes while avoiding a restart that would terminate the current Enso gateway session.

Command for Claude Code

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 commands/proxy2021/enso/enso-deploy
Clone the repo
git clone --depth 1 https://github.com/Proxy2021/Enso

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 681 The whole file, excluding the scripts and references it only reads on demand.
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.00000 $0.00681
Opus 5 $0.00000 $0.00341
Sonnet 5 $0.00000 $0.00136
Haiku 4.5 $0.00000 $0.00068

Measured yesterday against content hash 522e5c329282, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

enso-deploy 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 yesterday.

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/commands/enso-deploy.md · 40 lines

What it actually says

Merge, build, commit, push, update docs if needed, and restart all Enso services.

⛔ If you are running inside the Enso gateway (spawned via the Enso mobile/web client for bug fixing, auto-repair, or debug reporter) — do NOT run this command. Restarting the gateway kills your own session. Just fix the code and stop.

Steps

  1. Merge worktree to main: If we're on a worktree branch (not main), merge the current branch into main using git merge <branch> --no-edit from the main repo. If already on main, skip.

  2. Build: Run npm run build from the project root to produce the production frontend bundle.

  3. Assess whether docs need updating: Review the recent commits (git log main -10 --oneline) and the conversation context. Determine if a major feature or design change was introduced — something that materially changes what the project does or how it presents itself. Minor fixes, refactors, and small tweaks do NOT require doc updates.

    Examples that warrant doc updates:

    • New built-in app or tool family added
    • Major new capability (e.g. live sharing, voice input, mobile app support)
    • Fundamental architecture change
    • New user-facing workflow or integration

    Examples that do NOT:

    • Bug fixes, style tweaks, performance improvements
    • Internal refactors that don't change user-facing behavior
    • Adding a button or fixing a dialog
  4. Update docs (only if step 3 determined it's needed): Review and update the following files as needed to reflect the new capability. Keep changes concise — add or revise only what's relevant to the new feature, don't rewrite unrelated sections.

    • README.md — Update the Features list, Built-in Apps section, or tagline if the change is significant enough. Add a new subsection under Built-in Apps if a new app was added. Update the features bullet list if a new major capability was introduced.
    • package.json description field — Only if the project's one-liner description no longer captures what the project does.
    • GitHub repo description — Run gh repo edit --description "..." only if the package.json description changed.
    • CLAUDE.md — Update the Vision, Key Concepts, or Architecture sections only if the change affects how developers should understand the codebase.
  5. Commit (if needed): On the main branch, check git status for any uncommitted changes (build output, doc updates). If there are changes, stage and commit them. Use a commit message like docs: update README/description for <feature> if docs changed, or a short descriptive message for build-only changes.

  6. Push: Run git push to push main to the remote.

  7. Restart services: Run the restart script for the current platform:

    • macOS: ./restart.sh from the project root
    • Windows: powershell -ExecutionPolicy Bypass -File restart.ps1

Report the result of each step. If any step fails, stop and report the error.

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. yesterday First seen · 40 lines · 0 tokens per session scan A 522e5c329282

Subscribe to this mod's changes

enso-deploy is a command published in the GitHub repository Proxy2021/Enso (5 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 681 tokens. 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-31.