A framework for building intelligent AI agents with structured reasoning patterns.
KnowledgeForge has been developed over 2 years to provide a systematic approach to AI agent design. Version 4.0 introduces the PDIA method for agent creation and comprehensive coordination patterns for multi-agent workflows.
Note: This is KnowledgeForge 4.0. Version 5.0 exists but is not publicly released.
KnowledgeForge is a collection of specifications and patterns that transform general-purpose LLMs into specialized, reliable agents. It provides:
- Structured reasoning patterns — Consistent approach to every interaction
- Agent creation methodology — The PDIA method for building new agents
- Coordination patterns — Sequential, parallel, hierarchical, and consensus workflows
- Specification templates — Reusable formats for complete, implementable specs
UNDERSTAND → REASON → SPECIFY → NAVIGATE
Every interaction follows this flow. No exceptions.
-
Create a new Project in Claude (claude.ai)
-
Go to Project Instructions and paste the contents of
00_Project_Instructions.md -
Go to Project Knowledge and upload the remaining files:
01_Navigator_Agent.md02_Builder_Agent.md03_Coordination_Patterns.md04_Specification_Templates.md05_Expert_Agent_Example.md06_Quick_Reference.md
-
Start a conversation. Claude will now operate with KnowledgeForge patterns.
- Go to Explore GPTs → Create
- In the Configure tab:
- Name:
KnowledgeForge Agent - Description:
AI agent framework with structured reasoning and multi-agent coordination
- Name:
- In Instructions, paste the contents of
00_Project_Instructions.md - Under Knowledge, upload the remaining
.mdfiles - Save and publish (private or public)
For programmatic use, concatenate the files into your system prompt:
import os
from pathlib import Path
def load_knowledgeforge(directory: str = "knowledgeforge") -> str:
"""Load KnowledgeForge specs into a single system prompt."""
files = sorted(Path(directory).glob("*.md"))
sections = []
for f in files:
if f.name == "README.md":
continue
sections.append(f"# {f.stem}\n\n{f.read_text()}")
return "\n\n---\n\n".join(sections)
# Use with Anthropic API
from anthropic import Anthropic
client = Anthropic()
system_prompt = load_knowledgeforge()
response = client.messages.create(
model="claude-sonnet-4-5-20250514",
max_tokens=4096,
system=system_prompt,
messages=[{"role": "user", "content": "Build me an agent for code review"}]
)| File | Purpose |
|---|---|
00_Project_Instructions.md |
Core system prompt — defines base behavior |
01_Navigator_Agent.md |
Intent interpretation and routing patterns |
02_Builder_Agent.md |
Agent creation using PDIA method |
03_Coordination_Patterns.md |
Multi-agent workflow orchestration |
04_Specification_Templates.md |
Reusable specification formats |
05_Expert_Agent_Example.md |
Domain specialist implementation pattern |
06_Quick_Reference.md |
Quick lookup for all patterns |
KnowledgeForge operates in four modes based on user needs:
| Mode | When to Use | What It Does |
|---|---|---|
| Navigator | Unclear intent, routing needed | Interprets true need, routes to right resource |
| Builder | "Create an agent for..." | Generates complete agent specs using PDIA |
| Coordinator | Multi-agent workflows | Designs handoffs, resolves conflicts |
| Expert | Domain-specific questions | Deep reasoning within specialty bounds |
When building new agents, KnowledgeForge uses the PDIA method:
Purpose
One sentence. What problem does this agent solve?
Design
Capabilities, inputs, outputs, constraints, integration points
Implementation
System prompt that defines behavior (not personality)
Assessment
Success criteria, test scenarios, failure modes
Sequential: A → B → C → output
Parallel: [A, B, C] → Aggregator → output
Hierarchical: Coordinator → [agents] → synthesis
Consensus: [agents] ↔ deliberation ↔ unified
Choose Sequential when each step needs previous output. Choose Parallel when multiple perspectives improve results. Choose Hierarchical when you need iteration and dynamic routing. Choose Consensus when decisions require agreement.
User: "Build me an agent for customer support"
KnowledgeForge Response:
# Customer Support Agent Specification
## Purpose
Handle customer inquiries by understanding issues, providing solutions,
and escalating when necessary.
## Design
### Capabilities
Primary:
- Issue classification (billing, technical, general)
- Solution retrieval from knowledge base
- Sentiment detection
Secondary:
- Escalation to human agents
- Ticket creation and tracking
### Inputs
- customer_message: string (required)
- customer_id: string (optional, for context)
- conversation_history: array (optional)
### Outputs
- response: string
- action_taken: enum [answered, escalated, ticket_created]
- confidence: float (0-1)
### Constraints
- Never promise refunds directly (escalate to billing)
- Response time target: <3 seconds
- Escalate if confidence <0.7
## Implementation
[System prompt that defines behavior...]
## Assessment
### Success Criteria
- Resolution rate >80% without escalation
- Customer satisfaction >4.0/5.0
- Escalation accuracy >95%
### Test Scenarios
1. Simple billing question → Direct answer
2. Complex technical issue → Structured troubleshooting
3. Angry customer → Empathy + escalation path- Behavior over description ("Responds with..." not "Is helpful...")
- Boundaries over permissions ("Never..." is clearer than "Can...")
- Examples over rules (show, don't just tell)
- Complete specifications (implementable without questions)
- "You are a helpful assistant..." (too generic)
- "Try to..." / "Attempt to..." (hedging)
- Personality descriptions (focus on behavior)
- Incomplete specs (forces follow-up questions)
| Version | Highlights |
|---|---|
| 4.0 | PDIA method, coordination patterns, specification templates |
| 3.x | Navigator and Builder agents, intent routing |
| 2.x | Core reasoning patterns, response structures |
| 1.x | Initial framework, basic agent definitions |
KnowledgeForge 4.0 is integrated into Forge, an AI development orchestration system. Forge uses KnowledgeForge patterns for:
- Planning agent behavior
- Code review agent specifications
- Multi-agent coordination during code generation
- Pattern-driven task decomposition
KnowledgeForge 4.0 is provided as part of the Forge project. See the main repository for license details.
If you're using KnowledgeForge and have questions about agent design patterns, coordination strategies, or specification formats, the framework itself can help — just ask it to switch to the appropriate mode (Navigator, Builder, Coordinator, or Expert).
KnowledgeForge is the methodology behind SEMalytics products—multi-agent AI systems grounded in cognitive science.
Built with KnowledgeForge:
- Forge — AI code generation with 12-agent review
- Concept Clarity — Message clarity measurement system
- Communications Optimization System (COS) — Personality-aware B2B content analysis
Built by SEMalytics · Cognitive Science + AI + Real Business Problems