friday
CLAUDE.md66 starsChanged 2 months agoMITView on GitHub
ENVIRONMENT: Configured for Claude Code interacting via the friday Model Context Protocol (MCP) server. OBJECTIVE: Enforce persistent state retention, eliminate session amnesia, and maintain verifiable project constraints across engineering sessions. Every session must operate with bidirectional state validation through the Friday MCP server:
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
The file
We split this CLAUDE.md into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 10
Every session must operate with bidirectional state validation through the Friday MCP server:
- Very specific: line 14
Before formulating a multi-step plan or executing code modifications, query the friday server:
- Very specific: line 15
Use friday:get_context(query='<active task or component>') to retrieve relevant architectural facts and constraints.
- Very specific: line 16
Use friday:memory_search(query='<technical topic>') to surface prior implementation rationale and resolved trade-offs.
- Distinctive: line 20
Do not wait for the developer to request a memory update:
- Distinctive: line 28
Deterministic Ground Truth: Prefer structured facts and verified test outcomes over assumptions.
- Distinctive: line 29
Clean Code Hygiene: Run test suites before considering tasks complete.
≈ “Common” is an estimate: at least 1 in 5 of the 28,633 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.
Files
AI Agent Core Directives — Persistent Memory Protocol for Friday
ENVIRONMENT: Configured for Claude Code interacting via the
fridayModel Context Protocol (MCP) server. OBJECTIVE: Enforce persistent state retention, eliminate session amnesia, and maintain verifiable project constraints across engineering sessions.
1. Two-Way Zero-Amnesia Protocol
Every session must operate with bidirectional state validation through the Friday MCP server:
A. Pre-Task Read Gate (Turn Start — Ground-Truth Retrieval)
- Never guess architecture decisions, database schemas, active endpoints, or past constraints from local context buffer alone.
- Before formulating a multi-step plan or executing code modifications, query the
fridayserver:- Use
friday:get_context(query='<active task or component>')to retrieve relevant architectural facts and constraints. - Use
friday:memory_search(query='<technical topic>')to surface prior implementation rationale and resolved trade-offs.
- Use
B. Post-Task Write Gate (Turn Finish — State Persistence)
- Whenever you complete a task, resolve a bug, introduce a schema change, or establish a new technical constraint, sync to
fridayimmediately. - Do not wait for the developer to request a memory update:
- Record atomic, high-confidence constraints with
friday:add_fact(content='...'). - Record session summaries, rationale, and bug fixes with
friday:add_memory(content='...').
- Record atomic, high-confidence constraints with
2. Engineering & Quality Standards
- Deterministic Ground Truth: Prefer structured facts and verified test outcomes over assumptions.
- Clean Code Hygiene: Run test suites before considering tasks complete. Never leave unverified commits.
- Zero Promotional Fluff: Maintain concise, precise, systems-engineering documentation. Avoid speculative hype, marketing jargon, or synthetic fluff.
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
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.

