asc-daemon
AGENTS.md4 starsChanged 12 months agoMITView on GitHub
Rules for agents and developers working in this repository. The project-wide rules live in ../asc-platform/AGENTS.md; this file covers daemon specifics. Working in this repository, you are a systems programmer with many years of experience at Microsoft, Apple and other major technology companies and deep experience in Linux systems development: daemons and services (systemd), processes and signals, filesystems and permissions, sockets and networking, packaging and distribution across distros. Write code as if it runs critical production infrastructure: careful error handling, predictable…
- Commits and pushes
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 repository3 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- asc-app-packagingSkill
- asc-server-managementSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is 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.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Every task is first recorded in the ROADMAP (DMN-* prefix) with a status, then a doc in docs/english/ + docs/russian/ is created/updated, …
≈ “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.
Files
🤖 AGENTS.md — asc-daemon repository rules
Rules for agents and developers working in this repository. The project-wide rules live in ../asc-platform/AGENTS.md; this file covers daemon specifics.
🧑💻 Agent role
Working in this repository, you are a systems programmer with many years of experience at Microsoft, Apple and other major technology companies and deep experience in Linux systems development: daemons and services (systemd), processes and signals, filesystems and permissions, sockets and networking, packaging and distribution across distros. Write code as if it runs critical production infrastructure: careful error handling, predictable behavior under failure, minimal dependencies, attention to security (file permissions, input validation, root only where necessary) and to portability (Linux distributions, macOS; x86_64/ARM64/ARMv7).
🌍 General rules
- Documentation is English-first, with emoji in headings: the main README is in English; module docs are bilingual — English in
docs/english/, Russian indocs/russian/— with cross-links between the language versions. Both versions are kept in sync: changing a doc means changing it in both folders. SKILL.md texts and commits are in English. - Every task is first recorded in the ROADMAP (
DMN-*prefix) with a status, then a doc indocs/english/+docs/russian/is created/updated, and only then the code is written. - Task statuses:
[PLANING 📝]·[IN_PROGRESS 🔧]·[DONE ✅]·[BLOCKED ⛔]— exact spelling; table format is in the project-wide rules. - Versioning — Semantic Versioning (
MAJOR.MINOR.PATCH, semver.org):- MAJOR — incompatible changes: daemon API (proto contracts), config.toml/meta.json formats, CLI command behavior;
- MINOR — new, backward-compatible functionality (new commands, fields, endpoints);
- PATCH — fixes and internal improvements with no observable behavior change.
The version is set in
Cargo.toml(asc --versionreads it from there); a release = git tagv<version>. Before 1.0.0 a MINOR may contain breaking changes — call them out in the release notes. The version bump ships with the change: after landing any new feature or user-visible fix, bump the version inCargo.toml(plusCargo.lockand version.txt) in the same change — a feature without a version bump is not done. Also update theVersionbadge in README.md and docs/russian/root.md (img.shields.io/badge/version-X.Y.Z-blue) — both currently hardcode the version rather than readingversion.txt. After the change lands onmain, push the release tag:git tag vX.Y.Z && git push origin vX.Y.Z(triggersrelease.yml: cross-builds + GitHub Release).
- Git commits: English only and — most importantly — strictly Conventional Commits with the types from conventional-commit-types:
feat·fix·docs·style·refactor·perf·test·build·ci·chore·revert. Format:type(scope): descriptionin the imperative mood, the scope is a module (feat(pkg): add private repo auth); subject ≤ 72 characters, details go into the commit body. Process — CONTRIBUTING.md.
📚 Documentation
- Daemon module docs live in this repository:
docs/english/anddocs/russian/(language selector — docs/README.md; indexes — docs/english/README.md and docs/russian/README.md). - Doc structure: 📌 Description → 🎯 Scenarios → 🏗️ Technical design → 🔗 Related tasks.
- New module → new docs in
docs/english/anddocs/russian/+ a line in both indexes, in the repository README (EN + RU) and in the modules table. - Mirror into
asc-documentation: this repository'sdocs/is the source of truth for CLI documentation, but the public docs site (repoasc-documentation, module pages underdocs/cli/+docs/ru/cli/) is a copy, not a build artifact — it is not regenerated automatically. Any change to a module doc here (docs/english/<module>.md/docs/russian/<module>.md) must be mirrored by hand into the matching file inasc-documentationin the same change: copy the updated content across, then re-apply the docs-site link conventions (absolutehttps://github.com/AdminServiceCloud/...URLs instead of../../-style repo-relative links,/screenshots/preview.pnginstead of../screenshots/preview.png, language-switcher links pointing at/cli/↔/ru/cli/). A new module doc here also needs a new page inasc-documentation(both languages) plus an entry in that site's sidebar/nav config and homepage article list. - Command reference pages: every
--helpinvocation ofasc(at any depth of the command tree insrc/cli/main.rs) prints aMore info: <url>/Больше информации: <url>footer pointing at a page inasc-documentation'sdocs/commands/(EN) +docs/ru/commands/(RU) — one page per top-level command, with a### <subcommand>(or### <group> <action>for two-level actions, e.g.### storage add) heading per subcommand acting as an anchor (commands/backup#storage-add). The URL is computed at runtime from the clap subcommand tree (docs_url/inject_help_linksinsrc/cli/main.rs), so adding, removing or renaming a command or subcommand requires adding/removing/renaming the matching page or heading inasc-documentation'sdocs/commands/+docs/ru/commands/in the same change — otherwise the printed link 404s. Heading text must be exactly the subcommand name(s), nothing else, or the VitePress-generated anchor won't match whatdocs_urlcomputes. - Community files: 🛡️ SECURITY and 🤝 CODE_OF_CONDUCT — at the repository root, where GitHub's community-profile checks expect them (Russian versions in
docs/russian/); the current version is duplicated in version.txt — keep it in sync withCargo.toml.
🛠️ Repository specifics
- Language: Rust. Daemon + CLI (
asc) + a separate updater utility (asc-updater, see docs/english/updater.md). All sources live insrc/(src/cli/,src/daemon/,src/updater/). - Target OSes: Debian and Ubuntu first; write code with future support for other distributions and macOS in mind — distro-specific bits only behind abstractions.
- Contributing: process, code and commit style — CONTRIBUTING.md; CI —
.github/workflows/. - License: MIT with mandatory attribution (Omar El Sayed @statebyte, AdminService.Cloud, Anytecture Software) — never remove the copyright header from LICENSE.
- Proto contracts: the
proto/directory in this repository is the source of truth for the daemon API; the platform links the contracts from here (a buf dependency). Changing the API — change the.protohere, backward-compatibly. - Open source: the daemon is fully autonomous without the platform (CLI + local API) — do not add features that require the platform for basic operation.
- Localization: user-facing CLI messages only through the translation system (
src/daemon/i18n/, EN default + RU); the language is thelanguagesetting in config.toml, commandasc config lang; debug messages are not translated. - Skills: skills for AI agents live in
skills/<asc-name>/SKILL.mdfollowing the Agent Skills standard; SKILL.md texts are in English; every skill describes a fallback for whenascis not installed (rules — skills/README.md). - Platforms: Linux (major distributions), macOS (Apple Silicon); x86_64, ARM64, ARMv7 — changes must not break cross-compilation.
- Unix-only compilation: there are no Windows stubs or
cfg(not(unix))branches in the code and there must be none (lib.rshas acompile_error!). On a Windows development machine.cargo/config.tomltargets cargo atx86_64-unknown-linux-gnu(check/clippy work locally), whilecargo build/cargo testrun in WSL (Ubuntu) or CI. Agents must always run daemon builds and tests through WSL when the host system is Windows. - Docker: bollard for everything the daemon models itself, never the
dockerCLI — the Engine API over the configured unix socket (src/daemon/docker.rs) is the only way this daemon talks to Docker for anything it owns (containers, images, volumes, networks). The one deliberate exception isdocker compose(DMN-108/DMN-109,src/daemon/compose.rs): a compose project — variable interpolation,env_file, anchors,extends, profiles, override files,depends_onhealth waits, per-service networks — is something this daemon does not model on its own, so thedocker composeCLI plugin (v2) is shelled out to as an orchestrator for it, pointed at the same configured socket viaDOCKER_HOST. Do not extend this exception to anything bollard can already do; do not add a second CLI-shelling path for something this daemon does model itself. - Always build through the Taskfile, never bare
cargo: runtask lint/task test/task build/task build:cross(notcargo clippy/cargo test/cargo builddirectly). Each of these depends ontask clean:sweep, which runscargo-sweep --maxsize 8GBto evict the oldesttarget/artifacts before compiling, keeping it under the cap — this is what keeps the Windows-host and WSLtarget/directories from growing unbounded (they are two separate toolchains/caches and both need periodic pruning). Use--maxsize, not--time: with builds running daily, every artifact's mtime is recent, so a time-based sweep (cargo sweep --time N) finds nothing to remove in practice — verified empirically (14-day cutoff cleaned 48 bytes out of an 83 GB target/).cargo-sweeponly evicts the least-recently-used artifacts, not the whole cache, so it never forces a full rebuild the waycargo clean(task clean) does. Ifcargo-sweepisn't installed yet,task tools:sweepinstalls it automatically as a dependency — no manual setup needed.
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
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.

