🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { describe, expect, it } from 'vitest';
import { systemPrompt } from './systemRole';
describe('systemPrompt', () => {
it("should route the user's uploaded files here instead of Agent Documents", () => {
expect(systemPrompt).toContain(
'this Knowledge Base tool is the correct tool, not Agent Documents',
);
});
it('should mandate listFiles before readKnowledge as the primary path for file requests', () => {
expect(systemPrompt).toContain('Always use listFiles first');
expect(systemPrompt).toContain(
'it works regardless of whether the file has been organized into a knowledge base, and does not require the file to be pre-indexed',
);
});
it('should scope searchKnowledgeBase to organized knowledge bases only, excluding the resource library', () => {
expect(systemPrompt).toContain(
'searchKnowledgeBase only covers files already organized into a knowledge base, not the general resource library',
);
});
it('should order sandbox/CLI file listing as a last resort after listFiles and searchKnowledgeBase', () => {
expect(systemPrompt).toContain(
'Treat any sandbox/CLI file-listing command as a last-resort fallback only, after both listFiles and searchKnowledgeBase have been tried.',
);
});
it('should route edits of existing documents to updateDocument instead of recreating them', () => {
expect(systemPrompt).toContain(
"10. Edit an existing document's content, title or location in place (updateDocument)",
);
expect(systemPrompt).toContain(
'To change an existing document use updateDocument, do not recreate it.',
);
});
});