Index of every page on this site: llms.txt
All skills
weave-os avatar

/router-session

@14dcf15
by Weaveweave-os/router5.6k stars
169
Run it yourself

Print the session id that correlates this Codex session in Weave Router telemetry and logs.

  • 2 files
  • 1.8 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/weave-os/router/router-session

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈27 tokens for metadata: the name and description. ≈265 when used: this file.

Description uses 1.4% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈108 characters, or 1.4%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

<!-- weave-router managed router-session skill -->

When the user invokes $router-session, run this skill's scripts/emit.sh using the absolute path shown in this skill's <path> (its directory + /scripts/emit.sh). It takes no arguments.

The script prints the session id on its own line. Report that id back in one line, formatted as inline code so the user can copy it. Do not send a user message and do not type a Codex slash command.

The router carries this id as Session-Id on every request and stores it for analytics joins, so it is also the lookup key in the router dashboard.

This skill needs CODEX_SESSION_ID in the environment. If it is unset the script exits non-zero rather than reporting an id: the alternative is reading the newest rollout transcript, which names a different session whenever two run at once, and a wrong id sends someone else's session to support. Report the error as-is instead of guessing.

Codex also prints the same id in its own session banner, which is the quickest answer when this skill cannot produce one.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 14dcf15. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago

README badge

README badge for weave-os/router/router-session