Back to Portal

J4C Enhanced Agent Framework

Comprehensive Feature Documentation

Version 3.4.0

Overview

J4C (Jeeves for Coders) Enhanced Agent Framework is a comprehensive AI agent enhancement platform that provides cognitive tools for structured thinking, team-wide learning, and intelligent decision-making.

Key Capabilities: 22 mental models, 7 reasoning strategies, team learning, confidence calibration, and comprehensive analytics.

Mental Models

22 cognitive frameworks organized into 7 categories for comprehensive problem analysis and decision-making.

Chain of Thought

7 reasoning strategies with step-by-step explainable logic, verification, and backtracking support.

Team Learning

Cross-agent experience sharing, problem-solution pattern recognition, and team-wide insights.

Analytics

Real-time usage statistics, model effectiveness tracking, and comprehensive reporting.

Mental Models Engine

The J4C framework provides 22 mental models organized into 7 categories, each designed to enhance AI agent decision-making for specific problem types.

Model Categories

Category Models Best For
Analytical First Principles, Systems Thinking, Pattern Recognition, Analogical Reasoning, Circle of Competence Deep problem understanding, root cause analysis
Creative Lateral Thinking, Inversion Novel solutions, creative problem-solving
Decision Cost-Benefit, Probabilistic, Pareto (80/20), Occam's Razor, Cynefin Framework Making choices, prioritization
Risk Risk Assessment, Second-Order Thinking, Feedback Loops, Constraints, Margin of Safety Risk evaluation, impact analysis
Systems Entropy System design, complexity management
Human & Org Incentives, Conway's Law Team dynamics, organizational design
Strategic Reversible vs Irreversible, Pre-mortem Analysis Strategic decisions, planning

Model Details

Analytical Models

Creative Models

Decision Models

Risk Models

Chain of Thought Reasoning

J4C implements 7 sophisticated reasoning strategies for step-by-step explainable decision-making.

Reasoning Strategies

Forward Chaining

Start from known facts and derive conclusions through logical inference.

Backward Chaining

Start from the goal and work backwards to find the path.

Bidirectional

Search from both ends and meet in the middle for efficiency.

Depth First

Explore each branch deeply before moving to the next.

Breadth First

Explore all options at current level before going deeper.

Best First

Always follow the path with highest confidence/probability.

Monte Carlo

Sample multiple random paths to estimate optimal solution.

Reasoning Step Types

  1. Observation - Initial facts and evidence gathering
  2. Hypothesis - Proposed explanation or solution
  3. Deduction - Logical inference from premises
  4. Induction - Generalization from specific cases
  5. Abduction - Best explanation inference
  6. Analysis - Breaking down complex elements
  7. Synthesis - Combining elements into whole
  8. Evaluation - Assessing quality and validity
  9. Decision - Making choices based on analysis
  10. Verification - Confirming results
  11. Backtrack - Revising previous steps

Team Learning System

The team learning system enables AI agents to share experiences and learn from each other across the entire team.

Key Features

Learning Data Structure

{
  "problemType": "performance",
  "problemDescription": "N+1 query pattern causing slow API",
  "domain": "database",
  "context": {
    "framework": "TypeORM",
    "database": "PostgreSQL"
  },
  "solution": "Use eager loading with .leftJoinAndSelect()",
  "modelsUsed": ["first_principles", "systems_thinking"],
  "effectiveness": 0.95,
  "tags": ["n+1", "performance", "typeorm"]
}

Team Insights

Team insights aggregate learning across all agents:

Confidence Calibration

J4C implements sophisticated confidence calibration to ensure AI agents accurately estimate their certainty.

Features

Confidence Levels

Level Range Interpretation
Very High 0.90 - 1.00 Strong evidence, high certainty
High 0.75 - 0.89 Good evidence, confident
Moderate 0.50 - 0.74 Some evidence, uncertain
Low 0.25 - 0.49 Limited evidence, speculative
Very Low 0.00 - 0.24 Minimal evidence, guessing

Analytics & Reporting

Comprehensive analytics and reporting for monitoring system health and usage patterns.

Real-Time Analytics

Available Reports

Usage Report

API usage statistics, trends, and patterns over time.

Models Report

Mental model usage distribution and effectiveness scores.

Learning Report

Team learning statistics and pattern analysis.

Health Report

System health metrics, uptime, and performance.

Prometheus Metrics

# Available metrics at /api/v3/metrics
j4c_requests_total          - Total API requests
j4c_uptime_seconds          - Server uptime
j4c_memory_heap_bytes       - Memory usage
j4c_agent_sessions_total    - Active agent sessions
j4c_model_effectiveness     - Model effectiveness scores

GNN Recommendation Engine

J4C v3.2 introduces a Graph Neural Network-inspired recommendation system that models relationships between mental models, problem domains, and historical success patterns.

Key Innovation: The GNN engine uses message passing and attention mechanisms to provide context-aware model recommendations.

Architecture

GNN Endpoints

Endpoint Description
GET /api/v3/agent/recommend Get GNN-powered model recommendations for a domain
GET /api/v3/agent/gnn/combinations Find optimal model combinations for complex problems
GET /api/v3/agent/gnn/chain Get reasoning chain templates (root_cause, architecture_review, etc.)
GET /api/v3/agent/gnn/graph Retrieve the model graph structure and statistics
POST /api/v3/agent/gnn/feedback Submit feedback to improve recommendations

Reasoning Chain Types

Root Cause Analysis

First Principles → Systems Thinking → Inversion for debugging

Architecture Review

Systems Thinking → Conway's Law → Second-Order Thinking

Performance Optimization

Constraints → Pareto → First Principles for performance

Security Assessment

Risk Assessment → Pre-mortem → Inversion for security

Example: Get Recommendations

curl "http://j4c.aurigraph.io/api/v3/agent/recommend?domain=debugging&problemType=bug"

# Response
{
  "engine": "GNN",
  "domain": "debugging",
  "recommendations": [
    {
      "model": "first_principles",
      "score": 0.95,
      "category": "analytical",
      "synergies": [
        {"model": "systems_thinking", "strength": 0.9},
        {"model": "inversion", "strength": 0.85}
      ],
      "explanation": "High effectiveness for debugging (95%)"
    }
  ]
}

SPARC Project Management

SPARC is a structured project methodology built into J4C that breaks projects into 5 distinct phases.

The SPARC Phases

Phase Description Key Activities
S - Specification Define requirements and scope User stories, acceptance criteria, constraints
P - Pseudocode Design algorithms and logic Algorithm design, flow diagrams, logic mapping
A - Architecture System design and structure Component design, API contracts, data models
R - Refinement Implementation and iteration Coding, testing, debugging, code review
C - Completion Finalization and deployment Documentation, deployment, monitoring

Views

Board View

Kanban-style board with 5 columns for each SPARC phase

Gantt Chart

Timeline view showing task dependencies and progress

Spatial View

Dependency graph showing task relationships

Charts View

Phase distribution, velocity, and burndown charts

SPARC Endpoints

GET  /api/v3/sparc/dashboard   - Dashboard statistics
GET  /api/v3/sparc/projects    - List all projects
POST /api/v3/sparc/projects    - Create new project
GET  /api/v3/sparc/projects/:id - Get project details
PUT  /api/v3/sparc/projects/:id - Update project

Sprint Planning

Agile sprint management with burndown charts, velocity tracking, and backlog management.

Sprint Features

Sprint Views

Kanban View

Drag-and-drop cards across status columns

Burndown View

Track sprint progress with ideal vs. actual burndown

Velocity View

Compare planned vs. completed points across sprints

Backlog View

Manage and prioritize product backlog items

Sprint Endpoints

GET  /api/v3/sprints                 - List sprints
GET  /api/v3/sprints/current         - Current sprint details
POST /api/v3/sprints                  - Create new sprint
GET  /api/v3/sprints/backlog/items   - Backlog items
GET  /api/v3/sprints/velocity/history - Velocity history

Story Points

J4C uses Fibonacci-style story points for effort estimation:

Points Effort Level Typical Duration
1Trivial< 1 hour
2Small1-2 hours
3MediumHalf day
5Large1 day
8Extra Large2-3 days
13Epic (split recommended)1 week+

Authentication & RBAC

J4C implements robust authentication and role-based access control.

Authentication Methods

Roles and Permissions

Role Description Key Permissions
admin Full system access All permissions, user management
team_lead Team management Team analytics, all read/write
developer Standard user Read/write own data
viewer Read-only access Read models, analytics
agent API access for bots Session, analysis, learning

API Reference

Quick reference for J4C API endpoints.

Public Endpoints

Method Endpoint Description
GET /health Health check
GET /api/v3/info Framework information
GET /api/v3/models List all mental models
GET /api/v3/analytics Usage analytics
GET /api/v3/metrics Prometheus metrics

Agent Endpoints (Requires API Key)

Method Endpoint Description
POST /api/v3/agent/session Start agent session
POST /api/v3/agent/analysis Submit analysis
POST /api/v3/agent/reasoning Submit reasoning chain
POST /api/v3/agent/learning Submit learning
GET /api/v3/agent/recommend Get model recommendations
GET /api/v3/agent/similar Find similar solutions
GET /api/v3/team/insights Get team insights

Example Request

curl -X POST http://j4c.aurigraph.io/api/v3/agent/session \
  -H "X-API-Key: j4c_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "agentId": "claude-code-v1",
    "context": {
      "project": "my-app",
      "task": "debugging"
    }
  }'