GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(server): give sessions a styal skill for the setup guides by incognitojam · Pull Request #1308 · incognitojam/styal

Conversation

@incognitojam

@incognitojam incognitojam commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Owner

Note

Claude, Codex and OpenCode 2 sessions now get one styal-guides skill, written under the server's state directory and passed in when the session starts. Those sessions drop the read_styal_guide tool and its always-on line. Other providers keep both, except external OpenCode servers, which styal doesn't attach to at all.

Problem

read_styal_guide is a deferred tool, so agents can't see its description until they load it. It needed a permanent instruction line in every session to get used at all. A skill's name and description are what agents already look through when deciding what to reach for. The maintainer asked for this to be per session, not in any global directory, with no management.

Change

The server renders one skill from the existing guides.ts at startup, into <state dir>/agent-skills/styal: a short SKILL.md with a topic index, and each guide as a reference file. Nothing is written to a provider home or provider config, and because the files come from embedded strings there are no desktop packaging changes. Updating styal replaces them.

Provider Route Result
Claude SDK plugins option Skill. Tool removed with disallowedTools, line removed
Codex skills/extraRoots/set Skill. Tool removed with disabled_tools, line removed
OpenCode 2 skills merged into OPENCODE_CONFIG_CONTENT Skill. Tool denied by a session rule, line removed
OpenCode, external server styal doesn't start the process, and doesn't attach its MCP server either Neither route unless the user configures the styal MCP server there. This limit exists on main too
OpenCode 1.x Not run; only 2.2.5 is installed here Keeps the tool and line
Grok --plugin-dir is documented, but no binary or credentials here Keeps the tool and line
Cursor SDK 1.0.38 has no plugin or skill path; local.dirs would add a workspace root Keeps the tool and line
Antigravity No per-session option found; its private skill folders are symlinks to the real ~/.gemini Keeps the tool and line
Fx, Muse, Pi, ACP registry Not investigated Keep the tool and line

If the skill can't be written, or Codex rejects the root, the session keeps the tool and line.

Decisions

  • No kill switch. It's read-only text costing one description line, and there's nothing to turn off that a user would notice. A switch would be the start of the management this was asked not to have.
  • Not in the $ picker. It's for agents. Claude and Codex discovery never sees it, because their probes don't get the plugin or the root. OpenCode's shared server does list it, so that list filters it out.
  • Timeline. Claude and OpenCode show their usual skill row and a file read. Codex shows the shell commands it ran, because it opens skills that way.
  • Usage. agent-guides gains guideRoute (tool or skill) and an open action, read from completed tool calls that name the skill or its files. agentGuidesUsageVersion is now 2.

Always-on context, Claude: the line (146 bytes) and the deferred tool name (28 bytes) go, and the skill's listing entry (190 bytes) arrives, a net 16 bytes. claudeSystemAppendBytes and codexAdditionalContextBytes each drop by the 146-byte line (to 5,394 and 7,114). Codex and OpenCode list a similar entry; I measured the file sizes, not their rendered listing. mcpToolListJsonBytes doesn't change, because the server's tool list is shared across providers.

Known trade-off

In Supervised, Codex asks for approval on every shell command, including a plain cat package.json, so reading the skill and a guide takes one or two approvals. Claude and OpenCode read them without asking.

Verification

Real sessions on an isolated server and data directory, in a fresh repository outside the checkout, with the prompt "Set up styal actions for this repo…" and no mention of guides or skills:

  • Claude (claude-haiku-5-5): called Skill with styal:styal-guides, read project-setup.md, and wrote a valid styal.json. Two usage events recorded.
  • Codex (gpt-6-luna): read SKILL.md and project-setup.md with cat, and wrote a valid styal.json.
  • OpenCode 2.2.5 (openrouter/anthropic/claude-haiku-5.5): called skill, read project-setup.md, and wrote a valid styal.json.
  • Supervised: Claude and OpenCode explained actions from the guide with no prompt. OpenCode first stopped on the guide read, which is why it now has a rule allowing that folder. Codex behaves as described above.
  • First launch: OpenCode on a brand-new data directory got the skill and used it. The server writes the skill before provider drivers start, and the OpenCode driver decides once whether its server has it.
  • Tool hidden: the logged Claude options list it in disallowedTools. Asked directly, the Codex and OpenCode agents reported it isn't available.
  • Global directories: styal-guides appears nowhere in ~/.claude/skills, ~/.codex/skills, ~/.codex/config.toml, ~/.config/opencode, ~/.agents/skills or Claude's installed plugins. A before/after listing of those directories found no new files and no size changes. The only differences were modified times under ~/.claude/plugins and ~/.claude/skills/synced, which Claude Code's own marketplace refresh and sync write.

Known miss: asked only to show what it would write ("do not create the file"), Codex on gpt-6-luna answered without opening the skill and used npm in a repository whose packageManager is pnpm. Claude and OpenCode opened the skill on that prompt, and Codex opened it on both runs of the prompt that asks for the setup.

Not verified: Grok, Cursor, Antigravity and OpenCode 1.x (no credentials or install here; they keep the tool). Windows paths have only a unit test in the usage matcher. The timeline rows were checked as stored turn items, not looked at in a client.

Evals (Sonnet 5.5, 3 samples per case): --styal-skill runs new cases-skill/ cases against what a session with the skill sees. Skill route: 9 of 9 samples passed, including the ordinary-fix control. After that run I tightened the harness and one case (the case now also requires reading project-setup.md, which all 3 recorded samples did) and did not rerun them. Tool-and-line route, for comparison: 9 of 9. So on this set the skill holds up without the always-on line, and the line stays for providers that keep the tool. The full suite wasn't run.

Upstream: pingdotgg#28492 is still open and installs into provider homes, which is what this avoids. I found nothing newer on session or plugin directories.


Written by an agent (Claude Code, claude-opus-5-5).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added the size:L label Nov 6, 2026
@github-actions

github-actions Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Upstream divergence

Both sides are compared with upstream at the in-order tip 1db31d0ea1. Excludes .repos/ and pnpm-lock.yaml.

Measure Base This PR Change
Upstream files the fork changes 2,033 2,038 +5
Lines changed in them 120,938 121,507 +569
Upstream files the fork removes 64 64 0
Fork-only files 874 879 +5
Fork-only lines 155,272 155,590 +318

Upstream files that start to differ (5)

  • evals/mcp-tool-use/README.md: +4 −0 from upstream
  • packages/provider-core/package.json: +4 −0 from upstream
  • packages/provider-opencode/src/server/status.test.ts: +12 −0 from upstream
  • packages/provider-opencode/src/server/v2/OpenCode2Server.test.ts: +30 −0 from upstream
  • packages/provider-opencode/src/server/v2/OpenCode2Server.ts: +26 −0 from upstream
Upstream files whose difference changes (14)
File Change Now differs by
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.test.ts +209 543 lines
apps/server/src/orchestration-v2/Adapters/CodexAdapterV2.ts +92 257 lines
evals/mcp-tool-use/run.ts +64 157 lines
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts +31 1,094 lines
packages/provider-opencode/src/server/driver.ts +24 40 lines
packages/provider-opencode/src/server/v2/adapter.ts +23 173 lines
apps/server/src/server.ts +16 203 lines
packages/provider-core/src/server/orchestrationInstructions.ts +11 88 lines
apps/server/src/orchestration-v2/ProviderEventIngestor.ts +6 228 lines
apps/server/src/provider/CodexDeveloperInstructions.ts +5 69 lines
apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts +4 1,858 lines
apps/server/src/provider/AgentContextBudget.test.ts +4 43 lines
apps/server/src/telemetry/FeatureUsage.ts +2 375 lines
packages/provider-opencode/src/server/status.ts +2 10 lines
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@incognitojam
incognitojam force-pushed the styal/session-skills branch from 02fc1cb to 0250e8c Compare November 6, 2026 03:01
@github-actions

github-actions Bot commented Nov 6, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB +6 B (+0.1%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.3 KiB +6 B (+0.5%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.6 KiB 21.6 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 2 2 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB +29 B (+0.6%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.3 KiB +29 B (+2.3%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB +41 B (+0.2%) 24.4 KiB ✅
Claude Live turn messages 1 2 +1 (+100.0%) 8 ✅

Baseline: a1b5da5 · PR result: 6f88533 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@incognitojam
incognitojam force-pushed the styal/session-skills branch 2 times, most recently from 8f4e0ea to 5975304 Compare November 6, 2026 03:50
@github-actions github-actions Bot added size:XL and removed size:L labels Nov 6, 2026
@incognitojam
incognitojam marked this pull request as ready for review November 6, 2026 04:08
@incognitojam
incognitojam force-pushed the styal/session-skills branch 3 times, most recently from e8177bd to 3c34be4 Compare November 6, 2026 16:13
@incognitojam
feat(server): give sessions a styal skill for the setup guides
6f88533
@incognitojam
incognitojam force-pushed the styal/session-skills branch from 3c34be4 to 6f88533 Compare November 6, 2026 16:53
@incognitojam
incognitojam enabled auto-merge (squash) November 6, 2026 18:30
@incognitojam
incognitojam merged commit 489da88 into main Nov 6, 2026
56 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@incognitojam
incognitojam deleted the styal/session-skills branch November 6, 2026 18:42
incognitojam pushed a commit that referenced this pull request Nov 18, 2026
@juliusmarminge @incognitojam
fix(server): Codex forks no longer request full turn history (pingdot…
6e22015
…gg#24537)

Co-authored-by: Claude Opus 5.5 <[email protected]>

Fork adaptation: excludeTurns goes into the fork's suspended thread/fork request, which uses the session-aware threadRuntimeParams so guide skill registration completes before the fork configuration is captured (fork #1308), so the archived-session retry sends it too.

(cherry picked from commit b125e89)
Upstream-PR: 24537
Fork-Feature: agent-guides
incognitojam pushed a commit that referenced this pull request Nov 18, 2026
@juliusmarminge @incognitojam
fix(server): Codex turns that auto-compact end instead of looping on …
b091af8
…restored context (pingdotgg#25911)

Co-authored-by: Claude Opus 5.5 <[email protected]>

Fork adaptation: The new auto-compaction test passes one more undefined before its notification hook, because the fork's Codex replay harness takes a state-directory hook (fork #1308) ahead of the usage-limit hook.

(cherry picked from commit 8b21cbd)
Upstream-PR: 25911
Fork-Feature: agent-guides
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XL

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@incognitojam
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.