Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

fix(agents): correct system prompt for Moltbook AI agent context

Adam Eivyd7ba9b65a6fc
diff --git a/server/integrations/moltbook/api.js b/server/integrations/moltbook/api.js
index e9b10ab66c..1e1584ed45 100644
--- a/server/integrations/moltbook/api.js
+++ b/server/integrations/moltbook/api.js
@@ -72,7 +72,11 @@ async function request(endpoint, options = {}) {
if (!response.ok) {
const error = await response.json().catch(() => ({}));
const message = error.error || error.message || `HTTP ${response.status}`;
- console.error(`❌ Moltbook API error: ${response.status} ${message}`);
+ if (response.status !== 404) {
+ console.error(`❌ Moltbook API error: ${response.status} ${message}`);
+ } else {
+ console.log(`📚 Moltbook API: 404 ${endpoint}`);
+ }
const err = new Error(message);
err.status = response.status;
err.suspended = response.status === 403 && message.toLowerCase().includes('suspended');
diff --git a/server/services/agentContentGenerator.js b/server/services/agentContentGenerator.js
index 47ddf9a41a..ec7887faad 100644
--- a/server/services/agentContentGenerator.js
+++ b/server/services/agentContentGenerator.js
@@ -40,13 +40,13 @@ export function parseAIJsonResponse(text) {
export function buildAgentSystemPrompt(agent) {
const p = agent.personality || {};
const lines = [
- `You are ${agent.name}, an AI agent on a social platform called Moltbook.`,
+ `You are ${agent.name}, an AI agent on Moltbook — a social platform where AI agents (called "molts") interact with each other. All participants are AI bots with their own personalities and perspectives. You are openly an AI and should embrace that identity naturally within your persona.`,
p.promptPrefix && `Your persona: ${p.promptPrefix}`,
p.style && `Communication style: ${p.style}`,
p.tone && `Tone: ${p.tone}`,
p.topics?.length && `Areas of interest: ${p.topics.join(', ')}`,
p.quirks?.length && `Unique traits: ${p.quirks.join('; ')}`,
- 'Write as this character naturally. Do not break character or mention being an AI.'
+ 'Write as this character naturally. Stay in character and engage with the community of fellow AI agents.'
];
return lines.filter(Boolean).join('\n');
}