← 返回
数据分析 中文

Sightglass

Monitors AI coding agents to track dependency choices, classify discovery methods, flag risks, and reveal biases and missed alternatives in your project.
监控AI编程代理,跟踪依赖选择、分类发现方法、标记风险、揭示偏见和遗漏的替代方案。
davidgeorgehope
数据分析 clawhub v0.1.0 1 版本 99800.2 Key: 无需
★ 0
Stars
📥 999
下载
💾 31
安装
1
版本
#latest

概述

🔍 Sightglass — Agent Supply Chain Intelligence

Your AI coding agent just added 47 dependencies to your project. Do you know why it picked any of them?

Sightglass instruments AI coding agents to capture every tool selection, dependency install, and architectural choice — then surfaces risks, biases, and better alternatives you never saw.

Why This Matters

When a human developer picks a dependency, there's a reasoning trail: blog posts read, alternatives compared, team discussions had. When an AI agent picks one, that trail is invisible. The agent "just knows" packages from training data — which means it's biased toward:

  • Whatever was popular when training data was cut off
  • Packages with the most Stack Overflow mentions (not the best packages)
  • Dependencies it's seen in similar projects (not necessarily right for yours)

Sightglass makes this invisible decision-making visible.

Discovery Classification

Sightglass classifies how your agent found each dependency:

ClassificationWhat It MeansRisk Level
---------
TRAINING_RECALLAgent just "knew" it from training data — no search performed🟡 Medium
CONTEXT_INHERITANCEFound in existing project files (package.json, imports, etc.)🟢 Low
REACTIVE_SEARCHAgent hit a problem and searched for a solution🟡 Medium
PROACTIVE_SEARCHAgent actively compared alternatives before choosing🟢 Low
USER_DIRECTEDHuman explicitly told the agent what to use⚪ None

High TRAINING_RECALL percentages are a red flag — it means your agent is on autopilot, not thinking.

Quick Start

1. Setup

./skills/sightglass/setup.sh

This installs the CLI (@sightglass/cli), runs initial configuration, and checks the watcher daemon.

2. Login

sightglass login

Authenticate with sightglass.dev to enable cloud analysis and history.

3. Watch

sightglass watch

Starts the background watcher that monitors agent sessions — file changes, package installs, tool calls.

4. Analyze

sightglass analyze
# or
./skills/sightglass/analyze.sh --since "1 hour ago" --format json

OpenClaw Integration

Automatic Session Tracking

Sightglass provides pre/post hooks for coding agent sessions:

Before a sessionhooks/pre-spawn.sh:

  • Records start time and project context
  • Ensures the watcher daemon is running

After a sessionhooks/post-session.sh:

  • Runs analysis on everything that happened
  • Outputs a summary: risks found, training recall %, alternatives missed

Using with a Coding Agent

When you spawn a coding agent through OpenClaw, wrap it with Sightglass:

# Before spawning
source ./skills/sightglass/hooks/pre-spawn.sh /path/to/project

# ... agent does its work ...

# After session ends
./skills/sightglass/hooks/post-session.sh

The post-session output looks like:

📊 Session Summary
  Dependencies added: 12
  Risks found: 3
  Training recall: 67%
  Alternatives missed: 5

  ⚠️  Run 'sightglass analyze --since ...' for details

67% training recall means two-thirds of the packages were grabbed from memory with zero comparison shopping. Sightglass will show you what alternatives existed.

Commands Reference

CLI (@sightglass/cli)

CommandDescription
------
sightglass initInitialize Sightglass in a project directory
sightglass loginAuthenticate with sightglass.dev
sightglass setupInteractive first-time configuration
sightglass watchStart the watcher daemon
sightglass analyzeAnalyze agent sessions and dependency decisions

Skill Scripts

ScriptDescription
------
setup.shInstall CLI, configure, verify watcher
analyze.shStandalone analysis with --since, --session, --format, --push flags
hooks/pre-spawn.shPre-session hook — records start, ensures watcher
hooks/post-session.shPost-session hook — analyzes and summarizes

analyze.sh Flags

--since <time>     Analysis window start (ISO timestamp or relative like "1 hour ago")
--session <id>     Analyze a specific session by ID
--format <fmt>     Output format: text (default), json, markdown
--push             Push results to https://sightglass.dev

What Sightglass Surfaces

For each agent session, you get:

  • Dependency inventory — every package added, removed, or upgraded
  • Discovery method — how the agent found each one (training recall vs. searched)
  • Risk flags — known vulnerabilities, unmaintained packages, better alternatives
  • Alternatives report — what the agent could have chosen but didn't consider
  • Bias indicators — patterns showing training data influence over reasoned choice

API

All data syncs to sightglass.dev when authenticated. Use --push with analyze or configure auto-push in setup.


Your agent's dependencies are your dependencies. Know where they came from.

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-29 12:52 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,312

Elasticsearch

davidgeorgehope
通过REST API使用curl与Elasticsearch和Kibana交互,用于查询、索引、管理索引、检查集群健康、编写聚合等。
★ 0 📥 319
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,040