freshcrate
Home > Frameworks > GUAN-Framework

GUAN-Framework

[ARCHIVED] ๅทฒ่ฟ็งปๅˆฐ MIXIA-Framework repo

Description

[ARCHIVED] ๅทฒ่ฟ็งปๅˆฐ MIXIA-Framework repo

README

๐Ÿง  The GUAN Framework

Cognitive Copilot + Multi-LLM Orchestration for Solo Developers

License: CC BY-NC-SA 4.0 Framework

Build a persistent AI memory of yourself. Orchestrate Claude, Codex, and Gemini from one context system.

Cognitive Copilot Guide ยท Multi-LLM Orchestration Guide ยท Setup SOP ยท Quick Start ยท Philosophy


โšก What Is This?

The GUAN Framework solves two problems that every AI-assisted developer faces:

Problem 1: Context Amnesia. Every new AI session starts from zero. You re-explain who you are, what you're working on, what you've already tried. The GUAN Cognitive Copilot creates a persistent, machine-readable cognitive profile that any AI model can load instantly.

Problem 2: Subscription Waste. If you pay for Claude Max + ChatGPT Plus + Google AI Premium, you're probably using only one of them because context switching is painful. The GUAN Multi-LLM Orchestration system lets you distribute work across all three from a single shared context.

The key insight: these two problems share one solution โ€” a unified, file-based context system that all AI platforms can auto-load through their native mechanisms (CLAUDE.md, AGENTS.md, GEMINI.md).

What's New in v1.3

  • Parallel Session Protocol โ€” session_id + slot mechanism prevents multi-window memory conflicts. Each window gets a unique 6-char base36 ID baked into the filename, making concurrent sessions collision-proof
  • Challenge Contract v1.2 โ€” Expanded from 4 domains to 8 trigger conditions, covering batch overload, requirement contradictions, optimistic effort estimates, and credential leak detection
  • Semi-Automatic Cognitive Collection โ€” AI monitors for cognitive value signals (decisions, new patterns, lessons learned) and prompts the user to save them as cards
  • Cognitive Collection Quality Filter โ€” 4 conditions that must ALL be met before a candidate insight becomes a card, plus hard exclusions for ephemeral data
  • Agent Health Check Protocol โ€” /boot verifies external agent availability and selects the best available mode (Claude-only / +Codex / +Gemini / full trio)

Carried from v1.2

  • GUAN Card Format v1.1 โ€” merge_key, aliases, salience (1-10) fields for automatic deduplication
  • Trigger Matrix v1.2 โ€” Risk-scoring protocol that decides when to invoke external agents
  • JSON Output Contract โ€” Unified schema for all external agent responses
  • Codex Review Gate โ€” Automatic cross-model code review for 3+ change tasks
  • 9 Absolute Prohibitions โ€” Hard security boundaries for multi-LLM orchestration
  • Setup SOP โ€” Step-by-step guide for AI agents to build the framework from scratch

๐Ÿงญ Why This Exists

This framework grew from a real scenario: managing a complex enterprise system as a solo developer, burning through Claude Max tokens in 3 days while other AI subscriptions sat underutilized. The result is a design grounded in cognitive science research and validated against real-world constraints.

Philosophical Foundations

The GUAN Framework is built on three pillars from cognitive science:

Pillar Source How It Applies
Extended Mind Thesis Clark & Chalmers, 1998 Your cognitive profile is, philosophically, an extension of your mind
Scaffold vs. Substitute Frontiers in Psychology, 2025 The system must strengthen your thinking, not replace it
Hollowed Mind Warning Klein & Klein, 2025 Without built-in challenge mechanisms, AI assistants erode independent judgment

Empirical Backing

Study Finding Impact on GUAN Design
Stanford Digital Twins (2024) 2-hour interviews produce a reported 85% behavioral accuracy Validates the bootstrap method
Stanford SCALE Mega-Study (2025) Digital twin responses are less variable than humans Motivates the Challenge Contract Protocol
Columbia Business School (2025) Detailed persona descriptions amplify AI bias Why GUAN Cards use atomic claims, not narratives

๐Ÿ“ Architecture at a Glance

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                     YOU (The Orchestrator)                     โ”‚
โ”œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ค
โ”‚                                                               โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”    โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”          โ”‚
โ”‚  โ”‚  CLAUDE     โ”‚    โ”‚  CODEX     โ”‚    โ”‚  GEMINI    โ”‚          โ”‚
โ”‚  โ”‚  (70-80%)   โ”‚    โ”‚  (15-20%)  โ”‚    โ”‚  (5-10%)   โ”‚          โ”‚
โ”‚  โ”‚  Commander  โ”‚โ—„โ”€โ”€โ–บโ”‚  Reviewer  โ”‚    โ”‚  Research  โ”‚          โ”‚
โ”‚  โ”‚  + Executor โ”‚    โ”‚  + Builder โ”‚    โ”‚  + Analyst โ”‚          โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜    โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”˜          โ”‚
โ”‚         โ”‚                  โ”‚                  โ”‚                โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚
โ”‚  โ”‚              Trigger Matrix v1.2                    โ”‚        โ”‚
โ”‚  โ”‚  Risk scoring โ†’ Route to review/implement/research โ”‚        โ”‚
โ”‚  โ”‚  Codex Review Gate (3+ changes โ†’ auto-review)      โ”‚        โ”‚
โ”‚  โ”‚  9 Prohibitions (hard security boundary)           โ”‚        โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚
โ”‚                         โ”‚                                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚
โ”‚  โ”‚         JSON Output Contract (unified schema)      โ”‚        โ”‚
โ”‚  โ”‚  verdict | confidence | findings | artifacts | risksโ”‚        โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚
โ”‚                         โ”‚                                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚
โ”‚  โ”‚              Unified Context Layer                 โ”‚        โ”‚
โ”‚  โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”‚        โ”‚
โ”‚  โ”‚  โ”‚  Persona   โ”‚  โ”‚   Project    โ”‚  โ”‚  Session   โ”‚ โ”‚        โ”‚
โ”‚  โ”‚  โ”‚ GUAN Cards โ”‚  โ”‚  baseline,   โ”‚  โ”‚   Logs +   โ”‚ โ”‚        โ”‚
โ”‚  โ”‚  โ”‚  v1.1      โ”‚  โ”‚  rules, API  โ”‚  โ”‚  Indexes   โ”‚ โ”‚        โ”‚
โ”‚  โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ”‚        โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚
โ”‚                         โ”‚                                     โ”‚
โ”‚  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”        โ”‚
โ”‚  โ”‚        Parallel Session Protocol (v1.3)            โ”‚        โ”‚
โ”‚  โ”‚  slot assignment + session_id (6-char base36)      โ”‚        โ”‚
โ”‚  โ”‚  idempotent index rebuild + proposal-based IPC     โ”‚        โ”‚
โ”‚  โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜        โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿš€ Quick Start

AI Agent? If you are an AI assistant setting up the GUAN Framework for a user, follow the Setup SOP instead โ€” it provides a complete 6-phase guide designed for automated setup.

Day 1: Minimum Viable Persona (15 minutes)

# Create persona repo
mkdir -p ~/persona/core ~/persona/cards/heuristics ~/persona/proposals
cd ~/persona
git init

# Create the three essential files
touch core/boot.md core/principles.md core/challenge-core.md

boot.md โ€” Write 3-5 sentences: who you are, what you do, what you care about.

principles.md โ€” Write 3 core values with one sentence of reasoning each.

challenge-core.md โ€” Write 3 conditions where AI should push back on you.

That's it. Your next AI session is already better.

Day 2: Connect to Your Project (15 minutes)

# In your project directory
mkdir -p ai/source .claude/commands

# Create canonical source files
touch ai/source/project-baseline.md
touch ai/source/coding-rules.md
touch ai/source/glossary.md

# Create the context compiler (see docs for full script)
touch scripts/build-context.py

# Generate entry files
python scripts/build-context.py
# โ†’ Creates CLAUDE.md, AGENTS.md, GEMINI.md

Week 1-2: Organic Growth (2 min/day)

After each valuable AI session, write one GUAN Card:

---
# GUAN Card Format v1.1
id: H-001
title: Always validate API inputs before calculation
type: heuristic
status: active
merge_key: api-input-validation
aliases: ["validate inputs", "API boundary validation"]
salience: 7
confidence: 0.9
temporal_class: stable
created: 2026-03-15
last_reviewed: 2026-03-15
review_after: 2026-06-15
scope: [api, data_quality]
tags: [api, validation, data-quality]
---

## Statement
Validate all numerical inputs at the API boundary before passing to calculation logic.

## Why
Invalid negative values in sales data broke bonus calculations. Root cause: no validation.

## When it applies
Any endpoint that feeds into financial calculations.

๐Ÿ“š Documentation

Document Description
Cognitive Copilot Guide Full architecture for building a persistent AI cognitive profile with GUAN Cards, Challenge Contract, tiered loading, and evolution protocols
Multi-LLM Orchestration Guide Complete system for distributing work across Claude, Codex, and Gemini with unified context, task delegation, and quality enforcement
Setup SOP Step-by-step guide for AI agents to build a complete GUAN Framework from scratch in 6 phases

๐Ÿ”‘ Key Concepts (GUAN Original Contributions)

Concept What It Does
GUAN Card v1.1 Atomic memory unit: claim + reasoning + scope + confidence + expiry + merge_key + aliases + salience (1-10)
Challenge Contract Protocol Three modes (mirror / challenge / obey) with explicit trigger conditions for high-stakes decisions
Scaffold-Substitute Test Quarterly self-assessment: is this system strengthening your thinking or creating dependency?
GUAN Tiered Loading Load persona in 3 tiers (1.5k โ†’ 3k โ†’ 5.5k tokens, hard cap 8k) based on task complexity
Trigger Matrix v1.2 Risk-scoring protocol (+3/+2/+1/-2) that routes tasks to 5 execution modes
JSON Output Contract Unified schema (verdict/confidence/findings/artifacts/risks) for all external agent responses
Codex Review Gate Automatic cross-model code review: 3+ changes trigger plan โ†’ review โ†’ confirm cycle
9 Absolute Prohibitions Hard security boundaries: no direct merge, no secrets to agents, no auto-adoption, etc.
70-20-10 Distribution Rule 70% Claude, 20% Codex, 10% Gemini โ€” don't over-orchestrate
Patch-Only Delegation External agents return diffs, never merge directly
Proposal-Only Write Access AI writes to proposals/; you approve all merges to canonical cards
Dedup Scoring System merge_key(+40) + aliases(+20) + tags(+15) + type(+10) + scope(+10) โ€” prevents card bloat
Parallel Session Protocol slot (human label) + session_id (6-char base36 write key) โ€” multi-window without conflicts
Cognitive Collection Protocol AI monitors 5 signal types โ†’ prompts user โ†’ writes to proposals/ for human review
Agent Health Check /boot probes codex --version + gemini --version โ†’ selects best available orchestration mode
GUAN Bootstrap Method Reverse extraction + 5 focused sessions โ†’ useful persona in 2 weeks

โš–๏ธ License

This work is licensed under CC BY-NC-SA 4.0.

You may:

  • Share, copy, and redistribute in any medium or format
  • Adapt, remix, and build upon the material

Under these conditions:

  • Attribution โ€” You must credit GUAN as the original author and link to this repository
  • NonCommercial โ€” You may not use the material for commercial purposes
  • ShareAlike โ€” Derivative works must use the same license

๐ŸŒŸ Contributing

This framework is open for community review. If you implement it, I want to hear:

  • What worked
  • What broke first
  • What you changed

Open an issue or submit a PR with your experience report.


๐Ÿ“– Citation

If you reference this framework in articles, papers, or other projects:

GUAN (2026). "The GUAN Framework: Cognitive Copilot + Multi-LLM Orchestration Architecture."
GitHub: https://github.com/whoisguan/GUAN-Framework
License: CC BY-NC-SA 4.0

Built by GUAN ยท March 2026
Cognitive science meets the stubborn reality of solo development.

Release History

VersionChangesUrgencyDate
0.0.0No release found โ€” using repo HEADMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchMedium3/20/2026
main@2026-03-20Latest activity on main branchLow3/20/2026
main@2026-03-20Latest activity on main branchLow3/20/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

AI-Governor-FrameworkThe Keystone Framework for AI-Driven Code ! Turn any AI coding assistant into a disciplined, project-aware engineering partner that respects your architecture and coding standards0.0.0
ai-dev-assistant-frameworkA plug-and-play framework for AI-assisted software development, enhancing context-aware collaboration in complex codebases. Perfect for tools like GitHub Copilot. ๐Ÿ™โœจmain@2026-04-21
apmAgent Package Managerv0.8.12
fourgodsAI ๅŠฉๆ‰‹็š„ๆจก็ต„ๅŒ–่ƒฝๅŠ›ๆก†ๆžถ๏ผš่จ˜ๆ†ถใ€้˜ฒ็ฆฆใ€่จบๆ–ทใ€ๅ“่ณช็ฉฉๅฎš | Modular capability framework for AI assistants | Claude Code / Cursor / Any LLMmaster@2026-04-19
galdrAI-powered development framework with task management, 41 agents, 83 skills, and MCP tools for Cursor, Claude Code, Gemini, Codex & OpenCode. File-based memory that survives across sessions.v1.2.1