Directories
¶
| Path | Synopsis |
|---|---|
|
Package agent wires real LLM-driven planner and work agents (on top of the embedded norma SDK) to the PostgreSQL asset and exploration graphs.
|
Package agent wires real LLM-driven planner and work agents (on top of the embedded norma SDK) to the PostgreSQL asset and exploration graphs. |
|
cmd
|
|
|
artex-redteam
command
Command artex-redteam runs the ARTEX-RedTeam backend: the PostgreSQL-backed asset and exploration graphs, the event-driven exploration engine, and the JSON HTTP API consumed by the shadcn/ui frontend (embedded with -tags embedui).
|
Command artex-redteam runs the ARTEX-RedTeam backend: the PostgreSQL-backed asset and exploration graphs, the event-driven exploration engine, and the JSON HTTP API consumed by the shadcn/ui frontend (embedded with -tags embedui). |
|
Package config loads runtime configuration from a JSON file, with environment variables taking precedence.
|
Package config loads runtime configuration from a JSON file, with environment variables taking precedence. |
|
Package db is the PostgreSQL data source for ARTEX-RedTeam (取代旧 graph 单文件 SQLite)。
|
Package db is the PostgreSQL data source for ARTEX-RedTeam (取代旧 graph 单文件 SQLite)。 |
|
Package enrich is the engine-side (non-AI) asset auto-completion layer: an async worker pool that resolves domains (dnsx) and probes web assets (HTTP, through the recording proxy) and writes the results back into the asset graph — creating IP/port nodes, resolves/exposes edges, and filling attrs.dns / attrs.http.
|
Package enrich is the engine-side (non-AI) asset auto-completion layer: an async worker pool that resolves domains (dnsx) and probes web assets (HTTP, through the recording proxy) and writes the results back into the asset graph — creating IP/port nodes, resolves/exposes edges, and filling attrs.dns / attrs.http. |
|
Package evidence preserves finding evidence independently of disposable traffic.
|
Package evidence preserves finding evidence independently of disposable traffic. |
|
Package guard implements the safety boundary layer (docs §11): an audit log, user-configured intercept-rule evaluation, and Observer/G5 failure attribution.
|
Package guard implements the safety boundary layer (docs §11): an audit log, user-configured intercept-rule evaluation, and Observer/G5 failure attribution. |
|
Package intercept implements the user-configurable tool-call interception layer.
|
Package intercept implements the user-configurable tool-call interception layer. |
|
internal
|
|
|
testdb
Package testdb is the single entry point for tests that touch the PostgreSQL test database.
|
Package testdb is the single entry point for tests that touch the PostgreSQL test database. |
|
Package llmpool implements LLM failover ("轮询"): a Provider decorator that walks an ordered chain of LLM profiles and moves to the next one when the current one can't serve the request — out of credit, revoked key, rate-limited past the SDK's own retries, or down.
|
Package llmpool implements LLM failover ("轮询"): a Provider decorator that walks an ordered chain of LLM profiles and moves to the next one when the current one can't serve the request — out of credit, revoked key, rate-limited past the SDK's own retries, or down. |
|
Package llmrec implements a recording decorator for llm.Provider.
|
Package llmrec implements a recording decorator for llm.Provider. |
|
Package mcphttp contains remote Streamable HTTP and legacy SSE MCP clients.
|
Package mcphttp contains remote Streamable HTTP and legacy SSE MCP clients. |
|
norma
|
|
|
agentcore
Package agentcore is the public entry point of the SDK.
|
Package agentcore is the public entry point of the SDK. |
|
compaction
Package compaction keeps a conversation within a model's context window using three mechanisms aligned 1:1 with claude-code (see docs/COMPACTION-SPEC-3.md):
|
Package compaction keeps a conversation within a model's context window using three mechanisms aligned 1:1 with claude-code (see docs/COMPACTION-SPEC-3.md): |
|
coordinator
Package coordinator implements coordinator mode: a top-level agent that decomposes work and delegates each unit to isolated "worker" subagents instead of doing the work itself.
|
Package coordinator implements coordinator mode: a top-level agent that decomposes work and delegates each unit to isolated "worker" subagents instead of doing the work itself. |
|
harness
Package harness implements the agent's core loop as a state machine: stream a completion, recover from max-output-tokens / prompt-too-long, surface text/thinking/tool events, execute tool calls through a streaming executor (FIFO + exclusive scheduling), gate the Stop transition with hooks and a token budget, and repeat.
|
Package harness implements the agent's core loop as a state machine: stream a completion, recover from max-output-tokens / prompt-too-long, surface text/thinking/tool events, execute tool calls through a streaming executor (FIFO + exclusive scheduling), gate the Stop transition with hooks and a token budget, and repeat. |
|
hook
Package hook provides Go-native lifecycle hooks (FR-08): callbacks fired at eight points in the agent loop that can observe state, block or rewrite tool calls, inject context, and gate the Stop transition.
|
Package hook provides Go-native lifecycle hooks (FR-08): callbacks fired at eight points in the agent loop that can observe state, block or rewrite tool calls, inject context, and gate the Stop transition. |
|
llm
Package llm defines a vendor-neutral message model and a pluggable Provider interface, with adapters that speak the Anthropic Messages API and the OpenAI Chat Completions API.
|
Package llm defines a vendor-neutral message model and a pluggable Provider interface, with adapters that speak the Anthropic Messages API and the OpenAI Chat Completions API. |
|
mcp
Package mcp integrates Model Context Protocol tools (FR-10).
|
Package mcp integrates Model Context Protocol tools (FR-10). |
|
memory
Package memory gives the agent persistent, file-backed long-term memory.
|
Package memory gives the agent persistent, file-backed long-term memory. |
|
noa
Package noa is a model-driven context-compression engine: a pure core with no host dependency, no I/O, and no model calls.
|
Package noa is a model-driven context-compression engine: a pure core with no host dependency, no I/O, and no model calls. |
|
noaadapter
Package noaadapter wires the pure noa engine into Norma: it projects llm.Message into noa's flat representation and back, persists state and archives, and exposes the Compress tool.
|
Package noaadapter wires the pure noa engine into Norma: it projects llm.Message into noa's flat representation and back, persists state and archives, and exposes the Compress tool. |
|
permission
Package permission is the agent's safety boundary.
|
Package permission is the agent's safety boundary. |
|
plan
Package plan implements plan mode: the agent first explores read-only and drafts a plan, then calls ExitPlanMode to present it for approval.
|
Package plan implements plan mode: the agent first explores read-only and drafts a plan, then calls ExitPlanMode to present it for approval. |
|
skill
Package skill implements the skill system: named, reusable instruction packages the agent can invoke on demand.
|
Package skill implements the skill system: named, reusable instruction packages the agent can invoke on demand. |
|
subagent
Package subagent lets the agent delegate to isolated child agents (FR-09).
|
Package subagent lets the agent delegate to isolated child agents (FR-09). |
|
tool
Package tool defines the CoreTool contract and the built-in file/shell tools that give the agent its hands.
|
Package tool defines the CoreTool contract and the built-in file/shell tools that give the agent its hands. |
|
transcript
Package transcript persists a conversation to an append-only JSONL log on disk and reconstructs it for resume.
|
Package transcript persists a conversation to an append-only JSONL log on disk and reconstructs it for resume. |
|
Package notify 实现漏洞发现的 IM / 邮件推送渠道适配层。
|
Package notify 实现漏洞发现的 IM / 邮件推送渠道适配层。 |
|
Package proxypool provides the outbound proxy pool: dialing through a proxy of any supported scheme, active health probing, and fetching free proxy sources.
|
Package proxypool provides the outbound proxy pool: dialing through a proxy of any supported scheme, active health probing, and fetching free proxy sources. |
|
Package report renders a deliverable Markdown report from the exploration graph: confirmed findings (with severity/evidence) (docs §15 P5).
|
Package report renders a deliverable Markdown report from the exploration graph: confirmed findings (with severity/evidence) (docs §15 P5). |
|
Package selfupdate implements ARTEX-RedTeam 的页面一键更新:从 GitHub Release 拉取新版 二进制、校验、暂存,并在下次启动时原子换装。
|
Package selfupdate implements ARTEX-RedTeam 的页面一键更新:从 GitHub Release 拉取新版 二进制、校验、暂存,并在下次启动时原子换装。 |
|
Package sidequestion captures immutable main-agent checkpoints.
|
Package sidequestion captures immutable main-agent checkpoints. |
|
Package traffic implements the request-recording subsystem (docs §10): an embedded go-mitmproxy proxy whose addon writes every target HTTP exchange into a human-browsable file tree, with a sidecar SQLite index for paged queries.
|
Package traffic implements the request-recording subsystem (docs §10): an embedded go-mitmproxy proxy whose addon writes every target HTTP exchange into a human-browsable file tree, with a sidecar SQLite index for paged queries. |
Click to show internal directories.
Click to hide internal directories.












