Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
mash
command
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), and a CLI for people and scripts.
|
Command mash is a messaging mesh for agents: a Claude Code channel server (mash serve), and a CLI for people and scripts. |
|
mashctl
command
Command mashctl administers a mash deployment: it creates the directory and lease buckets, sets endpoint metadata, and prints limits and the NATS permissions an endpoint user needs.
|
Command mashctl administers a mash deployment: it creates the directory and lease buckets, sets endpoint metadata, and prints limits and the NATS permissions an endpoint user needs. |
|
internal
|
|
|
admin
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it.
|
Package admin provisions mash endpoints: the permission template a NATS user needs, and the streams, consumer and directory record behind it. |
|
adrindex
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068).
|
Package adrindex generates docs/decisions/INDEX.md from the records' front matter (ADR 0068). |
|
apply
Package apply is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify.
|
Package apply is mashctl's view of the account resolver through the system account (ADR 0052): it looks the account JWT up on the servers, pushes a revision of it signed with the operator key, and reads it back to verify. |
|
claudesettings
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist.
|
Package claudesettings reads Claude Code's managed settings, read-only, to say whether mash is on the channel allowlist. |
|
cliframe
Package cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report.
|
Package cliframe is the frame shared by the mash and mashctl command lines: the global options, accepted anywhere in the arguments, and the error report. |
|
cmdcore
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool.
|
Package cmdcore defines a command once and serves it through both doors: the command line and an MCP tool. |
|
cmdcore/cmds
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool.
|
Package cmds holds the commands defined on cmdcore: each is a params struct, a result struct and a Run, served through both the command line and the MCP tool. |
|
cmdcore/render
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts.
|
Package render holds the small text helpers shared by the commands' human output: relative times, aligned tables, the terminal width, colour and plural counts. |
|
config
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins.
|
Package config loads mash's settings: config.json in the config directory (see ConfigDir), then the environment, which wins. |
|
ctl
Package ctl is the admin verb set of mashctl.
|
Package ctl is the admin verb set of mashctl. |
|
ctlkeys
Package ctlkeys is the key store of mashctl: the account signing seed (and the operator and system keys of a server `mashctl init --local` stood up), kept as 0600 files in a 0700 directory (ADR 0052).
|
Package ctlkeys is the key store of mashctl: the account signing seed (and the operator and system keys of a server `mashctl init --local` stood up), kept as 0600 files in a 0700 directory (ADR 0052). |
|
endpoint
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory.
|
Package endpoint is one mash endpoint: its NATS connection, identity, lease, inbox and view of the directory. |
|
enroll
Package enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox).
|
Package enroll signs the user credential of an endpoint from a PUBLIC key the endpoint made, so no private key reaches the central host, and records the endpoint (issue record, directory record, inbox). |
|
host
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later.
|
Package host isolates what is specific to the agent host a mash session runs in (Claude Code today), so other hosts (Hermes, Pi) can plug in later. |
|
issue
Package issue is the issue service (REQ-013, ADR 0104): it takes a request that holds a sender's PUBLIC key and the address the key is for, countersigned by the requester on the sender's host, and returns a user JWT for that key, signed with the owner group's scoped signing key and carrying the tags mash's own table gives that address.
|
Package issue is the issue service (REQ-013, ADR 0104): it takes a request that holds a sender's PUBLIC key and the address the key is for, countersigned by the requester on the sender's host, and returns a user JWT for that key, signed with the owner group's scoped signing key and carrying the tags mash's own table gives that address. |
|
joinfile
Package joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it.
|
Package joinfile is the join file: the one text file whoever runs a mesh hands to a machine that is to join it. |
|
keycred
Package keycred makes a user key pair.
|
Package keycred makes a user key pair. |
|
kind
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session.
|
Package kind is a message's kind: what the sender wants of the recipient, which decides whether it wakes an idle session. |
|
listset
Package listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say.
|
Package listset turns a list set into scoped-key permission templates and per-sender tags, and refuses to produce anything the NATS server would not enforce exactly as the lists say. |
|
mcp
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel.
|
Package mcp is a minimal Model Context Protocol server over stdio, enough to be a Claude Code channel: initialize (declaring claude/channel), tools, ping, and notifications/claude/channel. |
|
mint
Package mint makes the NATS user JWT and creds of one endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions).
|
Package mint makes the NATS user JWT and creds of one endpoint: signed by the account signing key and carrying the endpoint's own permission set (admin.Permissions). |
|
namerule
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077).
|
Package namerule reads and applies mash's name-acceptance rule file, name-rule@1 (docs/name-rule.md, ADR 0077). |
|
natsauth
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle.
|
Package natsauth connects to NATS with a user creds file without turning the client into a signing oracle. |
|
natsfixture
Package natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks).
|
Package natsfixture is test fixtures only: nothing in a release binary may import it (isolation_test.go checks). |
|
policy
Package policy holds the size limits the JWTs mash makes must fit.
|
Package policy holds the size limits the JWTs mash makes must fit. |
|
policyapply
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3).
|
Package policyapply is the core of the applied-policy gate (contract mash-messaging-policy REQ-011, draft-3). |
|
policydoc
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies.
|
Package policydoc decodes the list-set document: the one value per account that a policy author keeps and mash applies. |
|
policyintake
Package policyintake is the intake of list sets: it watches the key `listset.<account>` of the policy bucket, checks each delivered revision against the account's adoption marker, hands a verified list set to an applier and reports every refusal.
|
Package policyintake is the intake of list sets: it watches the key `listset.<account>` of the policy bucket, checks each delivered revision against the account's adoption marker, hands a verified list set to an applier and reports every refusal. |
|
policyserve
Package policyserve is the production assembly of the list-set intake: the adapters the intake needs (decode, document in force, refusals, held keys, the write guard), the signer over the key store, the server limits read through the system account, and the Applier that builds everything policyapply.Apply needs for one verified document.
|
Package policyserve is the production assembly of the list-set intake: the adapters the intake needs (decode, document in force, refusals, held keys, the write guard), the signer over the key store, the server limits read through the system account, and the Applier that builds everything policyapply.Apply needs for one verified document. |
|
policyview
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010).
|
Package policyview is the responder behind `mash policy show` and `mash policy explain` (REQ-010). |
|
portable
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout).
|
Package portable holds the portable-code lint: a plain go test that walks the source tree and counts places where product code carries a personal convention (a person's or machine's name, a home or temp path, a foreign GitHub org, an inline long timeout). |
|
reconcile
Package reconcile is the first-list-set reconcile of an adopted account (AT-015, ADR 0111): it plans, and with a signer executes, the removal of what the account held before its first list set that the list set does not own.
|
Package reconcile is the first-list-set reconcile of an adopted account (AT-015, ADR 0111): it plans, and with a signer executes, the removal of what the account held before its first list set that the list set does not own. |
|
refgen
Package refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/.
|
Package refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/. |
|
releasenotes
Package releasenotes is the one place that judges a release's notes (ADR 0105, release standard rule 23): a release's notes and its change-log section are the same text, and it opens with prose before any list.
|
Package releasenotes is the one place that judges a release's notes (ADR 0105, release standard rule 23): a release's notes and its change-log section are the same text, and it opens with prose before any list. |
|
render
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message.
|
Package render turns mail into the text a Claude session sees: a small batch in full, a large one as a digest of one line per message. |
|
requesterreg
Package requesterreg is the static requester registry: a file that says which requester public key may countersign an issue request for which host and owner group (REQ-013, ADR 0104).
|
Package requesterreg is the static requester registry: a file that says which requester public key may countersign an issue request for which host and owner group (REQ-013, ADR 0104). |
|
sap
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13).
|
Package sap implements the parts of the Synadia Agent Protocol 0.3 that mash uses: subjects (§2), and sender identity (§13). |
|
spool
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0).
|
Package spool is the hand-over between serve and a Claude Code session's hooks (hook delivery, mash v0.2.0). |
|
store
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5).
|
Package store holds mash's JetStream layout: per-endpoint inbox streams, their consumer, and the directory and lease KV buckets (spec section 5). |
|
testenv
Package testenv runs an in-process nats-server in operator mode for integration tests.
|
Package testenv runs an in-process nats-server in operator mode for integration tests. |
|
scripts
|
|
|
adrlint
command
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker).
|
Command adrlint enforces the architecture decision records under docs/decisions (adr-lint.yml's checker). |
|
buildrelease
command
Command buildrelease builds mash (or mashctl, with -cmd) exactly as a release does and prints "<sha256> <path>".
|
Command buildrelease builds mash (or mashctl, with -cmd) exactly as a release does and prints "<sha256> <path>". |
|
changelog
command
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md.
|
Command changelog keeps CHANGELOG.md out of pull requests (ADR 0068): a user-facing change adds a fragment file changelog.d/<slug>.<kind>.md, and release preparation folds the fragments into CHANGELOG.md. |
|
dirbench
command
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count").
|
Command dirbench is a MEASUREMENT TOOL, not product code (bogworks/mash#43, "directory polling grows with the square of the endpoint count"). |
|
liveat
command
Command liveat runs the live acceptance tests AT-001 to AT-003 and AT-4 (the security boundaries, at004) of the 0.5.5 endpoint-model contract against a build of this checkout.
|
Command liveat runs the live acceptance tests AT-001 to AT-003 and AT-4 (the security boundaries, at004) of the 0.5.5 endpoint-model contract against a build of this checkout. |
|
liveat/nodeinit
command
Command nodeinit is the only helper in an AT-005 node image.
|
Command nodeinit is the only helper in an AT-005 node image. |
|
publishcheck
command
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic".
|
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic". |
|
refgen
command
Command refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/.
|
Command refgen generates the plain-markdown command reference under docs/reference from the spec files in spec/. |
|
releasecheck
command
Command release-check is mash's release gate.
|
Command release-check is mash's release gate. |
|
reviewgate
command
Command reviewgate is the verdict engine of the in-session review gate (ADR 0080).
|
Command reviewgate is the verdict engine of the in-session review gate (ADR 0080). |
|
scrubcheck
command
Command scrubcheck is a one-time verification: it finds the words in words.txt in the shipped surfaces.
|
Command scrubcheck is a one-time verification: it finds the words in words.txt in the shipped surfaces. |
Click to show internal directories.
Click to hide internal directories.