agentleFS
hranesshraness/direct/AGENTS.md

direct

AGENTS.md2 starsChanged 2 months agoMITArchived repositoryView on GitHub

Project status: retired. Preserve the source, data, existing releases, and current licenses. The installation, hosting, scheduled maintenance, and release instructions below are historical; do not reactivate them without a new owner request.

The file

Show its rules and text

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

18 rules. About 0 are common, 6 are distinctive, and 12 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 12

    Very specific

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

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

    Use Bun 1.3.14 for repository commands.

    line 29
  2. Very specific:

    Follow WRITING.md for internal prose and STYLE.md for public prose.

    line 30
  3. Very specific:

    Follow the shared Hraness README guidelines for the README trust path and its website projection.

    line 31
  4. Distinctive:

    Keep core code product-, platform-, and framework-neutral.

    line 34
  5. Very specific:

    Keep React Native and Expo imports in the reference example.

    line 39
  6. Very specific:

    Keep .js extensions on relative TypeScript import and export specifiers.

    line 40
  7. Distinctive:

    Treat this repository as the complete project.

    line 41
  8. Distinctive:

    Prefer one validated definition, one owned session, and one atomic browser installation over assembling raw catalogs, stores, manifests, …

    line 43
  9. Very specific:

    Keep Direct development-only.

    line 44
  10. Very specific:

    Keep this repository package-only.

    line 45
  11. Very specific:

    Keep Direct headless and development-only at consumer boundaries.

    line 54
  12. Very specific:

    Keep mandatory rules in the closest AGENTS.md, current procedures in docs/, executable contracts in types and tests, and pull-based …

    line 56
  13. Very specific:

    Run bun run kb:check:lane in an independent KB lane.

    line 57
  14. Distinctive:

    Run the React Native example's iOS, Android, and web export gate when changing mobile integration or production boundaries.

    line 60
  15. Very specific:

    Run bun run check:copy before handoff when the repository has it.

    line 67
  16. Distinctive:

    When a CI or policy gate scans complete Git history, check out the exact governed SHA and fetch only the fully qualified governed refs …

    line 86
  17. Very specific:

    Prefer the globally installed algal-* skills for bounded git state, diffs, repository survey/search, test and release gates, CI polling, …

    line 93
  18. Distinctive:

    Treat ALGAL receipts as execution evidence, not provider attestation, and preserve the repository's normal verification and release gates.

    line 96

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

Project status: retired. Preserve the source, data, existing releases, and current licenses. The installation, hosting, scheduled maintenance, and release instructions below are historical; do not reactivate them without a new owner request.

<!-- browser-automation:start -->
  • Ordinary owned automated browser runs use versioned Chrome for Testing or the browser provisioned for the pinned Playwright version. Reject the installed auto-updating Chrome application, including explicit executable overrides and symlinks; never fall back to it when provisioning is missing. Report the resolved executable and browser version, and close owned contexts and browsers gracefully in cleanup. Attaching to an explicitly authorized user-owned browser is a separate operation: preserve its profile and lifetime. Keep regression checks for browser selection in the existing required checks; see browser automation.
  • Never start the system Chrome app directly from an agent shell; use the repository's browser tooling and respect its scheduler and browser custody controls. For owned launches, pass --mute-audio and merge PaintHolding,MacAppCodeSignClone into any existing --disable-features value instead of adding a second switch. Finish owned process, context, and profile cleanup before releasing the browser lane. Never signal another holder or manipulate its lease to obtain a slot.
  • The sole native-runtime exception is Slopcamera’s documented signature-verified, version-bound, immutable task-owned Chrome snapshot, never a direct launch of the installed application. Its current integrity-bound launch contract must disable MacAppCodeSignClone; retain vendor identity verification, browser custody, graceful cleanup, and regression checks. Qualify the native fix with live clone-growth and cleanup evidence before activating this exception. It is not an executable override or fallback for ordinary automation; see the native-runtime exception.
<!-- browser-automation:end --><!-- kb:context scopes/repository--cdb4ee2aea69 -->

Contents

  • src/core/ – product-neutral scenario, fixture, logical-time, store, effect, resource, and coverage contracts.
  • src/testing/ – deterministic session, world-free manifest, evidence, activity, probe, and exact scripted-transport utilities.
  • src/react.ts – opt-in React bindings for a Direct store.
  • src/web/ – atomic exact browser-session bridge installation plus low-level bridge and fail-closed application-fetch firewall.
  • src/tooling/ – opt-in Bun/Node verification, Bombadil campaign and host lifecycle, and emitted-bundle scanning mechanics kept outside production runtime graphs.
  • docs/ – architecture, adoption, verification, publishing, and wire-format reference.
  • examples/todos/ – runnable React example with separate production and Direct entries.
  • examples/react-native/ – runnable Expo example with platform-resolved native production and React Native Web Direct entries.
  • skills/direct/ – one installable Agent Skill for Direct installation, adoption, verification, and production exclusion.
  • kb/ – authored repository rationale, maintained synthesis, and durable plans.
  • .agents/skills/ – portable KB and phased-execution workflows.
  • WRITING.md and STYLE.md – internal and public prose contracts.
  • .github/workflows/ – read-only branch validation and checks-gated immutable GitHub Release automation.
  • README.md – installation, quick start, scope, and command index.

Guidelines

  • Use Bun 1.3.14 for repository commands. Keep the published ESM runtime portable to modern Node.js and browsers according to each export's documented boundary.
  • Follow WRITING.md for internal prose and STYLE.md for public prose.
  • Follow the shared Hraness README guidelines for the README trust path and its website projection. Adapt the structure to Direct's package and Agent Skill instead of copying a fixed template.
  • Apply unreasonably robust programming when agent work is cheap. Prefer coherent cross-file correctness and focused deterministic evidence to a knowingly weaker design.
  • Deliver changes to main through a current-head pull request. Keep the stable Required CI job green, resolve every review thread, and serialize merges. Human approval stays optional while one regular maintainer would otherwise self-review. Never force-push or bypass the gate.
  • Keep core code product-, platform-, and framework-neutral. Put React, browser globals, and Node-only tooling behind explicit subpaths.
  • Build Bun host @hraness/direct/tooling/* entries separately. Keep every development-only export out of the default, core, React, testing, and web graphs, and prove the separation through the packed-consumer boundary gate. Ship the Bombadil campaign subpath as TypeScript source because 0.7.2 resolves no package export conditions, and keep it free of filesystem and process APIs because its compiler loads that subpath into a browser specification.
  • Owned browser automation must explicitly select provisioned Chrome for Testing or Playwright Chromium in its task-owned config. Never fall back to installed auto-updating Chrome or ambient browser discovery. Keep graceful close and existing host/browser ownership requirements intact.
  • Pin optional browser tools exactly. The Bombadil integration supports 0.7.2 only, treats its JSONL trace as foreign bounded input, and must attest the canonical Direct manifest and probe after every run rather than trust a zero exit status.
  • Constrain every Bombadil run to exclusive UUID leaves, owned process groups, bounded files and totals, a final descriptor-bound inventory, and a sanitized receipt. Public CI may upload only the exact receipt/summary leaf; raw traces and diagnostics require explicit bounded private vetting. Give each product-owned named snapshot an exact fail-closed parser or predicate.
  • Keep React Native and Expo imports in the reference example; @hraness/direct/react remains the platform-neutral React binding.
  • Keep .js extensions on relative TypeScript import and export specifiers; the published source type surface must compile under both Bundler and NodeNext resolution.
  • Treat this repository as the complete project. Files and Git prose may use only its public names, paths, commands, and examples; do not refer to or infer any non-public source, system, product, package, path, or implementation detail.
  • Let each product own its semantic ports, strict versioned JSON world, deterministic adapters, scenarios, coverage claims, and workbench.
  • Prefer one validated definition, one owned session, and one atomic browser installation over assembling raw catalogs, stores, manifests, probes, and globals in each product.
  • Keep Direct development-only. Production entries and emitted production assets must not import the package, fixture worlds, scenario catalogs, workbench code, or browser bridge.
  • Keep this repository package-only. Link to the canonical product page at https://hraness.com/direct; do not add a website or deployment contract here.
  • Model invalid states out of existence. Parse foreign input from unknown, reject unknown reserved keys and object fields, and preserve atomic store, generation-fencing, cancellation, and exact-script invariants.
  • Publish one exact driver-neutral session manifest from the browser bridge. Parse the exact v2 schema, manifest, and probe from one synchronous page sample. Require the expected source, scenario, route, and matching activation hashes before treating browser output as evidence.
  • Pair readable deterministic regression examples with property tests for parsers, round trips, ordering, resets, cancellation, and other general laws.
  • Pin Hraness dependencies to reviewed immutable releases or full commits. Never connect repositories with sibling paths, Git submodules, or coordinated main assumptions.
  • Extract a shared abstraction only after two concrete consumers need the same stable interface. Keep Direct product-neutral and independently releasable; consumers upgrade on their own validation schedule.
  • Keep Direct headless and development-only at consumer boundaries. Do not add a design-system dependency or product composition to the package.
  • Freeze public interfaces before parallel lanes begin. Give manifests, lockfiles, generated files, and other convergence surfaces one owner while lanes edit disjoint paths.
  • Keep mandatory rules in the closest AGENTS.md, current procedures in docs/, executable contracts in types and tests, and pull-based rationale and plans in kb/.
  • Run bun run kb:check:lane in an independent KB lane. The integrating agent runs bun run kb:refresh and bun run kb:check.
  • State proof limits precisely. Fixture evidence does not prove the live adapter, service, host, operating system, or device behavior that the composition replaces. In public copy, state each limit once, beside the claim it limits, in the reader's terms (STYLE.md).
  • Use focused local checks and independent impact review, then require complete CI on the exact current head, authoritative current main, and checked integration tree as the final source aggregate. CI must run the complete root bun run check, preserve committed-output cleanliness, and pass both check and Required in the same run attempt. Compare workflow, command, discovery, deadline, and platform changes against the prior required coverage; keep the coverage contracts passing. Record source, lockfile, toolchain, and run identity. Keep bun run check available as the complete local fallback when coverage or equivalence is uncertain, and diagnose known failures before requalification. This source receipt does not replace explicit local, native, browser, install, release, npm-mirror, or provider acceptance. See CONTRIBUTING.md for the final receipt. Run the todo example's production build and marker scan when changing the example or package boundaries.
  • Run the React Native example's iOS, Android, and web export gate when changing mobile integration or production boundaries.
  • Follow docs/publishing.md for canonical GitHub releases and optional exact-archive npm mirrors. Treat one protected lightweight v* tag on main as the complete release request. Restrict version-tag creation to organization administrators and block updates/deletion with no bypass actors. Keep the complete source gate and isolated installation before checkout-free four-subject attestation and immutable five-asset publication. Bind verified certificate, source, current helper closure, original run/attempt, and actual remote bytes; preserve draft IDs and reconcile uncertain writes before retrying. npm runs only after all required canonical jobs succeed. Within the npm workflow, only its minimal dependent publication job may request OIDC; rebind the downloaded exact artifact, every remote stable tag, and current main immediately before publication. Preserve the full mirror source gate on current-main mirror retries; a canonical tag run may reuse only its own Verify job's complete check of the identical tag commit. Preserve registry identity/install readback. Current-main mirror retries retain the original canonical source and provenance. Historical asset-free recovery is restricted to versions at or below 0.7.20: bind current helpers to reviewed Git blobs and invoke them against exact tagged source with config/environment loading disabled and npm pack --ignore-scripts, so recovery never runs a historical prepack. Never move a tag or replace a package version or immutable artifact. Record canonical and mirror delivery outcomes separately.
<!-- hraness-public-copy:start -->
  • Public copy (websites, READMEs, docs, package and GitHub descriptions, CLI help, llms.txt, generated pages) follows STYLE.md, synced from hraness/.github. Text a model writes for publication also follows GENERATION_STYLE.md.
  • The delivery vocabulary in this file (admission, qualification, custody, receipt, bounded, lane, gate, surface, projection) is internal. Translate it into what the reader gets.
  • Take one-line product and sibling descriptions from the portfolio registry and versions from the release record. Tests pin facts, not prose.
  • Run bun run check:copy before handoff when the repository has it.
<!-- hraness-public-copy:end --><!-- hraness-releases:start -->
  • GitHub Release pages follow RELEASES.md in hraness/.github: the title is the registry product name and the tag, and the body is a summary, ## Changes, ## Install, ## Verify, then the repository's identity record as a trailing HTML comment.
  • The summary and changes come from the version's section of CHANGELOG.md in the tagged commit. Write that section in the version bump pull request. The release workflow copies it, generates Install and Verify from the release record, fails when the section is missing or empty, and never uses GitHub's generated notes.
<!-- hraness-releases:end --><!-- hraness-delivery:start -->
  • Treat the user's request to change this repository as standing authorization for routine task-owned commits, pushes, pull requests, merges, releases, deployments, and production verification after the gates applicable to that action pass. Do not ask for duplicate confirmation. Build confidence through relevant automated checks, bounded diagnostics, and independent review, not another human approval. Passing checks does not expand task scope or authority.
  • Prefer agentic service provisioning for new infrastructure. Check Vercel Marketplace for a native product that can provision the required resource first; use Stripe Projects as a supported alternative when it better covers the service or the Marketplace route only connects an existing account. Verify the current catalog, account, region, plan, recurring cost and resource capabilities before selecting a route. Prefer supported provider CLIs or APIs over browser-only setup when neither catalog fits, and explain the concrete exception. Reuse existing owner-controlled resources where appropriate; this preference alone does not authorize migrations, duplicate accounts, paid upgrades or wider access. Continue setup already authorized by the task and budget without duplicate confirmation. Keep provider credentials and generated environment files private, complete required interactive authentication, and verify deployment, persistence and recovery separately from successful provisioning.
  • Separate artifact admission from live qualification and operational activation. Use applicable automated source, security, package/install, and provenance evidence for artifact admission; live provider qualification is not a universal publication prerequisite. Preserve explicit live acceptance criteria and require relevant live evidence for claims that depend on it. If publication or an artifact's install, upgrade, or default-use path activates risky unqualified behavior, keep that behavior guarded or disabled, or obtain bounded relevant evidence before shipping or activation.
  • Use the repository's documented delivery workflow and preserve the identity, target, capacity, migration, and recovery guards applicable to operational activation. Replace an obsolete gate through a reviewed source and policy change with corresponding tests, never an ad hoc skip. Preserve every runtime-enforced approval, access control, branch protection, environment rule, safety policy, and required final gate. Ask for user input only when delivery needs a material product decision, missing credentials or authority, unavoidable interactive authentication, an irreversibly destructive action outside task scope, or resolution of a failure that cannot be handled safely and autonomously.
  • Preserve production and user data throughout delivery. Inspect the exact account, environment, deployment, and data target before writes. For data changes, inspect a dry run or equivalent migration plan and validate the recovery path before any effect that could lose or corrupt data. Prefer additive, backward-compatible migrations and bounded batches. Record mutation intent, use idempotency or conditional writes, and reconcile uncertain results before retrying. Verify deployed identity, health, and relevant data invariants after delivery. Routine delivery never authorizes resetting, truncating, dropping, or overwriting user data; stop the unsafe operation if preservation or recovery cannot be established.
  • Prefer short-lived repository workload identities such as OIDC trusted publishing, GitHub Apps, and narrowly scoped machine identities. Use unattended stable publication and production promotion when supported by the provider and repository. Establish supported machine authority once and verify it with a non-publishing preflight where available; routine releases should not require recurring interactive authentication or conversational approval. Releases and deployments run without a human in the loop: do not add required reviewers, manual approval environments, or wait timers to release or deployment paths, and remove any you find through a reviewed change. Keep account two-factor authentication, and do not add long-lived personal tokens.
  • Keep delivery gates proportional to the failure they prevent. Prefer required checks on the current integration candidate, independent agent review, and atomic or conditional integration. Add a merge queue or another approval stage only for a demonstrated coordination or safety need. Replace redundant queues, serial waits, and duplicate checks through reviewed policy changes while retaining evidence for the integrated result.
  • Preserve useful reasoning fan-out, but avoid unnecessary checkout fan-out. Prefer subagents in the current task for bounded research, review, diagnosis, and focused checks when they can safely share one working tree; create a separate task or worktree only for independently deliverable divergent edits, an isolated verification tree, or a different execution environment.
  • Give each expensive focused validation command and external wait one owner. The integration owner reviews that evidence and runs the repository-required aggregate or final gate once after convergence. Reuse evidence only for the exact Git tree, command, lockfiles, toolchain, relevant environment, and validity period, and never to skip a required final integration, merge, release, deployment, or production-verification gate.
  • On Hraness development machines, use the installed host scheduler for heavyweight top-level commands when available. Keep ordinary work in the compute lane; give authenticated browser/dev-server/Chromium work one browser-auth owner and Mac-only validation one mac-native owner.
  • When a CI or policy gate scans complete Git history, check out the exact governed SHA and fetch only the fully qualified governed refs before scanning. Preserve the complete-history gate and reject unexpected refs instead of importing unrelated concurrent heads.
  • At closeout, record applicable branch, PR, check, merge, release, deployment, and production evidence. Archive only conclusively finished tasks, never from silence alone, and reclaim only freshly revalidated clean merged worktrees through the guarded exact-path flow.
<!-- hraness-delivery:end --><!-- algal-skills:start -->

ALGAL skills

  • Prefer the globally installed algal-* skills for bounded git state, diffs, repository survey/search, test and release gates, CI polling, and web fetches instead of repeated raw tool output.
  • At session start, if the algal skill is unavailable, install the current skill pack for Claude Code, Codex, and Devin for Terminal with bunx skills add 0thernet/algal-skills --global --agent claude-code codex devin --skill '*' --copy --yes.
  • Confirm installation with bunx skills list --global. If Bun or network access is unavailable, continue with repository-native tools instead of blocking delivery.
  • Treat ALGAL receipts as execution evidence, not provider attestation, and preserve the repository's normal verification and release gates.
<!-- algal-skills:end -->

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.