Skip to content
CLI Reference

Reference

CLI Reference

All commands available after running sh install.sh.

egc doctor

Verify both servers are built, the database is accessible, and all detected tools have EGC registered. The first command to run after installation.

$ egc doctor

egc-guardian  running
egc-memory    running
database      ok
claude code   registered
cursor        registered
egc status

Show the last 5 decisions saved to memory for the current project.

$ egc status

[2026-06-05] Moved from Prisma to Drizzle ORM
[2026-06-04] Dropped JWT in favor of iron-session
[2026-06-03] Settled on functional-only components
[2026-06-02] PostgreSQL with row-level security
[2026-06-01] Next.js 15 App Router
egc install

Install or reinstall the prompt library to a target harness. Useful when you add a new tool after the initial install.

$ egc install --target cursor
egc catalog

List available profiles and components in the prompt library.

$ egc catalog

agents    62
skills   228
commands  74
rules    111
egc repair

Restore drifted or missing managed files. Re-injects the cognitive bootstrap if it was overwritten.

$ egc repair

✓ ~/.claude/CLAUDE.md restored
✓ ~/.gemini/GEMINI.md restored
egc auto-update

Pull the latest changes from GitHub and reinstall managed targets.

$ egc auto-update

Pulling latest from origin/main...
Building egc-guardian... done
Building egc-memory...  done
Reinstalling targets...
✓ claude code updated
✓ cursor updated