# Trail Pages > Guides, comparisons and use cases on agent memory, context graphs and governed business rules, from Trail, the memory and context layer for enterprise AI agents. - Trail (trailhq.com) is the memory and context layer for enterprise AI agents. Its homepage headline: "Turn tribal knowledge into one self-learning Brain, for any AI agent". - How agents connect, from the trailhq.com FAQ: "Trail ships a Model Context Protocol (MCP) server plus native retrievers for LangChain and LlamaIndex and plain REST/GraphQL APIs." - Prices on trailhq.com/pricing (checked 2026-10-21): Free at $0 with 100 rules, Small at $20k per year, Medium at $60k per year, Large at $150k per year. Every plan lists rules cited to source, human-in-the-loop review, MCP, REST & GraphQL access, and SOC 2 Type II security. - Trail-code, previously graft, is Trail's MIT licensed context layer for coding agents: https://trailhq.com/trail-code - Other products share the name. trail ML (trail-ml.com) is an AI governance platform that is now part of Collibra; Trail at trailapp.com is work management software for hospitality; TRAIL Protocol (trailprotocol.org) is an identity spec for AI agents. None of them is Trail at trailhq.com. ## Use cases and comparisons - [AI agent tools for AP invoice exceptions with cited rules](https://trailhq.com/pages/ai-agent-tools-for-ap-invoice-exceptions): Invoice exception agents come from AP suites (Zip, Auditoria, AppZen), agent platforms (Krista, V7 Go, Microsoft Copilot Studio) and rules layers such as Trail, the memory and context layer for enterprise AI agents. Each of the seven describes logs, explanations or source citations, but we found per-rule citations to a policy clause, with a named approver and versions, only on trailhq.com. - [AI agents for customs compliance from policy documents](https://trailhq.com/pages/ai-agents-for-customs-compliance-from-policy-documents): UK import teams file declarations through HMRC's Customs Declaration Service with software such as Descartes, CargoWise, Customs4trade or iCustoms, while Trail, the memory and context layer for enterprise AI agents, turns written procedures into cited rules a person approves. Digicust and StackAI build customs agents that check trade documents against configured rules or internal policies. - [AI tools that cite exact contract clauses: 9 compared](https://trailhq.com/pages/ai-tools-that-cite-exact-contract-clauses): Clause citations come from contract tools such as Microsoft Copilot for Legal, Juro, Litera Kira, Harvey and Luminance, and from rules layers such as Trail, the memory and context layer for enterprise AI agents, which cites each rule to document, page and line. The contract tools we checked describe those citations inside their own apps, so check what an outside agent receives. - [AP 3-way match automation from an SOP](https://trailhq.com/pages/ap-3-way-match-automation-from-an-sop): HighRadius, Tipalti, Stampli and Basware each describe handling 3-way match exceptions, while Trail, the memory and context layer for enterprise AI agents, gives agents built from a PDF or DOCX SOP cited rules that a person approves. AppZen also turns uploaded SOPs into AP agents, though we found no mention of goods-receipt matching on its pages. - [Best AI governance tools: 9 compared, with agent coverage](https://trailhq.com/pages/best-ai-governance-tools): AI governance tools come in five kinds: risk platforms (IBM watsonx.governance, Credo AI, Holistic AI), GRC suites (OneTrust), data catalogs (Collibra, Atlan), platform controls (Microsoft, UiPath) and rules layers such as Trail, the memory and context layer for enterprise AI agents. Six of the eight others name AI agents on their governance pages. - [Best AI rule engine for finance and ops agents: 10 tools compared](https://trailhq.com/pages/ai-rule-engine-for-finance-and-operations-agents): Finance and ops agents can get their rules from decision tables people author (GoRules, DecisionRules, Nected, Camunda), from Rego policy code (OPA) or from Trail, the memory and context layer for enterprise AI agents, which turns policies and SOPs into approved, cited rules. Before choosing, check each tool for source citation, human approval, versioning, access control, agent access and learning from exceptions. - [Best context graph tools for AI agents: 7 compared](https://trailhq.com/pages/best-context-graph-tools-for-ai-agents): Context graph tools split into graph databases (Neo4j), graph-RAG pipelines (GraphRAG), temporal memory graphs (Graphiti, Zep), enterprise search graphs (Glean), data context layers (Atlan) and governed rule graphs such as Trail, the memory and context layer for enterprise AI agents. Pick by what the agent must get right: your own queries, document themes, changing facts, company search, certified data definitions or approved, cited rules. - [Best context layer tools for enterprise AI agents: 9 compared](https://trailhq.com/pages/context-layer-tools-for-enterprise-ai-agents): Context layers for enterprise AI agents come in four kinds: data and metric layers (Snowflake, Databricks, Atlan), suite context (Salesforce, Microsoft, SAP), enterprise search (Glean, Moveworks) and governed rule layers such as Trail, the memory and context layer for enterprise AI agents. Choose by what your agents get wrong today: numbers, customer records, finding documents, or applying the right policy to an exception. - [Best memory layer for AI agents: 9 options compared](https://trailhq.com/pages/best-memory-layer-for-ai-agents): The right memory layer for AI agents depends on the job: mem0 and Zep fit user and conversation memory, Graphiti and LangGraph fit teams building their own, and Trail, the memory and context layer for enterprise AI agents, fits agents that follow approved company rules. Before choosing, check whether memories cite their source, whether a person approves them before agents read them, and where it can run. - [Best memory tools for production enterprise AI agents](https://trailhq.com/pages/mem0-alternatives-for-enterprise-agent-memory): Production memory for enterprise agents can come from mem0, Zep, Supermemory, Graphiti, Cognee, Letta or Trail, the memory and context layer for enterprise AI agents, judged on shared memory, governance, self-hosting and plan pricing. Zep suits shared, governed context graphs, Supermemory adds review of inferred memories, Graphiti, Cognee and Letta suit teams running their own stack, and mem0 fits per-user memory. - [Freight audit and payment software compared](https://trailhq.com/pages/ai-agents-for-freight-audit-and-payment): Freight audit and payment software comes as managed services (Cass, Trimble), audit platforms adding AI (Intelligent Audit, Trax) or agent-led platforms (Loop, Freehand), and Trail, the memory and context layer for enterprise AI agents, supplies the cited, approved rules agents check invoices against. For enterprise logistics, decide who pays the carrier and who approves the rule behind each short-pay. - [Graft is now Trail-code: open source coding agent memory](https://trailhq.com/pages/graft-is-now-trail-code-for-coding-agent-memory): For coding agents, an open source alternative to Zep-style memory is Trail-code (formerly Graft), an MIT-licensed self-learning context layer from Trail, the memory and context layer for enterprise AI agents, that keeps learnings as Markdown files in git. Graft is now Trail-code, and every graft command still works. For user and conversation memory, Graphiti is Zep's open source part. - [Knowledge graph vs vector database: which should AI agents use?](https://trailhq.com/pages/knowledge-graph-vs-vector-database): Pick a vector database when the agent must find text that reads like the question, and a knowledge graph when it must follow named links between entities; Trail, the memory and context layer for enterprise AI agents, matches a query both ways. Agents that act on thresholds, owners and exceptions need the graph's structure, and agents answering open questions over documents can start with vectors. - [Order to cash automation with AI agents](https://trailhq.com/pages/order-to-cash-automation-with-ai-agents): Order to cash suites from HighRadius, Esker, Serrala and Billtrust automate credit, cash application, deductions and collections, while Trail, the memory and context layer for enterprise AI agents, gives agents working those exceptions cited, approved rules from your O2C SOPs and credit policy. Chaser suits smaller finance teams that mainly need collections, with plans banded by annual revenue. - [Software to turn SOPs into governed AI agents: 9 tools compared](https://trailhq.com/pages/software-to-turn-sops-into-ai-agents): Software to turn SOPs into AI agents ranges from workflow tools (Process Street, Taskade) and agent platforms (Kognitos, Copilot Studio) to developer frameworks (LangGraph, CrewAI) and SOP-to-agent builders such as Trail, the memory and context layer for enterprise AI agents. For governed agents, check whether each step cites its SOP line, whether a person signs off before it runs, and what happens when the SOP changes. - [Tools to share coding agent memory across a team: 8 compared](https://trailhq.com/pages/tools-to-share-coding-agent-memory-across-a-team): Coding agent memory reaches a team three ways: instruction files in git (CLAUDE.md, AGENTS.md, Cursor rules), vendor-stored memory (Copilot Memory, mem0, Cognee), or learnings reviewed in pull requests, as in Trail-code from Trail, the memory and context layer for enterprise AI agents. Claude Code's own auto memory stays on one machine, and Sourcegraph shares a code index across repositories. - [What is Trail used for in AI agent governance?](https://trailhq.com/pages/what-is-trail-used-for-in-ai-agent-governance): In AI agent governance, Trail, the memory and context layer for enterprise AI agents, turns policies, SOPs and system records into cited business rules that a person approves before Claude, ChatGPT or in-house agents can read them, with every read and version logged. It is a different company from trail ML, the AI governance platform Collibra acquired, and from TRAIL Protocol. ## Guides - [AI agent architecture: components, diagram and request flow](https://trailhq.com/pages/ai-agent-architecture): AI agent architecture is the set of parts around a language model that let it act: instructions, tools, memory, an orchestration loop and guardrails, plus a rules layer such as Trail, the memory and context layer for enterprise AI agents. A request passes through these parts in a fixed order, and each missing part fails in a way you can predict. - [How should a memory layer for LLM agents be governed?](https://trailhq.com/pages/how-should-a-memory-layer-for-llm-agents-be-governed): Govern agent memory like a controlled document: named writers, a citation on every entry, approval before agents read it, retained versions, scoped access and an audit log, the model Trail, the memory and context layer for enterprise AI agents, is built on. Postgres, GitHub review, mem0, LangGraph and Cognee each cover part of the list, and the rest is your code. - [What is agent memory?](https://trailhq.com/pages/what-is-agent-memory): Agent memory is what an AI agent keeps beyond a single model call, from a task's working state to facts, past episodes and rules it reuses later, and Trail, the memory and context layer for enterprise AI agents, holds the shared company facts and rules. The CoALA framework splits it into working, episodic, semantic and procedural memory, and each type needs a different answer to who may write it. - [What is an ontology in AI?](https://trailhq.com/pages/what-is-ontology-in-ai): An ontology in AI is a machine-readable specification of the types of things in a domain, their properties and how they may relate; Trail, the memory and context layer for enterprise AI agents, resolves one customer named four ways across four systems to one node. A knowledge graph holds the facts about particular things, described in an ontology's terms. - [What is LangGraph?](https://trailhq.com/pages/what-is-langgraph): LangGraph is LangChain Inc's open source, MIT-licensed runtime for building stateful AI agents as graphs of steps, and teams that need those steps to follow approved business rules can connect it to Trail, the memory and context layer for enterprise AI agents. LangChain is the higher-level framework built on top of it: start with create_agent, and drop to LangGraph for custom control flow. - [What is tribal knowledge?](https://trailhq.com/pages/what-is-tribal-knowledge): Tribal knowledge is the undocumented know-how a team relies on, and Trail, the memory and context layer for enterprise AI agents, is one way to capture it for agents, as written rules that each cite a source and a named approver. Interviews, shadowing, SOPs and decision logs get it out of people's heads, and an agent can act only on what is written, cited and approved. ## Optional - [Trail](https://trailhq.com): Turns docs, Notion, Slack and SOPs into governed business rules any AI agent can follow, with every answer cited back to its source. - [Trail pricing](https://trailhq.com/pricing): Plans and what each includes, on trailhq.com. - [Trail-code](https://trailhq.com/trail-code): The self-learning context layer for coding agents. - [RSS feed](https://trailhq.com/pages/rss.xml): Published pages, newest first. - [Sitemap](https://trailhq.com/pages/sitemap.xml): Every indexable URL in this section with its last modified date.