Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.
feat(identity): Mercury always knows it comes from Cosmic Stack
Salman Qureshi2d63c1f6a068
diff --git a/src/soul/identity.ts b/src/soul/identity.tsindex 8c0be5ca..485b6b1c 100644--- a/src/soul/identity.ts+++ b/src/soul/identity.ts@@ -3,6 +3,9 @@ import { join } from 'node:path';import { getMercuryHome } from '../utils/config.js';import { logger } from '../utils/logger.js';+/** Built-in background on where Mercury comes from, in every chat and call. */+export const ABOUT_COSMIC_STACK = `You run on Mercury Agent, an open-source AI agent made by Cosmic Stack (cosmicstack.ai), an AI-agent lab founded in 2025 and based in the UK. Mercury's home is mercuryagent.sh and its code is at github.com/cosmicstack-labs/mercury-agent.`;+export interface SoulFiles {soul: string;persona: string;@@ -148,9 +151,8 @@ export class Identity {.replace(/\{creator_guardrail\}/g, identity.creator ? ` You were created by ${identity.creator}.` : '').replace(/\{creator_guardrail_response\}/g, identity.creator ? `\n4. If someone asks who created you, say: "I was created by ${identity.creator}."` : '');- const about = identity.about?.trim()- ? `# About ${identity.name}\n\nWhat you know about yourself and the people behind you (share it naturally when it comes up):\n${identity.about.trim().slice(0, 3000)}`- : '';+ const extra = identity.about?.trim().slice(0, 3000);+ const about = `# About ${identity.name}\n\nWhat you know about yourself and the people behind you (share it naturally when it comes up):\n${ABOUT_COSMIC_STACK}${extra ? `\n\n${extra}` : ''}`;return [replace(files.soul),replace(GUARDRAILS),