SessionStart

SessionStart is a hook for Claude Code from mims-harvard/ToolUniverse. Its token cost is not measured, scanned A, original, Apache-2.0.

A session-start hook that checks whether ToolUniverse’s command runner is installed and removes obsolete global ToolUniverse skills once.

In plain words
What is it for?
Running setup checks when Claude Code starts, detecting a missing uvx command, and cleaning up legacy ToolUniverse skill files.
Why use it?
It warns when the ToolUniverse server cannot start and performs the documented one-time cleanup automatically.

Hook for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions Claude Code.

Part of the tooluniverse plugin — 164 skills, 8 commands, 1 agent, 1 hook, 1 MCP server shipped together

Good fit Running setup checks when Claude Code starts, detecting a missing uvx command, and cleaning up legacy ToolUniverse skill files.

Compare 6 hooks from other repositories ↓
Install with agentmods
npx agentmods add hooks/mims-harvard/tooluniverse/session-start
About the project

ToolUniverse is a collection of tools, interfaces, and supporting components for building AI systems that perform scientific work. It is for developers creating AI scientist agents that use APIs, databases, machine-learning tools, and domain-specific utilities. The catalogue includes skills, commands, an MCP server, an agent, and a hook for working with the ecosystem.

mims-harvard/ToolUniverse · 1,813 stars · on GitHub · aiscientist.tools

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mims-harvard/ToolUniverse

Made for: Claude Code.

Or install tooluniverse, the plugin that ships this one along with the rest of its 164 skills, 8 commands, 1 agent, 1 hook, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for SessionStart

README.md
[![agentmods](https://agentmods.dev/badge/hooks/mims-harvard/tooluniverse/session-start/github.svg)](https://agentmods.dev/hooks/mims-harvard/tooluniverse/session-start)
Your own site
<a href="https://agentmods.dev/hooks/mims-harvard/tooluniverse/session-start"><img src="https://agentmods.dev/badge/hooks/mims-harvard/tooluniverse/session-start/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for SessionStart

Your own site · 80×15
<a href="https://agentmods.dev/hooks/mims-harvard/tooluniverse/session-start"><img src="https://agentmods.dev/badge/hooks/mims-harvard/tooluniverse/session-start.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured Not applicable: nothing here is loaded into a session.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 6 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Security

Grade A, and why

SessionStart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the commands this hook runs, not an audit. A hook is shell that executes on your machine at the event it names, which is why every command in it is printed with what was found.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/hooks/hooks.json · 16 lines

What it actually says

{
  "SessionStart": [
    {
      "hooks": [
        {
          "type": "command",
          "command": "if [ ! -f ~/.claude/.tooluniverse-plugin-cleanup-done ] && ls ~/.claude/skills/tooluniverse-* 1>/dev/null 2>&1; then rm -rf ~/.claude/skills/tooluniverse-* ~/.claude/skills/create-tooluniverse-skill ~/.claude/skills/setup-tooluniverse 2>/dev/null; touch ~/.claude/.tooluniverse-plugin-cleanup-done; echo 'ToolUniverse plugin: cleaned up legacy global skills (one-time, replaced by plugin)'; fi"
        },
        {
          "type": "command",
          "command": "command -v uvx >/dev/null 2>&1 || echo 'ToolUniverse: uv/uvx was not found, so the tooluniverse MCP server cannot start and its tools will be unavailable. Install uv with:  curl -LsSf https://astral.sh/uv/install.sh | sh   then restart Claude Code. Docs: https://docs.astral.sh/uv/getting-started/installation/'"
        }
      ]
    }
  ]
}
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 16 lines scan F 4b4e23cac82a

Subscribe to this mod's changes

SessionStart is a hook published in the GitHub repository mims-harvard/ToolUniverse (1,813 stars, last pushed yesterday), licensed Apache-2.0. Its token cost is not measured: a hook is shell that never enters the context. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

SessionStart compared with hooks from other repositories

SessionStart next to 6 hooks from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
SessionStartmims-harvard/ToolUniverseHook1.8kyesterdayApache-2.0A—Claude Code
SessionStartsupabase/supabaseHook116ktodayApache-2.0A—Claude Code
PostToolUsesupabase/supabaseHook116ktodayApache-2.0A—Claude Code
SessionStartgoogle-gemini/gemini-cliHook109ktodayApache-2.0A—Claude Code
PreToolUseapache/supersetHook76ktodayApache-2.0A—Claude Code
PreToolUseheygen-com/hyperframesHook93ktodayApache-2.0A—Claude Code
PostToolUseanthropics/claude-plugins-officialHook49ktodayApache-2.0A—Claude Code