agentleFS
sangmin7648sangmin7648/tacit/CLAUDE.md

tacit

CLAUDE.md9 starsChanged 49 days agoMITView on GitHub

tacit turns spoken words into a searchable local knowledge base: it listens to the microphone, transcribes on-device, classifies each transcript with an LLM, and stores it as a Markdown file that AI agents can search. The Go module, Makefile, and all code live in tacit/; run every make and go command from there. The repo root holds docs/ and what GitHub or users reach by URL: README.md, install.sh, .github/, LICENSE. Read docs/index.md first. It lists every document and what it…

The file

Show its rules and text

We split this CLAUDE.md into the rules it gives an agent

15 rules. About 0 are common, 6 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Types: When an app needs a component's type, the workflow re-exports it as an alias (type Note = notemanager.KnowledgeEntry).

    line 22
  2. Very specific:

    Never verify with go build ./....

    line 28
  3. Very specific:

    After changing pipeline behaviour, run make e2e-test.

    line 29
  4. Distinctive:

    Don't: write comments that restate what the code does, or narrate it step by step.

    line 36
  5. Distinctive:

    When touching code, delete comments that no longer earn their place.

    line 39
  6. Very specific:

    Every page under docs/ starts with front matter:

    line 67
  7. Distinctive:

    Keep a page to one topic. Link related pages with relative links.

    line 78
  8. Very specific:

    Update only what the change made untrue.

    line 84
  9. Very specific:

    If the change reverses or replaces a decision, add a new decision page and mark the old one superseded.

    line 85
  10. Distinctive:

    If the change introduces a concept, package, or term with no page, add it.

    line 86
  11. Very specific:

    Update docs/index.md and append a line to docs/log.md.

    line 87
  12. Very specific:

    Read docs/index.md, open the relevant pages, then confirm against the code before answering.

    line 90
  13. Distinctive:

    Check claims against the code, and flag contradictions between pages.

    line 94
  14. Distinctive:

    Check that every page is in the index, every link resolves, and no page contains code-level detail.

    line 95
  15. Very specific:

    Do not duplicate README.md: user-facing install and usage live there, and the per-field setting reference lives there too.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 29,248 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

tacit

tacit turns spoken words into a searchable local knowledge base: it listens to the microphone, transcribes on-device, classifies each transcript with an LLM, and stores it as a Markdown file that AI agents can search.

The Go module, Makefile, and all code live in tacit/; run every make and go command from there. The repo root holds docs/ and what GitHub or users reach by URL: README.md, install.sh, .github/, LICENSE.

Read docs/index.md first. It lists every document and what it covers. The code is the source of truth; docs/ explains the why and the shape at a high level.

Code layout

The folders say what tacit does; keep it that way. Rationale: 0011.

tacit/app/<binary>/                    cli, desktop: parse input, show output, decide nothing
tacit/packaging/<os>/                  turn the binaries into what a user installs
tacit/core/workflows/<verb>/           what an app can ask for: listen, control, onboard, browse, configure
tacit/core/internal/components/<-er>/  the parts workflows combine
  • Names. A workflow folder is a verb; a component folder is an -er/-or noun (transcriber, note-manager). The Go package is the folder name without hyphens.
  • Direction. app → workflow → component. Workflows never import each other; components never import each other, except setting-manager and the audio format in mic-recorder. internal/ makes the compiler reject an app importing a component.
  • Types. When an app needs a component's type, the workflow re-exports it as an alias (type Note = notemanager.KnowledgeEntry).
  • Linking. Go links whole packages. Code the desktop app imports must not share a package with CGo audio code; split the package instead.
  • Belongings. Third-party code, bundled binaries and testdata/ live inside the folder that uses them. Operating-system differences go in file suffixes (_darwin.go) inside the component.

Build rules

  • Never verify with go build ./.... The transcriber reaches whisper.cpp through CGo and fails until make build has produced the libraries. Use make build, make test, and make e2e-test.
  • After changing pipeline behaviour, run make e2e-test.
  • Everything except the AI agent (the Claude Code CLI) is linked into the binary. The build output must be portable with no runtime library installs.

Code comments

Comments are a liability: they go stale silently and cost reading time. Make the code readable through names and structure first; reach for a comment only when the code cannot carry the point.

  • Don't write comments that restate what the code does, or narrate it step by step. If a block needs that, rename or extract instead.
  • Do, occasionally, explain a broad or tricky concept in plain words, where a reader would otherwise have to reconstruct it from many places.
  • Do, occasionally, say why the code is written this way: the failure it prevents, the constraint it works around, the option rejected.
  • When touching code, delete comments that no longer earn their place.

Docs: what they are

docs/ is a small wiki kept by the agent. It holds only three kinds of content:

  1. Concepts and packages: what a thing is for, how the parts fit, and the invariants that must keep holding.
  2. Decisions: why we chose one path over another, written as records that are never rewritten.
  3. Domain terms: the vocabulary the project uses (docs/glossary.md).

It never holds code-level detail: no function signatures, struct fields, line numbers, or walkthroughs. If a sentence would go stale on a refactor that changes no behaviour, it does not belong in docs/. Link to a file path instead of describing its contents.

Layout (source paths are relative to the repo root):

docs/index.md       every page, one line each, with the commit it was last checked against
docs/log.md         append-only record of doc changes
docs/overview.md    the whole system in one page
docs/glossary.md    domain terms
docs/concepts/      one page per idea that spans packages
docs/apps/          one page per binary under app/, and per target under packaging/
docs/workflows/     one page per workflow under core/workflows/
docs/components/    one page per component under core/internal/components/
docs/decisions/     NNNN-title.md, one decision each

Page format

Every page under docs/ starts with front matter:

---
source: [tacit/core/workflows/listen]  # code the page describes; paths, not symbols
verified: 9825e8e                      # commit at which the page was last checked
---

Decision pages use status: accepted | superseded and date: instead, plus superseded-by: when relevant.

Keep a page to one topic. Link related pages with relative links. Prefer a short page over a long one.

Operations

Ingest (after a code change, or when asked to document something)

  1. Find pages whose source paths the change touched. Read those pages and the diff.
  2. Update only what the change made untrue. Bump verified on every page you checked, even if unchanged.
  3. If the change reverses or replaces a decision, add a new decision page and mark the old one superseded. Never edit the reasoning of an accepted decision.
  4. If the change introduces a concept, package, or term with no page, add it.
  5. Update docs/index.md and append a line to docs/log.md.

Query (when asked how something works) Read docs/index.md, open the relevant pages, then confirm against the code before answering. If the docs and the code disagree, say so and fix the docs.

Lint (periodic, or when asked)

  1. For each page, compare verified with git log on its source paths; list pages whose sources changed since.
  2. Check claims against the code, and flag contradictions between pages.
  3. Check that every page is in the index, every link resolves, and no page contains code-level detail.
  4. Report findings first; fix only what is clear-cut. Log the pass in docs/log.md.

Writing style

  • English, plain, present tense. State the invariant, then the reason.
  • Name the failure a rule prevents. "X exists because Y went wrong" ages better than "X does Y".
  • Do not duplicate README.md: user-facing install and usage live there, and the per-field setting reference lives there too; docs/concepts/configuration.md explains only how settings are layered and grouped.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.