eqe365 on Discord (#3151): Devin CLI reads AGENTS.md, but Library →
Instructions listed Devin as keeping no user-wide instructions file.
Devin's target had Skills and MCP and no Instructions.
Source: the docs Devin CLI 3000.11.92 ships with it,
share/devin/docs/extensibility/rules.mdx ("Rules & AGENTS.md" → Global
Rules). It reads global rules from ~/.config/devin/AGENTS.md
(%APPDATA%\devin\AGENTS.md on Windows) at the start of every session, and
the singular AGENT.md there too. Devin's folder (a.Dir) is already that
folder, so Instructions is AGENTS.md there, or AGENT.md when only that
one exists (firstThere). The GUI is data-driven and needs no change.
Test: TestDevinInstructions (internal/library/agent_skills_test.go)
checks:
- the target is AGENTS.md before the file exists;
- Save writes the shared block after the user's own text;
- with only AGENT.md present, that file is the target.
With targets.go reverted it fails: "Devin's instructions: "", want
.../.config/devin/AGENTS.md before the file is there".
Run with this change on origin/main ba319a758 (before the rebase),
set -o pipefail, GOMODCACHE pinned:
- gofmt -l: clean.
- go vet ./..., GOOS=linux go vet -tags nogui ./... and GOOS=windows
go vet ./...: all clean. darwin, linux nogui and windows builds: ok.
- go test -timeout 45m ./...: 66 packages ok. Two timed out at 45m
while the machine's load average was 24 to 60 (other sessions'
suites):
- internal/library (2724s; TestCheckSkills had been running 6s at the
deadline). Alone at -timeout 90m it is ok in 2204s. This is #2853.
- internal/agent (2714s). It doesn't import internal/library, so it
runs the same code as origin/main. This is #2544.
- Packages that import library are ok: backup, cli, davsync, gui,
profile, tui.
- No GUI files touched.
Not tried: a real Devin session reading the file; the claim rests on
Devin's own shipped docs.