gtplanner-init

gtplanner-init is a command for Claude Code from OpenSQZ/GTPlanner. It costs 8 tokens per session (818 once invoked), scanned A, original, MIT.

An environment setup and configuration check for GTPlanner, a Python application.

In plain words
What is it for?
Use it to check Python 3.11 or newer, verify installed dependencies and environment variables, and confirm that GTPlanner modules load correctly.
Why use it?
It helps reveal missing dependencies, required settings, or an unsupported Python version before the application is run.

Command for Claude Code

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

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.

agentmods
npx agentmods add commands/opensqz/gtplanner/gtplanner-init
Clone the repo
git clone --depth 1 https://github.com/OpenSQZ/GTPlanner

Made for: Claude Code.

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 gtplanner-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/opensqz/gtplanner/gtplanner-init.svg)](https://agentmods.dev/commands/opensqz/gtplanner/gtplanner-init)
Your own site
<a href="https://agentmods.dev/commands/opensqz/gtplanner/gtplanner-init"><img src="https://agentmods.dev/badge/commands/opensqz/gtplanner/gtplanner-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 818 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00008 $0.00818
Opus 5 $0.00004 $0.00409
Sonnet 5 $0.00002 $0.00164
Haiku 4.5 $0.00001 $0.00082

Measured 4d ago against content hash c96ea75f49a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gtplanner-init 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 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

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.

.claude/commands/gtplanner-init.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

初始化 GTPlanner

执行环境检查和配置验证。

检查步骤

1. 验证 Python 版本

cd "${CLAUDE_PLUGIN_ROOT}"
uv run python --version

要求 Python >= 3.11

2. 检查依赖安装状态

cd "${CLAUDE_PLUGIN_ROOT}"
uv sync --dry-run 2>&1 | head -20

如果有未安装的依赖,执行:

cd "${CLAUDE_PLUGIN_ROOT}"
uv sync

3. 验证必需环境变量

cd "${CLAUDE_PLUGIN_ROOT}"
uv run python -c "
import os
from dotenv import load_dotenv

load_dotenv()

required = ['LLM_API_KEY', 'LLM_BASE_URL', 'LLM_MODEL']
optional = ['JINA_API_KEY', 'VECTOR_SERVICE_BASE_URL', 'VECTOR_SERVICE_INDEX_NAME']

print('=== 必需配置 ===')
for var in required:
    value = os.getenv(var)
    status = '✅' if value and not value.startswith('your_') else '❌'
    print(f'{status} {var}: {\"已配置\" if status == \"✅\" else \"未配置或使用占位符\"}')

print()
print('=== 可选配置 ===')
for var in optional:
    value = os.getenv(var)
    status = '✅' if value and not value.startswith('your_') else '⚪'
    print(f'{status} {var}: {\"已配置\" if status == \"✅\" else \"未配置\"}')
"

4. 验证 GTPlanner 模块

cd "${CLAUDE_PLUGIN_ROOT}"
uv run python -c "
from agent.function_calling.agent_tools import get_agent_function_definitions

tools = get_agent_function_definitions()
print('✅ GTPlanner 模块加载成功')
print()
print('可用工具:')
for tool in tools:
    name = tool['function']['name']
    desc = tool['function']['description'].split('\n')[0][:60]
    print(f'  - {name}: {desc}...')
"

5. 测试基本功能

cd "${CLAUDE_PLUGIN_ROOT}"
uv run python -c "
import asyncio
from agent.function_calling.agent_tools import execute_agent_tool

async def test():
    shared = {}
    result = await execute_agent_tool(
        'short_planning',
        {'user_requirements': '测试需求', 'planning_stage': 'initial'},
        shared
    )
    if result['success']:
        print('✅ short_planning 工具测试通过')
    else:
        print(f'❌ 测试失败: {result[\"error\"]}')
    return result['success']

success = asyncio.run(test())
exit(0 if success else 1)
"

初始化成功标志

当看到以下输出时,表示环境已正确配置:

Read the full file on GitHub · 146 lines

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. 4d ago First seen · 146 lines · 8 tokens per session scan A c96ea75f49a4

Subscribe to this mod's changes

gtplanner-init is a command published in the GitHub repository OpenSQZ/GTPlanner (307 stars, last pushed 10d ago), licensed MIT. It adds 8 tokens to every session and 818 once invoked, about $0.0000 per session on Opus 5. 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.