Migrate to 4.0
Tantra 4.0 adds the skill_file tool, so agents read any file in the skills catalogue and a path written in a SKILL.md works as written. Skills.read(name, path) is now required. Journal bodies and sequences are unchanged, and no store has a new migration.
What changes for models
Section titled “What changes for models”- Agents with skills get
skill_file(skill, path)besideskill.pathis relative to the named skill’s folder:references/x.mdstays in the skill and../other-skill/x.mdreaches a sibling. A folder returns every file under it, one path per line. - Any skill in the catalogue can be passed as
skill, whateverAgent.skillsallows. The allowlist still gates the index andskill. - Results over 64 000 characters end with
[truncated at 64000 chars]. Compaction prunesskill_fileresults and still never prunesskilloutput. - The skills guidance now tells the model to read files a loaded skill refers to with
skill_file. The system prompt changes once, so prompt caches for agents with skills are invalidated a single time.
What changes for applications
Section titled “What changes for applications”- A custom
Skillssource must addasync def read(self, name: str, path: str) -> str. Runtime doesn’t check for it: without it, everyskill_filecall is a tool error. See Skills for the path rules and errors. skill_fileis a reserved tool name. An agent with skills that declares its ownskill_filefails Runtime construction.- Both skills tools declare
allow, but any matching agent rule wins ("*","*_file", …). Grant"skill_file": "allow"whereverskillis granted. On a child agent, anaskverdict forskill_filefails Runtime construction, so a child with{"*": "ask", "send": "allow", "skill": "allow"}that worked in 3.x now raisesTantraError. Agent.skillsno longer hides other skills’ contents:skill_filereads any file in the catalogue,SKILL.mdincluded. Useskills = []to hide the catalogue from an agent.FileSystemSkills.loadnow lists files under symlinked subfolders. A folder reached by two paths is listed once, under its real path when the listing reaches it, otherwise under the first link in sorted order.FileSystemSkillsfollows symlinks under its root, so a symlink that points outside the root is readable. Check downloaded skills for such links.loadand folder listings walk symlinked folders synchronously, so a link to a large tree stalls them.- Virtual paths are POSIX.
\isn’t a separator, so on WindowsFileSystemSkillscan’t keep..\paths inside its root.
Existing data
Section titled “Existing data”3.x journals load unchanged and need no migration.
Deploy
Section titled “Deploy”There is no ordering constraint: 4.0 adds no journal events or coordinator payloads. In a mixed fleet, only 4.0 Runtimes offer skill_file.