agentleFS
radekwojpl2radekwojpl2/session-observer/AGENTS.md

session-observer

AGENTS.md9 starsChanged 10 days agoMITView on GitHub

  • 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,337 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 repository2 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, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    Update README screenshots in docs/ when the dashboard changes visibly.

    line 32

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

session-observer: notes for agents working on this repo

What this is

A Claude Code and Codex plugin. scripts/hook.js receives every hook event (Codex's hook commands add --agent codex; Claude Code's add nothing) and appends it to ~/.claude/session-observer/sessions/<UTC day>/<session hash>.jsonl; server/server.js (with its modules in server/lib/) tails that log, reads session transcripts, and serves a live dashboard on http://127.0.0.1:4777.

Rules

  • Zero dependencies and no build step. Node built-ins only; the dashboard is plain browser scripts.
  • server/dashboard/**/*.js share one global scope and load in the order server/dashboard.html lists them. Every script starts with 'use strict';, and the page and the folder must list the same files.
  • Layers, in server/lib/ and server/dashboard/: building-blocks/ never use a feature; features/<feature>/ group code by function (model, render, controls); dashboard app/ wires the features and starts the page. A feature file runs nothing at load: its listeners go in an init…Controls() that app/main.js calls.
  • The hook must never block or fail Claude: it always exits 0 and swallows errors.
  • Events follow the contract in server/lib/building-blocks/event-contract.js. docs/events.md is generated from it (node scripts/events-doc.js): change the contract, never the doc. Each agent's recorded sessions live in server/lib/features/agents/<agent>/fixtures/; re-record them with scripts/scrub-fixture.js when the agent changes.
  • Each agent is a folder in server/lib/features/agents/ plus its id in AGENT_IDS; nothing about an agent goes elsewhere. A new one starts with node scripts/new-agent.js <id> "<Name>"; the steps are in docs/adding-an-agent.md.
  • Files use CRLF. For scripted edits use Node, not Python (not installed here).

Check your work

  • node test/check.js — JSON parses, JS compiles, hooks point at real scripts, dashboard files match.
  • node --test test/*.test.js — smoke tests: hook → log → server → HTTP API. test/agents.test.js is the conformance test every agent folder passes: its recorded sessions, through a real server, make the sessions fixtures.json expects.
  • To try a branch without touching the installed plugin's server: OBSERVER_PORT=4778 node server/server.js.

Git

  • Conventional Commit PR titles (feat:, fix:, docs:, refactor:); release-please cuts releases.
  • Update README screenshots in docs/ when the dashboard changes visibly.

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.