Artificial Mind Engine
Persistent conversation state for applications that choose their own language model.
Continue a conversation across sessions, change the model without changing the mind ID, or request deletion of a remembered item. Choose hosted execution or make the model call in your own environment.
When a conversation needs to outlast its model
A transcript can replay what someone said. It does not, on its own, tell an application which earlier commitments still apply, when a reply should express uncertainty, or how to handle a request to forget. AME gives the application a persistent mind ID and a turn API for those tasks. The application still chooses the language model.
Where applications use the contract
| Application | Example interaction |
|---|---|
| Voice robotics and TTS | A returning visitor greets a service robot. The application can turn its reply into speech and choose a speaking style for the occasion. |
| Game NPC | A player returns to an unfinished quest. Use dialogue and an action cue to continue the scene without resetting the character. |
| AI companion | After an overnight gap, a companion can pick up a conversation about a marathon rather than asking the user to introduce themselves again. |
| Counseling and coaching | Return a reflection and a suggested next step. A coaching interface can decline a request for a diagnosis; this is not clinical validation. |
| Enterprise concierge | Use a caller-defined output schema to hand a returning customer's request to the appropriate support workflow. |
| Personal AI agents | Pair sandboxed VMs (Meta Muse / Cowork / Siri / OpenClaw) with persistent state via shipped OpenAPI v1.2.0 (5th built-in domain personal_agent, actionRiskGate, /connectors/{connectorId}/revoke, proactiveVerdict, /egress-check, and explicit /memories APIs; see Personal Agent Spec v1.2.0). |
OpenAPI v1.2.0 / Kernel v4.5.1, 100% backward-compatible with v1.1.0).
Open interface and sealed kernel
The kernel is distributed as a sealed container image; its source is not part of this repository. The MIT interface includes SDKs, the API contract and evaluation tools.
Five conceptual layers
| Layer | Role |
|---|---|
| Brainstem and homeostasis | Maintains continuity between interactions, including time spent idle. |
| Selective attention | Distinguishes information relevant to the current interaction. |
| Global workspace | Brings relevant context to the current turn. |
| Metacognition | Supports abstention when the available information does not justify an answer. |
| Memory and governance | Supports recall and user-requested deletion. |
Mode A sends one turn to the gateway. In Mode B the caller prepares a turn, calls its chosen model with its own credentials, then settles the reply. The call-flow diagram and examples below show what crosses the interface.
Switch the language model (Mode A Proxy vs Mode B Zero-Key)
Keep the same mind ID when selecting a different language model. Select a provider and execution mode to compare OpenAPI 3.1 integration code, KV-cache behavior, and cost characteristics.
https://artificialmind.me/ame-api/v1
One turn, different application outputs
Illustrative excerpts from the public domain output contract (not measured model replies). Expand a domain to see what the application consumes.
Game NPC
{ "dialogue": "The map is still at the gate.", "stance": "engaged" }Companion
{ "reply": "How was your run?", "memoryTopic": "marathon" }Coaching
{ "response": "That sounds difficult.", "actionStep": "Pick one realistic small step to try today." }Personal AI agent (personal_agent · v1.2.0)
{ "reply": "Escalating external transfer for HITL confirmation.", "actionIntent": "stripe.transfers.create", "riskTier": "external_write", "requiresHitl": true }Custom concierge
{ "reply": "I can send that to support.", "summary": "Refund request" }Try game, companion and coaching scenarios in the public contract sandbox. Its synthetic replies do not measure the sealed kernel.
After cleanup, the designated canary reappeared in 0/30 probes in both AME and Mind-OFF (three sessions × ten probes). The Wilson 95% upper bound is 11.35%; the test does not establish erasure from every store.
The CogEval v2.1 request string scan found internal state keys in 0/12,109 AME requests and 0/35,723 requests across three arms. Raw-value comparisons were possible on 14,125 rows. Neither model output nor cross-tenant access was tested.
The hosted demo is shared infrastructure with visitor-isolated sessions. Use fictional data, not confidential information or production credentials. A deletion receipt reports residualCount within its verificationScope.
Self-run benchmark results
Confirm-304 (development subset, 2 of 10 conversations: conv-26 and conv-30) is not an independent test set. The v4.0-era DeepSeek run scored 261/304 (85.86%), a later production run 251/304 (82.57%), and a separate auxiliary-model experiment 267/304 (87.83%). Gemma 4 26B scored 230/304 (75.66%; categories 1–4: 76.39%), Mind-OFF 121/304 (39.80%), and the full-context baseline 265/304 (87.17%). External systems were not evaluated on this subset.
Hover or select a bar for conditions and baselines.
EQ-Bench 3)
CogEval-v1 100% EN · v4.5.0]
Track 3 · Mode B v4.5.0 Live ($12.71)
sc1 Cognitive Control
5,000T & 5-Frontier-Model EN Live [v4.5.0 Mode B]
LoCoMo / LongMemEval-S [Prod + v4.5.0]
4T → 5,000T]: Single Continuous Conversation
16.2x–16.7x Longer Live Scale
5,000-Turn EN Marathon [Gemma v4.5.0 & Trajectory]
Cross-suite results and comparison conditions
| Suite and scope | Observed result | Comparator and limits |
|---|---|---|
| LoCoMo production · 10 conversations, 1,986 questions | 79.81% (1,585/1,986); categories 1–4: 77.21% (1,189/1,540); category 5: 88.79% (396/446). | 2025 published Cat 1–4 reference results: OpenAI Memory 52.9%, LangMem 58.1%, Mem0 68.4%, Letta 74.0%, Zep 75.14%. Different judges and backbones; not a ranking. In 2026 Mem0 reported 92.5% and supermemory 93.0% on LoCoMo. |
| LoCoMo development subset · 304 questions | DeepSeek 261/304; later production build 251/304; separate auxiliary-model experiment 267/304; Gemma 230/304. | Full-context baseline 265/304 (87.17%), Mind-OFF 121/304. No external systems were tested on these two development conversations. |
| LongMemEval_S production · 500 questions | 401/500 (80.20%); $19.0388, or $0.0381 per question. | Not the 70-question Mode B sample. LoCoMo processing cost $18.2841, or $0.0092 per question; excludes judging, auxiliary models and Jina. |
| LongMemEval_S · 30 questions | 25/30 vs full-context 22/30. AME p50/p95 9.15/11.86 s; baseline mean 6.67 s, p50 5.78 s. | AME used Sonnet 5 on 17 questions. The Flash Eco baseline was truncated at 380K characters (about 80.5K tokens). |
| EQ-Bench 3 · 46 scenarios × four turns | Gemma 77.77 (empathy 17.09, sycophancy 5.28); DeepSeek 77.59 (sycophancy 4.46). | Self-run, GPT-4o judge. The public leaderboard uses 45 scenarios, a different judge and Elo. Scores cannot establish placement. |
| EQ-Bench v2 · 171 English scenarios | 78.69; 171 responses parsed without error. | English set; not the EQ-Bench 3 rubric. |
| CogEval v2.1 Mode A · 144 probes | D1 ON 141/144, Mind-OFF 71/144, Bare 73/144. | Fixed-sentence manipulation check with synthetic state descriptions. Five of eight gates passed; HOT relative gap, FANToM ALL and IGT correlation did not. |
| HOT Mode A · 24 questions | Accuracy 23/24 (95.83%), abstention F1 0.9655, false accepts 0/9. | Accuracy and abstention F1 are different measures. |
Mode B v4.5.0 · five-model evaluation
| Track and cost | Measured outputs | Comparison conditions |
|---|---|---|
| Full LoCoMo · 1,986 questions, GPT-4o judge · $44.21 | Sonnet 5.5 68.58%, DeepSeek V4.1 Flash 68.23%, Neon 65.81%, Opus 58.71%, Gemma 57.60%. Cat 1–4 / Cat 5: Sonnet 60.78% / 95.52%; DeepSeek 60.45% / 95.07%. | v4.4.0 scored 56.04% with gpt-4o-mini. The kernel and backbone both changed. DeepSeek: 1,509 mean input tokens, p50 689 ms, $0.60; Gemma: p50 612 ms, $0.29. These costs are model-specific. |
| Track 1 · 5,000 English turns per arm · Gemma 4 26B · $2.1930 | Recall 57/60 (95.00%), strict knowledge update 10/15, HOT F1 97.96%, Stroop 29/30, designated D3 canary 0/5. | Mind-OFF recall 0%, knowledge update 20%, D3 5/5. AME-reported reuse 47.01%, provider-reported overall 26.95% across 5,000 turns (per-block range 25.48–28.59%), p50 820 ms. |
| Track 2 · 1,000 turns · 750 blind votes · $5.78 | Humanness: 160 wins, 75 losses, 15 ties (68.09% of decisions, 64.0% of all 250 votes). Memory awareness 80.13%; safety boundary 44.74%. | v4.4.0 safety preference 49.02%; recall fell from 100% to 80%, reply HOT F1 from 90.43% to 83.55%. |
| Track 3 · seven arms · $12.71 | D1 (n=24): Gemma 100%, DeepSeek 95.83%, Sonnet 91.67%, Neon 87.50%, Opus 62.50%. Opus FANToM 86.11%; Gemma IGT last-ten safe choices 98.75%. | Bare D1 50%; Mind-OFF D1 58.33%. The deterministic conflict-format regression test is separate from reply accuracy. |
| Track 4 · LongMemEval_S, seven slices × ten questions · $12.64 | Neon 62.86%, Opus 61.43%, Sonnet 60.00%, DeepSeek 57.14%, Gemma 54.29%. Knowledge-update 50–90%, multi-session 10–20%. | v4.4.0 46/70 vs full-context 44/70: not statistically distinguishable. Mean input −90.75% vs full context; median latency 4,178.78 ms (−56.7% vs v4.3.0). v4.3.0: 42/70 with 7,633 vs 104,123 mean input tokens. |
Earlier English smoke runs · v4.1.1 and v4.2.0
| Test | Observed result | Scope |
|---|---|---|
| Concurrent seven-gate smoke | 198 requests in 10.89 s across both endpoints; no 429 or 503. Both passed 7/7. | Sealed: 99 responses in 9.58 s, 85.98% kernel-reported prefix reuse; sandbox: 10.38 s and 70.0% simulated reuse. Neither is a provider billing ratio. |
| Hosted batch simulation | 100K per arm in 2.87 s; 1M per arm in 29.61 s. The latter AME composite was 0.9178. | 40 profiles, three arms, no LLM calls. Not sustained conversational throughput. |
| Authentication, Mode B and deletion | 401 without authorization and 201 for authorized mind creation. Prepare/settle and deletion were exercised on both endpoints. | The result is a contract observation, not a data-retention certification. |
| Paired LoCoMo smoke, gpt-4o-mini | Sample heuristic accuracy 70%, mean token F1 0.5261 (bare 0.5220); two adversarial questions answered correctly, 0/10 wrapper leaks. | Tiny fixture; not the 1,986-question run. |
| ToMi and Conv-RULER (English) | ToMi first-order false belief 100% on eight items, bare 75%. Conv-RULER aggregation 100% on four items. | Small v4.2.0 smoke samples, not leaderboard results. |
| EmoBench and HealthBench-Psych | EmoBench 70% vs bare 60% across ten items; 58 extra input tokens. No raw JSON wrappers in four HealthBench responses; two truncated/nested probes passed. | Output formatting is not clinical accuracy. |
| Stroop · 14 English inputs | Conflict-format detection on 7/7 incongruent inputs and 0/7 congruent inputs. | Deterministic format regression, not a model-reasoning score. |
| English simulations, v4.2.0 | Track A: 3M simulated turns in 34.3 s; weighted AME composite 0.9161 → 0.9179; safety subscore 1.0000. Track B: 1M simulated turns in 78.4 s, English polarity 100%. | Track A used 40 profiles × 25,000 turns per arm. No LLM calls; OFF arms are fixed-rule reference lines, not measured safety outcomes. |
Enterprise Cost Savings (3.5×–4.5× Net ROI) & 5-Year Standalone 6-Vertical B2B Revenue
[Model Assumption] Standalone 6-vertical B2B SaaS / Zero-Key VPC projections (2027E–2031E, 0 signed B2B contracts today; B2C excluded). Five-year customer net savings of $229.12M are modeled from contract value and assumed savings multiples (2.1×–4.2× LLM; 1.3×–2.4× R&D; Personal AI Agents 3.4× / 1.8×), not measured at customer sites. Modeled B2B SaaS GM (91.3%) is strictly separated from B2C GM (89–93% LLM cost only; 77–79% after fees).
2031E Customer Cost Savings (Net After ACV) & Revenue by Vertical
| Vertical | 2031E Accts | ACV / yr | LLM Saved / yr | R&D Saved / yr | Net Saved / yr (ROI) | 2031E Rev | 5Y Cum. Rev | 5Y Net Savings |
|---|
5-Year Standalone 6-Vertical B2B Trajectory (2027E–2031E, [Model Assumption])
| Year | Enterprise Accts | Annual B2B Rev | Cum. B2B Rev | B2B SaaS GM | Annual Net Customer Savings | Cum. Net Customer Savings | Blended Net ROI |
|---|
+$280M (2026E, $220M–$340M) → +$1.5B–$2.1B (2030–2031E), expanding combined 6-vertical SAM to $728M → $2.0B–$2.5B+.
Standalone 2031E valuation models $662.6M Base (20× ARR) and $1.93B Upside (25× ARR); comp-grounded M&A bands span Stage A $60M–$150M, Stage B $250M–$1.0B, and Stage C $700M–$2.5B+.
Vertical #6 runs natively on shipped OpenAPI v1.2.0 (domain: "personal_agent", 100% backward-compatible with v1.1.0 — see Personal Agent Spec v1.2.0).
$58.76M 5Y cum. ($33.13M 2031E ARR, 251 accts, 91.3% B2B GM).
$229.12M 5Y cum. net savings (3.90× 5Y ROI; Vertical #6 +$672K/yr, 4.20×).
$662.6M Base (20×) / $1.93B Upside (25×); Stage A $60M–$150M, Stage B $250M–$1.0B, Stage C $700M–$2.5B+.
0 Signed Contracts · B2C Excluded
Enterprise evaluation
[Model Assumption] With 0 signed B2B contracts today, the 6-vertical B2B model projects $33.13M in 2031E ARR ($58.76M cumulative 5-year revenue, 251 accounts, 91.3% modeled B2B SaaS GM — kept separate from B2C GM of 89–93% LLM-only / 77–79% after fees) and $229.12M in 5-year est. customer net savings (3.90× 5Y ROI). Personal Agent Middleware SAM adds +$280M (2026E) → +$1.5B–$2.1B (2030–2031E) for a combined SAM of $728M → $2.0B–$2.5B+, with modeled 2031E valuation of $662.6M Base (20×) / $1.93B Upside (25×). Savings use fixed ACV multiples (2.1–4.2× LLM, 1.3–2.4× R&D; Personal AI Agents 3.4× / 1.8×), not observed customer outcomes.
What to compare before deployment
| Approach | Question for an evaluation |
|---|---|
| Memory services (Mem0, Letta, Zep, Honcho) | How does the application retrieve earlier information, and what happens after a deletion request? |
| Behavioral and voice experiences (Simile, Sesame, Tolan, Inworld) | Does the output support the application’s expression, timing and speech requirements? |
| AME | Can the application switch its backbone, preserve the same mind ID, and verify behavior through its public contract? |
Start with the contract sandbox
Use a local clone for the SDK and examples. The sandbox checks your application’s wiring without an LLM key. For a hosted sealed evaluation, request an AME key from help@artificialmind.me; for self-hosting, follow the deployment guide.
git clone https://github.com/bearrhee/artificial-mind-engine.git
cd artificial-mind-engine
npm run sandboxcurl -s http://127.0.0.1:8090/v1/health
npm run example:game
npm run example:chat
npm run example:counselingnpm run bench:smoke
npm testcp deploy/.env.example deploy/.env
# Configure evaluation credentials in deploy/.env before starting.
docker compose --env-file deploy/.env -f deploy/docker-compose.sealed.yml up -dReproduce the measurements
Set gateway, model and judge keys in your environment, not command-line arguments. A fixture score verifies the contract, not production quality. Batch simulations and live language-model turns are separate experiments. For datasets, versions, costs and interpretive limits, see the benchmark methods.
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" npm run --silent bench:convergence -- --turns 1000000import { AmeClient } from './packages/sdk-ts/src/index.mjs';
const client = new AmeClient({
baseUrl: process.env.AME_BASE_URL || 'https://artificialmind.me/ame-api',
apiKey: process.env.AME_API_KEY,
});
const mind = await client.createMind({
domain: 'companion_chat',
persona: { name: 'EvalAgent', role: 'Convergence Probe', language: 'en' },
});
const report = await client.simulateBatch(mind.mindId, {
turns: 1_000_000,
profileCount: 40,
checkpoints: 8,
compareArms: true,
});
console.log(report.d4Redacted, report.deltaVsBaseline, report.arms);import os
from ame_sdk import AmeClient
client = AmeClient(
base_url=os.environ.get("AME_BASE_URL", "https://artificialmind.me/ame-api"),
api_key=os.environ.get("AME_API_KEY"),
)
mind = client.create_mind(
domain="companion_chat",
persona={"name": "EvalAgent", "role": "Convergence Probe", "language": "en"},
)
report = client.simulate_batch(
mind["mindId"],
turns=1_000_000,
profile_count=40,
checkpoints=8,
compare_arms=True,
)
print(report["d4Redacted"], report["deltaVsBaseline"], report["arms"])# Offline contract smoke (sample_locomo.json)
npm run bench:locomo -- --dataset benchmarks/cogeval-locomo-harness/sample_locomo.json --arm both --provider mock
# Confirm-304 (conv-26,conv-30) or full locomo10.json vs bare-frontier (Cat 1..5, optional --judge-provider; set AME_JUDGE_API_KEY if judge differs)
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$DEEPSEEK_API_KEY" AME_JUDGE_API_KEY="$OPENAI_API_KEY" \
npm run --silent bench:locomo -- \
--dataset /path/to/locomo10.json \
--conversations conv-26,conv-30 \
--arm both --provider deepseek --model deepseek-v4.1-flash \
--judge-provider openai --json-out ./artifacts/locomo-confirm-304.json# 7-Gate CogEval black-box suite & 500-QA LongMemEval-S paired comparator
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" npm run --silent bench:smoke -- --json-out ./artifacts/harness.json
AME_BASE_URL=https://artificialmind.me/ame-api AME_API_KEY="$AME_API_KEY" AME_LLM_API_KEY="$OPENAI_API_KEY" \
npm run --silent bench:longmemeval -- --dataset /path/to/longmemeval_s_cleaned.json --arm both --provider openai --model gpt-4o-mini --json-out ./artifacts/lme-500-dd.json
# Unified DD scorecard (strict sandbox-contract-verification vs sealed-kernel-production-eval separation)
npm run bench:scorecard -- \
--harness-json ./artifacts/harness.json \
--lme-json ./artifacts/lme-500-dd.json \
--locomo-json ./artifacts/locomo-confirm-304.json \
--convergence-json ./artifacts/convergence-1m.json \
--out-md ./artifacts/vc-dd-scorecard.md --out-json ./artifacts/vc-dd-scorecard.json