Skip to content

starfield-agent 0.2.1

Choose a tag to compare

@taosecurity taosecurity released this 24 Nov 01:17
· 6 commits to main since this release

What's new

The setup skill and the guard now match the current tools.

  • The setup skill checks sf-save-health with sf-save-health --version (new in sf-save-health 0.7.4) instead of --help with an exit code of 3. Its tool table and the README name the current release of every tool, and each check exits 0.
  • The skills now use the current commands of the tools they name, and the guard lets the commands of sf-pex-tools (pex_compare.py dump, ba2_extract.py where), sf-papyrus-ref (list, data), sf-mod-check (diff, gap) and the --version of sf-save-health and sf-test-plan read the game's folders. ba2_extract.py extract is still refused there, because it writes.
  • The new-mod skill now names the BuildKit version that sf-mod-build's template really pins (0.4.2).

Example

The guard still refuses an extraction from the game's Data folder, and now lets the read-only commands through. This is its real output:

> python -I hooks/guard_game.py < extract-from-data.json
starfield-agent guard: refused a command that names the game's Data folder (Steam): in the part `python -I ba2_extract.py extract "C:/Program Files (x86)/Steam/steamapps/common/Starfield/Data/x.ba2"`, `ba2-extract extract` is not one of its read-only modes. Commands that name these folders may only read them.
Copy the file in yourself or install it with your mod manager; the agent only reads these folders. To guard more folders or point at a moved install, see the starfield-agent README, "Settings".
exit 2

Fixed

  • The guard refused a write into a guarded folder only when the output option and its folder were two words. It now reads --out="C:\My Games\..." as one word, as the shells do, so a quoted path with spaces after = is checked too.
  • sf-save-reader extract <save> <out.bin> writes a file, so the guard no longer lets it write into the saves folder; the reading commands (dump, walk, records, quests, compare) still work there.
  • sf-save-health solo --reports <folder> can no longer point its reports into a guarded folder.
  • A command that names a guarded folder and has an output option is refused when it also has a backslash before a space (Bash's My\ Games, or a PowerShell path ending in \), because the shells read that differently. Put paths with spaces in quotes instead.
  • A shortened output option that Python tools accept (--lo for --log, --ou for --out), an option named --out... (--out-dir) and -o with its value attached (-o"C:\x.txt") are now checked like the full option.
  • sf-test-plan logs <report> writes its marks file beside the report, so the guard lets it read a guarded folder only when --out names a file somewhere else (an empty --out "" doesn't count).
  • A command that names a guarded folder and has a backslash before a quote (\") is refused. Bash reads it as an escaped quote and PowerShell doesn't, so it could hide an output option or a second command from the guard. A folder path needs no \ before its closing quote.

Install

Add the plugin from this repo in Claude Code, as the README's "Install" section shows, then run the setup skill.