Directories
¶
| Path | Synopsis |
|---|---|
|
Package a2a 实现 Google Agent-to-Agent(A2A)协议,使 Agent 之间能够 跨网络进行能力协商、任务委派和结果回传。
|
Package a2a 实现 Google Agent-to-Agent(A2A)协议,使 Agent 之间能够 跨网络进行能力协商、任务委派和结果回传。 |
|
pool
Package pool 提供 Agent 健康检查心跳池,用于维护 A2A 联邦网络中 Agent 节点的活跃状态。
|
Package pool 提供 Agent 健康检查心跳池,用于维护 A2A 联邦网络中 Agent 节点的活跃状态。 |
|
registry
Package registry 提供 Agent 注册表,用于管理 A2A 协议中的 Agent 发现和查询。
|
Package registry 提供 Agent 注册表,用于管理 A2A 协议中的 Agent 发现和查询。 |
|
Package a2ui implements the A2UI (Agent-to-UI) protocol, version 0.9.1, as specified at https://a2ui.org.
|
Package a2ui implements the A2UI (Agent-to-UI) protocol, version 0.9.1, as specified at https://a2ui.org. |
|
Package acp 实现 Agent 通信协议(Agent Communication Protocol),基于 JSON-RPC 2.0 提供跨进程 Agent 之间的标准消息交换机制。
|
Package acp 实现 Agent 通信协议(Agent Communication Protocol),基于 JSON-RPC 2.0 提供跨进程 Agent 之间的标准消息交换机制。 |
|
Package agentcore provides the Atom abstraction — composable, reusable pipeline atoms for patent/legal workflows.
|
Package agentcore provides the Atom abstraction — composable, reusable pipeline atoms for patent/legal workflows. |
|
cache
Package cache 提供统一的缓存策略管理(Cache-First Architecture, P2)。
|
Package cache 提供统一的缓存策略管理(Cache-First Architecture, P2)。 |
|
concurrency
Package concurrency 提供泛型并发控制工具,包括类型安全的 Worker Pool, 支持任务提交、结果收集和优雅关闭。
|
Package concurrency 提供泛型并发控制工具,包括类型安全的 Worker Pool, 支持任务提交、结果收集和优雅关闭。 |
|
evidence
Package evidence provides an in-memory ledger of tool-call receipts for the current agent turn.
|
Package evidence provides an in-memory ledger of tool-call receipts for the current agent turn. |
|
filecheckpoint
Package filecheckpoint provides a git-free snapshot-based edit safety net.
|
Package filecheckpoint provides a git-free snapshot-based edit safety net. |
|
iface
Package iface provides the core interface contracts for the Mady agent runtime.
|
Package iface provides the core interface contracts for the Mady agent runtime. |
|
permission
Package permission provides fine-grained tool-call access control.
|
Package permission provides fine-grained tool-call access control. |
|
planmode
Package planmode provides tool-call gating for plan mode.
|
Package planmode provides tool-call gating for plan mode. |
|
Package agui 实现 Agent GUI 事件协议(Agent GUI Protocol),通过 SSE (Server-Sent Events)将 Agent 内部事件实时推送给前端 UI。
|
Package agui 实现 Agent GUI 事件协议(Agent GUI Protocol),通过 SSE (Server-Sent Events)将 Agent 内部事件实时推送给前端 UI。 |
|
cmd
|
|
|
mady
command
Package main 是 Mady 项目的统一入口,提供 tui、serve 和 acp 三个 子命令,支持 Router Agent 模式和 Invisible Handoff 集成模式。
|
Package main 是 Mady 项目的统一入口,提供 tui、serve 和 acp 三个 子命令,支持 Router Agent 模式和 Invisible Handoff 集成模式。 |
|
Package disclosure 实现技术交底书(Invention Disclosure)分析管线, 基于 Pregel 图引擎驱动 10 个分析节点对专利交底书进行结构化解析。
|
Package disclosure 实现技术交底书(Invention Disclosure)分析管线, 基于 Pregel 图引擎驱动 10 个分析节点对专利交底书进行结构化解析。 |
|
Package domains provides domain-specific Agent configurations and the top-level Router Agent for multi-domain intent classification and Handoff.
|
Package domains provides domain-specific Agent configurations and the top-level Router Agent for multi-domain intent classification and Handoff. |
|
doctmpl
Package doctmpl provides patent/legal document template loading and variable resolution.
|
Package doctmpl provides patent/legal document template loading and variable resolution. |
|
domainconfig
Package domainconfig 提供领域 Agent 的声明式配置系统。
|
Package domainconfig 提供领域 Agent 的声明式配置系统。 |
|
inventiveness
Package inventiveness 提供完全独立的创造性分析 Pregel 子图。
|
Package inventiveness 提供完全独立的创造性分析 Pregel 子图。 |
|
reasoning
Package reasoning implements structured legal/patent reasoning primitives: the shared FactBlackboard, the categorical Syllogism engine, the multi-hop ReasoningWalker, and the RuleAssertion validator.
|
Package reasoning implements structured legal/patent reasoning primitives: the shared FactBlackboard, the categorical Syllogism engine, the multi-hop ReasoningWalker, and the RuleAssertion validator. |
|
reasoning/collector
Package collector implements Stage ① Fact Collectors for the five-step reasoning workflow.
|
Package collector implements Stage ① Fact Collectors for the five-step reasoning workflow. |
|
reasoning/sqlite
Package sqlite provides SQLite-backed persistence for reasoning workflow checkpoints.
|
Package sqlite provides SQLite-backed persistence for reasoning workflow checkpoints. |
|
reasoning/wiring
Package wiring adapts infrastructure-layer knowledge backends (SQLite FTS, Obsidian wiki cards) to the reasoning package's rule-source interfaces.
|
Package wiring adapts infrastructure-layer knowledge backends (SQLite FTS, Obsidian wiki cards) to the reasoning package's rule-source interfaces. |
|
rules
Package rules 实现 YAML 规则引擎,支持 OA(Office Action)审查意见 解析器和反套话引擎(Slop Engine),用于专利审查意见的自动化处理。
|
Package rules 实现 YAML 规则引擎,支持 OA(Office Action)审查意见 解析器和反套话引擎(Slop Engine),用于专利审查意见的自动化处理。 |
|
sqlite
Package sqlite provides SQLite-backed persistence for approval records.
|
Package sqlite provides SQLite-backed persistence for approval records. |
|
writing
Package writing provides pattern-based writing guidance for patent/legal drafting.
|
Package writing provides pattern-based writing guidance for patent/legal drafting. |
|
Package doomloop provides a detector framework for identifying and breaking agent execution loops (infinite loops, repetition traps, cycling, etc.) in the Mady agent runtime.
|
Package doomloop provides a detector framework for identifying and breaking agent execution loops (infinite loops, repetition traps, cycling, etc.) in the Mady agent runtime. |
|
Package evaluate provides offline evaluation infrastructure for agent workflows, RAG pipelines, and structured outputs.
|
Package evaluate provides offline evaluation infrastructure for agent workflows, RAG pipelines, and structured outputs. |
|
benchmark
Package benchmark provides Golden Benchmark datasets for evaluating Mady agents.
|
Package benchmark provides Golden Benchmark datasets for evaluating Mady agents. |
|
cli
Package cli provides the CLI evaluation engine for running benchmarks from the command line via `mady eval`.
|
Package cli provides the CLI evaluation engine for running benchmarks from the command line via `mady eval`. |
|
example
|
|
|
a2a-client
command
|
|
|
a2a-server
command
|
|
|
a2ui-demo
command
a2ui-demo 演示如何使用 A2UI Builder API 构造声明式 Agent UI 信封, 并通过 AG-UI CUSTOM 事件将界面推送给前端渲染器。
|
a2ui-demo 演示如何使用 A2UI Builder API 构造声明式 Agent UI 信封, 并通过 AG-UI CUSTOM 事件将界面推送给前端渲染器。 |
|
acp-server
command
Command acp-server runs Mady behind the Agent Client Protocol (ACP) so it can be used as an agent inside ACP-compatible editors such as Zed.
|
Command acp-server runs Mady behind the Agent Client Protocol (ACP) so it can be used as an agent inside ACP-compatible editors such as Zed. |
|
build-wiki-index
command
|
|
|
enrich-relations
command
|
|
|
provider-compat
Package providercompat contains compatibility tests for third-party LLM providers that implement the Chat Completions protocol.
|
Package providercompat contains compatibility tests for third-party LLM providers that implement the Chat Completions protocol. |
|
tui-demo
command
Command tui-demo exercises the phase-1 TUI scaffold: raw-mode input, differential rendering, focus stack, CSI 2026 synchronized output, bracketed paste, SIGWINCH, and keybinding resolution.
|
Command tui-demo exercises the phase-1 TUI scaffold: raw-mode input, differential rendering, focus stack, CSI 2026 synchronized output, bracketed paste, SIGWINCH, and keybinding resolution. |
|
Package filequeue provides a mutex-protected, file-backed append-only queue.
|
Package filequeue provides a mutex-protected, file-backed append-only queue. |
|
Package fuzzy 提供字符串模糊匹配引擎,支持 Levenshtein 编辑距离、 Jaccard 相似度等算法,用于法律文本中的模糊检索和名称匹配。
|
Package fuzzy 提供字符串模糊匹配引擎,支持 Levenshtein 编辑距离、 Jaccard 相似度等算法,用于法律文本中的模糊检索和名称匹配。 |
|
Package graph 提供图引擎基础设施,支持 DAG(有向无环图)编排和 Pregel 分布式图处理范式,是 disclosure 分析管线和 workflow 系统的底层引擎。
|
Package graph 提供图引擎基础设施,支持 DAG(有向无环图)编排和 Pregel 分布式图处理范式,是 disclosure 分析管线和 workflow 系统的底层引擎。 |
|
Package guardrails provides a domain-graded content safety and compliance infrastructure for the Mady agent framework.
|
Package guardrails provides a domain-graded content safety and compliance infrastructure for the Mady agent framework. |
|
guardian
Package guardian provides AI-powered safety review for tool calls.
|
Package guardian provides AI-powered safety review for tool calls. |
|
Package knowledge provides high-level knowledge management on top of the retrieval infrastructure.
|
Package knowledge provides high-level knowledge management on top of the retrieval infrastructure. |
|
fileindex
Package fileindex 提供文件索引器,支持从 PDF、DOCX、图片、音频、 电子表格和纯文本等多文件类型中提取文本内容用于知识库索引。
|
Package fileindex 提供文件索引器,支持从 PDF、DOCX、图片、音频、 电子表格和纯文本等多文件类型中提取文本内容用于知识库索引。 |
|
graph
Package graph 实现知识图谱的存储、查询和图增强检索(Graph RAG), 将知识库中的实体关系建模为图结构以支持多跳推理。
|
Package graph 实现知识图谱的存储、查询和图增强检索(Graph RAG), 将知识库中的实体关系建模为图结构以支持多跳推理。 |
|
loader
Package loader 提供 Wiki(百科)知识加载器,支持从 Obsidian wiki 目录 加载结构化知识到知识库中。
|
Package loader 提供 Wiki(百科)知识加载器,支持从 Obsidian wiki 目录 加载结构化知识到知识库中。 |
|
risk
Package risk provides active risk scanning for patent/legal analysis.
|
Package risk provides active risk scanning for patent/legal analysis. |
|
sqlite
Package sqlite 提供基于 SQLite 的只读知识库层,集成 FTS5 全文检索 和向量余弦相似度搜索,作为 lightweight 本地知识检索方案。
|
Package sqlite 提供基于 SQLite 的只读知识库层,集成 FTS5 全文检索 和向量余弦相似度搜索,作为 lightweight 本地知识检索方案。 |
|
Package mcp 实现 Model Context Protocol(MCP)客户端,支持与 MCP 服务端 通过 stdio 或 HTTP/SSE 传输层进行通信,动态发现工具和资源。
|
Package mcp 实现 Model Context Protocol(MCP)客户端,支持与 MCP 服务端 通过 stdio 或 HTTP/SSE 传输层进行通信,动态发现工具和资源。 |
|
Package memory 实现三层长期记忆系统(User / Session / Long-term), 为 Agent 提供跨会话的知识保持和偏好学习能力。
|
Package memory 实现三层长期记忆系统(User / Session / Long-term), 为 Agent 提供跨会话的知识保持和偏好学习能力。 |
|
compiler
Package compiler extends Mady's memory system with strategy learning.
|
Package compiler extends Mady's memory system with strategy learning. |
|
pkg
|
|
|
agentconfig
Package agentconfig assembles the agent provider/model/thinking configuration from environment variables.
|
Package agentconfig assembles the agent provider/model/thinking configuration from environment variables. |
|
csync
Package csync provides generic thread-safe concurrent primitives.
|
Package csync provides generic thread-safe concurrent primitives. |
|
i18n
Package i18n 提供轻量级国际化(i18n)支持。
|
Package i18n 提供轻量级国际化(i18n)支持。 |
|
lawcite
Package lawcite 提供中文专利法域文本中法条引用的结构化抽取。
|
Package lawcite 提供中文专利法域文本中法条引用的结构化抽取。 |
|
Package pluginsys provides portable, file-based plugin manifests for composable patent/legal workflow units.
|
Package pluginsys provides portable, file-based plugin manifests for composable patent/legal workflow units. |
|
Package prompt provides prompt template loading and variable resolution for Mady's curated prompt template library.
|
Package prompt provides prompt template loading and variable resolution for Mady's curated prompt template library. |
|
protocol
|
|
|
jsonrpc
Package jsonrpc provides shared JSON-RPC 2.0 types used by the A2A, ACP, and MCP protocol implementations within mady.
|
Package jsonrpc provides shared JSON-RPC 2.0 types used by the A2A, ACP, and MCP protocol implementations within mady. |
|
provider
|
|
|
adapter
Package adapter provides a unified interface for Mady to detect, spawn, and communicate with external AI coding agents (Claude Code, Codex, Cursor, Copilot, etc.).
|
Package adapter provides a unified interface for Mady to detect, spawn, and communicate with external AI coding agents (Claude Code, Codex, Cursor, Copilot, etc.). |
|
chatcompat
Package chatcompat implements the Chat Completions API protocol.
|
Package chatcompat implements the Chat Completions API protocol. |
|
smartrouter
Package smartrouter implements a task-aware agentcore.Provider that routes requests to the best-suited backend model based on task type, quality, cost, and latency priorities.
|
Package smartrouter implements a task-aware agentcore.Provider that routes requests to the best-suited backend model based on task type, quality, cost, and latency priorities. |
|
Citation tracker — provenance tracking and rendering for retrieved items.
|
Citation tracker — provenance tracking and rendering for retrieved items. |
|
domain
Package domain provides the shared retrieval base for domain-specific data sources (patent databases, legal databases, etc.).
|
Package domain provides the shared retrieval base for domain-specific data sources (patent databases, legal databases, etc.). |
|
domain/sqlite
Package sqlite provides the first concrete implementation of domain.DomainRetriever, backed by the local knowledge.db SQLite store.
|
Package sqlite provides the first concrete implementation of domain.DomainRetriever, backed by the local knowledge.db SQLite store. |
|
internal
Package internal 提供内部共享的向量工具函数,供 retrieval、knowledge、memory 包使用。
|
Package internal 提供内部共享的向量工具函数,供 retrieval、knowledge、memory 包使用。 |
|
scripts
|
|
|
replay_citation_gate
command
replay_citation_gate 是引用核验 Gate 的离线回放验收工具 (docs/design/citation-verification-gate.md §8.2 硬性验收标准)。
|
replay_citation_gate 是引用核验 Gate 的离线回放验收工具 (docs/design/citation-verification-gate.md §8.2 硬性验收标准)。 |
|
replay_citation_metrics
command
replay_citation_metrics 是引用类评测指标的离线回放工具(P1c, docs/design/citation-verification-gate.md §9 验收:指标口径等价)。
|
replay_citation_metrics 是引用类评测指标的离线回放工具(P1c, docs/design/citation-verification-gate.md §9 验收:指标口径等价)。 |
|
smoke_citation_gate
command
smoke_citation_gate 是引用核验 Gate 的端到端单题冒烟工具(P1b 接线后验证)。
|
smoke_citation_gate 是引用核验 Gate 的端到端单题冒烟工具(P1b 接线后验证)。 |
|
Package server provides an HTTP/SSE API server for Mady agents.
|
Package server provides an HTTP/SSE API server for Mady agents. |
|
Package session 提供会话管理功能,以 JSONL 树形结构存储 Agent 对话历史, 支持多分支会话、快照恢复和上下文继承。
|
Package session 提供会话管理功能,以 JSONL 树形结构存储 Agent 对话历史, 支持多分支会话、快照恢复和上下文继承。 |
|
Package skill 提供 SKILL.md 文档的解析和管理功能,支持从 YAML frontmatter 提取技能元数据(名称、描述、触发词、依赖工具列表等)。
|
Package skill 提供 SKILL.md 文档的解析和管理功能,支持从 YAML frontmatter 提取技能元数据(名称、描述、触发词、依赖工具列表等)。 |
|
Package store provides common storage interfaces and implementations for the Mady platform.
|
Package store provides common storage interfaces and implementations for the Mady platform. |
|
tools
module
|
|
|
Package tracing 提供基于 OpenTelemetry 的分布式追踪能力,用于监控 Agent 执行链路、LLM 调用延迟和工具调用性能。
|
Package tracing 提供基于 OpenTelemetry 的分布式追踪能力,用于监控 Agent 执行链路、LLM 调用延迟和工具调用性能。 |
|
tui
module
|
|
|
Package workflow 提供工作流编排原语,包括 Pipeline(顺序执行)、 Parallel(并行执行)和 Router(条件路由),支持构建复杂的任务执行管线。
|
Package workflow 提供工作流编排原语,包括 Pipeline(顺序执行)、 Parallel(并行执行)和 Router(条件路由),支持构建复杂的任务执行管线。 |
|
Package workflows implements domain-specific, multi-step workflow pipelines for legal and patent analysis.
|
Package workflows implements domain-specific, multi-step workflow pipelines for legal and patent analysis. |
|
autoresearch
Package autoresearch 实现面向专利/法律长周期研究任务的自动研究协议。
|
Package autoresearch 实现面向专利/法律长周期研究任务的自动研究协议。 |
|
legal
Package legal provides Pregel-based legal analysis workflows.
|
Package legal provides Pregel-based legal analysis workflows. |
|
patent
Package patent provides Pregel-based patent analysis workflows.
|
Package patent provides Pregel-based patent analysis workflows. |
Click to show internal directories.
Click to hide internal directories.