Agent Shared Fabric turns scattered AI coding agents into a coordinated working system with shared memory, shared tool routing, auditable receipts, and a repeatable task discipline.
In one sentence: it is an agent work harness. It does not replace Codex, Gemini CLI, Antigravity, Maestro, MCP, skills, or Fabric App; it wraps them in a durable operating contract so they can cooperate without silently losing context.
It gives Codex, Gemini CLI, Antigravity, Maestro, MCP tools, local skills, and future agent runtimes one shared operating contract without forcing them into one monolithic app.
In practical terms, it helps you:
- make agent memory more durable than chat history
- keep handoffs, decisions, open loops, and process learnings reusable across runtimes
- route tools consistently through MCP, skills, workflows, and subagents
- make complex work safer through preflight, six-stage discipline, and postflight
- feed downstream knowledge systems such as Fabric App, Obsidian, wiki indexes, and graph views with clean receipts instead of private runtime guesses
The core idea is simple:
Agents should share discipline, memory lanes, tool registries, workflow state, and receipts. Apps should consume those outputs, not become the source of truth.
Most agent systems fail in the quiet places:
- every runtime keeps its own private context
- skills and MCP tools drift across machines
- memory is either raw chat history or vague summaries
- complex work skips planning, review, dispatch, and postflight
- dashboards look useful but are not backed by canonical receipts
Agent Shared Fabric treats coordination itself as infrastructure.
That is the harness claim: the framework makes agent work inspectable before, during, and after execution. Preflight checks the environment, registries declare available capabilities, six-stage logging prevents silent jumps, and postflight turns the work into durable memory lanes and receipts.
Create a local governance root plus a parallel implementation body:
python3 scripts/init_agent_shared_fabric.py \
--root ~/AgentSharedFabric/global-agent-fabric \
--implementation-root ~/AgentSharedFabric/agent-fabric-implementation \
--workspace /path/to/your/workspaceThen boot a runtime through the generated hook:
WORKSPACE=/path/to/your/workspace \
AGENT_NAME=codex \
~/AgentSharedFabric/global-agent-fabric/hooks/before-task.shReport [BOOT_OK] only after the hook succeeds. See Quickstart for the complete runnable path.
The generated layout is documented in Root Layout, and a runtime-agnostic startup prompt is available in Generic Startup Snippet.
For file-structure validation, see Structure Validation. The generated roots include two short checklists:
global-agent-fabric/STRUCTURE-CHECK.mdagent-fabric-implementation/STRUCTURE-CHECK.md
Agent Shared Fabric and Fabric App are deliberately separate.
Agent Shared Fabric is the agent collaboration governance system.
It owns:
- boot discipline
- runtime bridge rules
- MCP registry
- skill registry
- workflow registry
- six-stage task protocol
- memory routing
- receipts and sync logs
- project overlays
- postflight write-back
- user-question-profile distillation
- subagent orchestration policy
Fabric App is the knowledge-base workstation that can consume Agent Shared Fabric outputs.
It can read:
- receipts
- phase logs
- memory summaries
- project registries
- source-processing artifacts
- wiki indexes
- semantic graph data
But the app should not be the canonical governance brain. It is a UI, monitor, and knowledge workbench layered on top.
flowchart LR
User[Human / Operator] --> Runtime[Agent Runtime\nCodex / Gemini / Antigravity]
subgraph ASF[Agent Shared Fabric]
Preflight[Preflight Check]
SyncAll[Sync All]
Context[Context Loader\nGlobal -> Runtime -> Project]
Rules[Rules]
Registries[Registries\nMCP / Skills / Workflows / Projects]
SixStage[Six-Stage Discipline\nroute -> plan -> review -> dispatch -> execute -> report]
Postflight[Postflight Sync]
Memory[Memory Lanes\nDecision / Handoff / Loop / Learning / Process / Profile]
Receipts[Receipts + Phase Logs]
end
Runtime --> Preflight --> SyncAll --> Context
Context --> Rules --> SixStage
Context --> Registries --> SixStage
SixStage --> Postflight
Postflight --> Memory
Memory --> Receipts
Receipts --> FabricApp[Fabric App\nMonitor / Wiki / Graph / Terminal]
Memory --> Runtime
The important direction is discipline first, then postflight. A runtime does not simply finish a task and forget it; the six-stage workflow flows into postflight, postflight writes memory lanes, receipts are generated from durable memory state, and Fabric App can consume those receipts. Memory lanes also feed the next runtime session directly, so continuation does not depend on the app.
Agent Shared Fabric has one fixed core and many optional extension bodies.
Fixed core:
preflight -> sync_all -> context loading -> six-stage phase logging -> postflight -> memory lanes -> receipts
This core should remain stable across users and runtimes.
Strongly recommended integrations:
- MemPalace for process memory and detailed trial-and-error recall.
- Maestro for explicit subagent orchestration and human-gated delegation.
Custom extensions:
- MCP servers
- skill repositories
- workflow prompts
- custom subagents
- domain registries
- runtime-specific mirrors
Custom extensions are discovered through registries during preflight/sync-all. They should not be hardcoded into the governance brain. See Customization Guide.
Public templates keep extension examples disabled by default. Users enable their own MCP servers, skills, workflows, and subagents only after replacing placeholder commands and environment references.
Agent Shared Fabric uses six exact stage keys:
route -> plan -> review -> dispatch -> execute -> report
This staged discipline is inspired by the governance pattern in cft0808/edict, especially the idea of separating classification, planning, review, dispatch, execution, and report-back. Agent Shared Fabric is not affiliated with edict and is not a fork; it borrows the operating principle of staged responsibility.
See Department Routing for the runtime meaning of each phase.
Agent Shared Fabric separates the fixed internal fabric from external implementation tools.
flowchart TB
API[APIs / Workflows / Runtime Commands]
Runtime[Agent Runtime\nCodex / Gemini / Antigravity]
Internal[Internal Fabric\nRules / Boot Hooks / Postflight / Memory Lanes / Phase Discipline]
External[External Tools\nMCP / Skills / Custom Subagents / Domain Workflows]
API --> Runtime
Runtime --> Internal
Runtime --> External
Internal --> Runtime
External --> Runtime
The internal fabric says how work is governed. External tools say what capabilities are available. This keeps the framework portable while allowing each user to attach their own MCP servers, skills, workflows, and agents.
See Extension Body Model.
Agent Shared Fabric is activated through a hybrid of prompts and hooks.
- Prompt contract: model-visible instructions that tell the runtime what root, workspace, phases, and write-back rules to follow.
- Hook contract: executable wrappers that enforce boot, phase logging, and postflight.
- Registry contract: YAML files that route MCP, skills, workflows, projects, and runtime mirrors.
Recommended loop:
before-task hook -> startup prompt -> phase hook(s) -> after-task hook
The generated hooks are:
hooks/before-task.sh
hooks/log-phase.sh
hooks/after-task.sh
The chain is deliberately split by responsibility:
| Layer | Responsibility | Examples |
|---|---|---|
| Prompt | Makes the operating contract visible to the model | startup snippet, runtime bridge instructions |
| Hook | Forces critical lifecycle actions to actually run | before-task, log-phase, after-task |
| Registry | Tells the runtime what capabilities exist | MCP servers, skills, workflows, projects |
| MCP / Skill / Maestro | Performs specialized work during dispatch | tools, local skills, subagents, orchestration |
| Memory lanes + receipts | Preserve continuity across sessions and runtimes | decisions, handoffs, open loops, process memory |
So continuous collaboration is not only hooks and not only skills. Hooks enforce the lifecycle; skills and MCP provide capabilities; memory lanes and receipts carry state forward.
See Hooks And Prompts and Preflight And Postflight.
Agent Shared Fabric does not treat memory as one bucket.
Recommended lanes:
- Decision: stable choices and rationale
- Handoff: what the next runtime or agent needs
- Open Loop: unresolved risks or follow-up work
- Promoted Learning: stable reusable learnings
- Process Memory: detailed trial-and-error, stored as local process-memory receipts and optionally routed to systems like MemPalace
- Receipt: auditable proof that sync/write-back happened
- User Question Profile: distilled user patterns, preferences, frictions, and recurring themes
A runtime should not begin substantial work until it has:
- located the canonical shared fabric root
- run preflight
- run sync-all
- loaded global context
- loaded runtime-specific context
- loaded project overlay
- reported
[BOOT_OK]only after success
At the end of substantial work it should:
- write postflight records through canonical scripts or the generated after-task hook
- include user-question-profile distillation
- report
[SYNC_OK]only after success
Agent Shared Fabric does not assume one universal subagent engine.
It can route orchestration through:
- native runtime subagents
- Maestro-style orchestration
- MCP tools
- curated/local skills
- scripted fallback
Recommended dispatch order:
MCP first -> curated/local skills -> indexed external skills -> Maestro/native subagents -> manual script
For complex work, Maestro or equivalent orchestration can be used as the delegation layer, while human approval remains the execution gate.
Fabric App receives the outputs of Agent Shared Fabric.
flowchart LR
ASF[Agent Shared Fabric\nReceipts / Memory / Registries] --> FabricApp[Fabric App]
External[External Imports\nNotebookLM / Chats / Files] --> FabricApp
FabricApp --> Normalize[Normalize Sources]
Normalize --> Wiki[Project Wiki]
Wiki --> Graph[Semantic Graph]
Graph --> Terminal[Terminal Query / Maintenance]
In other words:
- Agent Shared Fabric governs agent work.
- Fabric App organizes knowledge-base work.
- The receipt stream is one bridge between them.
This public concept repository contains:
- architecture documents
- sanitized templates
- example registries
- runtime bridge patterns
- hook wrappers
- security guidance
It intentionally does not contain:
- personal memory records
- private project overlays
- real API keys
- Fabric App source code
- generated app releases
- raw agent conversation history