agentleFS
hesamsheikhhesamsheikh/octogent/AGENTS.md

octogent

AGENTS.md1.4k starsChanged 9 months agoMITView on GitHub

Trending

Quiet since May.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the hesamsheikh/octogent repository that our weekly crawl found: only 2 in all, so this is a hint, not a trend. There is no adoption data for this file yet.
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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 repositoryOne other file it gives its agents.

The file

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

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start with tests. For bug fixes, reproduce first.

    line 5
  2. Very specific:

    Keep modules focused. Large React containers should orchestrate, not hold every constant, parser, and JSX block.

    line 8
  3. Distinctive:

    Must stay free of React, HTTP, PTY, and filesystem orchestration concerns.

    line 17
  4. Distinctive:

    Start at README.md for the product overview and command surface.

    line 28
  5. Distinctive:

    Read only the docs relevant to the surface you are touching.

    line 43
  6. Very specific:

    If behavior is reusable across apps, move it into packages/core only when it can remain framework-agnostic.

    line 49
  7. Distinctive:

    Keep orchestration thin. Entry points such as API server/bootstrap files and top-level React containers should wire dependencies, not …

    line 50
  8. Distinctive:

    Read only the guides and code relevant to the surface you are changing.

    line 53
  9. Distinctive:

    Prefer small, isolated edits over broad cleanup unless the task explicitly asks for refactoring.

    line 54
  10. Distinctive:

    Keep docs in sync with behavior changes when user-facing workflows, commands, persistence layout, or architecture assumptions change.

    line 55

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

Repository Guidelines

Code Style First

  • Preserve existing patterns before inventing new ones. Read nearby code and match the established module shape, naming, and data flow unless there is a clear reason to change direction.
  • Start with tests. For bug fixes, reproduce first. For new features, add the test that defines the behavior before expanding the implementation.
  • Implement incrementally. Prefer small, working steps over broad rewrites. Keep the tree passing as you go.
  • Think in systems. Extract shared behavior into reusable components, hooks, utilities, or domain functions instead of cloning slightly different versions.
  • Keep modules focused. Large React containers should orchestrate, not hold every constant, parser, and JSX block. Keep pure logic in src/app/*, UI in src/components/*, and CSS split into focused files under src/styles/*.
  • Comments explain why, not what. Add comments only for constraints, tradeoffs, or non-obvious reasoning.
  • Design defensively. Validate assumptions, handle edge cases, and treat security boundaries as part of the implementation, not a follow-up.

Project Structure

  • Monorepo: apps/* and packages/* via pnpm-workspace.yaml.
  • Runtime: Node.js 22+, TypeScript, pnpm.
  • Core package: packages/core
    • Framework-agnostic domain types, application logic, and ports.
    • Must stay free of React, HTTP, PTY, and filesystem orchestration concerns.
  • API app: apps/api
    • Node HTTP/WebSocket server, PTY session runtime, worktree lifecycle, transcript persistence, monitor service.
  • Web app: apps/web
    • Vite + React operator UI, modular CSS, UI orchestration over API/runtime contracts.
  • Runtime state: .octogent/
    • state/tentacles.json
    • state/transcripts/*.jsonl
    • worktrees/<tentacleId>

Documentation Map

  • Start at README.md for the product overview and command surface.
  • Docs index: docs/index.md
  • Core concepts:
    • docs/concepts/mental-model.md
    • docs/concepts/tentacles.md
    • docs/concepts/runtime-and-api.md
  • Workflow guides:
    • docs/guides/working-with-todos.md
    • docs/guides/orchestrating-child-agents.md
    • docs/guides/inter-agent-messaging.md
  • References:
    • docs/reference/cli.md
    • docs/reference/api.md
    • docs/reference/filesystem-layout.md
    • docs/reference/troubleshooting.md
  • Read only the docs relevant to the surface you are touching. Do not do a full docs sweep unless the task is documentation maintenance.

Architecture Boundaries

  • packages/core defines domain contracts and pure application logic. Both apps may depend on it; it must not depend on app code.
  • apps/api owns infrastructure concerns: PTYs, WebSockets, filesystem persistence, process execution, and git worktree operations.
  • apps/web owns presentation and client-side interaction state. Do not move server-only behavior into the web app to avoid adding hidden backend logic to the UI.
  • If behavior is reusable across apps, move it into packages/core only when it can remain framework-agnostic.
  • Keep orchestration thin. Entry points such as API server/bootstrap files and top-level React containers should wire dependencies, not accumulate business logic.

Workflow

  • Read only the guides and code relevant to the surface you are changing. Do not sweep the whole repo before starting.
  • Prefer small, isolated edits over broad cleanup unless the task explicitly asks for refactoring.
  • Keep docs in sync with behavior changes when user-facing workflows, commands, persistence layout, or architecture assumptions change.
  • Preserve the product vocabulary already documented in CLAUDE.md: agents, sessions, worktrees, logs, pipelines, tentacles, and terminal columns.

Verification

  • Install: pnpm install
  • Dev: pnpm dev
  • Build: pnpm build
  • Test: pnpm test
  • Lint: pnpm lint
  • Format: pnpm format
  • For narrow changes, run the most direct test or package-scoped test first, then widen verification as needed.
  • For changes that affect shared contracts, persistence, or cross-app behavior, run the relevant package tests and the root build before landing.

Scoped Guides

  • apps/api/AGENTS.md expands server/runtime/worktree rules.
  • apps/web/AGENTS.md expands UI/component/style rules.
  • packages/core/AGENTS.md expands domain and ports-and-adapters rules.

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.