# =============================================================================
# AgentCloak — Demo Cheatsheet
# =============================================================================
# Copy and run each block step by step.
# =============================================================================


# --- [0] Export env vars in every new terminal tab --------------------------

export INC_MCP_URL="https://us-restapi-mt-01.api.incountry.io/mcp"
export INC_MCP_API_KEY="51a33be9-34e4-40e9-bb36-4349634c1e36:DfxMUWLfFCeUZ9nE6DCewEqFjis-h6yo-mGj6KS_h8c"


# --- [1] Create a fresh working directory ------------------------------------

mkdir ~/acme-crm && cd ~/acme-crm


# --- [2] Install AgentCloak skills for the AI agent -------------------------

npx agentcloak-skill


# --- [3] Set up the demo app -------------------------------------------------

npx acme-crm


# --- [3b] Install dependencies -----------------------------------------------

npm install


# --- [4] Run — shows REAL customer names -------------------------------------

npm start


# --- [5] Open opencode and give the agent its task ---------------------------

opencode

# Prompt to paste:
#
Cloak the full names of customers in crm-customers.ts using the AgentCloak MCP server before printing them.

# The agent will:
#   1. Read crm-customers.ts
#   2. Read the AgentCloak skill (.agents/skills/agentcloak/SKILL.md)
#   3. Add a cloakNames() function — batch all names in one MCP call
#   4. Replace fullName values in the output with cloaked versions
#   5. Run: npm start


# --- [6] Run again — shows CLOAKED customer names ----------------------------

npm start
