Dayz route

From DayZ-n-Chill/Agentic-Z · View interactive version

Dayz route is an AI agent skill from the GitHub repository DayZ-n-Chill/Agentic-Z. Picks the skill, agent or team for a DayZ request with free keyword rules, then Jev when configured, and prints one JSON decision, including when the dayz-router agent is needed. Use when a new DayZ request arrives in the main session, before choosing a handler yourself.

How to use this skill

Skill file

<!-- skill-dir-note -->

Path note: <skill-dir> in commands below is the absolute path of this skill's folder. When the agent loads this skill the harness exposes the skill's base directory; substitute it before running. Sibling skills are reached via <skill-dir>\..\dayz-X\.

/dayz-route

Route a DayZ request without spending a big-model turn on it. Run it first for every new DayZ request in the main session. Skip it for follow-ups inside work that is already routed, and for non-DayZ work.

It needs no DayZ install and does not gate on /dayz-preflight: it only reads rules.json and, when keyed, calls one web API.

How to run

python "<skill-dir>\route.py" "<the user's request>" --json

Without --json it prints one readable line instead. It exits 0 for a non-empty request, 2 for an empty one, and 1 with a one-line dayz-route: rules.json: ... message on stderr when rules.json is missing, is not valid JSON, or holds a bad regex, an unknown route or a bad absorbs value. On exit 1, fix rules.json (or dispatch the dayz-router agent meanwhile).

Output

One shape for every stage:

{"route": "dayz-build-pbo", "kind": "skill", "confidence": 0.9, "source": "rules", "args": {"mod": "MyVest"}}

Stages

  1. Rules (rules.json, free): regex patterns per route. A rule can carry fixed args (the paste rules set mode) that join what its pattern captures. Matches for two different routes (for example "build MyVest and launch it", or "rebuild and launch" with no mod name) cut confidence by conflict_factor, because that is a multi-step request. A rule's absorbs value says which other matches it may ignore and keep full confidence:

Results at or above threshold (0.8) are final.

  1. Jev (jev.py, only with TYPESAFE_API_KEY set): one TypeSafe Choice question over all targets plus other, 5 second timeout. Missing key, network error, bad status, other or low confidence all fall through, with the reason in note. The request text is sent to api.typesafe.ai.
  2. dayz-router agent: Haiku, reads nothing but the request (and rules.json if needed).

Changing routes

Add a target to targets (with "step": true when it is a separate action a request can chain with others) and a rule to rules in rules.json, and add the same target to the list in agents/dayz-router.md. test_route.py fails if a target has no skill folder or agent file, or if the two lists differ.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.