agentleFS
managoatmanagoat/fountain/CLAUDE.md

fountain

CLAUDE.md16 starsChanged 48 days agoApache-2.0View on GitHub

Read by Claude Code and other coding agents at session start, and by people. It holds the rules that are easy to get wrong, the commands, and links to the one place each longer procedure lives. Keep it short; the detail belongs in the files it points at. What Managoat is, in one paragraph, is the top of README.md. Managoat is a self-hosted product. Since 2026-10-12 it is not sold as a hosted service: there is no billing, no growth…

  • Reads credentials

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 1

    1. managoat/managoat★ 16100% same

    Edited · 0

    None found.

    Wrote their own version · 0

    None found.

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository3 other files it gives its agents.

The file

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

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read by Claude Code and other coding agents at session start, and by people.

    line 3
  2. Very specific:

    Run every mix command through the pinned toolchain (activate mise, or mise exec -- mix ...).

    line 44
  3. Distinctive:

    Keep unbuilt behavior explicit in decisions and documentation.

    line 83
  4. Distinctive:

    Check that an issue or PR reference supports its accompanying statement.

    line 84
  5. Distinctive:

    Use the pinned toolchain and focused tests while iterating.

    line 85

≈ “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

CLAUDE.md — Contributor Guide

Read by Claude Code and other coding agents at session start, and by people. It holds the rules that are easy to get wrong, the commands, and links to the one place each longer procedure lives. Keep it short; the detail belongs in the files it points at.

ForRead
Workstation setup, toolchain pinsSETUP.md
Contribution steps, licensing, checks, flakes, API changesCONTRIBUTING.md
Server implementation conventionscontributing/server.md
CI jobs, coverage, partitions, cutting a releasescripts/ci/README.md
Writing and checking manual pagescontributing/docs.md
The hex-pinned managoat_* librariescontributing/component-libraries.md
Why things are the way they aredecisions/index.md
Configuration referencedocs/configuration.md, .env.example

Product and goal

What Managoat is, in one paragraph, is the top of README.md. Managoat is a self-hosted product. Since 2026-10-12 it is not sold as a hosted service: there is no billing, no growth target and no product analytics, and managoat.com is the maintainer's own instance. No org/team (shared people) or billing features are planned.

Commands

mise install                        # Erlang/OTP 28 + Elixir 1.19.2, from .tool-versions
mix deps.get && mix setup           # dev DB: create + migrate
MIX_ENV=test mix ecto.create && MIX_ENV=test mix ecto.migrate
mix test                            # the whole suite, from the umbrella root
mix precommit                       # server checks: static analysis, sobelow, release assemble
mix precommit --full                # server checks plus the whole suite
mix precommit --list                # its stages; `mix precommit credo test` runs a subset
gh pr merge <N> --squash --admin    # merge a PR once its CI is green

Choose local checks by the changed component in CONTRIBUTING.md. Go, SDK and tooling changes use their own checks; mixed changes combine the relevant checks.

Run every mix command through the pinned toolchain (activate mise, or mise exec -- mix ...). mix precommit refuses a different Elixir.

Repo layout

apps/fountain/             the server (Apache-2.0): lib/fountain/ contexts, lib/fountain_web/ Phoenix
cli/                       the Go CLI module (Apache-2.0); test it from its own directory
sdk/                       the TypeScript client, against one OpenAPI contract (CONTRIBUTING.md)
site/                      the managoat.com pages and the manual: a static Mix build, its own image and CI (site/README.md)
docs/                      the public manual's source; site/ publishes it at managoat.com/docs, the server only redirects there

The one managoat_* library Managoat uses (broker) is a hex package pinned in apps/fountain/mix.exs, not a directory here. The ACP peer, the sandbox adapters, the runtimes and the OAuth grant state machine were folded back on 2026-10-15 and live in apps/fountain/lib/managoat/, keeping their Managoat.* names. Both are tabled in contributing/component-libraries.md.

The four primitives

PrimitivePurpose
EnvironmentBaseline set of encrypted env vars + runtime config (packages, repos, scripts) attached to an agent. A conversation may name a different one at launch (environment_id, scoped by agent.allowed_environment_ids)
VaultFree-floating bag of env-var overrides. Vault values win on key collision when merged with an environment at sandbox spawn
AgentA named, re-runnable agent config: model, runtime, skills, MCP servers, optional environment
ConversationA single run of an agent, in a sandbox of its own (ADR 0073) unless launched into a workspace (workspace_id, ADR 0097). Has turns, log events, and a status lifecycle

A workspace is not a fifth primitive: it is a machine the caller keeps, set up from an environment and a vault, that conversations are launched into, each in its own working directory (docs/primitives.md).

Rules

  • Scope every user-facing query by user_id; never use _unsafe_* as the first fetch in a user-facing request.
  • Audit mutations in the context, with caller attribution. Never log secret values or audit inside a transaction.
  • Keep unbuilt behavior explicit in decisions and documentation.
  • Check that an issue or PR reference supports its accompanying statement.
  • Use the pinned toolchain and focused tests while iterating.

For server changes, read the relevant sections of Server conventions: tenant ownership, encryption, audit, UI boundaries, web plumbing and test setup. Read a procedure when the change touches it; the linked guides are reference material.

How a change lands

CONTRIBUTING.md owns the landing procedure, release notes and ADR trigger. Every change is a PR, merged with an admin squash merge once its CI is green; there is no merge queue and no required review. Never push directly to main: the Release bump workflow is the one thing that does. CI administration lives in scripts/ci/README.md.

Docs and decisions

  • For documentation-only changes, use the focused checks in contributing/docs.md; contributor-only Markdown needs no server suite.
  • docs/ is published at managoat.com/docs only, by site/ (ADR 0081), and describes main. A page not in docs/nav.yml fails the site's suite (cd site && mix test), as does a dead internal link or anchor. The structural rules and writing guidance are in contributing/docs.md.
  • Architecturally significant choices are ADRs in decisions/, an OKF bundle: copy decisions/0001-template.md, then run scripts/decisions-index.sh and okf validate decisions in the same PR. okf backlinks decisions <id> lists what depends on one before amending it.

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.