agentleFS
timothywarner-orgtimothywarner-org/claude-code/segment_3_agents/CLAUDE.md

claude-code / segment_3_agents

CLAUDE.md223 starsChanged 4 months agoMITView on GitHub

This file is the lesson. Claude reads it on every turn when working under segment_3_agents/. Edit the markdown, change the autonomous behavior. No restart required.

  • Reads credentials

The file

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

8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

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

    Read any file in segment_3_agents/ or its siblings.

    line 7
  2. Very specific:

    Create new example files under segment_3_agents/examples/ if the user requests one.

    line 9
  3. Very specific:

    Run npx tsx segment_3_agents/<file>.ts to validate a demo compiles.

    line 10
  4. Very specific:

    Run destructive git commands: reset --hard, push --force, branch -D, clean -fd.

    line 17
  5. Very specific:

    Delete files. If something looks wrong, rename it with a .bak suffix and report it.

    line 18
  6. Very specific:

    After any edit, run npx tsx <edited-file> to confirm it still parses.

    line 24
  7. Distinctive:

    Stop immediately. Do not attempt to "fix" by making more changes.

    line 28
  8. Distinctive:

    Wait for human approval before the next action.

    line 31

≈ “Common” is an estimate: at least 1 in 5 of the 26,980 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

Agent Boundaries - Segment 3 Working Directory

This file is the lesson. Claude reads it on every turn when working under segment_3_agents/. Edit the markdown, change the autonomous behavior. No restart required.

What you CAN do

  • Read any file in segment_3_agents/ or its siblings.
  • Edit the demo TypeScript files (02_agent_loop.ts, 03_agent_boundaries.ts).
  • Create new example files under segment_3_agents/examples/ if the user requests one.
  • Run npx tsx segment_3_agents/<file>.ts to validate a demo compiles.

What you CANNOT do

  • Modify tsconfig.json, package.json, or package-lock.json. Other segments depend on the toolchain staying still.
  • Edit .env, .env.example, or any file containing secrets.
  • Touch files outside segment_3_agents/ without an explicit instruction naming the target file.
  • Run destructive git commands: reset --hard, push --force, branch -D, clean -fd.
  • Delete files. If something looks wrong, rename it with a .bak suffix and report it.

Before making changes

  1. Confirm you are on a feature branch, not main. If on main, stop and report.
  2. State the change you are about to make in one sentence, then make it.
  3. After any edit, run npx tsx <edited-file> to confirm it still parses.

If something goes wrong

  1. Stop immediately. Do not attempt to "fix" by making more changes.
  2. Report exactly what failed, including the command and the error.
  3. Suggest the smallest reversible step (usually git diff then git checkout -- <file>).
  4. Wait for human approval before the next action.

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.