Components

AI agents fail in the same few ways, again and again. Some 250 million tokens of their reasoning and failure traces were reviewed by hand to find the primitives that close those failures: a periodic table of intelligence.

The components are one of G6's two parts: a prebuilt library of AI primitives for capability extension and failure engineering. Each extends what a model can do or closes one way it fails, and they stack like slices of Swiss cheese: where one slice has a hole, the next one catches the failure. The other part, the meta-harness, learns which of them your work needs, so the system you already run debugs, corrects and improves itself.

Core harness
34
Extensions
60
Failure modes in every premortem
13

Three ways to use them

All three work today, on your own computer.

As built

The core harness as shipped. Connect it to your agent over MCP and every result comes back labelled with what its evidence supports.

Compose

Your agent finds the components a task needs and combines them: g6_find, g6_describe and g6_invoke over MCP, or plain imports in Python.

Full source

Every line is open. Read it, change it, and build your own components on it.

Three modes of work

How G6 runs a job: once, continuously, or before anything starts.

Mission

One piece of work against a frozen standard of done. A person confirms the standard, G6 runs the checks, and the certificate states exactly what the evidence supports.

g6.workforce

Venture

An ongoing operation, run in budgeted ticks. Every outward action is drafted, gated and queued for a person to approve.

g6.operator

Premortem

Before work starts, assume it has already failed and name how. Each of the 13 failure modes comes with the guard that catches it.

g6.reliability_pipeline

A capability extension harness

A language model predicts text. Extensions give the model you already run senses, memory, tools and a body, so it can do more of a job on its own, and each new ability arrives with checks for the ways it fails.

The model stays yours: a free local model through Ollama, or Anthropic, OpenAI or OpenRouter, through g6.core.llm. The llm_router extension picks a model for each kind of task, local first, and falls back only along a chain you set. What changes is what it can reach. Each group below says what a model cannot do alone, what you can achieve once it can, and which parts of G6 do the work.

Action in the real world

It can describe an action, but cannot take one or undo it.

Query databases, commit code, hand work to other agents and deploy services. Outward git actions (fetch, pull, push, clone) are checked by G6's action gate first and the risky ones sent to a person; local ones (commit, merge, branch, tag, stash, add, reset) are sensitive ops you allow.

In the library now: g6.action_gating, g6.coding_agent_gate

Extensions: database, ctx_git, agent_claude, agent_codex

Bodies and simulation

It has no body, no senses of its own and no physics.

Plan and test physical actions in simulation, with sensors and touch, and coordinate people, agents and robots on one task.

Extensions: hat_orchestrator

New capabilities on demand

It cannot give itself a tool it does not have.

Match a request to the components that exist, or turn a Python library into a new component with tests; the meta-harness gate decides whether a change stays.

In the library now: g6.metaharness

Extensions: auto_component_integrator (merged into g6.code.component_creator), component_creator, llm_extension (merged into g6.metaharness)

Every extension named here is in the open-source library. Each is listed, with the failure it guards against, under Extensions.

The core harness

The components that check, gate, ground and tune an agent's work, the meta-harness among them. Each runs on its own, from Python or over MCP. To see how they fit together in the code, explore the repository graph; to see which failures each one guards against, and which nothing guards yet, see the failure map.

Formal methods

Logic, proof, algebra, rules, state machines, optimisation and cause and effect, each settled by a solver, a prover or a rule engine rather than by a model's guess.

  • The logic checker

    Settles small logic questions exactly with a solver, and labels each answer for what it is.

    Guards against: reasoning slips a model would state with confidence. g6.formal, callable over MCP

  • The algebra checker

    Does exact algebra and calculus for you, such as simplifying a formula, solving an equation, or finding a derivative, an integral or the inverse of a matrix, and checks each answer a second, independent way before handing it over.

    Guards against: a wrong formula, root or integral stated with confidence. g6.algebra, callable over MCP

  • The proof checker

    Has Lean, a proof assistant, check a proof you wrote of a theorem you name, and confirms that it leaves no step unproved, assumes nothing beyond the standard rules and proves exactly the statement you give.

    Guards against: a proof that only looks finished, or one that proves a different statement from the one you meant. g6.lean, callable over MCP

  • The state machine checker

    Checks a system you describe as states and the steps between them, such as a protocol or a workflow: it finds a run of steps that breaks a rule or gets stuck, or shows the rule always holds.

    Guards against: a design that fails only in a rare order of events nobody tried. g6.model_checking, callable over MCP

  • The rule engine

    Works out everything that follows from your facts and rules, such as who reports to whom or what a change can reach, and shows how each answer was derived.

    Guards against: a conclusion your rules do not support, or one they imply that goes unnoticed. g6.datalog, callable over MCP

  • Program synthesis

    Fills the gaps in a code template, then hunts for an input that breaks it, and repeats until none is left in the range you set.

    Guards against: generated code that only works on the examples it was shown. g6.cegis

  • Safety bounds

    Works out an upper limit on how likely an agent you describe is to reach an unsafe state, and checks rules it must always keep.

    Guards against: unsafe outcomes nobody worked out in advance. g6.csf

  • The cause-and-effect checker

    Works out from your diagram of what causes what whether data can show the effect of one thing on another and which variables to control for, then estimates the effect and tries to knock it down.

    Guards against: taking a correlation for a cause, or controlling for the wrong variables. g6.causal, callable over MCP

  • The optimiser

    Finds the best plan within your limits, such as routes, schedules, assignments or a budget, and checks each answer before handing it over.

    Guards against: a plan that breaks one of your rules, or is called the best when nobody proved it. g6.optimisation, callable over MCP

  • The network reasoner

    Works out how true each label on a network is, such as who counts as popular or which link can be trusted, as a range from false to true, from your facts and rules, and shows how each range was reached.

    Guards against: a conclusion stated with more certainty than the facts give, or rules that contradict each other without anyone noticing. g6.graph_reasoning, callable over MCP

  • The Prolog runner

    Runs a question against a Prolog program you give it, with SWI-Prolog on your computer, accepting only plain facts, rules and a short list of standard operations, and checks every answer a second time before handing it over; it is not a sandbox, so run programs you do not trust inside your own.

    Guards against: a conclusion your rules do not support, or one they imply that goes unnoticed. g6.prolog, callable over MCP

Checks, gates and tuning

The rest of the core harness: what checks, gates, grounds and tunes an agent's work.

  • Search shortcuts

    Learns simple patterns from the results of a costly search, each checked against real evaluations, and suggests which tries to skip.

    Guards against: spending a budget on blind trial and error. g6.abstraction

  • The action gate

    Before an agent acts, decides whether it may go ahead, must ask a person first, or is blocked.

    Guards against: an agent taking a harmful or irreversible action nobody approved. g6.action_gating, callable over MCP

  • Rules for acting safely

    Rules from research on how complex decisions fail: act in small steps, watch for early warnings, and change course when the evidence turns.

    Guards against: big unchecked moves and ignored warnings. g6.action_logic, callable over MCP

  • The coding-agent check

    Checks a coding agent's work before it acts and again before it says the job is done.

    Guards against: an agent reporting a fix that the evidence does not back up. g6.coding_agent_gate, callable over MCP

  • The context builder

    Packs just the files and notes a model call needs, within a size limit, each marked with where it came from.

    Guards against: a model lost in too much context, or obeying text it should only read. g6.context

  • Structured debate

    Has named roles, such as a proposer and a critic, argue a question in turn, and reports how far they agree.

    Guards against: taking one model's first answer unchallenged. g6.debate

  • Tested shortcuts

    Checks a small function that stands in for repeated model calls: it runs it in a bounded child process and tests it on new cases before anyone relies on it.

    Guards against: a shortcut that breaks on cases it has not seen. g6.distillation

  • The claim judge

    Grades the evidence behind each claim and holds back a high-stakes conclusion the evidence cannot carry.

    Guards against: confident conclusions built on weak evidence. g6.epistemic_integrity, callable over MCP

  • Certificates

    Gives the final verdict on a piece of work: verified, a qualified draft, or blocked, with every gap named.

    Guards against: work called verified when the evidence does not support it. g6.evidence

  • Goal plans

    Holds the subtasks you declare as a tree and checks them against what your executor reports.

    Guards against: long tasks that drift from the goal or overrun their budget. g6.goal_engine

  • The source check

    Finds the passages in your sources behind a claim and says how well they support it.

    Guards against: made-up facts and quotes. g6.grounding, callable over MCP

  • Tamper scanners

    Flags a fixed list of English phrasings of prompt injection; a paraphrase passes.

    Guards against: prompt injection in the listed wordings only, as a tripwire, and tampering with safeguards. g6.guards

  • The intent contract

    Writes down what a task must achieve, what counts as failure and what is out of scope, and lists what is still missing.

    Guards against: solving the wrong problem. g6.intent_engine

  • Honest labels

    Checks that every result's label matches the evidence attached to it.

    Guards against: results that overstate what was checked. g6.invariants

  • Learned hints

    Learns hints from an agent's failures, and keeps one only when side-by-side runs show it helps.

    Guards against: repeating the same mistake, or lessons that sound right and do not help. g6.learning

  • The self-tuning loop

    Tunes how G6 runs a task you repeat: it proposes changes, tests each one on cases it has not seen, and keeps one only when you approve.

    Guards against: an AI setup that keeps making the same mistakes on your work. g6.metaharness

  • The plan checker

    Checks a plan of G6 calls against each component's rules before anything runs.

    Guards against: a plan that fails halfway through. g6.navigator

  • Fair comparisons

    Budgets, vote counting and side-by-side tests for multi-step reasoning, so a gain is measured, not assumed.

    Guards against: a claimed gain that extra compute or luck explains. g6.reasoning

  • Intake and premortem

    Takes a task in, checks it can be done, and names how it could fail before work starts.

    Guards against: starting work that was set up to fail. g6.reliability_pipeline

  • Run limits

    Hard limits for one run: a stop switch, allowed actions, and ceilings on steps, tool calls, files changed, time and cost; it also spots tests that were weakened.

    Guards against: runaway runs, and agents that weaken tests to pass them. g6.safety_engine

  • Change approval

    Decides whether a proposed change to the harness may go live; safety rules and failed tests can only make that decision stricter.

    Guards against: a self-change that slips past its own checks. g6.self_training

  • The step-by-step solver

    Runs a goal through a fixed sequence of 15 problem-solving steps that you supply, and reports where it stopped.

    Guards against: skipped steps and unchecked answers. g6.solver

  • Coding missions

    Fixes what done means before a coding task starts, has a person confirm it, then checks the agent's change against it.

    Guards against: moving the goalposts after the work is done. g6.workforce

Extensions

60 extensions, in 12 families, that extend what a model can do. Each names the failure it guards against or the gap it closes, and is in the library with its tests. Another 59 pieces were merged into one of them or into the core harness, and each is listed under the package it joined.

Media 10
  • adapt_audio

    Edit, level, clean and measure sound in WAV files, each result measured again and never clipped silently.

    Guards against: audio output that is silent, clipped or corrupt, reported as done. Needs ffmpeg, ffprobe, the optional audio extra. In the library: g6.media.adapt_audio, callable over MCP

  • adapt_blender

    Build, light, render and export 3D scenes with your Blender, each change read back and each render inspected.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done. Needs Blender, the optional image extra. In the library: g6.media.adapt_blender, callable over MCP

  • adapt_comfyui

    Make and edit pictures on the ComfyUI server you run, each one fetched into G6's media folder and inspected.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done. Needs ComfyUI, the optional image extra. In the library: g6.media.adapt_comfyui, callable over MCP

  • adapt_diagrams

    Write checked Mermaid, DOT, PlantUML or ASCII diagrams, and draw DOT with Graphviz.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done. Needs Graphviz, the optional image extra. In the library: g6.media.adapt_diagrams, callable over MCP

  • adapt_ffmpeg

    Convert, cut, join, resize, filter, subtitle and level video and sound with your ffmpeg, every result probed from disk before it is returned.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done; audio output that is silent, clipped or corrupt, reported as done. Needs ffmpeg, ffprobe. In the library: g6.media.adapt_ffmpeg, callable over MCP

  • adapt_generative_art

    Make procedural pictures, vector drawings and heightmap meshes from seeded techniques.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done. Needs the optional procedural extra. In the library: g6.media.adapt_generative_art, callable over MCP

    Merged into it:

    • adapt_synthetic_world

      Merged into g6.media.adapt_generative_art, which is in the library.

  • adapt_image

    Edit, convert and measure pictures, and generate them through the media family's backends, local first, each one inspected.

    Guards against: an image, video or 3D output that is blank, corrupt or wrong, reported as done; a paid outside service used without the person choosing it. Needs the optional image extra. In the library: g6.media.adapt_image, callable over MCP

    Merged into it:

    • adapt_creative_api

      Merged into g6.media.adapt_image, which is in the library.

  • adapt_synth

    Make tones, notes, chords, scales, melodies, noise and drum patterns, each one measured against what was asked.

    Guards against: audio output that is silent, clipped or corrupt, reported as done. Needs the optional audio extra. In the library: g6.media.adapt_synth, callable over MCP

  • adapt_visualisation

    Chart the rows you give, and show the file holds every row and only the values given.

    Guards against: a chart that misstates or hides what the data shows; an image, video or 3D output that is blank, corrupt or wrong, reported as done. Needs the optional image extra. In the library: g6.media.adapt_visualisation, callable over MCP

  • adapt_voice

    Speak text and transcribe speech, refusing a transcript that is empty or at an impossible speaking rate; a wrong one of a plausible length passes.

    Guards against: audio output that is silent, clipped or corrupt, reported as done; a transcript too empty or too long for the speech it came from; a paid outside service used without the person choosing it. Needs eSpeak NG. In the library: g6.media.adapt_voice, callable over MCP

Machine learning 5
  • adapt_automl

    Search estimators and settings within a budget, and score the choice on rows it held out.

    Guards against: models tuned by hand without a systematic search; a tool silently missing or replaced, with the result reported as if it ran; a model scored on data it was trained on, or on a leaky split. Needs the optional automl extra. In the library: g6.ml.adapt_automl, callable over MCP. No qualified person has reviewed this component; its rules are checked against their sources by G6's certificate and an independent reader.

    Merged into it:

    • adapt_autosklearn

      Merged into g6.ml.adapt_automl, which is in the library.

  • adapt_bayesian

    Exact Bayesian updates and checked posterior sampling: expose hidden uncertainty.

    Guards against: a point estimate that hides its uncertainty. Needs C compiler for pytensor (g++), the optional bayes extra. In the library: g6.ml.adapt_bayesian, callable over MCP. No qualified person has reviewed this component; its rules are checked against their sources by G6's certificate and an independent reader.

  • adapt_pandas

    Read a table you give by one stated rule, and say where it mixes kinds, looks missing or repeats.

    Guards against: data mistakes from ad hoc table handling. In the library: g6.ml.adapt_pandas, callable over MCP

  • adapt_pytorch

    Train a small neural network on rows it holds out itself, seeded, and stopped on a broken loss.

    Guards against: setup or training-loop bugs in hand-written model code. Needs the optional torch extra. In the library: g6.ml.adapt_pytorch, callable over MCP

    Merged into it:

    • adapt_keras

      Merged into g6.ml.adapt_pytorch, which is in the library.

  • adapt_sklearn

    Fit and score a scikit-learn model on rows it holds out itself, after checking for leakage.

    Guards against: a model scored on data it was trained on, or on a leaky split; a model ill-suited to the data it is used on. Needs the optional ml extra. In the library: g6.ml.adapt_sklearn, callable over MCP. No qualified person has reviewed this component; its rules are checked against their sources by G6's certificate and an independent reader.

    Merged into it:

    • adapt_learning

      Merged into g6.ml.adapt_sklearn, which is in the library.

Agent runtimes 7
  • agent_autogen

    Run an AutoGen team (round robin, selector or swarm) on the model you pass in, stopped at a message limit, every tool call decided by G6's gate.

    Guards against: multi-agent workflows run without limits. Needs the optional agents-autogen extra. In the library: g6.agents.agent_autogen, callable over MCP

  • agent_claude

    Hand a coding task to Anthropic's Claude Code, which you installed: read tools only unless you grant edits, never its shell or the web.

    Guards against: an agent using tools with no guard on what they do; a coding agent run with more access than it needs. Needs Claude Code. In the library: g6.agents.agent_claude, callable over MCP

  • agent_codex

    Hand a coding task to OpenAI's Codex, the coding agent you installed: read-only unless you grant writes, in the folder you name, under a deadline.

    Guards against: a coding agent run with more access than it needs. Needs Codex. In the library: g6.agents.agent_codex, callable over MCP

  • agent_langgraph

    Run a LangGraph workflow that saves its state after every step, so a run that is stopped or crashes resumes where it was.

    Guards against: a long workflow that cannot resume after a failure. Needs the optional agents-langgraph extra. In the library: g6.agents.agent_langgraph, callable over MCP

  • agent_nanoclaw

    A durable mailbox between agents: each reader pages through every message for it, and one it did not acknowledge comes back after a crash.

    Guards against: messages between agents lost or mixed up. In the library: g6.agents.agent_nanoclaw, callable over MCP

    Merged into it:

    • agent_openclaw

      Merged into g6.agents.agent_nanoclaw, which is in the library.

  • agent_runtime

    Run any agent under one set of rules: declared tools and permissions, capped limits, G6's stop, and the action gate before each outward call.

    Guards against: each agent handling failure differently, or not at all. In the library: g6.agents.agent_runtime, callable over MCP

  • agent_smolagents

    Run a smolagents tool-calling or code agent; its code runs in a separate, time-limited process with Python's network calls blocked.

    Guards against: an agent running generated code without limits. Needs the optional agents-smolagents extra. In the library: g6.agents.agent_smolagents, callable over MCP

Knowledge and retrieval 9
  • ctx_colbert

    Rank one call's passages by meaning, say which method ranked them, and refuse word matching when meaning is required.

    Guards against: relevant passages that retrieval never finds. Needs the optional colbert extra, the optional embeddings extra. In the library: g6.knowledge.ctx_colbert, callable over MCP

  • ctx_contexthub

    Keep a documentation registry you name, each document with when it was read and a time to live, and refuse a copy past it.

    Guards against: outdated or unofficial material used as if it were current. In the library: g6.knowledge.ctx_contexthub, callable over MCP

  • ctx_elastic

    Search the Elasticsearch you run over fields its mapping holds, so a query that cannot match is refused rather than answered with no hits.

    Guards against: relevant passages that retrieval never finds. Needs Elasticsearch. In the library: g6.knowledge.ctx_elastic, callable over MCP

  • knowledge_chunker

    Cut a document into passages with exact offsets and ids bound to their source, and check a citation against it.

    Guards against: a claim or citation that cannot be traced to the passage it came from. In the library: g6.knowledge.knowledge_chunker, callable over MCP

  • knowledge_converter

    Turn PDFs, web pages, Markdown and text into a document that says what converted it and what could not be read.

    Guards against: source material skipped or garbled because its format could not be read. Needs the optional docs extra. In the library: g6.knowledge.knowledge_converter, callable over MCP

  • knowledge_fetcher

    Fetch pages and searches (arXiv, OAI-PMH, OpenAlex, Semantic Scholar) through G6's checked HTTP, and say exactly why a fetch failed.

    Guards against: a failed or blocked search taken to mean there are no results; conclusions drawn from an incomplete search of the literature; source material skipped or garbled because its format could not be read. In the library: g6.knowledge.knowledge_fetcher, callable over MCP

    Merged into it:

    • ctx_research_scanner

      Merged into g6.knowledge.knowledge_fetcher, which is in the library.

    • ctx_scrapling

      Merged into g6.knowledge.knowledge_fetcher, which is in the library.

  • knowledge_indexer

    Keep passages in a searchable index under a storage budget you set, and search them with each hit's source and a score on a stated scale.

    Guards against: an index that outgrows its storage budget. In the library: g6.knowledge.knowledge_indexer, callable over MCP

  • knowledge_manifest

    Keep the sources and passages an agent cites, and check a passage against its source as read again.

    Guards against: a citation to text that has since changed. In the library: g6.knowledge.knowledge_manifest, callable over MCP

Memory 2
  • ctx_ace

    Keep an agent's notes and find them again by relevance, each read back as data with its source, writer and age.

    Guards against: a relevant observation buried under old ones; outdated or unofficial material used as if it were current; a wrong or planted entry in stored memory, used as if true. In the library: g6.memory.ctx_ace, callable over MCP

  • ctx_cognee

    Add text to the Cognee server you run and follow the links its knowledge graph draws between facts, each result cited and untrusted.

    Guards against: facts spread across text with no links between them. Needs Cognee. In the library: g6.memory.ctx_cognee, callable over MCP

Sources 6
  • ctx_geo

    Answer location questions from a map service, with its status read on every reply, so a refused key or a used-up quota is never "no results".

    Guards against: a factual question answered from the model's memory instead of a source. In the library: g6.sources.ctx_geo, callable over MCP

  • ctx_git

    Read and change git repositories inside folders you declare, with every call logged and every change since a point reported, whoever made it.

    Guards against: repository changes an agent made that nobody tracked. Needs git. In the library: g6.sources.ctx_git, callable over MCP

  • ctx_langextract

    Pull named fields out of a text, each value with its offsets in the text or refused, the whole text read.

    Guards against: key facts lost past a cut-off in long text, or given values the text does not hold. In the library: g6.sources.ctx_langextract, callable over MCP

  • ctx_library_mapper

    Find candidate libraries in PyPI, GitHub and Hugging Face, their declared licences looked up against yours.

    Guards against: reimplementing a method that already exists. In the library: g6.sources.ctx_library_mapper, callable over MCP

  • ctx_vision

    Show a picture to an image-capable model you give it, record its account as a claim, and cross-check its reading of text with Tesseract.

    Guards against: an image's content misread, or not read at all. Needs tesseract, the optional image extra. In the library: g6.sources.ctx_vision, callable over MCP

Workspaces 3
  • align_prompt_library

    Keeps every version of a prompt, spec or test set by the SHA-256 of its content, so a result can cite the exact version it used.

    Guards against: losing track of which prompt or spec version produced a result. In the library: g6.workspace.align_prompt_library, callable over MCP

    Merged into it:

    • align_artifacts

      Merged into g6.workspace.align_prompt_library, which is in the library.

  • shared_workspace

    Lets several agents share one workspace folder without overwriting each other's work: the first write wins and a stale one is refused.

    Guards against: agents overwriting each other's work. In the library: g6.workspace.shared_workspace, callable over MCP

  • workspace_manager

    Gives each agent task its own workspace folder and checks every path as part of each read and write, so nothing lands outside it.

    Guards against: an agent writing files outside its workspace. In the library: g6.workspace.workspace_manager, callable over MCP

Code 8
  • adapt_django

    Generate Django source without Django; check full projects in a separate, time-limited process, not a security boundary.

    Guards against: boilerplate web code written by hand, inconsistently. Needs the optional django extra. In the library: g6.code.adapt_django, callable over MCP

  • adapt_healing

    Repair a failing step of Python code, keeping a patch only if it passes held-back tests its proposer never saw.

    Guards against: a recoverable error that stops the whole workflow; an automatic fix applied without checking what it changes. In the library: g6.code.adapt_healing, callable over MCP

  • adapt_library_synthesizer

    Draft Python from a paper spec and check independently supplied examples.

    Guards against: code from a published method that does not do what the method says. Needs the optional docs extra. In the library: g6.code.adapt_library_synthesizer, callable over MCP

  • adapt_webpage

    Build web pages and design tokens; check syntax, declared contrast and optional overflow.

    Guards against: a hand-built page that breaks on some screens; an interface with inconsistent styling or poor contrast. Needs Playwright Chromium, the optional web extra, the optional render extra. In the library: g6.code.adapt_webpage, callable over MCP

    Merged into it:

    • adapt_ui_design

      Merged into g6.code.adapt_webpage, which is in the library.

  • component_creator

    Scaffold a new G6 component in the library's own shape, and check a package against the library's standard before anyone calls it done.

    Guards against: a new component missing its tests or standard parts. In the library: g6.code.component_creator, callable over MCP

    Merged into it:

    • auto_component_integrator

      Merged into g6.code.component_creator, which is in the library.

    • auto_engineer

      Merged into g6.code.component_creator, which is in the library.

  • design_governance

    Check a codebase's structure for import cycles, layer breaches and pass-through wrappers, and which cycles a change introduced.

    Guards against: code growing more complex than anyone can safely change. In the library: g6.code.design_governance, callable over MCP

  • meta_programming

    Rename and extract Python code through its syntax tree and scopes, each edit checked against the tree it should give, comments kept.

    Guards against: code changed by text edits that break its structure. In the library: g6.code.meta_programming, callable over MCP

  • swe_diagnostics

    Show a coding agent an unfamiliar repository before it changes it: its layout, build, tests and files, and what a change touches.

    Guards against: a coding agent changing an unfamiliar repository without first learning how it works. Needs git. In the library: g6.code.swe_diagnostics, callable over MCP

Embodied and simulation 1
  • adapt_physical_ai

    Check a robot's motion plan against its world and its own limits, segment by segment, before anything moves.

    Guards against: a motion plan that collides, or asks a body for what it cannot do; an object dropped or crushed when grasped. In the library: g6.embodied.adapt_physical_ai, callable over MCP. No qualified person has reviewed this component; its rules are checked against their sources by G6's certificate and an independent reader.

Cognitive architectures 4
  • cog_arch_actr

    Rank an agent's memories by recency, frequency and context with ACT-R's equations, refusing a recall below the retrieval threshold.

    Guards against: a model of human recall that ignores how memory fades and interferes. In the library: g6.cogarch.cog_arch_actr, callable over MCP

  • cog_arch_aixi

    Run a bounded MC-AIXI-CTW agent on a registered environment and judge it by its regret against a random policy on the same seed.

    Guards against: a planning agent acting on a model that has not learned the environment's rewards; an agent design judged by argument instead of by a test. In the library: g6.cogarch.cog_arch_aixi, callable over MCP

  • cog_arch_gps

    Plan a sequence of steps to a goal by means-ends analysis, every plan replayed against its operators before it is offered.

    Guards against: an agent acting step by step with no plan that reaches the goal; a plan from an agent or a model followed without checking each step against what its actions need. In the library: g6.cogarch.cog_arch_gps, callable over MCP

  • decision_making

    Standard, seeded decision rules for what to try next and how many retries to allow, each answer with its working and the same on every run.

    Guards against: ad hoc, unrepeatable choices about what to try next. In the library: g6.cogarch.decision_making, callable over MCP

Professional workflows 1
  • duty_of_care

    Matches a fixed list of English crisis phrases; a paraphrase or another language passes. A match goes to a person.

    Guards against: an AI missing signs that a vulnerable person is at risk. In the library: g6.jobs.duty_of_care, callable over MCP. No qualified person has reviewed this component; its rules are checked against their sources by G6's certificate and an independent reader.

Integrations 4
  • adapt_rq

    Background JSON jobs on an operator-owned Redis queue, with registered functions and sensitive operations.

    Guards against: a long job blocking an agent or failing unseen. Needs Redis server, rq worker, the optional rq extra. In the library: g6.integrations.adapt_rq, callable over MCP

  • database

    Query and change a database the server's operator declares, reads on a connection that cannot write, changes dry-run first.

    Guards against: unsafe or inconsistent database access. Needs PostgreSQL, the optional db extra. In the library: g6.integrations.database, callable over MCP

  • hat_orchestrator

    Coordinate declared team capabilities and claims; operator ranks never authorise real-world actions.

    Guards against: unclear authority in mixed human and AI teams. In the library: g6.integrations.hat_orchestrator, callable over MCP

  • llm_router

    Pick a language model for a kind of task from a committed table, local first, with an ordered fallback chain and dated cost estimates.

    Guards against: a task sent to a paid or unsuitable model nobody chose; a cost quoted from a price that is unknown or out of date; a task or request sent to a tool or agent that is a poor fit for it. Needs Ollama. In the library: g6.llm_router, callable over MCP

    Merged into it:

    • agent_router

      Merged into g6.llm_router, which is in the library.

Merged into the core harness 46
  • g6.action_gating
    • align_csf

      Merged into g6.action_gating, which is in the library.

    • csf_audit

      Merged into g6.action_gating.audit_store, which is in the library.

    • csf_gate

      Merged into g6.action_gating, which is in the library.

    • poka_yoke

      Merged into g6.action_gating.safeguards, which is in the library.

  • g6.cegis
    • template_synthesis

      Merged into g6.cegis, which is in the library.

  • g6.cli
    • diagnostic_collector

      Merged into g6.cli.doctor, which is in the library.

  • g6.coding_agent_gate
    • governance

      Merged into g6.coding_agent_gate, which is in the library.

  • g6.context
    • ctx_claude_context

      Merged into g6.context, which is in the library.

    • ctx_mnm

      Merged into g6.context, which is in the library.

    • ctx_recursive

      Merged into g6.context.compress, which is in the library.

  • g6.core
    • adapt_instructor

      Merged into g6.core.llm, which is in the library.

    • agent_langchain

      Merged into g6.core.llm, which is in the library.

    • agent_openai

      Merged into g6.core.llm, which is in the library.

  • g6.csf
    • csf_auto_model

      Merged into g6.csf, which is in the library.

    • csf_strategy

      Merged into g6.csf, which is in the library.

  • g6.datalog
    • adapt_experta

      Merged into g6.datalog, which is in the library.

  • g6.epistemic_integrity
    • align_verbsamp

      Merged into g6.epistemic_integrity, which is in the library.

  • g6.formal
    • formal_verification

      Merged into g6.formal, which is in the library.

  • g6.grounding
    • ctx_rag

      Merged into g6.grounding, which is in the library.

    • document_stc

      Merged into g6.grounding, which is in the library.

    • knowledge_quality

      Merged into g6.grounding, which is in the library.

  • g6.guards
    • csf_cognitive

      Merged into g6.guards, which is in the library.

  • g6.harness
    • domain_workflow

      Merged into g6.harness, which is in the library.

    • golden_tests

      Merged into g6.harness, which is in the library.

    • harness

      Merged into g6.harness, which is in the library.

    • reliability_ledger

      Merged into g6.harness, which is in the library.

    • value_completion

      Merged into g6.harness, which is in the library.

  • g6.intent_engine
    • align_specs

      Merged into g6.intent_engine, which is in the library.

    • user_intent

      Merged into g6.intent_engine, which is in the library.

  • g6.lean
    • lean_prover

      Merged into g6.lean.search, which is in the library.

  • g6.learning
    • adapt_eurisko

      Merged into g6.learning, which is in the library.

  • g6.metaharness
    • cog_arch_dgm

      Merged into g6.metaharness, which is in the library.

    • evoskill

      Merged into g6.metaharness, which is in the library.

    • llm_extension

      Merged into g6.metaharness, which is in the library.

    • opt_cost

      Merged into g6.metaharness, which is in the library.

    • opt_meta

      Merged into g6.metaharness, which is in the library.

    • opt_quality

      Merged into g6.metaharness, which is in the library.

    • opt_shared

      Merged into g6.metaharness, which is in the library.

    • opt_speed

      Merged into g6.metaharness, which is in the library.

    • self_observation

      Merged into g6.metaharness, which is in the library.

  • g6.operator
    • work_loop

      Merged into g6.operator, which is in the library.

  • g6.optimisation
    • adapt_optimisation

      Merged into g6.optimisation, which is in the library.

    • adapt_pygad

      Merged into g6.optimisation, which is in the library.

  • g6.reasoning
    • align_evals

      Merged into g6.reasoning, which is in the library.

  • g6.self_training
    • benchmark_runner

      Merged into g6.self_training, which is in the library.

  • g6.solver
    • solver_accuracy

      Merged into g6.solver, which is in the library.

Contact

Write to .

Every email is reviewed by the founder, and we endeavour to respond within 48 hours. Thank you for your correspondence.