agentleFS
jamesctuckerjamesctucker/moraine/AGENTS.md

moraine

AGENTS.md1 starsChanged 8 days agoMITView on GitHub

A personal workspace for building projects, storing documents, and running agentic AI workflows. At session start, read memory/index.md, then packs/local/AGENTS.md if it exists. Enabled packs are listed in moraine.yaml; before using a pack's skills, read packs/<name>/AGENTS.md. At wrap-up, run the session-handoff skill: it writes memory/sessions/, updates memory/index.md, and commits the memory stores.

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 35,117 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository8 other files it gives its agents.

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    AI/Agentic Workflows: Use your agent harness for research, chat, coding, and agent-based automation.

    line 9

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 AGENTS.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
AGENTS.md

Moraine

A personal workspace for building projects, storing documents, and running agentic AI workflows.

Purpose

  • Projects: Develop software projects across various domains.
  • Documents: Store and manage documents and reference materials.
  • AI/Agentic Workflows: Use your agent harness for research, chat, coding, and agent-based automation.
  • Memory System: Persistent agent memory for context retention across sessions.
  • Custom Agent Ecosystem: Skills, packs, and plugins for extending agent capabilities.

Directory map

DirectoryPurposeWhen to readWhen to write
repos/External project repos — each subdirectory is its own git repo, registered as pointersWhen working on a project that lives hereClone with moraine repos restore; register repos in repos/README.md
memory/Agent session summaries, handoffs, and periodic reviewsAt the start of every session and when catching up on past workAt the end of every session via session-handoff
memory/index.mdEntry point: active projects, open threads, recent decisionsFirst file to read each sessionUpdated by session-handoff at wrap-up
memory/sessions/Per-session summaries and handoffsWhen resuming a specific thread or reviewing recent workWritten by session-handoff at wrap-up
memory/reviews/Periodic pattern analysis from past sessionsWhen deciding what to automate nextWritten by review skills at wrap-up
memory/staging/Short-term working memory — transient notes that persist across sessionsAt session startup and when catching up on recent thoughtsDuring sessions; organized by date (YYYY-MM-DD.md)
memory/.index/Derived search indexes (gitignored)Never read directly — used by session-searchAuto-generated by scripts/workspace/session-index.py
scripts/workspace/Core workspace scripts (validation, health, memory, search, sync)When modifying workspace toolingWhen changing core tooling
wiki/PARA vault for human knowledge managementWhen researching a topic or linking to existing knowledgeWhen creating notes or organizing knowledge
wiki/1 Projects/Project top notes with YAML frontmatter + projects.md indexWhen checking project portfolio, status, or next actionsWhen creating or updating a project, always add/update frontmatter
wiki/2 Areas/Ongoing responsibilities (no finish line) + areas.md indexWhen checking area-level contextWhen updating area top notes
artifacts/Research, architecture docs, design plansWhen planning or understanding design decisionsWhen producing research or architecture output
docs/Maintenance and onboarding guides (upstream sync, first session)When a guide exists for the task at handRarely — upstream owns these
.agents/skills/Core skills as real folders, plus one symlink per enabled pack skillAutomatically discovered by agentsNever by hand — moraine sync writes the symlinks; add skills with create-skill
packs/Opt-in packs, each self-contained: pack.yaml, skills, scripts, jobsWhen a task touches a pack's domainUpstream owns shipped packs; packs/local/ is yours
moraine.yamlWhich harnesses and packs this workspace enablesWhen a pack's skill or server seems missingYou — moraine packs enable/disable edits it, then run moraine sync

Session start and wrap-up

At session start, read memory/index.md, then packs/local/AGENTS.md if it exists. Enabled packs are listed in moraine.yaml; before using a pack's skills, read packs/<name>/AGENTS.md.

At wrap-up, run the session-handoff skill: it writes memory/sessions/, updates memory/index.md, and commits the memory stores.

Conventions

  • The wiki (wiki/) uses PARA for human knowledge management. The memory system (memory/) is for agent session context. Agents write to memory/, humans write to wiki/.
  • Anti-slop checklist (milestone/feature work — not tight fix loops or review-apply passes). While writing code, avoid the patterns SlopCodeBench showed agents overproduce: abnormal defensive checks a human wouldn't add; casts or guards that fight the type system; single-use variables that just rename an expression; comments restating what the code says; trivial one-line wrappers; nesting depth ≥ 4; if/elif ladders ≥ 3 that should be dispatch; helper-method sprawl (single-call helpers that exist to make the diff look organized). Write code you wouldn't flag against this list.
  • Skills live in flat <name>/SKILL.md folders: core in .agents/skills/, everything else in packs/<pack>/skills/, following the harness's naming rules. Enabled packs are listed in moraine.yaml; python3 scripts/moraine sync links their skills into .agents/skills/. Skills you write go in packs/local/skills/.
  • Session summaries go in memory/sessions/, handoffs are optional.
  • wiki/0 Inbox/00 Scratchpad.md is the human scratchpad — agents must never write to it.
  • memory/, wiki/, and artifacts/ are committed to git. Never write customer data, PII, credentials, incident details, or NDA material into them; keep secrets in .env (gitignored) and reference them by name.
  • Moraine is for personal workspaces. Do not put employer-confidential code, customer data, credentials, or NDA material into it; use it for work only in an employer-approved environment. Deterministic scanning is a backstop for known secret patterns, not a way to detect confidential prose or source code — this boundary is the primary control.
  • Artifacts are numbered sequentially (01-, 02-, etc.) and must include a Table of Contents with anchor links to each section. Start from artifacts/_TEMPLATE.md. Allocate the number with python scripts/workspace/next-artifact.py --claim <slug> — never hand-pick it from ls, because two sessions running at once will otherwise claim the same number.

Health checks

Deterministic scripts in scripts/workspace/. All flag-only (never modify memory) except where noted.

ScriptWhat it checksWhen to run
validate.pySkills frontmatter, wikilinks, project top notes, manifests, structural rulesAfter editing skills, the wiki, or manifests
health-check.pyCore tools, MCP config shape, sync driftOn demand
memory-audit.pyDecision pruning, repo drift, stalled projects, past-due threads, review cadence, stale staging (>14d)Weekly
project-status.pyLast session activity per project (--stale-only --days N)Session start when choosing work
moraine repos checkThe repos/ pointer registry vs disk: missing repos, unregistered clones, remote driftAfter adding/removing repos
agent-eval.pyGolden-task eval harness (core tasks, plus any contributed by enabled packs)After changing workspace tooling
prune-decisions.pyArchives old "Recent decisions" blocks from memory/index.md (--prune modifies)When flagged by memory-audit

Remote Access

<!-- [CUSTOMIZE] Optional. To expose this workspace remotely, run your harness's server mode behind a private network (e.g. Tailscale) and document your setup here. Otherwise delete this section. -->

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.