r/webdev • u/anx3ous • Oct 17 '26
Showoff Saturday HUMANS.md: a file that tells coding agents how to work with you
I run a few coding agents (~10) at once and got tired of them interrupting me for things they could decide on their own. AGENTS.md is about the repo, so I wrote a file for the person side. It lives at ~/.humans/HUMANS.md. Mine looks like this (trimmed):
---
humans: "0.3"
id: tristan
visibility: private
reading:
lead_with: tldr
max_words: 149
deciding:
reversible: decide_and_report
batch_questions: end_of_task
interrupting:
interrupt_for: blocking_only
notes: "I often read on my phone. I've very short attention span, and i'm more visual"
---
The fields come from a fixed vocabulary, so a schema can check them. The free-text notes are the weak spot, validation doesn't make them safe from prompt injection.
It never grants permissions. Repo rules and the harness still win.
The repo has the spec, JSON schemas, test vectors and a Node validator (spec CC BY 4.0, tools Apache-2.0). I also wrote plugins for Claude Code, Codex CLI and a few other agents to try it. So far I've only checked that the file loads, on macOS, not how well the models follow it.
The part I'm least sure about: visibility can be private, org or anyone_with_file, and a profile without the field is read as org. Would you default to private instead?
It's a 0.3 draft and nothing is locked in yet, the field list included.
Spec: https://github.com/cmdai-hq/HUMANS.md
Examples and a side-by-side demo: https://humansmd.dev
2
u/codegems Oct 17 '26
😂😂
2
u/jbenner Oct 17 '26
Interesting project. I see that `source.md` contains prose, but `HUMANS.md` appears to be just a front matter block. Am I missing something? Just curious why the latter isn’t just a YAML file if that’s the case. Not hating, just genuinely curious. I’ll probably give this a try later on.
2
u/dmanoj Oct 17 '26
the thing that cut interruptions most for me wasn't a preferences file, it was turning every incident into a rule in the repo's agents file, written as "this happened, here's the check you run before saying done". agents read it every session. the file is now mostly a ledger of ways past runs went wrong, and new sessions stop making those specific mistakes without asking.
2
u/atp_studio_coll Oct 19 '26
Default to private. A profile that says "decide reversible things without asking" is a permission-shaped statement even if the spec says it grants nothing, and sharing it org-wide means a teammate's agent inherits my tolerance for risk. Private by default, and let people widen it when they mean to.
2
u/SharkLaunch Oct 17 '26
This post is slop about slop. You can't even write the post yourself?
1
u/geoffreybyers Oct 18 '26
The notes field is a prompt injection vector that makes the entire file dangerous for any agent with execution privileges. No schema validation fixes it. You can't ship a config file that lets a user override the system prompt in plain text.