### Install Eurycleia with pip Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/quickstart.md Install the Eurycleia package. Requires Python 3.10 or newer. Adds only pyyaml and cryptography dependencies. ```bash pip install eurycleia ``` -------------------------------- ### Scan Data and Get Starter Policy Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Run setup to scan a SQLite database and docs, then validate the policy and run the built-in attack suite. The test command exits 1 on any leak. ```bash eurycleia setup --sqlite crm.db --docs ./help-articles --domain yourcompany.com eurycleia check # validate the policy eurycleia test # run the built-in attack suite against it (exits 1 on any leak) ``` -------------------------------- ### Setup commands for development Source: https://github.com/agentp-codes/project-eurycleia/blob/main/CONTRIBUTING.md Run these commands to install the project with development dependencies, run tests, lint with Ruff, and execute the demo and benchmark. ```bash pip install -e ".[dev]" pytest ruff check . python -m demo && python -m demo.bench ``` -------------------------------- ### Run first task and expected output Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/quickstart.md Run the example first task script after saving it next to eurycleia.yaml. The output shows the model receives a placeholder for the card number and email to the customer is sent while other recipients are blocked. ```bash python first_task.py ``` ```text the model sees: {'name': 'Priya Shah', 'email': 'priya@example.com', 'plan': 'Pro', 'card_number': '[[vault:card_number:681b45c2]]'} blocked: recipient 'attacker@evil.example' did not come from trusted data emails sent to: ['priya@example.com'] ``` -------------------------------- ### Setup Commands for Azure Cloud Shell Source: https://github.com/agentp-codes/project-eurycleia/blob/main/deploy/azure/README.md Initial setup and management commands for the Eurycleia live test on Azure. Requires filling settings.env and running setup.sh with various arguments to configure, seed data, control the agent, and check status. ```bash cd azure # or Project-Eurycleia/deploy/azure after a git clone cp settings.example.env settings.env nano settings.env # fill it in, then Ctrl+O, Enter, Ctrl+X chmod +x setup.sh ./setup.sh all # asks for each secret (nothing shows as you type) ./setup.sh seed # loads the made-up customers into HubSpot and Stripe ./setup.sh resume # the agent starts PAUSED; this turns it on (watch mode: logs, doesn't block) ./setup.sh feed 5 # sends 5 made-up support emails ./setup.sh status ``` -------------------------------- ### Connect to MCP-based agent Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/quickstart.md Connect Eurycleia to an MCP-based agent (e.g., Claude Desktop, Hermes) for the support_reply task with a trusted customer ID. Starts in watch mode where nothing is blocked. ```bash eurycleia connect claude-desktop --task support_reply --trusted customer_id=12 ``` -------------------------------- ### Install and pin Eurycleia version Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Install Eurycleia with all extras and pin the version to 0.7.0. Read the changelog before upgrading and rerun `eurycleia test` in CI on every upgrade. ```bash pip install "eurycleia[all]==0.7.0" ``` -------------------------------- ### Initialize and test a policy Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/quickstart.md Create a new vault directory, initialize a policy template (support or finance), and run the built-in attack suite. The test should end with '19 blocked, 0 leaked'. ```bash mkdir my-vault && cd my-vault eurycleia init --template support # or: --template finance eurycleia test ``` -------------------------------- ### Install Eurycleia and Check Version Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Install the package with pip and verify the installation. Requires Python 3.10 or later. ```bash pip install eurycleia eurycleia --version ``` -------------------------------- ### Manage agent connection after watch mode Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/quickstart.md After running in watch mode, generate a report, draft a policy from agent behavior, enforce blocking, and disconnect to restore original settings exactly. ```bash eurycleia report # what would have been blocked eurycleia learn --policy eurycleia.yaml # draft a policy from what the agent did eurycleia enforce # start blocking eurycleia disconnect # put the original settings back exactly ``` -------------------------------- ### Run the attack benchmark with your own model Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Clones the repository, installs it, sets the Anthropic API key, and runs the benchmark against a specified model. The benchmark uses a fictional company and sends only invented test data to the provider; you pay their normal API costs. Providers include anthropic, openai, gemini, and ollama. ```bash git clone https://github.com/AgentP-Codes/project-eurycleia && cd project-eurycleia pip install -e . export ANTHROPIC_API_KEY=your-key # Windows: set ANTHROPIC_API_KEY=your-key python -m demo.bench --provider anthropic --model claude-sonnet-5 --runs 3 --out results.json ``` -------------------------------- ### Start Eurycleia's local API with eurycleia api Source: https://github.com/agentp-codes/project-eurycleia/blob/main/adapters/README.md Run the local API server, either with the connectors from `eurycleia setup` or with the tools of an existing MCP server. It listens on 127.0.0.1 only and writes its address and a fresh secret token to ~/.eurycleia/api.json (owner-only). The adapter finds it there, or in EURYCLEIA_URL and EURYCLEIA_TOKEN. ```bash eurycleia api --app eurycleia_app:build_vault # the connectors written by `eurycleia setup` # or, with the tools of an existing MCP server: eurycleia api --policy eurycleia.yaml -- python my_crm_mcp_server.py ``` -------------------------------- ### Run static_eval.py for AgentDojo benchmarks Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/agentdojo/README.md Install dependencies and run the static evaluation script. The first command runs all suites with modes none/general/strict and both data variants. The second runs only the banking suite in strict mode, outputting JSON to results.json. ```bash cd benchmarks/agentdojo pip install -r requirements.txt # AgentDojo 0.1.35, the version these results used python static_eval.py # all suites; modes none / general / strict; data as published and attacker-sends python static_eval.py --suite banking --mode strict --json results.json ``` -------------------------------- ### Run Local API for TypeScript/JavaScript Agents Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Start the local API for agents written in TypeScript or JavaScript, then use the adapter. See the adapters directory for more details. ```bash # Agents in TypeScript or JavaScript: run the local API, then use the adapter eurycleia api --app eurycleia_app:build_vault ``` -------------------------------- ### Run adapter tests with node --test Source: https://github.com/agentp-codes/project-eurycleia/blob/main/adapters/README.md Run the adapter's test suite from the repository root. Requires Eurycleia installed (`pip install -e .`). ```bash node --test adapters/typescript/test/api.test.js ``` -------------------------------- ### Run Eurycleia benchmark with multiple providers (3 runs each) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the .venv-tv virtual environment and runs the demo.bench benchmark for six provider/model combinations, each with 3 runs and a specified AUD budget, outputting JSON files. The benchmark uses 21 support tickets (20 attacks) across three setups: no vault, vault, and planner. Estimated cost is about A$8 at most. ```bash .venv-tv\Scripts\activate python -m demo.bench --provider openai --model gpt-6-luna --runs 3 --budget-aud 0.5 --out bench-luna.json python -m demo.bench --provider gemini --model gemini-3.5-flash-lite --runs 3 --budget-aud 1 --out bench-gemini.json python -m demo.bench --provider openrouter --model --price-in --price-out --runs 3 --budget-aud 0.5 --out bench-deepseek.json python -m demo.bench --provider anthropic --model claude-haiku-4-5 --runs 3 --budget-aud 2 --out bench-haiku.json python -m demo.bench --provider anthropic --model claude-sonnet-5 --runs 3 --budget-aud 2.5 --out bench-sonnet.json python -m demo.bench --provider openai --model gpt-6.1-sol --runs 3 --budget-aud 1.5 --out bench-sol.json deactivate ``` -------------------------------- ### Install locked dependencies with pip Source: https://github.com/agentp-codes/project-eurycleia/blob/main/requirements/README.md Installs the exact locked versions from runtime.lock with hash verification, then installs Eurycleia without dependencies. ```bash pip install --require-hashes -r requirements/runtime.lock pip install --no-deps eurycleia ``` -------------------------------- ### Switch to Another Provider's Model Source: https://github.com/agentp-codes/project-eurycleia/blob/main/deploy/azure/README.md Commands to configure and switch to a different AI provider's model, store its API key in Key Vault, set a daily budget, and return to the Azure deployment. The provider bills you directly, not through Azure credit. ```bash ./setup.sh key openai # asks for the key; nothing appears on screen ./setup.sh model openai MODEL-NAME # add PRICE_IN PRICE_OUT (US$ per million tokens) if it's new ./setup.sh budget 5 # daily model budget in A$ ./setup.sh model azure gpt-5-mini # back to the Azure deployment ``` -------------------------------- ### Run overnight long-run benchmark (run_long.py) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Runs the long-run benchmark with a quick check command followed by a full run that stops after 6 hours or A$3 spent, whichever comes first. Prints a line every 25 tickets and stops automatically after 10 consecutive failures. Set the laptop to not sleep while plugged in before starting. ```bash .venv-tv\Scripts\activate python benchmarks\longrun\run_long.py --provider openai --model gpt-6-luna --tickets 20 --budget-aud 0.2 python benchmarks\longrun\run_long.py --provider openai --model gpt-6-luna --hours 6 --budget-aud 3 deactivate ``` -------------------------------- ### Set Slack bot token and channel IDs for Slack integration Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Configure Slack bot credentials and test channel IDs. Requires a bot token starting with xoxb- and channel IDs starting with C. TV_TEST_SLACK_SUPPORT is the allowed channel, TV_TEST_SLACK_OTHER is the attack channel. ```bash set SLACK_BOT_TOKEN=xoxb-... set TV_TEST_SLACK_SUPPORT=C... (the channel the agent is allowed to use) set TV_TEST_SLACK_OTHER=C... (the channel an attack tries to use) ``` -------------------------------- ### Connect, start task, and call model with Eurycleia Source: https://github.com/agentp-codes/project-eurycleia/blob/main/adapters/typescript/README.md Zero-dependency client for Node 18+ that connects to the eurycleia API, registers an action handler, starts a task, and calls a model. Requires the eurycleia-client package and an active API connection. ```TypeScript import { Eurycleia } from "eurycleia-client"; const tv = (await Eurycleia.connect()).onAction("email.send", sendEmail); const task = await tv.startTask("customer_request", { customer_id: 12 }); const reply = await task.callForModel("get_customer", {}); ``` -------------------------------- ### Run eurycleia learn with real models (run_learn.py) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Runs the learn benchmark: a smoke test, then a full run with OpenAI, then a run with Anthropic. Each run saves its draft policy, learn-report.md, and learn-results.json in the --out folder. The model handles 40 tickets in watch mode starting from a too-tight policy, with about 1 in 5 tickets carrying an attack. ```bash .venv-tv\Scripts\activate python benchmarks\learn\run_learn.py --provider openai --model gpt-6-luna --smoke --budget-aud 0.2 python benchmarks\learn\run_learn.py --provider openai --model gpt-6-luna --budget-aud 0.5 --out learn-luna python benchmarks\learn\run_learn.py --provider anthropic --model claude-haiku-4-5 --budget-aud 1.5 --out learn-haiku deactivate ``` -------------------------------- ### Set test email environment variables Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Set the customer and attacker test email addresses as environment variables. Use a new Gmail account with '+' addresses to get two inboxes. ```bash set TV_TEST_CUSTOMER_EMAIL=YOUR-TEST-ADDRESS+customer@gmail.com set TV_TEST_ATTACKER_EMAIL=YOUR-TEST-ADDRESS+attacker@gmail.com ``` -------------------------------- ### Protect a Python Agent with the SDK Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Use the Eurycleia SDK in a Python agent, or with CrewAI/LangGraph via tools=protect(task). The vault is built by `eurycleia setup`; the task is trusted from your app, while the ToolAgent treats the ticket as untrusted data. ```python # A Python agent (the SDK), or CrewAI / LangGraph with tools=protect(task) from eurycleia_app import build_vault # written by `eurycleia setup` from eurycleia.llm import AnthropicProvider, ToolAgent vault = build_vault(sinks={"email.send": send_email}) task = vault.start_task("customer_request", customer_id=ticket.verified_customer_id) # trusted, from your app ToolAgent(AnthropicProvider())(task, {"ticket": ticket.body}) # untrusted, as data ``` -------------------------------- ### Use Eurycleia from TypeScript agent Source: https://github.com/agentp-codes/project-eurycleia/blob/main/adapters/README.md Connect to the local API, register action handlers for email.send and payments.refund, start a trusted task, and call the model with tool results. The handler receives real values (not placeholders) when allowed; blocked actions never run the handler. Do not log handler arguments or pass them to the model yourself. ```ts import { Eurycleia } from "eurycleia-client"; const tv = (await Eurycleia.connect()) .onAction("email.send", async ({ to, subject, body }) => mailer.send({ to, subject, body })) .onAction("payments.refund", async ({ card, amount }) => payments.refund(card, amount)); const task = await tv.startTask("customer_request", { customer_id: session.customerId }); // trusted: from your app // give the model task.openAITools() / task.anthropicTools() / task.vercelTools({ tool, jsonSchema }) const text = await task.callForModel(toolCall.name, toolCall.args); // what goes back to the model await task.end(); ``` -------------------------------- ### Set up Python environments for Eurycleia Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Create three separate virtual environments from the Eurycleia folder using Command Prompt. AgentDojo and the frameworks each pin their own libraries, so they need their own environment. ```bash py -3.12 -m venv .venv-tv .venv-tv\Scripts\activate pip install -e . deactivate py -3.12 -m venv .venv-dojo .venv-dojo\Scripts\activate pip install -e . -r benchmarks\agentdojo\requirements.txt deactivate py -3.12 -m venv .venv-fw .venv-fw\Scripts\activate pip install -e . -r benchmarks\frameworks\requirements.txt deactivate ``` -------------------------------- ### Run benchmark with Anthropic and Gemini providers Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/real-model-results.md Commands to run the benchmark against real models. Set the appropriate API key environment variable first (ANTHROPIC_API_KEY, GEMINI_API_KEY, or OPENAI_API_KEY; on Windows use `set NAME=value`). The first command runs 3 runs with the Anthropic provider, the second runs 1 run with the Gemini provider using both the `no-vault` and `vault` configs. Free-tier Gemini keys have rate limits; the benchmark waits out per-minute limits and stops if the daily quota is exhausted. Use `--scenarios` to run a subset. ```bash export ANTHROPIC_API_KEY=... # or GEMINI_API_KEY / OPENAI_API_KEY (Windows: set NAME=value) python -m demo.bench --provider anthropic --model claude-sonnet-5 --runs 3 --out results.json python -m demo.bench --provider gemini --model gemini-3.5-flash-lite --runs 1 --configs no-vault,vault ``` -------------------------------- ### Set API key and run live benchmark Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/agentdojo/README.md Sets the GEMINI_API_KEY environment variable (Windows syntax shown; macOS/Linux uses export) and runs the live benchmark with the specified provider, model, suite, modes, and limits. The API key must only be read from the environment, never placed on the command line or in a file. ```bash set GEMINI_API_KEY=... # Windows (macOS/Linux: export GEMINI_API_KEY=...) python run_live.py --provider gemini --model gemini-2.5-flash-lite --suite banking --mode none --mode strict --max-pairs 30 --sleep 4 ``` -------------------------------- ### Run cheap models on AgentDojo (full runs) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the virtual environment, runs smoke tests and full runs for cheap models on AgentDojo, then summarizes results. Always run --smoke first on a new provider; if errors occur, stop and report them before the full run. ```bash .venv-dojo\Scripts\activate cd benchmarks\agentdojo python run_live.py --provider openai --model gpt-6-luna --smoke --budget-aud 0.5 python run_live.py --provider openai --model gpt-6-luna --budget-aud 8 python run_live.py --provider gemini --model gemini-3.5-flash-lite --smoke --budget-aud 0.5 python run_live.py --provider gemini --model gemini-3.5-flash-lite --budget-aud 14 python run_live.py --provider openrouter --model --price-in --price-out --budget-aud 2 python run_live.py --provider openrouter --model --price-in --price-out --budget-aud 2 python run_live.py --provider openrouter --model qwen/qwen3.6-plus --sample 0.1 --budget-aud 2 python run_live.py --summarize agentdojo-results.jsonl cd ..\.. deactivate ``` -------------------------------- ### Initialize local encryption key Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Creates a 256-bit key with owner-only permissions (on Windows, an access list with only your user account). Keep it out of version control, back it up separately, and restrict who can read it. ```bash eurycleia keys init /secure/volume/customer.key ``` -------------------------------- ### AuditLog with key Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md In Python, use AuditLog with a key to add MACs and record the log end. ```python AuditLog("audit.jsonl", key=audit_key(key_provider)) ``` -------------------------------- ### Check connections (read-only) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Run this command to verify all app connections are set up. Every app should report 'ok'; fix any that say FAILED before proceeding. ```bash python run_real.py check ``` -------------------------------- ### AuditLog with fsync Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Use AuditLog(path, fsync=True) to ensure each entry is on disk before the action runs. ```python AuditLog(path, fsync=True) ``` -------------------------------- ### Set API keys in the run window Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Set environment variables for API keys in the window you run from. A new window needs them set again. Never put a key in a file, on the command line of a script, or in a chat. ```bash set ANTHROPIC_API_KEY=... set OPENAI_API_KEY=... set GEMINI_API_KEY=... set OPENROUTER_API_KEY=... ``` -------------------------------- ### Run benchmark commands (seed, run, summarize) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Commands to seed test data, run the benchmark with scripted or real API models, and summarize results. Results are saved as they finish; re-running continues where it stopped. ```bash python run_real.py seed ``` ```bash python run_real.py run --smoke ``` ```bash python run_real.py run ``` ```bash python run_real.py run --provider openai --model gpt-6-luna --budget-aud 1 ``` ```bash python run_real.py run --provider anthropic --model claude-haiku-4-5 --budget-aud 2 ``` ```bash python run_real.py summarize ``` -------------------------------- ### Run real app benchmarks (run_real.py) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the virtual environment, seeds test accounts, runs smoke and full benchmark suites, optionally with a specific provider/model and budget, then summarizes and cleans up. Requires test accounts set up as described in benchmarks\real_apps\REAL_APPS.md; use new test accounts and made-up data only. ```bash .venv-tv\Scripts\activate cd benchmarks\real_apps python run_real.py check python run_real.py seed python run_real.py run --smoke python run_real.py run python run_real.py run --provider openai --model gpt-6-luna --budget-aud 1 python run_real.py run --provider anthropic --model claude-haiku-4-5 --budget-aud 2 python run_real.py summarize python run_real.py cleanup cd ..\.. deactivate ``` -------------------------------- ### Verify and seal audit log without key Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md For a log written without a key, check it and then seal it once. Only seal a log you know was never keyed. ```bash eurycleia audit verify audit.jsonl ``` ```bash eurycleia audit seal audit.jsonl --key customer.key ``` -------------------------------- ### Protect an Existing Agent App (MCP) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Connect an existing agent app like Claude Desktop or Hermes in watch mode, then report, learn, enforce, and disconnect. The learn command drafts a policy from agent activity and writes learn-report.md. ```bash # An existing agent app (Claude Desktop, Hermes, other MCP apps): starts in watch mode eurycleia connect claude-desktop --task customer_request --trusted customer_id=12 eurycleia report # after a while: what would have been blocked eurycleia learn --policy eurycleia.yaml # draft a policy from what the agent did; read learn-report.md eurycleia enforce # start blocking eurycleia disconnect # put everything back exactly as it was ``` -------------------------------- ### Set Up Deposit Boxes for Sensitive Data Source: https://github.com/agentp-codes/project-eurycleia/blob/main/README.md Initialize a vault key, create a holder, and put data into a deposit box. Deposit boxes are encrypted per customer, department, or client company; the most sensitive tier requires both keys and holder approval. ```bash eurycleia keys init vault.key eurycleia boxes holder --key vault.key --type customer --id 12 eurycleia boxes put customers.csv --key vault.key --source crm.customer --key-column id \ --holder-type customer --holder-field id ``` -------------------------------- ### Run LangGraph and CrewAI framework benchmarks and MCP agent Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the .venv-fw virtual environment, runs LangGraph and CrewAI agents via run_frameworks.py for several provider/model combinations, then runs an MCP agent via run_mcp.py both directly and after 'eurycleia connect'. Estimated cost is about A$7 at most. ```bash .venv-fw\Scripts\activate cd benchmarks\frameworks python run_frameworks.py --framework langgraph --framework crewai --provider openai --model gpt-6-luna --smoke --budget-aud 0.3 python run_frameworks.py --framework langgraph --framework crewai --provider openai --model gpt-6-luna --budget-aud 1 python run_frameworks.py --framework langgraph --framework crewai --provider anthropic --model claude-haiku-4-5 --budget-aud 1.5 python run_frameworks.py --framework langgraph --framework crewai --provider anthropic --model claude-sonnet-5 --budget-aud 1.5 python run_frameworks.py --framework langgraph --provider gemini --model gemini-3.5-flash-lite --budget-aud 1 cd ..\mcp_agent python run_mcp.py --provider openai --model gpt-6-luna --budget-aud 0.5 python run_mcp.py --provider anthropic --model claude-sonnet-5 --budget-aud 1.5 cd ..\.. deactivate ``` -------------------------------- ### Run stronger models on AgentDojo (samples) Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the virtual environment, runs smoke tests and sampled runs for stronger models on AgentDojo, then summarizes results. The Gemini 3.x smoke run matters most because AgentDojo's Gemini support hasn't been tried with this model yet. ```bash .venv-dojo\Scripts\activate cd benchmarks\agentdojo python run_live.py --provider anthropic --model claude-haiku-4-5 --smoke --budget-aud 0.5 python run_live.py --provider anthropic --model claude-haiku-4-5 --sample 0.5 --budget-aud 18 python run_live.py --provider anthropic --model claude-sonnet-5 --sample 0.25 --budget-aud 15 python run_live.py --provider openai --model gpt-6.1-sol --sample 0.25 --budget-aud 14 python run_live.py --summarize agentdojo-results.jsonl cd ..\.. deactivate ``` -------------------------------- ### Verify audit log with key Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Check the audit log integrity with a key. Exits 1 if anything is wrong. ```bash eurycleia audit verify audit.jsonl --key customer.key ``` -------------------------------- ### Run smoke test with no accounts Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Run the real-app test with no accounts configured; all apps are simulated. Takes a minute and costs nothing. ```bash cd benchmarks\real_apps python run_real.py check python run_real.py run --smoke ``` -------------------------------- ### Run Eurycleia benchmark with pseudonyms enabled Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/RUN_GUIDE.md Activates the .venv-tv virtual environment and runs the same benchmark once with pseudonyms switched on, so the model sees stand-ins like 'Name-1A2B3C' instead of customers' names and contact details. Comparing this run with the normal run shows whether stand-ins confuse a real model. ```bash .venv-tv\Scripts\activate python -m demo.bench --provider openai --model gpt-6-luna --configs vault --runs 3 --pseudonyms --budget-aud 0.5 --out bench-luna-pseudonyms.json deactivate ``` -------------------------------- ### Eurycleia policy YAML starter Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/policy-reference.md A policy file is a single YAML document that `eurycleia init` creates and `eurycleia check` validates and lints. Unknown keys are errors. `internal_domains` lists your company's own email domains; `link_domains`, `shared_email_domains`, `tools`, and `upstream` are optional. ```yaml version: 1 internal_domains: [yourcompany.com] link_domains: [] # optional: other websites whose links may carry customer data shared_email_domains: [] # optional: more email services that are never a business customer's own domain cache_ttl_seconds: 300 detect_outbound: true sources: {...} tasks: {...} tools: {...} # optional: for the MCP proxy and LLM adapters upstream: {...} # optional: for the MCP proxy ``` -------------------------------- ### Set SMTP and IMAP environment variables for SMTPSink Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Configure SMTP credentials for Eurycleia's SMTPSink using a Gmail app password. Requires 2-Step Verification and an app password. IMAP_HOST is optional and lets the test confirm what arrived. ```bash set SMTP_HOST=smtp.gmail.com set SMTP_USER=YOUR-TEST-ADDRESS@gmail.com set SMTP_PASSWORD= set IMAP_HOST=imap.gmail.com ``` -------------------------------- ### Set Zendesk OAuth credentials for Zendesk integration Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Configure Zendesk OAuth client credentials. Requires a confidential OAuth client. New accounts cannot use API tokens; older tokens still work with ZENDESK_EMAIL and ZENDESK_API_TOKEN. ```bash set ZENDESK_SUBDOMAIN= set ZENDESK_CLIENT_ID=... set ZENDESK_CLIENT_SECRET=... ``` -------------------------------- ### Set Xero token and tenant ID for Xero connector Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Configure Xero access token and tenant ID for a read-only check. Token lasts 30 minutes. The check reads one Demo Company contact through Eurycleia's Xero connector. ```bash set XERO_TOKEN=... set XERO_TENANT_ID=... ``` -------------------------------- ### Show blocked decisions from audit log Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Use this command to display audit entries for blocked decisions. The audit log is a JSONL file. ```bash eurycleia audit show audit.jsonl --decision block ``` -------------------------------- ### Summarize results Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/agentdojo/README.md Summarizes the results from the agentdojo-results.jsonl file. Each finished episode is saved to this file, and rerunning the same command resumes where it stopped (e.g., after quota or Ctrl+C). ```bash python run_live.py --summarize agentdojo-results.jsonl ``` -------------------------------- ### Shred encryption key Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Crypto-shredding: makes everything encrypted under the key unreadable. Test this in staging before relying on it. ```bash eurycleia keys shred PATH ``` -------------------------------- ### Verify audit log integrity Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/deployment.md Use this command to confirm the audit log has not been tampered with. For deposit boxes, use `eurycleia boxes log ` instead. ```bash eurycleia audit verify audit.jsonl ``` -------------------------------- ### tasks: Define a task template with reads and sinks Source: https://github.com/agentp-codes/project-eurycleia/blob/main/docs/policy-reference.md Scopes one unit of agent work. The `trusted` key lists inputs the app must supply to `start_task`; never derive these from untrusted text. Any source or sink not listed in the task is blocked. ```yaml tasks: support_reply: description: Answer one ticket for the customer who sent it. trusted: [customer_id] reads: crm.customer: {key: "{customer_id}", fields: [name, email, plan, card_number]} docs: {keys: [refund_policy], fields: [name, body]} sinks: email.send: recipient_arg: to allowed_recipients: ["crm.customer:{customer_id}.email"] max_calls: 3 payments.refund: args: [card, amount] secrets_allowed: {card_number: card} risk: high max_calls: 1 invalidates: [crm.customer] ``` -------------------------------- ### Run cleanup script Source: https://github.com/agentp-codes/project-eurycleia/blob/main/benchmarks/real_apps/REAL_APPS.md Deletes Zendesk tickets, HubSpot contacts, and Slack messages created by the test. Stripe test payments remain in the sandbox and can be cleared via the dashboard; emails stay in the test inbox. ```bash python run_real.py cleanup ``` -------------------------------- ### Update lock files with uv pip compile and audit Source: https://github.com/agentp-codes/project-eurycleia/blob/main/requirements/README.md Regenerates runtime.lock and ci.lock after changing .in files, then audits runtime.lock for vulnerabilities. ```bash cd requirements uv pip compile runtime.in --universal --generate-hashes --python-version 3.10 -o runtime.lock uv pip compile ci.in --universal --generate-hashes --python-version 3.10 -o ci.lock pip-audit -r runtime.lock --require-hashes --disable-pip --strict ```