agentleFS
celsiusmcelsiusm/jarvis-workspace/plotspace/AGENTS.md

jarvis-workspace / plotspace

AGENTS.md33 starsChanged 3 months agoMITView on GitHub

FastAPI + uvicorn. Organized by section in routers/.

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

The file

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

2 rules. About 0 are common, 0 are distinctive, and 2 are 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.

  • 2

    Very specific

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

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

    tmux/git control: use subprocess.run (synchronous), NOT asyncio (hangs).

    line 34
  2. Very specific:

    Paths: always os.path.join. The ANTHROPIC_API_KEY is excluded from the PTY environment.

    line 38

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

plotspace/ — map for agents

FastAPI + uvicorn. Organized by section in routers/.

plotspace/
├── main.py          # entrypoint: app, startup, mount /static, HTML routes. Command:
│                    #   python3 -m uvicorn plotspace.main:app --host 0.0.0.0 --port 3000
├── core/         # database, events, auth, ssrf, mantenimiento,
│                 # agent_live, agent_watch, dev_detect, fe_watch, mailbox,
│                 # puertos, web_search (Radio's YouTube), stt_proc (STT worker in its own
│                 # process — NEVER load ML models in-proc: the GIL freezes the loop)
│   ├── orq_contexto.py # what the orchestrator sees each turn (terminals + pane, git, guide, events…)
│   ├── orq_cli.py   # claude -p headless transport (prompt via stdin, stream-json parser)
│   ├── database.py  # SQLite WAL (DB_PATH → data/jarvis.db), get_db(), init_db(), purgar_task_events()
│   ├── events.py    # EventBroadcaster (WebSocket per project_id), singleton `broadcaster`
│   └── auth.py      # token-gate + host_permitido/origen_permitido (anti rebinding/CSWSH)
├── routers/         # one router per section (18): orchestrator, terminals,
│   │                # projects, projects_files, plugins, voice, workspace,
│   │                # mobile_preview, memory, tasks, browser, radio,
│   │                # review, live, system, cuentas, fs, fondo
│   ├── orchestrator.py   # /api/orchestrator/* chat + actions (spawn agents with tarea, enviar_prompt)
│   ├── terminals.py      # /api/terminals/* + keyword monitor + tmux/PTY
│   ├── projects.py       # /api/projects/*
│   ├── fondo.py          # /api/fondo: the custom Glass-mode background image (validated by magic bytes, data/fondo/)
│   ├── projects_files.py # files tab (read/write/search/upload, with safe-join)
│   └── ...
└── tests/           # pytest (config in pytest.ini) — each test also runs
                     # as a standalone script (__main__ block). `python -m pytest`
                     # or `python3 plotspace/tests/test_<x>.py` (isolated DB in tempfile).

Critical rules (see CLAUDE.md for the detail)

  • tmux/git control: use subprocess.run (synchronous), NOT asyncio (hangs). Exception: _capture_tmux_output() in terminals.py.
  • Circular import orchestrator ↔ terminals: resolve with lazy import inside the function.
  • core imports: from plotspace.core.database import get_db, from plotspace.core.events import broadcaster.
  • Paths: always os.path.join. The ANTHROPIC_API_KEY is excluded from the PTY environment.

Verification

python3 -c "import plotspace.main" + run the suite: python -m pytest (or for t in plotspace/tests/test_*.py; do python3 "$t"; done).

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.