Open-Source AI Agent Scientific Research Platform
Mindforge is an open-source AI agent research platform designed for conducting experiments that analyze the behavior of multi-agent AI systems.
App: mindforgeai.app
CA: H96vSNGEEXgc2vUkz2rcHxt7FAoFMnRfsiZfHL8epump
Dev: 0xsimd
Docs: mindforgeai.gitbook.io
- Clone the repository
- Install dependencies:
npm install
- Create a
.env
file with your OpenAI API key:
OPENAI_API_KEY=your_api_key_here
OPENAI_MODEL=gpt-4 # or your preferred model
- Build and start the server:
npm run build
npm start
For development:
npm run dev
Get all previous conversation sessions.
Response:
[
{
"id": "session_123",
"timestamp": "2023-12-20T12:00:00Z",
"topic": "Space Exploration",
"agents": [...],
"messages": [...],
"analytics": {...}
}
]
Get a specific session by ID.
Response:
{
"id": "session_123",
"timestamp": "2023-12-20T12:00:00Z",
"topic": "Space Exploration",
"agents": [...],
"messages": [...],
"analytics": {...}
}
Create a custom agent.
Request body:
{
"isRandom": false,
"conversationTopic": "Space Exploration",
"name": "Dr. Sarah",
"personality": "Analytical and curious",
"background": "Astrophysicist",
"expertise": ["astronomy", "physics"],
"beliefs": ["scientific method", "space exploration"],
"quirks": ["uses space metaphors"],
"communication": "Technical but clear"
}
Response:
{
"name": "Dr. Sarah",
"personality": "Analytical and curious",
"background": "Astrophysicist",
"expertise": ["astronomy", "physics"],
"beliefs": ["scientific method", "space exploration"],
"quirks": ["uses space metaphors"],
"communication": "Technical but clear",
"traits": ["analytical", "curious", "expert"]
}
Generate random agents for a conversation.
Request body:
{
"topic": "Space Exploration",
"numberOfAgents": 3
}
Response:
[
{
"name": "Dr. Sarah",
"personality": "...",
"background": "...",
"traits": [...]
},
...
]
Start a new conversation.
Request body:
{
"topic": "Space Exploration",
"messagesPerAgent": 3
}
Response:
{
"id": "session_123",
"timestamp": "2023-12-20T12:00:00Z",
"topic": "Space Exploration",
"agents": [...],
"messages": [
{
"agentName": "Dr. Sarah",
"content": "The possibilities of interstellar travel fascinate me...",
"timestamp": "2023-12-20T12:00:01Z"
},
...
],
"analytics": {...}
}
Get detailed analysis of a conversation.
Response:
{
"mainTopics": [...],
"agentBehaviorAnalysis": {
"Dr. Sarah": {
"cognitivePatterns": "...",
"emotionalResponses": "...",
"biasesObserved": [...],
"adaptabilityScore": 85,
"consistencyWithRole": "...",
"uniqueCharacteristics": [...]
}
},
"interactionDynamics": {
"powerDynamics": "...",
"influencePatterns": [...],
"groupPolarization": "...",
"cognitiveAlignment": "..."
},
"experimentMetrics": {
"ideaDiversity": 80,
"conversationDepth": 75,
"emotionalIntelligence": 85,
"logicalConsistency": 90,
"creativityScore": 80
},
"emergentBehaviors": [...],
"researchImplications": [...],
"summary": {
"mainConclusions": [...],
"keyDiscussionPoints": [...],
"agreements": [...],
"disagreements": [...],
"overallTone": "...",
"suggestedNextTopics": [...]
}
}
All endpoints return appropriate HTTP status codes:
- 200: Success
- 400: Bad Request (invalid input)
- 404: Not Found
- 500: Internal Server Error
Error responses include a message:
{
"error": "Error message here"
}