linsight-mcp
Operate on BiSheng Linsight autonomous task mode, SOP/Skill migration, Redis worker execution, state events, bisheng_langchain runtime, and MCP tool integration.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- linsight-mcp
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Operate on BiSheng Linsight autonomous task mode, SOP/Skill migration, Redis worker execution, state events, bisheng_langchain runtime, and MCP tool integration.
- disable-model-invocation
- true
02 资源文件 3
- 参考文档references/troubleshooting.md2.6 KB
- 参考文档references/workflows.md3.0 KB
- 脚本scripts/inspect_linsight_surface.py2.2 KB
03 SKILL.md 正文
linsight-mcp
Use this sub-skill when a task touches BiSheng Linsight/灵思 task mode, SOP generation or migration, autonomous task execution, Redis task queue, Linsight worker state, deepagents runtime, built-in tools, workspace files, or MCP client/tool integration.
Start here
Run bundled helper commands from this sub-skill directory, or adjust the script path to this directory after import.
- Inspect the Linsight and MCP source surface without importing services:
python scripts/inspect_linsight_surface.py --repo-root <bisheng-checkout> - Read references/workflows.md for Linsight worker, event, state, SOP/Skill migration, and MCP workflows.
- Read references/troubleshooting.md for queue, state, tool, MCP, and migration failures.
Owned responsibilities
src/backend/bisheng/linsight/API, domain services, task execution, andworker.pyprocess.src/backend/bisheng_langchain/linsight/agent, task management, events, and runtime abstractions.- Linsight skills/SOP migration scripts and tests, including v2.6 deepagents/task-mode changes.
- MCP clients under
src/backend/bisheng/mcp_manage/clients/, manager parsing, and LangChain tool wrapping. - Tests under
src/backend/test/linsight/andsrc/backend/test/mcp_manage/.
Route sibling areas instead of duplicating them
- Use
workflow-enginefor visual workflow DAG nodes and workflow Celery execution. - Use
knowledge-ragfor knowledge retrieval internals used by Linsight. - Use
identity-permissions-tenancyfor Linsight menu permissions, tenant model configs, OpenFGA, and SSO/org access. - Use
frontend-appsfor Client Linsight route/UI behavior and Platform task-mode menu rendering. - Use
deployment-maintenancefor worker startup commands and operational migration sequencing.
Non-negotiables
- Treat Linsight worker as a separate process from Celery workers.
- Preserve Redis queue, owner, heartbeat, and task state key semantics when changing scheduling.
- Keep user-input pause/resume events and persisted session/task statuses compatible with frontend streams.
- Do not run real LLM, MCP server, code interpreter, or credentialed tool calls as verification unless explicitly approved.
- SOP→Skill migration writes object storage and remains a manual operational migration, not a startup backfill.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).