thismoon

module
v0.0.0-...-031033b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: BSD-3-Clause

README

thismoon

Give your coding agent the same tools you use, on your own disk.

thismoon is a fleet of local-first developer tools for macOS on Apple Silicon, built to share with coding agents such as Claude Code and Codex. It covers code search, agent memory, guard hooks, secret and dependency scanning, briefing pages, and text to speech. Each one is a small web service on its own http://<name>.this/ address and a CLI; most are also MCP servers, so you and your agent work against the same local data. The code search you run in a browser is the index Claude queries; the briefing an agent writes is the page you read at present.this. Services are sandboxed launchd agents, the MCP servers run sandboxed too, notifications are native, binaries are codesigned. No cloud, no accounts: your code, notes, and dashboards stay on your disk.

One of the things I use daily is the reading support. The shared web chrome has a fixation toggle that bolds the first half of every word to pull your eye along the line. present can read a page aloud section by section at a speed you pick, with speak preparing the audio ahead of you. For a long briefing that combination is easier on the eyes and the attention, and it genuinely helps if you read with dyslexia. speak's MCP tools extend it to agents. An agent can hand it a markdown file and it reads the whole thing aloud on the speakers, so you can take in a long doc by ear.

This is a personal project in the plainest sense: each tool grew out of a problem I hit building my own things. An agent that pushed straight to master, internal names that nearly reached a public commit, sessions re-deriving what a previous session had already worked out. I experiment here first, run everything daily on my own machines, and plan to keep building and sharing in the open. The hope is that some of these tools earn a place in someone else's setup too; the State column below is the honest record of what has stuck on mine.

[!NOTE] I run this as one system: ralph installs and updates everything. The core set (ralph, t-man, d-man, csl, belt, suspenders, humanizer, worklog, events, present, toss-bin) is what I use daily, wired together. Every tool works standalone, but some run degraded that way: belt does nothing until its hooks are wired, and events is only as useful as what reports into it. The cross-tool loops (search hints, guard audit trails, memory injection) exist only in the full setup. The remaining services are easier to leave out. If you take just one thing, csl is the best standalone pick.

Start with one tool, csl for code search over your local checkouts, through mise:

mise tool-alias set csl github:mad01/thismoon
mise use -g "csl[version_prefix=csl/]"

or install the whole fleet with ralph (see Install).

Component states

The State column in the tables below says how settled a component is, not how well it works — everything listed is running on real machines.

  • proven — earns its keep, used often enough that it is likely to stick. Treat its shape and interfaces as stable.
  • evaluating — works, but still on trial. It might graduate to proven, or it might be reworked or dropped once it's had a fair run.
  • experimental — early and unsettled. Expect it to change or disappear; don't build anything load-bearing on top of it yet.

A component only moves up once it's been used enough to trust. The lower two levels are honest labels: some of them won't stay. The tables are sorted by state, proven first, then by name.

Services

Long-running local web services under services/, each on its own *.this address, managed as launchd agents by t-man.

Service What it does Interfaces State
csl Code search over local checkouts (zoekt index) web · CLI · MCP proven
d-man The .this front door: managed /etc/hosts entries + reverse proxy CLI proven
deps Supply-chain scanner: checks dependencies against OSV.dev, flags advisories web · CLI · MCP proven
events Local event and audit log, archive-only JSONL store web · CLI · MCP proven
present Single-page HTML briefings and slide decks, authored as structured JSON web · CLI · MCP proven
speak Reads markdown aloud through a local TTS model web · CLI · MCP proven
status Status page with 30-day uptime history for the fleet web · CLI proven
brain Markdown knowledge base: literal and semantic search over an Obsidian-style vault web · CLI · MCP experimental
moondb Edit history between commits: every file edit an agent session makes, linked to the turn and prompt behind it web · CLI · MCP experimental

Tools

CLI tools under tools/, installed to your local bin.

Tool What it does Interfaces State
clipboard macOS clipboard bridge over pbcopy/pbpaste CLI · MCP proven
humanizer AI-writing detection and voice profiling; its STE check for agent-to-agent text is experimental CLI · MCP proven
opener macOS open bridge: URLs, files, apps, Finder reveal CLI · MCP proven
t-man Declarative launchd agent/daemon manager CLI proven
toss-bin Safe rm replacement: moves files to a dated ~/.Trash folder CLI proven
worklog Resumable cross-session work state, keyed by ticket or topic CLI · MCP proven
belt Claude Code guard and hint hooks: denies risky tool calls, injects context CLI experimental
suspenders Git secret scanner and pre-commit hook orchestrator CLI experimental
agent-sync Syncs Claude Code settings, mods and MCP servers from a data repo onto the machine CLI experimental
harvest Saves what a Claude Code session learned to the brain vault inbox, from a SessionEnd hook CLI experimental
cards Terminal UI that shows JSON Lines from stdin as cards: a list to pick from or a feed to follow CLI experimental

The MCP column is the AI half of the toolbox. Register those components as stdio MCP servers. Then your agent gets the code search, the audit log, and the work-state checkpoints you already use, reading the same files you do rather than a copy of them.

Skills

Alongside the binaries, skills/ ships ten agent skills: instructions Claude Code and Codex load on demand. Invoke one by name (/golang-style) or let the agent pick it up when a task matches its description. Each skill's ralph recipe symlinks it into ~/.claude/skills and ~/.agents/skills, so a fleet machine has them in every session; without ralph, symlink the skill directory there yourself.

Skill Use it when Backed by
ask a question should be answered from the brain vault, with the notes behind the answer cited the brain MCP
golang-pro Go work needs specialist depth on concurrency, generics, profiling, or gRPC (vendored from jeffallan/claude-skills, MIT) nothing — guidance only
golang-style writing or reviewing Go: naming, package layout, error handling, the HTTP/CLI/store patterns this codebase uses nothing — guidance only
handoff a session is ending mid-task and the next one must continue from a cold start nothing — guidance only
harvest a session's findings should be saved to the brain vault inbox as raw captures, by hand with /harvest or automatically at session end the brain MCP or CLI, and the harvest tool
humanizer prose is headed for docs, PR descriptions, or commit bodies and should not read as AI-written the humanizer MCP
loom several agent sessions work one repo in parallel: each claims its own git worktree and commits there, one weaver session lands the branches in order nothing — guidance only
present a work summary or research result deserves a scrollable briefing page with graphs and charts the present service
upgrade-note a change to this repo needs an action on machines that already run the tools, and the entry in docs/UPGRADING.md has to be written or reviewed nothing (guidance only)
worklog a long task spans sessions and repos and needs to be resumable by ticket or topic the worklog MCP

The skill is the workflow; the MCP server or service behind it is its hands. A skill loads fine without its backing component, but its tool-backed steps have nothing to call — registration is machine-private wiring (see docs/HOW-IT-FITS-TOGETHER.md).

Memory and hooks

Every agent session starts with an empty context window. On a fleet machine the stores below carry context from one session to the next, and belt's hooks inject the memory store without the agent having to ask:

Store Holds Reaches the session through
agent-memory facts about you, for every agent on every machine (a directory of one-fact files, usually a private git clone, set up from examples/dotfiles/recipes/agent-memory/) belt's agent-memory hint at session start
worklog where a task stands, keyed by ticket or topic the /worklog skill
handoff a bridge document for the next session the /handoff skill
events what the guards, hints and services did belt's ledger writes it; you query it

Claude Code's built-in auto memory sits beside these: per repo, per machine, Claude-only, and managed with /memory rather than a CLI. None of the stores needs a git host: each can stay on the machine or sync through a private Google Drive folder. docs/MEMORY-STACK.md covers which store gets which fact, how each one is read and written, how to keep each one private, and the hook behind each.

The memory hints are one part of belt. Its guards deny risky tool calls before they run: a push to main, a command that discards uncommitted work, internal names headed for a public repo. Its other hints advise afterwards, such as handing back a csl_search in place of a recursive grep, or asking for a humanizer pass before text leaves the machine. Its ledger records session lifecycle to events. tools/belt/README.md lists every guard and hint, and tools/belt/docs/hooks.md has the wiring.

Sandboxed by default

Every service and MCP server in the fleet runs under anthropics/sandbox-runtime (srt). Each gets no network except the hosts its policy names, no reads under your home directory except what it declares, and writes only to its own state directory and temp. The policy is a few lines of YAML beside the code, in the component's service-info.yaml:

spec:
  access:
    sandbox: srt
    workdir: ~/.local/share/events
    listen: 7430
    reads: [~/code/bin, workdir]
    writes: [workdir, temp]

srtspec renders that to the settings file srt enforces, and CI fails when the two drift. srt-run, the one launcher every sandboxed process goes through, merges the hosts a machine adds at launch and tags each process. So when the kernel denies something, sandbox-watch can name the process: a banner, a line in the denial ledger, an event. A third-party binary you install (an MCP server, a theme watcher) gets the same treatment from a short manifest in your config repo. The one process srt can't confine, the text-to-speech engine that needs Metal, keeps a hand-written seatbelt profile and says so in its manifest. docs/SANDBOXING.md walks through sandboxing a new process and explains each piece; the decision is ADR-0028.

How it fits together

Three layers, two of them public:

thismoon (public)      components + recipes/: the code and how to install it
   ↑ consumed by
ralph (public)         the installer: reconciles machines against TOML recipes
   ↑ configured by
your config repo       machine-private wiring: secrets, host config, overlays
(private)

Each component ships with a recipe under recipes/ that builds it, installs it, and (for services) registers it as a launchd agent. ralph consumes those recipes remotely through a [[recipe_sources]] stanza in its config:

[[recipe_sources]]
name = "thismoon"
url = "git@github.com:mad01/thismoon.git"
ref = "main"
update = true

Recipes merge under the identity thismoon/<recipe>. With ref = "main" and update = true, every ralph up pulls main and converges the machine on the latest recipes; pin ref to a tag or commit to stay put.

The recipes here are deliberately the public layer only: portable build and install steps. Anything machine-private lives in your own config repo as small companion recipes that layer on top: which .this names exist, MCP registration, secrets, config overlays (see docs/adr/0006). A change to a service ships by merging to main; the next ralph up on each machine rebuilds and restarts it.

The longer version of this story, what the fleet adds over standalone tools, the ralph vocabulary, and the rollout order, is docs/HOW-IT-FITS-TOGETHER.md. examples/dotfiles/ is a working private config repo to start from, including an example global CLAUDE.md.

Install

The short version of both paths is below; docs/GETTING-STARTED.md covers them in depth: prerequisites, what each path gives you, the step-by-step fleet bootstrap, and how to verify the result.

One tool

The fastest path is mise. It installs the release tarballs through its github backend, one tool alias per component:

mise tool-alias set csl github:mad01/thismoon
mise use -g "csl[version_prefix=csl/]"
csl web --port 7424   # web UI on http://127.0.0.1:7424

The same two commands with another component's name install it; the getting-started guide lists every component worth installing on its own. To keep a service running, register it as a t-man agent instead of running it in a terminal.

Everything installs from the module path too:

go install github.com/mad01/thismoon/services/present/cmd/present@latest

or from a checkout:

make -C services/present install    # one component
make install-all                    # everything

Prebuilt darwin/arm64 tarballs hang off each component's GitHub Release, with checksums.txt and a cosign keyless signature.

The fleet

For the full setup (services as launchd agents, .this routing, config symlinks) on a fresh machine:

  1. Install ralph: mise use -g github:mad01/ralph (or go install github.com/mad01/ralph/cmd/ralph@latest)
  2. Run ralph init, then add the [[recipe_sources]] stanza shown above to ~/.config/ralph/config.toml (or to your private config repo)
  3. Run ralph up
  4. Register the d-man daemon (the one sudo step) and verify — walkthrough in the getting-started guide

See recipes/ and ralph's configuration reference for profiles, host pinning, and overlays.

Configuration

Precedence is the same across every component: flag > env > config file > compiled default. Each component documents its own flags, env vars, and defaults in a config.md linked from its README — there's no single combined reference. Config files live under ~/.config/<tool>/ (XDG_CONFIG_HOME is honored). Services bind 127.0.0.1 only; see docs/GETTING-STARTED.md for the port table. <name>.this addresses need d-man running; every service also answers on http://localhost:<port> with no .this setup at all.

Upgrading

After you update, read docs/UPGRADING.md. It lists the actions a change needs on a machine that already runs the tools: an import to run once, a hook to move, a leftover to delete. If you follow main, read every entry dated after your last update. If you install releases, read the entries for your component whose Since: version is newer than the one you had. <name> version -o json prints the tag and build time of the build you run.

Releases

Components release independently: per-component semver tags in the form present/v1.2.3, cut by release-please from conventional commits on merge to main. Artifacts ship with a checksums.txt and a cosign keyless signature. The full flow, including how to verify a download and how to register a new component, is in docs/RELEASING.md.

Layout

Path Contents
services/ Local web services, one directory per service
tools/ CLI tools
webkit/ Shared Go web UI package, compiled in, no separate versioning
kit/ Shared Go packages for cross-tool concerns
buildinfo/ Shared build-metadata package behind every /version
recipes/ ralph recipes, consumed remotely via [[recipe_sources]]
skills/ Agent skills (Claude Code + Codex), symlinked in by their recipes
mods/ Claude Code mods: optional status lines and hooks, installed from the thismoon plugin marketplace
examples/dotfiles/ Worked private config repo: overlays + example CLAUDE.md
llms.txt Index of the docs for agents and LLM crawlers, one line per component and guide
docs/adr/ Architecture decision records
docs/GETTING-STARTED.md Install guide: one tool vs the fleet
docs/HOW-IT-FITS-TOGETHER.md The fleet pitch, ralph vocabulary, rollout order
docs/MEMORY-STACK.md Which store holds what an agent should remember, and the hooks behind them
docs/RELEASING.md Release process
docs/SANDBOXING.md Sandboxing with srt: how to sandbox a new process, then the launcher, access manifests, machine layers and denial triage
docs/CONTAINER-BUILDS.md Package-manager build steps in a throwaway Apple container VM: when it is the right tool, the export-only pattern, the runtime setup

Everything is one Go module: github.com/mad01/thismoon. Each component under services/ or tools/ has its own Makefile with build, test, and install targets; the root Makefile discovers and delegates to them (make components lists them).

License

BSD-3-Clause, see LICENSE. No per-file headers; the root license covers the repo.

Directories

Path Synopsis
Package buildinfo reports the build metadata a thismoon component embeds: the short git sha it was built from, the full commit, the component release tag, and when it was built.
Package buildinfo reports the build metadata a thismoon component embeds: the short git sha it was built from, the full commit, the component release tag, and when it was built.
evals
harness command
Command harness runs the agent harness eval: fixed tasks through `claude -p` with the user's real settings, hooks, and MCP servers, scored on outcome plus cost, turns, tokens, and tool use.
Command harness runs the agent harness eval: fixed tasks through `claude -p` with the user's real settings, hooks, and MCP servers, scored on outcome plus cost, turns, tokens, and tool use.
kit
access
Package access is the sandbox access manifest: what one fleet process may reach, declared beside its code as the spec.access block of a component's service-info.yaml, or as a standalone access.yaml in a recipe directory that has no component.
Package access is the sandbox access manifest: what one fleet process may reach, declared beside its code as the spec.access block of a component's service-info.yaml, or as a standalone access.yaml in a recipe directory that has no component.
agentdoc
Package agentdoc renders a component's agent-facing operating doc, MCP instructions, and error hints from one set of mechanical facts.
Package agentdoc renders a component's agent-facing operating doc, MCP instructions, and error hints from one set of mechanical facts.
agentdoc/agentcli
Package agentcli builds the cobra commands behind a component's agent-facing surfaces: `docs` printing the embedded operating doc and `doctor` running the kit/doctor checks.
Package agentcli builds the cobra commands behind a component's agent-facing surfaces: `docs` printing the embedded operating doc and `doctor` running the kit/doctor checks.
agentdoc/agentdoctest
Package agentdoctest holds the shared test gate every component runs over its embedded operating doc, so the per-component embed test is one call instead of a hand-rolled copy.
Package agentdoctest holds the shared test gate every component runs over its embedded operating doc, so the per-component embed test is one call instead of a hand-rolled copy.
confdir
Package confdir resolves the per-component config and state directories.
Package confdir resolves the per-component config and state directories.
cslask
Package cslask holds the line limits of one csl_ask call and the max_lines a call needs to read one file.
Package cslask holds the line limits of one csl_ask call and the max_lines a call needs to read one file.
cslignore
Package cslignore holds the rules csl's index applies: the directory names its walk never enters (dirs.go), the largest file its lexical index takes (size.go), and a repo's .cslignore file of per-repo path exclusions, honored by every csl index (lexical and semantic).
Package cslignore holds the rules csl's index applies: the directory names its walk never enters (dirs.go), the largest file its lexical index takes (size.go), and a repo's .cslignore file of per-repo path exclusions, honored by every csl index (lexical and semantic).
doctor
Package doctor runs a component's executable self-checks: the shared diagnostics behind `<bin> doctor` for serve-bearing components (ADR-0009).
Package doctor runs a component's executable self-checks: the shared diagnostics behind `<bin> doctor` for serve-bearing components (ADR-0009).
envdefault
Package envdefault reads a setting from the environment with a compiled fallback.
Package envdefault reads a setting from the environment with a compiled fallback.
firstlaunchtest
Package firstlaunchtest warms a freshly written executable before a test times it.
Package firstlaunchtest warms a freshly written executable before a test times it.
gitloc
Package gitloc places a directory in git: the working tree it belongs to, the main checkout that tree hangs off, the branch and commit checked out there, and the repo's canonical identity.
Package gitloc places a directory in git: the working tree it belongs to, the main checkout that tree hangs off, the branch and commit checked out there, and the repo's canonical identity.
internalnames
Package internalnames reads the shared internal-names files that belt and suspenders each include from their own config (docs/adr/0016).
Package internalnames reads the shared internal-names files that belt and suspenders each include from their own config (docs/adr/0016).
llm
Package llm selects and drives the hosted model behind a component's one-shot completions: humanizer's judge pass and csl's bulk reader.
Package llm selects and drives the hosted model behind a component's one-shot completions: humanizer's judge pass and csl's bulk reader.
mcptest
Package mcptest holds the shared test gate every MCP-bearing component runs over its tool list, so the per-component contract test is one call instead of a hand-rolled copy.
Package mcptest holds the shared test gate every MCP-bearing component runs over its tool list, so the per-component contract test is one call instead of a hand-rolled copy.
notify
Package notify archives an event to the local events service.
Package notify archives an event to the local events service.
progstatus
Package progstatus reports what a program is doing to the terminal that runs it, through the Program Status Protocol (OSC 7501, revision 0.4, https://www.superlogical.com/rex/docs/build/program-status).
Package progstatus reports what a program is doing to the terminal that runs it, through the Program Status Protocol (OSC 7501, revision 0.4, https://www.superlogical.com/rex/docs/build/program-status).
repofind
Package repofind discovers git repositories on the local filesystem and parses their remotes.
Package repofind discovers git repositories on the local filesystem and parses their remotes.
secretscan
Package secretscan detects secrets in files, lines, and the git index.
Package secretscan detects secrets in files, lines, and the git index.
timespan
Package timespan parses the time windows that since flags and parameters take across the fleet: a span before now such as 90m, 24h or 7d, or an RFC 3339 time.
Package timespan parses the time windows that since flags and parameters take across the fleet: a span before now such as 90m, 24h or 7d, or an RFC 3339 time.
upgradenotes
Package upgradenotes parses docs/UPGRADING.md into entries and checks them against the form that page describes: a dated heading, then Change, Run, Verify and Since, in that order.
Package upgradenotes parses docs/UPGRADING.md into entries and checks them against the form that page describes: a dated heading, then Change, Run, Verify and Since, in that order.
services
brain
Package brain holds the facts the brain binary and its docs share: the user-facing defaults, the port brain serve listens on, and where config and state live.
Package brain holds the facts the brain binary and its docs share: the user-facing defaults, the port brain serve listens on, and where config and state live.
brain/cmd/brain command
brain/docs
Package docs embeds the agent-facing documentation that the brain binary prints with `brain docs [topic]`.
Package docs embeds the agent-facing documentation that the brain binary prints with `brain docs [topic]`.
brain/internal/atomicfile
Package atomicfile writes files so that a reader never sees a half-written one.
Package atomicfile writes files so that a reader never sees a half-written one.
brain/internal/check
Package check is brain check: it checks notes against the lifecycle model and their vault's policy, the gate a shared vault's CI runs on the notes a pull request changes.
Package check is brain check: it checks notes against the lifecycle model and their vault's policy, the gate a shared vault's CI runs on the notes a pull request changes.
brain/internal/chunk
Package chunk splits a brain markdown note into retrieval-friendly chunks.
Package chunk splits a brain markdown note into retrieval-friendly chunks.
brain/internal/cli
Package cli builds the brain command tree.
Package cli builds the brain command tree.
brain/internal/config
Package config loads the brain configuration file.
Package config loads the brain configuration file.
brain/internal/doctor
Package doctor runs brain's self-checks: the config resolves, every vault exists, the index directory is writable, each vault's literal index is fresh, no two notes share an id and, when the semantic layer is on, Ollama answers and the last semantic sync embedded every note.
Package doctor runs brain's self-checks: the config resolves, every vault exists, the index directory is writable, each vault's literal index is fresh, no two notes share an id and, when the semantic layer is on, Ollama answers and the last semantic sync embedded every note.
brain/internal/drift
Package drift is brain drift: it checks the sources a note pins against what they are now.
Package drift is brain drift: it checks the sources a note pins against what they are now.
brain/internal/embedding
Package embedding talks to a local Ollama instance to convert markdown passages into dense vectors.
Package embedding talks to a local Ollama instance to convert markdown passages into dense vectors.
brain/internal/ghcli
Package ghcli runs the GitHub CLI, gh, for the steps of sharing a note that git alone cannot take: opening a pull request, asking what became of one, and opening an issue.
Package ghcli runs the GitHub CLI, gh, for the steps of sharing a note that git alone cannot take: opening a pull request, asking what became of one, and opening an issue.
brain/internal/gitvault
Package gitvault runs git in a vault's checkout: the commit brain makes after each change it writes, the pull and push of brain sync, and the temporary worktrees a pull request is prepared in.
Package gitvault runs git in a vault's checkout: the commit brain makes after each change it writes, the pull and push of brain sync, and the temporary worktrees a pull request is prepared in.
brain/internal/hybrid
Package hybrid combines a literal (zoekt) result list and a semantic (vector) result list into one ranked sequence using Reciprocal Rank Fusion (RRF), with the small position-aware tie-break bonuses that QMD-style hybrid search uses on small corpora.
Package hybrid combines a literal (zoekt) result list and a semantic (vector) result list into one ranked sequence using Reciprocal Rank Fusion (RRF), with the small position-aware tie-break bonuses that QMD-style hybrid search uses on small corpora.
brain/internal/library
Package library opens the configured vaults together with their indexes.
Package library opens the configured vaults together with their indexes.
brain/internal/lifecycle
Package lifecycle is the note status model: the statuses a note moves through, the frontmatter fields each one needs, and the defaults a write fills in.
Package lifecycle is the note status model: the statuses a note moves through, the frontmatter fields each one needs, and the defaults a write fills in.
brain/internal/lockfile
Package lockfile takes cross-process advisory locks (flock) on files in brain's lock directory, so the CLI, the MCP server and brain serve never build one vault's index, and the CLI and the MCP server never rewrite its notes, at the same time.
Package lockfile takes cross-process advisory locks (flock) on files in brain's lock directory, so the CLI, the MCP server and brain serve never build one vault's index, and the CLI and the MCP server never rewrite its notes, at the same time.
brain/internal/markdown
Package markdown parses Obsidian-style markdown: YAML frontmatter between --- fences, [[wikilinks]], and standard [text](url) markdown links.
Package markdown parses Obsidian-style markdown: YAML frontmatter between --- fences, [[wikilinks]], and standard [text](url) markdown links.
brain/internal/mcpserver
Package mcpserver exposes brain vault functionality (search, read, write, promote, backlinks, doctor) as MCP tools over stdio.
Package mcpserver exposes brain vault functionality (search, read, write, promote, backlinks, doctor) as MCP tools over stdio.
brain/internal/noteid
Package noteid makes and checks note ids.
Package noteid makes and checks note ids.
brain/internal/rerank
Package rerank scores fused hybrid-search candidates with a small local LLM (via Ollama /api/chat) and blends the result with the retrieval position.
Package rerank scores fused hybrid-search candidates with a small local LLM (via Ollama /api/chat) and blends the result with the retrieval position.
brain/internal/search
Package search provides local note search backed by zoekt indexes.
Package search provides local note search backed by zoekt indexes.
brain/internal/semantic
Package semantic wraps chromem-go to provide a vault-aware vector index over note chunks.
Package semantic wraps chromem-go to provide a vault-aware vector index over note chunks.
brain/internal/server
Package server is brain serve: the web UI and a read-only JSON API over the configured vaults, as docs/serve.md specifies.
Package server is brain serve: the web UI and a read-only JSON API over the configured vaults, as docs/serve.md specifies.
brain/internal/server/ui
Package ui holds the brain.this web UI: the shell page, its scripts and the graph bundle, embedded into the brain binary.
Package ui holds the brain.this web UI: the shell page, its scripts and the graph bundle, embedded into the brain binary.
brain/internal/sharing
Package sharing moves knowledge between a private vault and a shared one through the shared vault's repo: promote opens a pull request that adds a private note, an edit of a shared note becomes a pull request, a flag becomes an issue, and sync pulls and pushes each vault and settles the promotions whose pull requests merged or closed.
Package sharing moves knowledge between a private vault and a shared one through the shared vault's repo: promote opens a pull request that adds a private note, an edit of a shared note becomes a pull request, a flag becomes an issue, and sync pulls and pushes each vault and settles the promotions whose pull requests merged or closed.
brain/internal/stale
Package stale is brain stale: the queue of notes that need a human look, computed on every run and never stored.
Package stale is brain stale: the queue of notes that need a human look, computed on every run and never stored.
brain/internal/testgh
Package testgh puts a fake gh on PATH for a test.
Package testgh puts a fake gh on PATH for a test.
brain/internal/testgit
Package testgit runs git in a test's own temp repos.
Package testgit runs git in a test's own temp repos.
brain/internal/testhome
Package testhome isolates a test from the machine's brain config and state.
Package testhome isolates a test from the machine's brain config and state.
brain/internal/vault
Package vault knows the layout of a brain vault: the three tiers (inbox/notes/outputs) plus MOCs, how to resolve a path to a tier, how to generate safe filenames, and how to promote a note from inbox to notes (atomic move + frontmatter update + backlink rewrite).
Package vault knows the layout of a brain vault: the three tiers (inbox/notes/outputs) plus MOCs, how to resolve a path to a tier, how to generate safe filenames, and how to promote a note from inbox to notes (atomic move + frontmatter update + backlink rewrite).
csl
Package csl holds the csl component identity: the embedded operating doc and the mechanical facts it renders with.
Package csl holds the csl component identity: the embedded operating doc and the mechanical facts it renders with.
csl/cmd/csl command
csl/evals/ask command
Command ask runs the csl ask worker eval: every case under cases/ has its corpus resolved by a csl lexical search, is asked on each configured worker model, and is graded on the facts it must carry, the names it must not invent, and the size of the answer.
Command ask runs the csl ask worker eval: every case under cases/ has its corpus resolved by a csl lexical search, is asked on each configured worker model, and is graded on the facts it must carry, the names it must not invent, and the size of the answer.
csl/internal/ask
Package ask is csl's bulk reader: a question over the files a lexical search selected, answered by a cheap hosted worker model, so the files never enter the calling agent's context and only the answer comes back.
Package ask is csl's bulk reader: a question over the files a lexical search selected, answered by a cheap hosted worker model, so the files never enter the calling agent's context and only the answer comes back.
csl/internal/grammar
Package grammar is the one table of tree-sitter grammars csl links and the file-name rule that picks one.
Package grammar is the one table of tree-sitter grammars csl links and the file-name rule that picks one.
csl/internal/hybrid
Package hybrid fuses lexical (zoekt) and semantic (vector) search results into a single ranking via Reciprocal Rank Fusion (RRF).
Package hybrid fuses lexical (zoekt) and semantic (vector) search results into a single ranking via Reciprocal Rank Fusion (RRF).
csl/internal/lexical
Package lexical holds the rules both lexical search front ends apply around a zoekt query: the csl search command and the csl_search MCP tool.
Package lexical holds the rules both lexical search front ends apply around a zoekt query: the csl search command and the csl_search MCP tool.
csl/internal/lexical/lexicaltest
Package lexicaltest builds the small zoekt index the lexical search tests share, so the lexical package, the csl_search tool, and the csl search command are all checked against the same files.
Package lexicaltest builds the small zoekt index the lexical search tests share, so the lexical package, the csl_search tool, and the csl search command are all checked against the same files.
csl/internal/mcpformat
Package mcpformat names the response encodings the csl MCP tools can return and encodes a tool's typed output into one of them.
Package mcpformat names the response encodings the csl MCP tools can return and encodes a tool's typed output into one of them.
csl/internal/mcpserver
Package mcpserver exposes csl search/repo/read functionality as MCP tools over stdio.
Package mcpserver exposes csl search/repo/read functionality as MCP tools over stdio.
csl/internal/outline
Package outline ranks a repo's definitions by how many other files reference them, so an agent asking how a service is structured gets the important types and functions first, in one call instead of a run of searches and reads.
Package outline ranks a repo's definitions by how many other files reference them, so an agent asking how a service is structured gets the important types and functions first, in one call instead of a run of searches and reads.
csl/internal/picker
Package picker is a single-select fuzzy list picker for the terminal that draws each item as colored segments.
Package picker is a single-select fuzzy list picker for the terminal that draws each item as colored segments.
csl/internal/queue
Package queue provides a file-backed reindex queue.
Package queue provides a file-backed reindex queue.
csl/internal/refresh
Package refresh runs the background index refresh inside `csl web`: a periodic syncer.Run (pull + reindex changed repos) plus a kick channel for the web UI's manual "refresh now".
Package refresh runs the background index refresh inside `csl web`: a periodic syncer.Run (pull + reindex changed repos) plus a kick channel for the web UI's manual "refresh now".
csl/internal/repo/catalogspec
Package catalogspec reads the catalog descriptor a repo may carry at its root: a Backstage catalog-info.yaml, or the service-info.yaml the catalog service in this repo scans.
Package catalogspec reads the catalog descriptor a repo may carry at its root: a Backstage catalog-info.yaml, or the service-info.yaml the catalog service in this repo scans.
csl/internal/repo/repopath
Package repopath confines a caller-supplied path to a repository root.
Package repopath confines a caller-supplied path to a repository root.
csl/internal/search
Package search provides local code search backed by zoekt indexes.
Package search provides local code search backed by zoekt indexes.
csl/internal/selfcheck
Package selfcheck holds csl's self-diagnosis: the check list behind `csl doctor` and the csl_doctor MCP tool.
Package selfcheck holds csl's self-diagnosis: the check list behind `csl doctor` and the csl_doctor MCP tool.
csl/internal/semantic
Package semantic provides text embedding and source-code chunking for semantic (vector) search over local repositories.
Package semantic provides text embedding and source-code chunking for semantic (vector) search over local repositories.
csl/internal/symbols
Package symbols extracts definition sites from source files with the tree-sitter grammars csl links, in the byte-range shape zoekt's index builder takes.
Package symbols extracts definition sites from source files with the tree-sitter grammars csl links, in the byte-range shape zoekt's index builder takes.
csl/internal/syncer
Package syncer pulls the discovered repos and batch-reindexes the ones that changed or whose index went stale.
Package syncer pulls the discovered repos and batch-reindexes the ones that changed or whose index went stale.
csl/internal/web
Package web serves a localhost code-search UI and JSON API over the same search backend used by the CLI and MCP server.
Package web serves a localhost code-search UI and JSON API over the same search backend used by the CLI and MCP server.
csl/internal/worktree
Package worktree gives a linked git worktree a lexical index of its own.
Package worktree gives a linked git worktree a lexical index of its own.
csl/internal/worktree/worktreetest
Package worktreetest builds a git clone with one linked worktree for the worktree index tests in the worktree, mcpserver and cli packages.
Package worktreetest builds a git clone with one linked worktree for the worktree index tests in the worktree, mcpserver and cli packages.
d-man
Package dman holds the d-man component identity: the embedded operating doc and the mechanical facts it renders with.
Package dman holds the d-man component identity: the embedded operating doc and the mechanical facts it renders with.
d-man/cmd/d-man command
d-man/internal/atomicfile
Package atomicfile replaces a file in one step, so a reader never sees it half written.
Package atomicfile replaces a file in one step, so a reader never sees it half written.
d-man/internal/blockpage
Package blockpage serves the local "you're blocked" page for hosts on d-man's block list: a self-contained retro arcade bundled into the binary via go:embed, one game picked at random per visit.
Package blockpage serves the local "you're blocked" page for hosts on d-man's block list: a self-contained retro arcade bundled into the binary via go:embed, one game picked at random per visit.
d-man/internal/config
Package config loads and validates the d-man routes file.
Package config loads and validates the d-man routes file.
d-man/internal/hosts
Package hosts owns the managed block d-man maintains inside /etc/hosts.
Package hosts owns the managed block d-man maintains inside /etc/hosts.
d-man/internal/profile
Package profile switches the d-man block-list profile.
Package profile switches the d-man block-list profile.
d-man/internal/proxy
Package proxy is the host-based reverse proxy: one front door on 127.0.0.1:80 that routes each request to a backend port by its Host header.
Package proxy is the host-based reverse proxy: one front door on 127.0.0.1:80 that routes each request to a backend port by its Host header.
d-man/internal/settings
Package settings keeps the webkit UI settings that follow the user between .this hosts: one small JSON document d-man serves on every configured host, so a theme picked on one host is there on the next.
Package settings keeps the webkit UI settings that follow the user between .this hosts: one small JSON document d-man serves on every configured host, so a theme picked on one host is there on the next.
d-man/internal/tlsca
Package tlsca is a local certificate authority for d-man's TLS listener.
Package tlsca is a local certificate authority for d-man's TLS listener.
deps
Package deps holds the deps component identity: the embedded operating doc and the mechanical facts it renders with.
Package deps holds the deps component identity: the embedded operating doc and the mechanical facts it renders with.
deps/cmd/deps command
Command deps is a local supply-chain dependency scanner: it discovers every external package across the mad01 tool repos (Go, npm, …), checks each version against the OSV.dev advisory database, surfaces findings over an HTTP web page + MCP, and fires a macOS notification when a package is flagged.
Command deps is a local supply-chain dependency scanner: it discovers every external package across the mad01 tool repos (Go, npm, …), checks each version against the OSV.dev advisory database, surfaces findings over an HTTP web page + MCP, and fires a macOS notification when a package is flagged.
deps/internal/alert
Package alert delivers a flagged dependency as a native macOS notification — the same osascript mechanism the reminder tool and the sandbox-watch script use.
Package alert delivers a flagged dependency as a native macOS notification — the same osascript mechanism the reminder tool and the sandbox-watch script use.
deps/internal/api
Package api defines the JSON wire shapes shared between the serve HTTP API and its clients (the CLI and the MCP server).
Package api defines the JSON wire shapes shared between the serve HTTP API and its clients (the CLI and the MCP server).
deps/internal/client
Package client is the HTTP client for a running `deps serve`.
Package client is the HTTP client for a running `deps serve`.
deps/internal/config
Package config loads the optional deps discovery config — which repos to skip entirely, which sub-paths to skip while walking, and where mise keeps the tool trees scanned beside the repos.
Package config loads the optional deps discovery config — which repos to skip entirely, which sub-paths to skip while walking, and where mise keeps the tool trees scanned beside the repos.
deps/internal/discover
Package discover enumerates external dependencies across repos, one Ecosystem implementation per package manager.
Package discover enumerates external dependencies across repos, one Ecosystem implementation per package manager.
deps/internal/jsdelivr
Package jsdelivr looks up a file on jsDelivr by its sha256 and reports the published package version it is a copy of.
Package jsdelivr looks up a file on jsDelivr by its sha256 and reports the published package version it is a copy of.
deps/internal/mcpserver
Package mcpserver exposes dependency scanning as MCP tools.
Package mcpserver exposes dependency scanning as MCP tools.
deps/internal/osv
Package osv checks dependency versions against the OSV.dev advisory database.
Package osv checks dependency versions against the OSV.dev advisory database.
deps/internal/regcheck
Package regcheck looks each pinned version up in the registry that publishes it: the npm registry, PyPI, and the Go module proxy.
Package regcheck looks each pinned version up in the registry that publishes it: the npm registry, PyPI, and the Go module proxy.
deps/internal/registry
Package registry resolves the list of repos to scan from the catalog registry file (~/.config/catalog/registry.yaml), which the consuming repo installs per machine.
Package registry resolves the list of repos to scan from the catalog registry file (~/.config/catalog/registry.yaml), which the consuming repo installs per machine.
deps/internal/scanner
Package scanner orchestrates one scan: discover dependencies across the registered repos and the installed mise tools, check each against OSV and its package registry, persist the result, and (for serve) notify on advisories not seen before.
Package scanner orchestrates one scan: discover dependencies across the registered repos and the installed mise tools, check each against OSV and its package registry, persist the result, and (for serve) notify on advisories not seen before.
deps/internal/server
Package server exposes the dependency scan over HTTP: a webkit-chromed web page, a JSON API the CLI and MCP call, plus /version and /webkit/.
Package server exposes the dependency scan over HTTP: a webkit-chromed web page, a JSON API the CLI and MCP call, plus /version and /webkit/.
deps/internal/store
Package store is the single source of truth for the latest dependency scan: the discovered dependencies, the advisories flagged against them, and the set of advisory occurrences already notified.
Package store is the single source of truth for the latest dependency scan: the discovered dependencies, the advisories flagged against them, and the set of advisory occurrences already notified.
events
Package events holds the events component identity: the embedded operating doc and the mechanical facts it renders with.
Package events holds the events component identity: the embedded operating doc and the mechanical facts it renders with.
events/cmd/events command
Command events is a local event/audit log service: a CLI, an HTTP server with an embedded webkit web UI, and an MCP server, all over a single-writer JSON log store.
Command events is a local event/audit log service: a CLI, an HTTP server with an embedded webkit web UI, and an MCP server, all over a single-writer JSON log store.
events/internal/client
Package client is the HTTP client for a running `events serve`.
Package client is the HTTP client for a running `events serve`.
events/internal/event
Package event defines the Event record and its pure helpers: validation, source-name sanitization, and the time-sortable id generator.
Package event defines the Event record and its pure helpers: validation, source-name sanitization, and the time-sortable id generator.
events/internal/mcpserver
Package mcpserver exposes the event log as MCP tools.
Package mcpserver exposes the event log as MCP tools.
events/internal/server
Package server exposes the event store over HTTP: a webkit-chromed, client-rendered timeline page, a JSON API the MCP server and CLI call, plus /version and /webkit/.
Package server exposes the event store over HTTP: a webkit-chromed, client-rendered timeline page, a JSON API the MCP server and CLI call, plus /version and /webkit/.
events/internal/store
Package store is the single source of truth for events: per-source in-memory ring buffers guarded by a mutex, each persisted to its own append-only JSONL file.
Package store is the single source of truth for events: per-source in-memory ring buffers guarded by a mutex, each persisted to its own append-only JSONL file.
moondb
Package moondb holds the mechanical facts about the moondb service that its operating doc, MCP instructions, error hints and CLI defaults share.
Package moondb holds the mechanical facts about the moondb service that its operating doc, MCP instructions, error hints and CLI defaults share.
moondb/cmd/moondb command
Command moondb records the file edits agent sessions make between commits and links each one to the turn that made it: a capture hook, an HTTP server with an embedded webkit web UI, a CLI and an MCP server, all over one local store.
Command moondb records the file edits agent sessions make between commits and links each one to the turn that made it: a capture hook, an HTTP server with an embedded webkit web UI, a CLI and an MCP server, all over one local store.
moondb/internal/agentfile
Package agentfile reads one subagent's transcript file, and the meta file the harness writes beside it, into an agent transcript: the agent's timeline lines with each text, thinking block, tool input and tool result cut to a head (moondb.AgentHeadBytes), capped at moondb.MaxAgentTranscriptBytes.
Package agentfile reads one subagent's transcript file, and the meta file the harness writes beside it, into an agent transcript: the agent's timeline lines with each text, thinking block, tool input and tool result cut to a head (moondb.AgentHeadBytes), capped at moondb.MaxAgentTranscriptBytes.
moondb/internal/cli
Package cli is the moondb command tree.
Package cli is the moondb command tree.
moondb/internal/client
Package client is the HTTP client for a running `moondb serve`.
Package client is the HTTP client for a running `moondb serve`.
moondb/internal/derive
Package derive turns what the capture hook shipped into the records serve appends.
Package derive turns what the capture hook shipped into the records serve appends.
moondb/internal/gitlink
Package gitlink computes git object identities without running git and matches recorded edits to the commits that took their content.
Package gitlink computes git object identities without running git and matches recorded edits to the commits that took their content.
moondb/internal/importer
Package importer brings past sessions into moondb from their transcripts: the logic behind `moondb import`.
Package importer brings past sessions into moondb from their transcripts: the logic behind `moondb import`.
moondb/internal/ingest
Package ingest drains the spool into the store.
Package ingest drains the spool into the store.
moondb/internal/ingest/faketest
Package faketest is an in-memory store.Store for the ingest and query tests.
Package faketest is an in-memory store.Store for the ingest and query tests.
moondb/internal/jsonl
Package jsonl reads JSON lines files one line at a time, the shape of a Claude Code transcript, without ever holding an oversized line whole.
Package jsonl reads JSON lines files one line at a time, the shape of a Claude Code transcript, without ever holding an oversized line whole.
moondb/internal/mcpserver
Package mcpserver exposes the moondb history as MCP tools.
Package mcpserver exposes the moondb history as MCP tools.
moondb/internal/patch
Package patch parses and applies the per-file hunks the harness reports for an edit, the structuredPatch shape: a JSON array of hunks whose lines start with ' ', '-' or '+'.
Package patch parses and applies the per-file hunks the harness reports for an edit, the structuredPatch shape: a JSON array of hunks whose lines start with ' ', '-' or '+'.
moondb/internal/query
Package query answers the questions the store exists for: why a line looks the way it does, what happened to a path, what took time in a session and how it spent its context.
Package query answers the questions the store exists for: why a line looks the way it does, what happened to a path, what took time in a session and how it spent its context.
moondb/internal/record
Package record is the capture side of moondb: the logic behind `moondb record`, which a harness hook runs with one event payload on stdin.
Package record is the capture side of moondb: the logic behind `moondb record`, which a harness hook runs with one event payload on stdin.
moondb/internal/scorecard
Package scorecard says how a session spent its context: what its tokens, cost and time went to, how its tool calls went, whether its csl searches came back empty or cut, how much its reads pulled in, which belt hints it was shown, and how its subagents ran.
Package scorecard says how a session spent its context: what its tokens, cost and time went to, how its tool calls went, whether its csl searches came back empty or cut, how much its reads pulled in, which belt hints it was shown, and how its subagents ran.
moondb/internal/server
Package server exposes a moondb store over HTTP: a webkit-chromed page, the read-only JSON API the CLI and the MCP server call, plus /healthz, /version and /webkit/.
Package server exposes a moondb store over HTTP: a webkit-chromed page, the read-only JSON API the CLI and the MCP server call, plus /healthz, /version and /webkit/.
moondb/internal/server/servertest
Package servertest holds in-memory stand-ins for the store and the query service, seeded with one small fixture, so the server, client and MCP tests drive the HTTP surface without a backend on disk.
Package servertest holds in-memory stand-ins for the store and the query service, seeded with one small fixture, so the server, client and MCP tests drive the HTTP surface without a backend on disk.
moondb/internal/spool
Package spool is the on-disk inbox between the capture hook and the service.
Package spool is the on-disk inbox between the capture hook and the service.
moondb/internal/store
Package store defines what moondb remembers and the Store a backend has to implement.
Package store defines what moondb remembers and the Store a backend has to implement.
moondb/internal/store/local
Package local is the moondb store on local disk: an append-only JSONL log for the records and a content-addressed object directory for the chunks, both under one state directory.
Package local is the moondb store on local disk: an append-only JSONL log for the records and a content-addressed object directory for the chunks, both under one state directory.
moondb/internal/store/storetest
Package storetest holds the store.Store contract as a test suite every backend runs against itself.
Package storetest holds the store.Store contract as a test suite every backend runs against itself.
moondb/internal/trace
Package trace says what took time in a turn and what it cost.
Package trace says what took time in a turn and what it cost.
present
Package present holds the present component identity: the embedded operating doc and the mechanical facts it renders with.
Package present holds the present component identity: the embedded operating doc and the mechanical facts it renders with.
present/internal/author
Package author turns the author key a client presents into the identity a shared page carries.
Package author turns the author key a client presents into the identity a shared page carries.
present/internal/baseurl
Package baseurl derives the public base URL a shared instance is reached through.
Package baseurl derives the public base URL a shared instance is reached through.
present/internal/docedit
Package docedit edits part of a page's Doc as one store edit: a section patch finds a section by its table-of-contents anchor, or by index, applies one operation, and recompiles the whole Doc through the renderer, so a bad section is refused like a bad Doc.
Package docedit edits part of a page's Doc as one store edit: a section patch finds a section by its table-of-contents anchor, or by index, applies one operation, and recompiles the whole Doc through the renderer, so a bad section is refused like a bad Doc.
present/internal/export
Package export turns a stored page into one HTML file that opens anywhere, offline included, with no present server behind it.
Package export turns a stored page into one HTML file that opens anywhere, offline included, with no present server behind it.
present/internal/images
Package images is present's local image store: the files an image block points at when its source was a file on this machine.
Package images is present's local image store: the files an image block points at when its source was a file on this machine.
present/internal/limits
Package limits is the one table of every number present holds a page to: the warnings the lint raises and the refusals the renderer makes.
Package limits is the one table of every number present holds a page to: the warnings the lint raises and the refusals the renderer makes.
present/internal/lint
Package lint checks a page's Docs against the warn entries of the limits table and says what would make the page read better.
Package lint checks a page's Docs against the warn entries of the limits table and says what would make the page read better.
present/internal/mcpserver
Package mcpserver wires the present store to MCP tools that create, read, update, and list presentations (no delete), plus open one in the browser.
Package mcpserver wires the present store to MCP tools that create, read, update, and list presentations (no delete), plus open one in the browser.
present/internal/mdimport
Package mdimport converts a markdown file into the title and Doc a present page is rendered from, so a file written by hand or by another tool becomes a page without an agent rewriting it as Doc JSON.
Package mdimport converts a markdown file into the title and Doc a present page is rendered from, so a file written by hand or by another tool becomes a page without an agent rewriting it as Doc JSON.
present/internal/mermaid
Package mermaid converts Mermaid flowchart source into the graph input present renders with Cytoscape, so a fenced mermaid block in imported markdown becomes the page's graph instead of a code block.
Package mermaid converts Mermaid flowchart source into the graph input present renders with Cytoscape, so a fenced mermaid block in imported markdown becomes the page's graph instead of a code block.
present/internal/render
Package render compiles a page's structured JSON source into the HTML fragment stored on disk: RenderDoc turns a Doc into a briefing-block fragment, RenderGraph turns a GraphInput into the Cytoscape init script, and the upgrade path deterministically rewrites legacy raw-HTML pages.
Package render compiles a page's structured JSON source into the HTML fragment stored on disk: RenderDoc turns a Doc into a briefing-block fragment, RenderGraph turns a GraphInput into the Cytoscape init script, and the upgrade path deterministically rewrites legacy raw-HTML pages.
present/internal/server
Package server exposes stored presentations over HTTP as single-page views.
Package server exposes stored presentations over HTTP as single-page views.
present/internal/sharedclient
Package sharedclient talks to a shared present instance from a local one: push a page, replace it, remove it, and confirm the author key.
Package sharedclient talks to a shared present instance from a local one: push a page, replace it, remove it, and confirm the author key.
present/internal/store
Package store persists presentations.
Package store persists presentations.
present/internal/store/k8sstore
Package k8sstore keeps present pages as Page custom resources in one Kubernetes namespace.
Package k8sstore keeps present pages as Page custom resources in one Kubernetes namespace.
present/internal/store/storetest
Package storetest holds the store.Store edit contract as a test suite any store runs against itself: the filesystem store, the cluster store on its fake client and on a kind cluster, and the wrappers a shared instance stacks on top.
Package storetest holds the store.Store edit contract as a test suite any store runs against itself: the filesystem store, the cluster store on its fake client and on a kind cluster, and the wrappers a shared instance stacks on top.
present/internal/terminal
Package terminal owns the live terminal sessions present serve runs: named pseudo-terminals, one per page and session name, that outlive the browser tab showing them.
Package terminal owns the live terminal sessions present serve runs: named pseudo-terminals, one per page and session name, that outlive the browser tab showing them.
speak
Package speak holds the speak component identity: the embedded operating doc and the mechanical facts it renders with.
Package speak holds the speak component identity: the embedded operating doc and the mechanical facts it renders with.
speak/cmd/speak command
speak/internal/audiocache
Package audiocache keeps synthesized speech on disk, addressed by what decides its sound, and synthesizes clips ahead of playback.
Package audiocache keeps synthesized speech on disk, addressed by what decides its sound, and synthesizes clips ahead of playback.
speak/internal/chunk
Package chunk splits text into the parts speak synthesizes one request each.
Package chunk splits text into the parts speak synthesizes one request each.
speak/internal/config
Package config reads speak's provider configuration: one YAML file with a block per TTS provider, every block configured side by side, and a top-level provider line naming the one in use.
Package config reads speak's provider configuration: one YAML file with a block per TTS provider, every block configured side by side, and a top-level provider line naming the one in use.
speak/internal/gemini
Package gemini is the client for speech generation on the Gemini Developer API: POST {base}/v1beta/models/{model}:generateContent asking for the audio response modality, with the key in the x-goog-api-key header.
Package gemini is the client for speech generation on the Gemini Developer API: POST {base}/v1beta/models/{model}:generateContent asking for the audio response modality, with the key in the x-goog-api-key header.
speak/internal/mcpserver
Package mcpserver exposes the speak read-aloud engine as MCP tools.
Package mcpserver exposes the speak read-aloud engine as MCP tools.
speak/internal/playback
Package playback is the server-side read-aloud engine behind the speak MCP tools.
Package playback is the server-side read-aloud engine behind the speak MCP tools.
speak/internal/provider
Package provider builds the active TTS backend from speak's config: the client that synthesizes, the voices it offers, and the name and model its health is reported under.
Package provider builds the active TTS backend from speak's config: the client that synthesizes, the voices it offers, and the name and model its health is reported under.
speak/internal/tts
Package tts holds what every speech backend shares: the classified error a failed synthesis returns, and the health state speak reports on every surface (the web page, speak doctor, the MCP tools).
Package tts holds what every speech backend shares: the classified error a failed synthesis returns, and the health state speak reports on every surface (the web page, speak doctor, the MCP tools).
speak/internal/ttsclient
Package ttsclient is the HTTP client for OpenAI-compatible speech endpoints (POST {base}/v1/audio/speech): the local Kokoro engine (mlx-audio), OpenRouter, OpenAI and a LiteLLM proxy all serve that one surface and differ only in base URL, key, model and the audio format they return.
Package ttsclient is the HTTP client for OpenAI-compatible speech endpoints (POST {base}/v1/audio/speech): the local Kokoro engine (mlx-audio), OpenRouter, OpenAI and a LiteLLM proxy all serve that one surface and differ only in base URL, key, model and the audio format they return.
status
Package status holds the status component identity: the embedded operating doc and the mechanical facts it renders with.
Package status holds the status component identity: the embedded operating doc and the mechanical facts it renders with.
status/internal/check
Package check probes a discovered service: HTTP for services with a port, launchctl PID lookup for the rest.
Package check probes a discovered service: HTTP for services with a port, launchctl PID lookup for the rest.
status/internal/crashloop
Package crashloop detects services stuck in a launchd respawn loop by watching the cumulative `runs` counter launchd keeps per job.
Package crashloop detects services stuck in a launchd respawn loop by watching the cumulative `runs` counter launchd keeps per job.
status/internal/discover
Package discover finds t-man-managed launchd services and maps them to their d-man .this links.
Package discover finds t-man-managed launchd services and maps them to their d-man .this links.
status/internal/history
Package history persists per-service, per-day check counts so the page can draw uptime bars across restarts.
Package history persists per-service, per-day check counts so the page can draw uptime bars across restarts.
status/internal/server
Package server runs the status HTTP server: a poller (Monitor) probing every t-man-managed service, and handlers rendering the dashboard.
Package server runs the status HTTP server: a poller (Monitor) probing every t-man-managed service, and handlers rendering the dashboard.
tools
agent-sync
Package agentsync holds the agent-sync component identity: the embedded operating doc, the mechanical facts it renders with, and the defaults every section shares.
Package agentsync holds the agent-sync component identity: the embedded operating doc, the mechanical facts it renders with, and the defaults every section shares.
agent-sync/internal/apply
Package apply holds the conventions every agent-sync section (settings, mods, mcp) shares, so the three behave alike under ralph:
Package apply holds the conventions every agent-sync section (settings, mods, mcp) shares, so the three behave alike under ralph:
agent-sync/internal/claudecode
Package claudecode holds what the sections know about Claude Code itself: the name of its CLI and how to find it on PATH, and the variable that moves its config directory.
Package claudecode holds what the sections know about Claude Code itself: the name of its CLI and how to find it on PATH, and the variable that moves its config directory.
agent-sync/internal/cli
Package cli wires the agent-sync commands: one command family per config section (settings, mods, mcp), each with sync, plan and check, plus doctor, docs and version.
Package cli wires the agent-sync commands: one command family per config section (settings, mods, mcp), each with sync, plan and check, plus doctor, docs and version.
agent-sync/internal/config
Package config finds and reads the agent-sync config file and hands each section's YAML to the package that owns it.
Package config finds and reads the agent-sync config file and hands each section's YAML to the package that owns it.
agent-sync/internal/gate
Package gate decides whether an entry gated to some machines (a mod, an MCP server) applies to this one, the way sync_mods.py and sync_mcp.py decided it.
Package gate decides whether an entry gated to some machines (a mod, an MCP server) applies to this one, the way sync_mods.py and sync_mcp.py decided it.
agent-sync/internal/mcp
Package mcp registers and removes Claude Code MCP servers through the claude CLI, from a servers.json the mcp section of the agent-sync config names.
Package mcp registers and removes Claude Code MCP servers through the claude CLI, from a servers.json the mcp section of the agent-sync config names.
agent-sync/internal/mods
Package mods reconciles Claude Code mods (plugins from directory marketplaces) with the mods files the mods section names, through the claude plugin CLI.
Package mods reconciles Claude Code mods (plugins from directory marketplaces) with the mods files the mods section names, through the claude plugin CLI.
agent-sync/internal/pyjson
Package pyjson reads and writes JSON the way Python's json module does, so agent-sync can replace the Python sync scripts byte for byte.
Package pyjson reads and writes JSON the way Python's json module does, so agent-sync can replace the Python sync scripts byte for byte.
agent-sync/internal/pypath
Package pypath reproduces the parts of Python's path handling the sync scripts' output depends on, so the sections that port them print the same paths and the same errors: pathlib's normalizing and joining, Path.expanduser, Path.resolve (os.path.realpath in Python 3.13), a sorted Path.glob, Path.mkdir(parents=True, exist_ok=True), and the text of an OSError.
Package pypath reproduces the parts of Python's path handling the sync scripts' output depends on, so the sections that port them print the same paths and the same errors: pathlib's normalizing and joining, Path.expanduser, Path.resolve (os.path.realpath in Python 3.13), a sorted Path.glob, Path.mkdir(parents=True, exist_ok=True), and the text of an OSError.
agent-sync/internal/settings
Package settings merges a template settings.json into Claude Code's live settings file, then merges the machine's local overlay on top.
Package settings merges a template settings.json into Claude Code's live settings file, then merges the machine's local overlay on top.
belt
Package belt holds the belt component identity: the embedded operating doc and the mechanical facts it renders with.
Package belt holds the belt component identity: the embedded operating doc and the mechanical facts it renders with.
belt/cmd/belt command
belt/internal/cache
Package cache names belt's per-session state files under ~/.cache/belt: the once-per-session hint marks, the watcher's cursor, and its owner token.
Package cache names belt's per-session state files under ~/.cache/belt: the once-per-session hint marks, the watcher's cursor, and its owner token.
belt/internal/cli
Package cli wires the belt commands: `hook <event>` (the Claude Code PreToolUse guard entrypoint), `hint <event>` (the PostToolUse advisory entrypoint), `record <event>` (the lifecycle ledger entrypoint), `watch` (the asyncRewake inbox watcher), `check` (manual dry-run), `doctor` (resolved-config report), `config` (config locations + annotated setting reference), `docs` (the embedded operating doc), and `version`.
Package cli wires the belt commands: `hook <event>` (the Claude Code PreToolUse guard entrypoint), `hint <event>` (the PostToolUse advisory entrypoint), `record <event>` (the lifecycle ledger entrypoint), `watch` (the asyncRewake inbox watcher), `check` (manual dry-run), `doctor` (resolved-config report), `config` (config locations + annotated setting reference), `docs` (the embedded operating doc), and `version`.
belt/internal/config
Package config loads the config surfaces belt reads.
Package config loads the config surfaces belt reads.
belt/internal/cslindex
Package cslindex answers "does csl index this file, and under which repo name" from csl's shard listing on disk, follows a linked worktree to its main checkout (worktree.go), tells a file a csl_ask call cannot answer from and counts its lines (skip.go), and builds the csl_ask call scoped to one file, sized by kit/cslask.
Package cslindex answers "does csl index this file, and under which repo name" from csl's shard listing on disk, follows a linked worktree to its main checkout (worktree.go), tells a file a csl_ask call cannot answer from and counts its lines (skip.go), and builds the csl_ask call scoped to one file, sized by kit/cslask.
belt/internal/guard
Package guard holds belt's guard implementations.
Package guard holds belt's guard implementations.
belt/internal/hint
Package hint holds belt's advisory hints.
Package hint holds belt's advisory hints.
belt/internal/hook
Package hook adapts Claude Code hook payloads to belt's four concepts.
Package hook adapts Claude Code hook payloads to belt's four concepts.
belt/internal/ledger
Package ledger turns Claude Code lifecycle hook events into entries for the local events service, so a session and the subagents it spawns leave one timeline: which subagent started and stopped where, which task completed, which tool call auto mode denied, when a session asked for attention, compacted or ended, and which turn died on an API error after its retries ran out.
Package ledger turns Claude Code lifecycle hook events into entries for the local events service, so a session and the subagents it spawns leave one timeline: which subagent started and stopped where, which task completed, which tool call auto mode denied, when a session asked for attention, compacted or ended, and which turn died on an API error after its retries ran out.
belt/internal/mcptool
Package mcptool reads Claude Code MCP tool names.
Package mcptool reads Claude Code MCP tool names.
belt/internal/watch
Package watch wakes an idle Claude Code session when an item addressed to it lands on the events service.
Package watch wakes an idle Claude Code session when an item addressed to it lands on the events service.
cards
Package cards holds the cards component identity: the embedded operating doc and the mechanical facts it renders with.
Package cards holds the cards component identity: the embedded operating doc and the mechanical facts it renders with.
cards/cmd/cards command
cards/internal/cli
Package cli wires the cards commands: list mode and feed mode, plus the version, docs and doctor commands every thismoon component ships.
Package cli wires the cards commands: list mode and feed mode, plus the version, docs and doctor commands every thismoon component ships.
cards/internal/feedstore
Package feedstore holds the state of feed mode: the header, the entries in arrival order with the newest last, and the filter.
Package feedstore holds the state of feed mode: the header, the entries in arrival order with the newest last, and the filter.
cards/internal/feedview
Package feedview is the Bubble Tea model for feed mode: cards as a log of entries in arrival order, newest at the bottom, or on top when Config.Newest is order.Top.
Package feedview is the Bubble Tea model for feed mode: cards as a log of entries in arrival order, newest at the bottom, or on top when Config.Newest is order.Top.
cards/internal/frame
Package frame draws the rows every cards mode puts around its body: the header row above it and the footer row below it.
Package frame draws the rows every cards mode puts around its body: the header row above it and the footer row below it.
cards/internal/input
Package input reads the card stream for every cards mode: JSON Lines from a reader, decoded one line at a time into Bubble Tea messages.
Package input reads the card stream for every cards mode: JSON Lines from a reader, decoded one line at a time into Bubble Tea messages.
cards/internal/liststore
Package liststore holds the state of list mode: the header, the cards in producer order, the filter, the cursor and the marks.
Package liststore holds the state of list mode: the header, the cards in producer order, the filter, the cursor and the marks.
cards/internal/listview
Package listview is the Bubble Tea model for list mode.
Package listview is the Bubble Tea model for list mode.
cards/internal/match
Package match is the filter matcher: does a card fit what the user typed.
Package match is the filter matcher: does a card fit what the user typed.
cards/internal/order
Package order names the end of a mode's screen that new cards go to, the --newest flag of both modes.
Package order names the end of a mode's screen that new cards go to, the --newest flag of both modes.
cards/internal/protocol
Package protocol decodes the cards input protocol: JSON Lines on stdin, one message per line, told apart by the type field.
Package protocol decodes the cards input protocol: JSON Lines on stdin, one message per line, told apart by the type field.
cards/internal/render
Package render turns protocol lines into styled terminal strings, for every cards mode.
Package render turns protocol lines into styled terminal strings, for every cards mode.
clipboard
Package clipboard holds the clipboard component identity: the embedded operating doc and the mechanical facts it renders with.
Package clipboard holds the clipboard component identity: the embedded operating doc and the mechanical facts it renders with.
clipboard/internal/cli
Package cli wires the clipboard commands onto the pasteboard.
Package cli wires the clipboard commands onto the pasteboard.
clipboard/internal/clip
Package clip wraps the macOS pasteboard commands: pbcopy for writes, pbpaste for reads.
Package clip wraps the macOS pasteboard commands: pbcopy for writes, pbpaste for reads.
clipboard/internal/mcpserver
Package mcpserver exposes the pasteboard as MCP tools so an agent can copy and paste without shelling out through pbcopy/pbpaste.
Package mcpserver exposes the pasteboard as MCP tools so an agent can copy and paste without shelling out through pbcopy/pbpaste.
harvest
Package harvest holds the harvest component identity: the embedded operating doc, the mechanical facts it renders with, and the defaults the internal packages share.
Package harvest holds the harvest component identity: the embedded operating doc, the mechanical facts it renders with, and the defaults the internal packages share.
harvest/internal/cli
Package cli wires the harvest commands: the SessionEnd hook, the detached run it starts and the steps that run starts, the belt hint, and the docs, doctor and version commands every thismoon CLI carries.
Package cli wires the harvest commands: the SessionEnd hook, the detached run it starts and the steps that run starts, the belt hint, and the docs, doctor and version commands every thismoon CLI carries.
harvest/internal/digest
Package digest cuts a Claude Code transcript down to the text a person and the assistant wrote, in order.
Package digest cuts a Claude Code transcript down to the text a person and the assistant wrote, in order.
harvest/internal/hint
Package hint is the belt custom hint: one line at session start when harvest captures wait in the brain inbox, at most once a day, and nothing otherwise.
Package hint is the belt custom hint: one line at session start when harvest captures wait in the brain inbox, at most once a day, and nothing otherwise.
harvest/internal/hook
Package hook is the SessionEnd hook.
Package hook is the SessionEnd hook.
harvest/internal/reply
Package reply turns the model's reply into the captures harvest writes.
Package reply turns the model's reply into the captures harvest writes.
harvest/internal/run
Package run harvests one ended session in three steps, each its own process:
Package run harvests one ended session in three steps, each its own process:
harvest/internal/sandbox
Package sandbox says how `harvest run` starts each step of a harvest: under srt (anthropics/sandbox-runtime, through the recipe's launcher script) or directly, and with which environment.
Package sandbox says how `harvest run` starts each step of a harvest: under srt (anthropics/sandbox-runtime, through the recipe's launcher script) or directly, and with which environment.
harvest/internal/settings
Package settings reads harvest's settings from the environment.
Package settings reads harvest's settings from the environment.
harvest/internal/state
Package state owns harvest's state dir and is the only package that knows its layout:
Package state owns harvest's state dir and is the only package that knows its layout:
humanizer
Package humanizer holds the humanizer component identity: the embedded operating doc and the mechanical facts it renders with.
Package humanizer holds the humanizer component identity: the embedded operating doc and the mechanical facts it renders with.
humanizer/evals/judge command
Command judge runs the humanizer judge eval: every labeled case under cases/ through the production judge path on each configured arm, with repetitions, and writes results, errors, traces, and a markdown summary.
Command judge runs the humanizer judge eval: every labeled case under cases/ through the production judge path on each configured arm, with repetitions, and writes results, errors, traces, and a markdown summary.
humanizer/internal/glossary
Package glossary turns the domain glossaries in CONTEXT.md files into a vale substitution rule.
Package glossary turns the domain glossaries in CONTEXT.md files into a vale substitution rule.
humanizer/internal/goscan
Package goscan extracts human-facing prose from Go source: doc comments, cobra command fields, MCP tool descriptions, error messages, and the text in jsonschema struct tags.
Package goscan extracts human-facing prose from Go source: doc comments, cobra command fields, MCP tool descriptions, error messages, and the text in jsonschema struct tags.
humanizer/internal/judge
Package judge runs the holistic whole-passage AI-writing judgment: one LLM call over the full text (MAD-342).
Package judge runs the holistic whole-passage AI-writing judgment: one LLM call over the full text (MAD-342).
humanizer/internal/mcpserver
Package mcpserver exposes humanizer functionality (pattern detection, rule metadata, voice profiling) as MCP tools over stdio.
Package mcpserver exposes humanizer functionality (pattern detection, rule metadata, voice profiling) as MCP tools over stdio.
humanizer/internal/narrative
Package narrative carries the StoryScope narrative-feature rubric: the 30 core discourse-level features that separate human-written from AI-generated fiction (Russell et al., COLM 2026).
Package narrative carries the StoryScope narrative-feature rubric: the 30 core discourse-level features that separate human-written from AI-generated fiction (Russell et al., COLM 2026).
humanizer/internal/rewrite
Package rewrite is Layer B of the watermark text cleaner: a best-effort pass at statistical (token-sampling) watermarks, which Layer A's deterministic scrub cannot touch.
Package rewrite is Layer B of the watermark text cleaner: a best-effort pass at statistical (token-sampling) watermarks, which Layer A's deterministic scrub cannot touch.
humanizer/internal/rules
Package rules bundles the embedded Vale style pack, exposes rule metadata parsed from the YAML files, and runs the `vale` CLI to detect AI-writing patterns.
Package rules bundles the embedded Vale style pack, exposes rule metadata parsed from the YAML files, and runs the `vale` CLI to detect AI-writing patterns.
humanizer/internal/scrub
Package scrub is Layer A of the watermark text cleaner: deterministic detection and removal of invisible/format Unicode and space homoglyphs that are used as edit-based watermark carriers or arrive from broken pastes.
Package scrub is Layer A of the watermark text cleaner: deterministic detection and removal of invisible/format Unicode and space homoglyphs that are used as edit-based watermark carriers or arrive from broken pastes.
humanizer/internal/voice
Package voice computes quantitative voice profiles for a text sample and diffs two profiles.
Package voice computes quantitative voice profiles for a text sample and diffs two profiles.
opener
Package opener holds the opener component identity: the embedded operating doc and the mechanical facts it renders with.
Package opener holds the opener component identity: the embedded operating doc and the mechanical facts it renders with.
opener/internal/cli
Package cli wires the opener commands onto the open command core.
Package cli wires the opener commands onto the open command core.
opener/internal/mcpserver
Package mcpserver exposes the macOS open command as MCP tools so an agent can open URLs, files, and apps, and reveal paths in Finder, without shelling out.
Package mcpserver exposes the macOS open command as MCP tools so an agent can open URLs, files, and apps, and reveal paths in Finder, without shelling out.
opener/internal/sysopen
Package sysopen wraps the macOS open command: URLs to their default handler, files to their default (or a named) application, apps by name, and Finder reveal.
Package sysopen wraps the macOS open command: URLs to their default handler, files to their default (or a named) application, apps by name, and Finder reveal.
srtspec
Package srtspec holds the srtspec component identity: the embedded operating doc and the mechanical facts it renders with, so the doc and the CLI's help cannot drift from the code.
Package srtspec holds the srtspec component identity: the embedded operating doc and the mechanical facts it renders with, so the doc and the CLI's help cannot drift from the code.
srtspec/internal/cli
Package cli wires the srtspec commands: render, check and generate turn access manifests into srt settings files, verify checks a repo's rendered files and expansion layers without writing, run launches a process under srt with the machine-local layers merged in, and explain shows the policy such a launch gets.
Package cli wires the srtspec commands: render, check and generate turn access manifests into srt settings files, verify checks a repo's rendered files and expansion layers without writing, run launches a process under srt with the machine-local layers merged in, and explain shows the policy such a launch gets.
srtspec/internal/discover
Package discover finds the sandbox artifacts in a repo tree: the access manifests and the srt settings file each one renders to, the settings files nothing renders, the expansion layers kept beside a recipe, and the components whose recipe launches a process without declaring a manifest.
Package discover finds the sandbox artifacts in a repo tree: the access manifests and the srt settings file each one renders to, the settings files nothing renders, the expansion layers kept beside a recipe, and the components whose recipe launches a process without declaring a manifest.
srtspec/internal/drift
Package drift compares a committed srt settings file to what its manifest renders, by meaning rather than bytes.
Package drift compares a committed srt settings file to what its manifest renders, by meaning rather than bytes.
srtspec/internal/launch
Package launch is what srtspec run does: start a fleet process inside srt (anthropics/sandbox-runtime) the way the srt-run shell launcher did.
Package launch is what srtspec run does: start a fleet process inside srt (anthropics/sandbox-runtime) the way the srt-run shell launcher did.
srtspec/internal/layers
Package layers computes the effective srt policy srt-run launches a label under: the settings file ~/.config/srt/<label>.json, the machine-local expansion layer ~/.config/srt/<label>.local.json beside it, and the hosts in SRT_RUN_ALLOW_DOMAINS.
Package layers computes the effective srt policy srt-run launches a label under: the settings file ~/.config/srt/<label>.json, the machine-local expansion layer ~/.config/srt/<label>.local.json beside it, and the hosts in SRT_RUN_ALLOW_DOMAINS.
srtspec/internal/verify
Package verify checks a repo's sandbox artifacts against their sources without writing anything: every srt manifest renders to a settings file that exists and holds the same bytes as the render, no settings file is left without a manifest, every component whose recipe launches a process declares spec.access, and every expansion layer kept beside a recipe only widens.
Package verify checks a repo's sandbox artifacts against their sources without writing anything: every srt manifest renders to a settings file that exists and holds the same bytes as the render, no settings file is left without a manifest, every component whose recipe launches a process declares spec.access, and every expansion layer kept beside a recipe only widens.
suspenders
Package suspenders holds the suspenders component identity: the embedded operating doc and the mechanical facts it renders with.
Package suspenders holds the suspenders component identity: the embedded operating doc and the mechanical facts it renders with.
suspenders/internal/config
Package config manages the suspenders global configuration file.
Package config manages the suspenders global configuration file.
suspenders/internal/guard
Package guard blocks commits that reference internal repository names.
Package guard blocks commits that reference internal repository names.
suspenders/internal/history
Package history walks and rewrites a repository's commit history.
Package history walks and rewrites a repository's commit history.
suspenders/internal/hook
Package hook manages suspenders git hooks in repositories.
Package hook manages suspenders git hooks in repositories.
t-man
Package tman holds the t-man component identity: the embedded operating doc and the mechanical facts it renders with.
Package tman holds the t-man component identity: the embedded operating doc and the mechanical facts it renders with.
t-man/cmd/t-man command
t-man/internal/procstat
Package procstat resolves per-process resource usage (RSS, CPU%, uptime) for a set of PIDs through a single `ps` invocation.
Package procstat resolves per-process resource usage (RSS, CPU%, uptime) for a set of PIDs through a single `ps` invocation.
worklog
Package worklog holds the worklog component identity: the embedded operating doc and the mechanical facts it renders with.
Package worklog holds the worklog component identity: the embedded operating doc and the mechanical facts it renders with.
worklog/internal/cli
Package cli wires the worklog commands onto the store.
Package cli wires the worklog commands onto the store.
worklog/internal/config
Package config reads the optional worklog config file.
Package config reads the optional worklog config file.
worklog/internal/mcpserver
Package mcpserver exposes the worklog store as MCP tools so Claude can checkpoint, list, search, show, and re-status work items without shelling out.
Package mcpserver exposes the worklog store as MCP tools so Claude can checkpoint, list, search, show, and re-status work items without shelling out.
worklog/internal/scan
Package scan reads local Claude Code session transcripts and distills each recent session into a compact digest.
Package scan reads local Claude Code session transcripts and distills each recent session into a compact digest.
worklog/internal/store
Package store manages the on-disk worklog tree: one directory per work item (keyed by ticket id or topic slug), a CONTEXT.md contract per item, lazy per-repo note files, and a git history.
Package store manages the on-disk worklog tree: one directory per work item (keyed by ticket id or topic slug), a CONTEXT.md contract per item, lazy per-repo note files, and a git history.
Package webkit ships the shared web chrome — palette, header, and the font/fixation/size/reload/theme controls — used by the mad01 local web tools (present, csl, deps, events, moondb, speak, status).
Package webkit ships the shared web chrome — palette, header, and the font/fixation/size/reload/theme controls — used by the mad01 local web tools (present, csl, deps, events, moondb, speak, status).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL