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.
npx agentmods add commands/wordflowlab/novel-writer/stardust-sessiongit clone --depth 1 https://github.com/wordflowlab/novel-writerWhat 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 | $0.00000 | $0.02848 |
| Opus 5 | $0.00000 | $0.01424 |
| Sonnet 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 yesterday.
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.
- yesterday First seen · 364 lines · 0 tokens per session scan A a5491bfaec1e
stardust-session is a command published in the GitHub repository wordflowlab/novel-writer (934 stars, last pushed 10mo 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.
Other commands, from other repositories
checklist
Generate a custom checklist for the current feature based on user requirements.
clarify
Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
specify
Create or update the feature specification from a natural language feature description.
analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
converge
Assess the current codebase against the feature's spec, plan, and tasks, then append any remaining unbuilt work as new tasks to tasks.md so implement can complete it.
implement
Execute the implementation plan by processing and executing all tasks defined in tasks.md.