agentleFS
deivdevdeivdev/nomacode/CLAUDE.md

nomacode

CLAUDE.md66 starsChanged 4 months agoMITView on GitHub

Nomacode is a mobile-first PWA for running AI coding assistants (Claude Code, OpenCode) on Android via Termux. It provides a terminal emulator interface with repository management and multi-session support. Stack: Express backend + Vanilla JS frontend with xterm.js No test framework or linting is configured. Frontend (web/): Single Nomacode class in app.js manages all state and UI. Event-driven with keyboard shortcuts. Messages are JSON with type field: - attach/detach/input/resize (client → server) - output/exit (server → client)

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    No test framework or linting is configured.

    line 19

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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
CLAUDE.md

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Project Overview

Nomacode is a mobile-first PWA for running AI coding assistants (Claude Code, OpenCode) on Android via Termux. It provides a terminal emulator interface with repository management and multi-session support.

Stack: Express backend + Vanilla JS frontend with xterm.js

Commands

npm start              # Start server (opens browser at localhost:3000)
npm start -- --port 8080  # Custom port
npm start -- --no-open    # Skip auto-browser-open

No test framework or linting is configured.

Architecture

Browser (PWA)
    ↓ WebSocket (JSON messages for terminal I/O)
Express Server (server/index.js)
    ├── REST API (server/api/)
    │   ├── repos.js      # Git clone/create/pull/status
    │   ├── sessions.js   # Terminal session lifecycle
    │   ├── settings.js   # User preferences
    │   └── tools.js      # AI tool detection & installation
    └── Services (server/services/)
        ├── pty-manager.js    # Terminal sessions (node-pty → script → spawn fallbacks)
        ├── repo-manager.js   # Git operations via simple-git
        ├── tool-detector.js  # Tool availability with 30s cache
        └── config.js         # Persists to ~/.nomacode/config.json
    ↓
File System (~/.nomacode/repos/) + Git + Shell

Frontend (web/): Single Nomacode class in app.js manages all state and UI. Event-driven with keyboard shortcuts.

Key Files

FilePurpose
bin/nomacode.jsCLI entry point with argument parsing
server/index.jsExpress server setup
server/websocket.jsWebSocket protocol for terminal I/O
server/services/pty-manager.jsPTY abstraction (supports node-pty, Android node-pty, script command, direct spawn)
web/js/app.jsFrontend state & UI logic (~1500 lines)
web/css/style.cssTerminal-like dark theme

WebSocket Protocol

Messages are JSON with type field:

  • attach/detach/input/resize (client → server)
  • output/exit (server → client)

Data Storage

  • Config: ~/.nomacode/config.json
  • Repos: ~/.nomacode/repos/{name}/

Platform Notes

  • Server binds to 127.0.0.1 only (localhost)
  • PTY manager tries node-pty variants first, falls back to script command on Unix or direct spawn() on Windows
  • Primary target is Termux (Android), detected via TERMUX_VERSION env var

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.