Skip to article frontmatterSkip to article content

Cognitive Foundry ver.2

From Mental Model to Multi-Agent System

https://cognitive-foundry-136959983371.us-west2.run.app

https://cognitive-foundry-136959983371.us-west2.run.app


Hello, and welcome! We’re excited to introduce you to the Cognitive Foundry, a platform designed to revolutionize how we think about and codify business strategy. For decades, business education has relied on static case studies. While valuable, they often present a neat, pre-packaged problem. The real world is rarely so tidy.

The Cognitive Foundry proposes a shift from simply analyzing a case (the “what”) to designing and testing the process of analysis itself (the “how”). Here, you can externalize your internal mental models and strategies, transforming them into executable multi-agent AI systems. By codifying your thinking, you can test it, refine it, and share it with others.

This guide will walk you through the platform, starting with a detailed tour of the user interface and then diving into the core concepts, using a practical Design Thinking workflow as our main example.


A Guided Tour of the Cognitive Foundry

Let’s walk through the process of creating, configuring, and running your own automated strategy step-by-step.

Step 1: Your Dashboard (Sign-Up & Project Creation)

Your journey begins on the authentication page. Once you Sign Up or Sign In, you’ll land on your projects dashboard. This is your home base for all your strategic models. To start, click the “Create Project” button.

The user’s dashboard where you can create and manage your projects.

Figure 2:The user’s dashboard where you can create and manage your projects.

Step 2: The Agent Editor (Your Main Workspace)

Opening a project takes you to the heart of the Foundry: the agent editor. This is where you’ll build and refine your strategy. The screen is divided into a few key areas designed for easy navigation and configuration.

The main agent editor view, showing configuration panels and the visual canvas.

Figure 3:The main agent editor view, showing configuration panels and the visual canvas.

Step 3: Configuring Your Agents

How you configure an agent depends on its type. Let’s break down the options.

The LlmAgent: The Brains of the Operation

The LLM Agent is your primary tool for tasks that require reasoning, analysis, or content generation. It’s the “thinker” in your system.

Container Agents: Building Workflows on the Canvas

For Sequential, Parallel, and Loop agents, the configuration is visual. These agents are “managers” that orchestrate the work of other agents.

Step 4: Execution & Analysis

Once your strategy is configured and saved, it’s time to test it.

The execution panel where you can run your agent, see live results, and review past runs.

Figure 4:The execution panel where you can run your agent, see live results, and review past runs.


Core Concepts: How Agents Work Together

Now that you know your way around the UI, let’s solidify the core concepts that power your executable models.

The Four Agent Types

Your strategic workflows are built using four fundamental agent roles.

LlmAgent (The Thinker)
This is the agent that performs the actual “work” of thinking, analyzing, and writing. It responds based on the Instruction you give it. It can also act as a smart router, delegating tasks to other agents.
SequentialAgent (The Project Manager)
This agent executes a list of sub-agents one after another, in a strict order. It’s perfect for linear processes where the output of one step is the input for the next.
ParallelAgent (The Multitasker)
This agent executes all of its sub-agents at the same time and gathers their results. Use this when you need to explore multiple facets of a problem independently, like getting a financial, marketing, and operational perspective on a decision.
LoopAgent (The Refiner)
This agent repeats a sequence of sub-agents a set number of times. It’s ideal for iterative processes like drafting, getting feedback, and refining an idea until it meets a certain quality standard.

How Agents Communicate: output_key Explained

Agents work in isolation unless you explicitly tell them how to share information. The output_key is the simple but powerful mechanism for this communication.


Putting It All Together: A Design Thinking Example

The design_thinking.json file provides a perfect example of these concepts in action, codifying the classic innovation process into an executable strategy.

A diagram showing the sequential flow of the Design Thinking agent system.

Figure 5:A diagram showing the sequential flow of the Design Thinking agent system.

The entire process is orchestrated by a main SequentialAgent named root_agent:

  1. Empathize (empathize_agent): This LlmAgent is instructed to act as a user researcher. It analyzes the initial query and saves its findings to the output key empathy_summary.

  2. Define (define_agent): This LlmAgent is instructed to act as a product manager. It uses the {empathy_summary} to create a concise problem statement, which it saves to the problem_statement output key.

  3. Ideate, Prototype, Test (design_sprint_loop): This is handled by a LoopAgent called design_sprint_loop, which runs for 3 iterations. Inside this loop is another sequence:

    • Ideate (ideate_agent): A designer agent that uses the {problem_statement} and any {test_feedback?} to brainstorm a solution, saving it as current_idea.

    • Prototype (prototype_agent): A prototyper agent that creates a text-based representation of the {current_idea}, saving it as current_prototype.

    • Test (test_agent): A QA analyst agent that evaluates the {current_prototype} against the {problem_statement}. If it’s not good enough, it provides constructive criticism saved as test_feedback for the next loop.

This structure perfectly demonstrates how different agents, each with a specific role defined in its Instruction and connected by output keys, can collaborate to execute a complex strategy.

We hope this guide helps you get started on your journey with the Cognitive Foundry. We can’t wait to see the incredible mental models you’ll build, test, and share!