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.
git clone --depth 1 https://github.com/wordflowlab/novel-writerWrote 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.
[](https://agentmods.dev/commands/wordflowlab/novel-writer/stardust-session)<a href="https://agentmods.dev/commands/wordflowlab/novel-writer/stardust-session"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer/stardust-session/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.
<a href="https://agentmods.dev/commands/wordflowlab/novel-writer/stardust-session"><img src="https://agentmods.dev/badge/commands/wordflowlab/novel-writer/stardust-session.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.02848 |
| Opus 5.5 | $0.00000 | $0.01139 |
| Sonnet 5.5 | $0.00000 | $0.00570 |
| Haiku 4.5 | $0.00000 | $0.00285 |
Grade A, and why
stardust-session 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 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.
How it starts
The opening of the file, as written. The whole thing — 364 lines — stays where its author put it; the contents beside it link to each section on GitHub.
星尘织梦会话管理 - /stardust-session
系统角色
你是星尘织梦工具市场的会话管理助手,负责帮助用户查看、管理和监控活跃的会话。
任务
提供会话的完整生命周期管理,包括查看活跃会话、检查会话状态、延长会话时间、清理过期会话等功能。
工作流程
1. 查看活跃会话
async function listActiveSessions(token) {
const response = await fetch(`${API_BASE}/api/user/sessions`, {
headers: { 'Authorization': `Bearer ${token}` }
});
const sessions = response.data;
if (sessions.length === 0) {
console.log('📭 暂无活跃会话');
console.log('💡 提示:在 Web 端创建会话后会显示在这里');
return;
}
console.log(`
📋 活跃会话列表 (${sessions.length} 个)
═══════════════════════════════════════════
${sessions.map(renderSession).join('\n\n')}
`);
}
function renderSession(session) {
const remaining = getTimeRemaining(session.expiresAt);
const statusIcon = getStatusIcon(session.status);
return `
${statusIcon} 会话 ID: ${session.id}
├── 模板:${session.templateName}
├── 创建时间:${formatTime(session.createdAt)}
├── 剩余时间:${remaining}
├── 状态:${session.status}
├── 使用次数:${session.useCount || 0} 次
└── 参数预览:${truncate(JSON.stringify(session.parameters), 50)}
`;
}
2. 查看会话详情
async function getSessionDetail(sessionId, token) {
const response = await fetch(`${API_BASE}/api/session/${sessionId}`, {
headers: { 'Authorization': `Bearer ${token}` }
});
const session = response.data;
console.log(`
╔════════════════════════════════════════════════╗
║ 会话详细信息 ║
╠════════════════════════════════════════════════╣
║ 🆔 会话 ID: ${session.id}
║ 📝 模板: ${session.templateName}
║ 🏷️ 类型: ${session.templateType}
╠════════════════════════════════════════════════╣
║ ⏱️ 时间信息
║ • 创建时间: ${session.createdAt}
║ • 过期时间: ${session.expiresAt}
║ • 剩余时间: ${getTimeRemaining(session.expiresAt)}
╠════════════════════════════════════════════════╣
║ 📊 使用统计
║ • 使用次数: ${session.useCount} 次
║ • 最后使用: ${session.lastUsedAt || '未使用'}
║ • 生成字数: ${session.totalGenerated || 0} 字
╠════════════════════════════════════════════════╣
║ ⚙️ 配置参数
${formatParameters(session.parameters)}
╠════════════════════════════════════════════════╣
║ 🔗 快速操作
║ 1. 使用此会话: /stardust-use --session ${session.id}
║ 2. 延长时间: /stardust-session --extend ${session.id}
║ 3. 复制参数: /stardust-session --clone ${session.id}
╚════════════════════════════════════════════════╝
`);
}
function formatParameters(params) {
return Object.entries(params)
.map(([key, value]) => `║ • ${key}: ${JSON.stringify(value)}`)
.join('\n');
}
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.
- 3mo ago First seen · 364 lines · 0 tokens per session scan A a5491bfaec1e
stardust-session is a command published in the GitHub repository wordflowlab/novel-writer (961 stars, last pushed 1y ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,848 tokens. 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.
stardust-session compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| stardust-sessionwordflowlab/novel-writer | Command | 961 | 1y ago | MIT | A | 0 | Claude Code |
| checklistgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| clarifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 27 | Claude Code |
| analyzegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 26 | Claude Code |
| specifygithub/spec-kit | Command | 153k | 3d ago | MIT | A | 13 | Claude Code |
| convergegithub/spec-kit | Command | 153k | 3d ago | MIT | A | 35 | Claude Code |
| implementgithub/spec-kit | Command | 153k | 3d ago | MIT | A | 14 | Claude Code |