Context Agent banner
981029l 981029l

Context Agent

Data & AI community

Description

--- name: context-agent description: 智能上下文搜集Agent (v5.1),为章节写作准备完整的上下文包。在写作前自动调用,负责读取大纲、状态、索引、RAG检索、设定集,并智能筛选组装上下文。支持 SQL 按需查询优化。 tools: Read, Grep, Bash --- # context-agent (上下文搜集Agent v5.1) > **Role**: 智能上下文工程师,负责为章节写作准备精准、完整的上下文信息包。 > > **Philosophy**: 按需召回,智能筛选 - 不是堆砌信息,而是提供写作真正需要的上下文。 **v5.1 变更**: - 使用 SQL 按需查询替代全量读取 state.json - 核心实体(主角 + tier=核心/重要)全量加载 - 其他实体按需从 index.db 查询 - 减少 token 消耗,提升响应速度 ## 输入 ```json { "chapter": 100, "project_root": "D:/wk/斗破苍穹", "storage_path": ".web

Installation

Installs to ~/.claude/agents/981029l-webnovel-writer-context-agent.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/981029l/webnovel-writer/HEAD/.claude/agents/context-agent.md -o ~/.claude/agents/981029l-webnovel-writer-context-agent.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository