agentleFS
NingloNinglo/remotelab/AGENTS.md

remotelab

AGENTS.md114 starsChanged 52 days agoMITView on GitHub

Canonical repo-local AI context lives here. Keep tool-specific files like CLAUDE.md only as thin compatibility shims that point back to this file. Read this file first. It gives you everything you need to work on this project without exploring blindly. For deep-dive topics, reference docs are linked at the bottom. A web app that turns a real macOS/Linux machine into an AI automation workbench accessible from phone and desktop. It is designed first for people with repetitive digital work —…

  • 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 repository3 other files it gives its agents.

The file

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

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default target user: someone with repeated digital chores, not necessarily an AI-native operator

    line 26
  2. Distinctive:

    Prefer work that helps a normal user reach one trusted automation win over work that mainly showcases orchestration sophistication.

    line 34
  3. Distinctive:

    Treat user feedback as a durable product asset.

    line 35
  4. Distinctive:

    Keep raw identifying details out of shared notes.

    line 38
  5. Very specific:

    Before committing implementation changes, run node scripts/check-documentation-impact.mjs --staged and update the associated current …

    line 48
  6. Very specific:

    prefer one structured input packet from the human, then autonomous execution by the AI until completion or a true hard [HUMAN] dependency

    line 54
  7. Distinctive:

    keep automatable command-by-command flow inside the AI conversation or scripts, not as a long manual cookbook

    line 56
  8. Very specific:

    Dev workflow: use the normal 7690 service as the single chat/control plane.

    line 81
  9. Very specific:

    Management access: before declaring a restart permission blocker, use remotelab service-access check --json and the service access workflow.

    line 85
  10. Very specific:

    Every Person may organize the same shared Sessions differently.

    line 219

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

AGENTS.md — RemoteLab Project Context

Canonical repo-local AI context lives here. Keep tool-specific files like CLAUDE.md only as thin compatibility shims that point back to this file.

Read this file first. It gives you everything you need to work on this project without exploring blindly. For deep-dive topics, reference docs are linked at the bottom.


What Is RemoteLab

A web app that turns a real macOS/Linux machine into an AI automation workbench accessible from phone and desktop. It is designed first for people with repetitive digital work — including users who are not already AI power users — so they can bring a messy task, sample files, or a recurring chore and let the system help clarify the problem, shape an approach, and execute it on the machine.

Not a terminal emulator, a traditional editor-first IDE, or a chatbot. It's an AI workbench / control console for human-AI collaboration — the user does not need a perfect spec up front; RemoteLab should help discover the right problem, propose a workable workflow, and keep execution plus context coherent.

  • Multiple People may share one instance; established identity determines Session ownership
  • Ordinary People can access only their own Sessions; configured administrators can access all Sessions; unauthenticated requests cannot enter the workbench
  • Administrator grants/revocations require a current administrator’s personal browser login, fresh password and recorded confirmation at /admin/session-administrators. Never fulfill later chat requests by editing role configuration, issuing administrator credentials or migrating administrator identities; see docs/session-access.md for independently verified host recovery.
  • First wedge: repetitive digital work that can be automated quickly
  • Phone + desktop are both first-class control surfaces
  • Node.js, no external frameworks (only ws for WebSocket)
  • Vanilla JS frontend, no build tools

Current Product Framing

  • Default target user: someone with repeated digital chores, not necessarily an AI-native operator
  • Core promise: a short conversation can eliminate hours of recurring manual work each week
  • Interaction rule: AI should act like a product manager / solution designer, helping clarify the task instead of waiting for a perfect prompt
  • Multi-session orchestration remains useful, but it is an enabling capability rather than the primary headline

Current Product Development Loop

  • Mainline work is continuous user discovery and feedback-driven iteration around mainstream guided automation on real machines.
  • Prefer work that helps a normal user reach one trusted automation win over work that mainly showcases orchestration sophistication.
  • Treat user feedback as a durable product asset; summarize reusable signals in repo-visible notes instead of leaving them only in private chat or machine-local memory.
  • For recurring Connector work, ship reusable actions with fixed provider request shapes. The Harness supplies task data; code handles identity, validation, compact output, and readback. Use direct provider APIs for cases that have no suitable action yet.
  • Let the Harness choose the useful output or office action from the user's goal during the normal task turn, even when the user does not name a format or API. Keep post-answer display conversion deterministic; resource writes still require the intended target and data to be resolved and verified.
  • Keep raw identifying details out of shared notes; record sanitized product evidence and promote stable conclusions into canonical docs.
  • See notes/current/product-mainline.md and notes/current/user-feedback-log.md.
  • For flow explanations in the Web message feed, read docs/inline-flow-display.md: keep the conclusion in readable prose, use a complete left-to-right preview for useful relationships, and open details in the same page. Simple answers keep their existing text form.

Unified RemoteLab Explanation Project

Human-facing system and feature explanations belong to the single RemoteLab explanation project at docs/architecture-atlas/README.md, with the shared entry docs/architecture-atlas/project.html and catalog project.json. Its purpose is system understanding, continuous self-improvement, and newcomer onboarding. Extend an existing chapter or add a cataloged chapter, include it in the same assembled publication and backup, and retain source/deployment/acceptance boundaries. Do not create a separate overlapping explanation website. Focused API, setup, and operational docs keep their existing canonical sources and are linked from the shared site. Read the project README before changing or publishing these explanations.

Documentation Rule

Before committing implementation changes, run node scripts/check-documentation-impact.mjs --staged and update the associated current documentation. For changes with no documentation impact, record a specific Docs-Impact: none — reason trailer for review. Follow docs/documentation-delivery.md for generated source pages and instance-local publishing; do not edit generated copies.

For setup, deployment, integration, and feature-activation docs, use a model-first, prompt-first shape:

  • assume the operator is a human delegating to their own AI coding agent
  • have the AI collect all required context in one early handoff whenever possible, instead of drip-feeding questions across many turns
  • prefer one structured input packet from the human, then autonomous execution by the AI until completion or a true hard [HUMAN] dependency
  • lead with a copyable prompt, one-round input requirements, target state, and only unavoidable [HUMAN] dependencies
  • keep automatable command-by-command flow inside the AI conversation or scripts, not as a long manual cookbook
  • minimize human interruption so the operator can hand off the task and return to a completed result; request input only for inaccessible credentials/browser actions, hard authorization, or irreversible high-impact actions that were not already clearly scoped

For unattended AI workflows, low-loss, reversible, auditable actions execute by default. A review, acceptance, or confirmation state is not a safety boundary unless someone is actually notified and the action protects hard authorization, irreversible high loss, or material financial/legal/third-party impact. Otherwise execute, record, verify, and retry or surface failure with a recovery path.


Architecture

Browser / app surface ──HTTPS──→ Cloudflare Tunnel ──→ chat-server.mjs (:7690)
                                                    │
                                      HTTP control plane + WS hints
                                                    │
                                      durable history + run state
                                            │
                                 detached runners normalize back to HTTP

Chat Architecture

ServicePortDomainRole
chat-server.mjs7690production chat domainPrimary — the shipped shared workbench/control plane

Dev workflow: use the normal 7690 service as the single chat/control plane. Restarting it should boot the current source tree directly; RemoteLab relies on clean restart recovery rather than a separate release snapshot or permanent validation plane.

Self-hosting rule: restarting the active chat server is acceptable when needed because runs reconcile back from durable state. This assumes compatible persisted state and a service manager that preserves detached execution. Before upgrading an existing instance or repointing shared-source consumers, read the Request state upgrade notice. The 2026-09-07 schema change requires offline conversion; ordinary restart recovery does not perform it. Keep a working maintenance entry point outside the service being stopped. Manual extra instances remain optional ad-hoc debugging tools only. See notes/current/self-hosting-dev-restarts.md.

Management access: before declaring a restart permission blocker, use remotelab service-access check --json and the service access workflow. Check registered sudo and local SSH alternatives; one failed route or an old blocked report is insufficient. Capability discovery does not expand the current task's authorized targets.


File Structure

remotelab/
├── chat-server.mjs          # PRIMARY entry point (HTTP server, port 7690)
├── cli.js                   # CLI entry: `remotelab start|stop|restart|setup|...`
├── generate-token.mjs       # Generate 256-bit access tokens
├── set-password.mjs         # Set password-based auth
│
├── chat/                    # ── Chat service modules ──
│   ├── router.mjs           # All HTTP routes & API endpoints (538 lines)
│   ├── session-manager.mjs  # Chat control-plane submit / observe / broadcast
│   ├── process-runner.mjs   # Tool invocation helpers + explicit runtime adapters
│   ├── runs.mjs             # Durable run metadata/result/spool storage
│   ├── run-launcher.mjs     # Detached run launch strategy (systemd / process fallback)
│   ├── run-projection.mjs   # Raw spool -> normalized run-event projection
│   ├── run-reconciler.mjs   # Run liveness + missing-result terminalization
│   ├── runner-sidecar.mjs   # Thin detached executor writing raw spool/status/result
│   ├── ws.mjs               # WebSocket invalidation channel only
│   ├── session-state-classifier.mjs       # one non-blocking post-turn Session-state classifier
│   ├── session-work-summary.mjs # provider-neutral current work state shared across Harnesses
│   ├── session-person-view.mjs # per-Person Space/Group/sidebar order projection
│   ├── system-prompt.mjs    # Build system context injected into AI sessions (83 lines)
│   ├── normalizer.mjs       # Convert tool output → standard event format (45 lines)
│   ├── middleware.mjs        # Auth checks, rate limiting, IP detection (80 lines)
│   ├── push.mjs             # Web push notifications (83 lines)
│   ├── models.mjs           # Available LLM models per tool (46 lines)
│   ├── history.mjs          # Canonical append-only per-event history + externalized bodies
│   └── adapters/
│       ├── claude.mjs       # Claude Code CLI output parser (201 lines)
│       └── codex.mjs        # Codex CLI output parser (207 lines)
│
├── lib/                     # ── Shared modules (used by both services) ──
│   ├── auth-config.mjs      # People, credentials, identities, service token
│   ├── auth.mjs             # Authentication and browser sessions
│   ├── config.mjs           # Environment variables, paths, defaults
│   ├── tools.mjs            # CLI tool discovery (which), custom tool registration
│   ├── utils.mjs            # Utilities (read body, path handling)
│   └── cloudflared-config.mjs # Access-domain selection from cloudflared ingress
│
├── static/                  # ── Frontend assets ──
│   ├── chat.js              # Backward-compatible loader for split chat frontend assets
│   ├── chat/                # Chat frontend split by concern (bootstrap / data / realtime / UI)
│   ├── marked.min.js        # Markdown renderer
│   ├── sw.js                # Service Worker (PWA)
│   └── manifest.json        # PWA metadata
│
├── templates/               # ── HTML templates ──
│   ├── chat.html            # Chat UI shell (primary, also reused for shared snapshots)
│   ├── login.html           # Login page (194 lines)
│
├── docs/                    # User-facing documentation
├── notes/                   # Internal design & product thinking
├── tests/                   # Scenario-style validation scripts
└── memory/system.md         # System-level memory (shared, in repo)

Data Storage

By default, runtime data lives in ~/.config/remotelab/. Additional instances can override this with REMOTELAB_INSTANCE_ROOT, REMOTELAB_CONFIG_DIR, and REMOTELAB_MEMORY_DIR.

FileContent
auth.jsonPeople, credentials, external identities, and connector service token
auth-sessions.jsonAuthenticated browser sessions mapped to People
chat-sessions.jsonAll session metadata
chat-history/Per-session event store (meta.json, context.json, events/*.json, bodies/*.txt)
public-pages/Instance-local static publications served under /public-pages/; never generated inside the Git checkout

API Endpoints (chat-server)

Auth

MethodPathPurpose
GET/loginLogin page
POST/loginAuthenticate (token or password)
GET/logoutClear session
GET/api/auth/meCurrent authenticated Person and identity

Sessions

MethodPathPurpose
GET/api/sessionsList all sessions (active + archived)
POST/api/sessionsCreate new session
PATCH/api/sessions/{id}Update session metadata (name, archived)

People and sign-in

MethodPathPurpose
GET / POST/api/admin/session-administratorsPersonal administrator cookie + fresh password for role changes; no bearer/service delegation
GET/api/peopleList People, identities, and credential metadata
POST/api/peopleCreate a Person
PATCH/api/people/{id}Rename or update a Person
POST/api/people/{id}/credentialsAdd a token or password credential
DELETE/api/people/{id}/credentials/{credentialId}Remove a credential
POST/api/people/{id}/identitiesRepair an exceptional external-identity match manually
POST/api/people/reconcile-external-identityConnector-service-only automatic identity reconciliation

Tools & Models

MethodPathPurpose
GET/api/toolsAvailable AI tools
GET/api/modelsModels per tool

Other

MethodPathPurpose
GET/api/browse?path=Browse directories
GET/api/autocomplete?q=Path autocomplete
GET/api/push/vapid-public-keyWeb push public key
POST/api/push/subscribeRegister push subscription
WebSocket/wsInvalidation-only hints

Key Product Concepts

Instances

Deployment and data-isolation boundary. One host may run several guest instances; each instance owns separate config, memory, workspace, auth, Connectors, and runtime permissions. Multiple authenticated People can collaborate inside one instance.

Sessions

The one durable product object for a work thread. Persisted across disconnects. Resume IDs (claudeSessionId, codexThreadId) stored in metadata so AI context survives server restarts. Session title, transcript, runtime, workflow state and lifecycle require creator or administrator access. See docs/session-access.md.

People and identities

A Person is a human-facing profile with one readable handle. Person profiles exist independently from sign-in credentials, so creating a Person does not need to issue a token or password. The handle is the Web username and the automatic connector-binding key. Feishu identities retain the route-scoped sender ID (preferring openId) as the durable provider identity, while established server-side identity mappings determine the Person; new subjects are not linked by display name or handle. Newly discovered people receive stable pinyin-style handles with a short collision suffix. The recorded creator identity grants Session access to that Person; administratorPersonIds grants global human access.

Per-Person Session views

Every Person may organize the same shared Sessions differently. space, group, and sidebarOrder live under session.personViews[personId] and are projected for the requesting Person. Automatic sorting/classification updates only the Person whose turn triggered it. Shared fields remain global.

Session State Classification

At the start of each normal input, the same metadata module generates only title and description in parallel with execution. Input labels never set workflow state, organization or work summary, and a delayed input result cannot overwrite the completed turn. After each completed normal turn, session-state-classifier.mjs makes one non-blocking classification call on the dedicated low-cost Codex gpt-6-luna / high route (intentionally independent of foreground model defaults; chat-model upgrades must not increase routine metadata costs). It refreshes shared title, hidden description, workflow state, and provider-neutral work summary, plus the triggering Person's space and group view. The sidebar renders Space as a context switcher above Project groups; Loose is reserved for temporary or ambiguous work. The classifier organizes Sessions but does not review, continue, or route the Harness answer.

Memory System (Pointer-First)

Post-turn memory writeback review uses an independent gpt-6-sol / low selection for Codex and openai-codex/gpt-6-sol / low for Pi. Foreground defaults and the Luna Session-state classifier are separate policies; changing them must not change memory-review cost.

  • Storage tiers still matter:
    • System-level (memory/system.md in repo): universal learnings shared across deployments
    • User-level (~/.remotelab/memory/): machine-specific knowledge, private
  • Activation layers matter just as much:
    • bootstrap.md: tiny startup index
    • projects.md: project pointer catalog
    • tasks/ and deeper docs: load only after task scope is clear
  • Goal: large total memory on disk, small relevant context in-session
  • Personal forms of address, writing style and collaboration preferences belong in reference/people/<personId>.md under the instance memory directory. Shared AGENTS files hold common operating rules and routing pointers, never an employee's preferences. The current request's verified Person/identity selects the pointer; Session creators and machine usernames are not author evidence.

Security

  • Token: 256-bit random hex, timing-safe comparison
  • Password: scrypt-hashed alternative
  • Cookies: HttpOnly + Secure + SameSite=Lax, 30-day expiry
  • Rate limiting: Exponential backoff on login failures (max 15min)
  • Network: Services listen on 127.0.0.1 only; external access via Cloudflare Tunnel
  • CSP: Nonce-based script allowlist
  • Input validation: Tool commands reject shell metacharacters

Hard Constraints (Non-Negotiable)

  1. Single shipped chat plane — keep the shipped architecture centered on the primary 7690 chat-server unless a new operator surface is explicitly reintroduced
  2. No external frameworks — Node.js built-ins + ws only
  3. Restart-safe recovery — prefer durable restart/reload recovery over maintaining a permanent second chat plane
  4. Vanilla JS frontend — no build tools, no framework
  5. Every change = new commit — never use --amend, only new commits
  6. Session ownership — ordinary People access only Sessions they created; administrators access all Sessions. Enforce chat/session-access.mjs at browser/API/stream/attachment boundaries, preserve service authentication, and do not infer ownership from names or last speakers.
  7. Session-only product model — do not reintroduce interactive Agent/template or Visitor role objects; ShareSnapshot remains the only unauthenticated read-only publication
  8. Conversation-driven first — new features prefer conversation/Skill over dedicated UI
  9. ES Modules — "type": "module", all .mjs files
  10. Template style — {{PLACEHOLDER}} substitution, nonce-injected scripts
  11. Zero sync I/O — No readFileSync, statSync, existsSync, readdirSync, writeFileSync, execFileSync, spawnSync, or any other synchronous fs/child_process call in shipped code. Use fs/promises and child_process.execFile (with promise wrapper) exclusively. If converting sync to async would break something, that means the sync code was hiding a real ordering/concurrency problem — fix the root cause, don't keep the sync crutch. Exceptions: test files (tests/), and the built-in node:sqlite synchronous API confined to lib/sqlite-state-worker.mjs; its caller API must remain asynchronous. This storage-worker exception does not permit synchronous fs/child_process calls.
  12. Hermetic test state — never run a state-backed test directly inside a live instance unless it uses tests/isolate-test-environment.mjs; prefer node scripts/run-with-clean-instance-env.mjs node tests/<file>.mjs for targeted runs. Tests must never inherit a live REMOTELAB_INSTANCE_ROOT, config directory, memory directory, or provider home.
  13. Main-only source control — origin/main is the only durable development and standard-fleet release branch. Before starting a change, fetch remote state and fast-forward or reconcile the local main; never force-push over work from another machine. Commit and push each coherent durable change to main promptly instead of accumulating long-lived feature branches or worktrees. Validate the affected behavior locally, then push directly; GitHub Actions CI and CI repair automation are retired. Do not create integration branches to wait for CI. Preserve and reconcile uncommitted or unreviewed work before cleanup. A rollout is complete only when active standard instances report the same origin/main commit; product forks such as MigLab stay explicitly separate.
  14. State, input and incident principles — before changing persistent state, connector input processing, resource limits, monitoring alerts, or fixing an incident, read docs/engineering-principles.md. Keyed state must not load a whole file per lookup, read failures never become empty state, every input has a persisted attempt limit, and fixes land in the owning layer as replacements rather than caller-side patches.

Standard instances on a host use one mainline source checkout; do not keep a per-user source copy after its changes are merged. Validate every active standard instance against the same clean service commit after deployment. Preserve inactive instances during fleet restarts and keep intentional product forks on their separate deployment lifecycle. See notes/current/self-hosting-dev-restarts.md.

Current Priorities

Current operating rule: prefer product slices that help non-expert users — especially time-valuable middle managers / owner-operators who both delegate work and still personally absorb repetitive digital admin chores — hand off repetitive digital work quickly from phone or desktop and see clear value fast. Treat multi-session orchestration, richer project structure, and broader workflow distribution as enabling layers unless they directly improve that mainstream automation path.

Done (recent)

  • Multi-person identity with token/password sign-in and connector identity attribution
  • Per-Person Session filtering and independent Space/Group/sidebar-order views
  • Retire interactive Agent templates and Visitor roles; retain immutable ShareSnapshot publication
  • Resume ID persistence (survives server restarts)
  • Web push notifications
  • Mobile capture + desktop execution handoff baseline
  • Session-only shared workbench baseline
  • Baseline multi-session fan-out with bounded cross-session context carry
  • Remove voice-input UI/backend and the leftover hidden transcript-cleanup send path
  • Contract the semantic manager layer: remove pre-turn dispatch, reply self-check/repair, separate task/workflow classifiers, global Project organizer, and delegation reuse heuristics; keep one Session-state classifier plus cross-Harness memory/continuity
  • Contract prompt projection to RemoteLab-only facts and capabilities; remove the global behavior constitution, repeated manager reminder, shared startup defaults, and default Codex developer-instruction overlay

P1 — Next Up

  • Guided intake / problem discovery — help users describe messy repetitive work, attach examples, and converge on a concrete automation brief without assuming expert prompting
  • Fast repetitive-work automation loops — optimize for data cleanup, report generation, export/import, file processing, notifications, and other simple scriptable chores that can save hours per week quickly
  • State-first, decision-first output shaping — default summaries should tell non-expert users what changed, whether input is needed now, and what outcome to expect next
  • Guided Welcome Session — on first launch, explain capabilities in plain language, ask about the Person's background, repetitive-work pain point, current workflow, and sample inputs, then route them into one concrete first automation Session instead of an empty session list
  • Keep runtime/tool wiring pragmatic and local-first — only generalize the current tool abstraction when a concrete local-runtime need appears; do not reintroduce third-party domain-provider or cloud skill distribution paths by default
  • Produce a precise file-level concept→implementation guide so future sessions can route directly to the right files with less repo spelunking → docs/implementation-recipes.md

P2 — Future

  • Context carry/cache confirmation — validate and tune compaction, prepared fork context, summary/refs reuse, and any cross-session handoff packet so continued or spawned work stays fast and bounded
  • Universal control inbox / dispatcher session — a high-trust intake surface that can later orchestrate several focused sessions when useful, without becoming one giant work thread
  • Deferred triggers (AI-initiated actions, scheduled follow-ups)
  • Evolve the Welcome Session into the right long-term intake surface — once the first-run flow proves valuable, decide whether it should stay a dismissible starter, become a persistent control inbox, or merge with the universal dispatcher Session
  • Queued follow-up composer buffer — while a session is still streaming a reply, let the user stage another message in a buffer and auto-submit it as a fresh turn immediately after the active response finishes; external connectors like Feishu should share the same staged-turn contract and later define an interrupt/replace policy
  • Session fork follow-ups — extend the shipped hard-clone head-fork with optional Fork from here, lightweight lineage navigation, and exact historical fork support when compaction-safe snapshots exist
  • Broaden theming beyond system light/dark — keep v1 system-driven, then add optional explicit theme selection and more color palettes, preferably reusing VS Code-style open theme configs/tokens where that fits cleanly
  • Post-LLM output processing (layered output: decision / summary / details)
  • Revisit product naming/brand and possible repo rename after the product philosophy is more mature; treat this as intentionally deferred while the product itself is still taking shape

Reference Docs (for deep dives)

DocPathWhen to read
Documentation Mapdocs/README.mdRepo doc taxonomy: what lives in docs/ vs notes/
Inline Flow Displaydocs/inline-flow-display.mdAccepted message-native preview/expand strategy, authoring choices, relationship preservation and renderer limits
Notes Mapnotes/README.mdNote taxonomy: current vs directional vs archive vs local
Engineering Principlesdocs/engineering-principles.mdAccepted rules and design plan for state storage, read failures, input retry limits, retention, memory limits, incident alerts and fix scope
Session Accessdocs/session-access.mdCreator/admin policy, historical ownership, connectors, testing and recovery
Project Architecturedocs/project-architecture.mdTop-down map of the shipped system, code locations, runtime flows, and current-vs-direction split
Implementation Recipesdocs/implementation-recipes.mdStep-by-step guides for common modifications: add API endpoint, add runtime adapter, modify sidebar; includes key function signatures
Product Mainline + Feedback Loopnotes/current/product-mainline.mdCurrent operating plan for prioritization, user feedback, and mainstream automation framing
Session Main Flow + Context Freshness Next Pushnotes/current/session-main-flow-next-push.mdConcrete execution pack for the current session-first main flow, context carry, and multi-session fan-out slice
Session-First Workflow Surfacesnotes/current/session-first-workflow-surfaces.mdCurrent workflow-organization contract for session list, grouping, and any future derived workflow projections
Thin Control Plane Architecturenotes/current/thin-control-plane-architecture.mdCurrent Harness boundary: direct execution, one Session-state classifier, shared cross-Harness memory, and benchmark gate for future semantic orchestration
Retired Model Autonomy Loopnotes/current/model-autonomy-control-loop.mdRetirement pointer to the former reply self-check / turn-close supervisor design
Core Domain Contractnotes/current/core-domain-contract.mdCurrent domain/refactor baseline when deciding which product objects are canonical
Product Surface Lifecyclenotes/current/product-surface-lifecycle.mdCurrent rule for keep/iterate/retire decisions on shipped feature surfaces
External Message Protocoldocs/external-message-protocol.mdCanonical connector contract for email/GitHub/bot integrations using sessions, messages, runs, and events
Core Philosophynotes/directional/core-philosophy.mdHistorical philosophy note; use it for framing, not as the current implementation checklist
Provider Architecturenotes/directional/provider-architecture.mdOpen provider/model abstraction, local JS/JSON extension path, migration plan
Product Visionnotes/directional/product-vision.mdProduct rationale and open questions; not the canonical shipped-status tracker
Super-Individual Workbenchnotes/directional/super-individual-workbench.mdHistorical memo from the earlier super-individual framing; still useful background on control-plane boundaries, but not the current target-user statement
AI-Driven Interactionnotes/directional/ai-driven-interaction.mdDeferred triggers design, session metadata schema, future phases
Autonomous Executionnotes/directional/autonomous-execution.mdP2 background execution vision
Message Transport Architecturenotes/message-transport-architecture.mdHistorical transport/runtime rationale after the HTTP-first architecture landed
Memory Activation Architecturenotes/current/memory-activation-architecture.mdPointer-first memory loading, routing layers, pruning rules
Memory and Organization Guidedocs/memory-architecture/README.mdHuman/Agent reference and interactive diagrams; actual read/write flow, opt-in project pointers and review enhancement, and remaining governance work
Setup Guidedocs/setup.mdInstallation, service setup (LaunchAgent/systemd)
System Memorymemory/system.mdCross-deployment learnings (context continuity, testing strategy)

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.