能力标签
AI工具监控助手
🛠
AI工具

AI工具监控助手

基于 Go · 开源免费,本地部署,数据完全自主可控
英文名:superbased-observer
⭐ 6 Stars 🍴 2 Forks 💻 Go 📄 NOASSERTION 🏷 AI 7.5分
7.5AI 综合评分
tag1tag2tag3
✦ AI Skill Hub 推荐

经 AI Skill Hub 精选评估,AI工具监控助手 获评「推荐使用」。这款AI工具在功能完整性、社区活跃度和易用性方面表现出色,AI 评分 7.5 分,适合有一定技术背景的用户使用。

📚 深度解析

AI工具监控助手 是一款基于 Go 的开源工具,在 GitHub 上收获 0k+ Star,是tag1、tag2、tag3领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
AI工具监控助手 依赖 Go 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Go 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 AI工具监控助手 的版本更新,及时通知重要功能变化。

📋 工具概览

捕获、标准化和分析AI编程辅助工具的调用活动,提高开发效率和代码质量。

AI工具监控助手 是一款基于 Go 开发的开源工具,专注于 tag1、tag2、tag3 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 6
开发语言
Go
支持平台
Windows / macOS / Linux(跨平台)
维护状态
轻量级项目,按需更新
开源协议
NOASSERTION
AI 综合评分
7.5 分
工具类型
AI工具
Forks
2

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

捕获、标准化和分析AI编程辅助工具的调用活动,提高开发效率和代码质量。

AI工具监控助手 是一款基于 Go 开发的开源工具,专注于 tag1、tag2、tag3 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:go install(推荐)
go install github.com/marmutapp/superbased-observer@latest

# 方式二:从源码编译
git clone https://github.com/marmutapp/superbased-observer
cd superbased-observer
go build -o superbased-observer .

# 方式三:下载预编译二进制
# 访问 Releases 页面下载对应平台二进制文件
# https://github.com/marmutapp/superbased-observer/releases
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 查看帮助
superbased-observer --help

# 基本运行
superbased-observer [options] <input>

# 详细使用说明请查阅文档
# https://github.com/marmutapp/superbased-observer
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# superbased-observer 配置说明
# 查看配置选项
superbased-observer --config-example > config.yml

# 常见配置项
# output_dir: ./output
# log_level: info
# workers: 4

# 环境变量(覆盖配置文件)
export SUPERBASED_OBSERVER_CONFIG="/path/to/config.yml"
📑 README 深度解析 真实文档 完整度 73/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

SuperBased Observer

One local intelligence layer for every AI coding tool you use. Captures sessions, normalizes tokens & costs, and answers the question your provider's billing dashboard can't: what did I actually spend it on?

npm License: Apache 2.0 Platforms: Linux • macOS • Windows Go 1.22+

<p align="center"> <img src="docs/assets/infographics/one-local-path.png" alt="One local path for AI coding activity" width="780"> </p>

---

Overview — what's been happening?

<p align="center"> <img src="docs/assets/screenshots/01-overview.png" alt="Overview tab" width="900"> </p>

Four headline KPI tiles (sessions, API turns, token rows, stale re-reads — each filterable by the global Window / Tool / Project chips), cost-over-time stacked area split by billable token bucket, actions-over-time stacked by tool, top models by token volume, top tools by action count.

Install

Pick whichever package manager fits your environment — npm and PyPI ship the same prebuilt binary from the same v* tag, version numbers kept in lock-step.

Via go install (latest main, builds locally)

go install github.com/marmutapp/superbased-observer/cmd/observer@latest
observer --version

Verifying the install

observer doctor          # health checks: DB integrity, hook
                         # registration, MCP entries, pid bridge
observer status          # row counts + recent activity
observer tail            # live-stream captured actions

---

Build from source

git clone https://github.com/marmutapp/superbased-observer
cd superbased-observer
make build        # builds bin/observer + bin/antigravity-bridge.exe
make test         # full test suite (race detector enabled)
make all          # fmt + vet + lint + test + build

Requirements: Go 1.22+. No CGO. SQLite via modernc.org/sqlite (pure Go). golangci-lint optional for make lint. Dashboard source under web/ (React + TypeScript + Vite + Tailwind); the compiled bundle is committed to internal/intelligence/dashboard/webapp/dist/ so a contributor who only touches Go can make build without Node.

If you edit web/src/:

```bash

When done, rebuild the embedded bundle and commit

make web-build git add internal/intelligence/dashboard/webapp/dist web/dist ```

make web-build regenerates both web/dist and the embedded copy. Requires Node 22 LTS.

Linux x64 example — substitute your platform + version.

VERSION=v1.6.21 PLAT=linux-x64 curl -L -O https://github.com/marmutapp/superbased-observer/releases/download/$VERSION/observer-$VERSION-$PLAT.tar.gz curl -L -O https://github.com/marmutapp/superbased-observer/releases/download/$VERSION/SHA256SUMS shasum -a 256 -c SHA256SUMS --ignore-missing tar -xzf observer-$VERSION-$PLAT.tar.gz ./observer --version ```

The binary is pure Go — no CGO, no external runtime dependencies. SQLite storage is pure-Go via modernc.org/sqlite. Single static binary; scp it anywhere it runs. Same artifacts ship to npm and to the Releases page (build-once-ship-everywhere CI), so the npm and direct-download paths produce byte-identical binaries.

---

Long-context tier example (Anthropic Sonnet 1M, gpt-5 >272K,

Patches ~/.claude/settings.json, ~/.cursor/hooks.json,

~/.claude.json, ~/.cursor/mcp.json, ~/.codex/config.toml.

observer init --all

Claude Code (Anthropic) — both env vars matter:

export ANTHROPIC_BASE_URL=http://localhost:8820 export ENABLE_TOOL_SEARCH=true # ← required; without it the proxy is a net loss

Settings — every config knob, editable

<p align="center"> <img src="docs/assets/screenshots/09-settings.png" alt="Settings tab" width="900"> </p>

Pricing overrides hot-reload (no daemon restart — cost.Engine swaps the pricing table atomically). 156 baked-in default models; "Override" prompts auto-fill from the default. Backfill mode panel spawns observer backfill as a child process with live output streamed back. Watcher / Freshness / Retention / Hooks / Proxy / Compression / Intelligence sections are schema-driven forms with inline help. Restart-required banner appears when a section is saved that the daemon binds at startup.

Configuration

Default location: ~/.observer/config.toml. Override with --config. A minimal config:

```toml [observer] db_path = "~/.observer/observer.db" log_level = "info"

[proxy] enabled = true port = 8820 anthropic_upstream = "https://api.anthropic.com" openai_upstream = "https://api.openai.com"

[intelligence] monthly_budget_usd = 100 # surfaces on Analysis tab; 0 hides

[compression.shell] enabled = true exclude_commands = ["curl", "playwright"]

[compression.indexing] enabled = true max_excerpt_bytes = 2048

[compression.conversation] enabled = false # opt-in; modifies request bodies in flight mode = "cache_aware" # "token" | "cache" | "cache_aware" — see "Choosing a compression mode" below target_ratio = 0.85 preserve_last_n = 5 compress_types = ["json", "logs", "code"]

API proxy — accurate tokens, compression, stash

The proxy is the home of three features that only exist when your AI client routes through it. None of them run on the watcher / `observer start` ingestion path — compression and stash live in the request path because that's the only place where bytes can be rewritten before they reach the upstream provider.

When you point your AI tool at http://localhost:8820, the proxy:

1. Forwards your request to your chosen upstream (Anthropic or OpenAI). The destination is the same provider URL your AI client would have called directly; no data leaves your machine that wasn't already going to that provider. Your API key is yours — the proxy reads it from the inflight headers, never stores it. 2. Records the exact token counts the provider returned (cache 5m vs 1h split, long-context tier triggers, reasoning tokens) into the api_turns table — more accurate than parsing the JSONL the AI tool wrote. 3. Compresses the conversation before forwarding (importance-scored, prefix-stable for cache alignment) — the biggest lever for keeping long sessions inside rate-limit windows. On by default as of v1.7.23 with the safe per-type set (compress_types = ["json","logs","code"]); opt out via [compression.conversation].enabled = false or compress_types = []. Compressed events land in the compression_events table and surface on the Compression dashboard tab. Empirical on Claude Code lumen rig (n=8, V7-22): −6.9% mean cost vs no-proxy, CV 7.6%, zero tail outliers. 4. Stashes large tool outputs the compressor hides, so the originals stay retrievable via the retrieve_stashed MCP tool (only registered when stash is configured). Off by default — stash markers break Anthropic's prefix cache (V7-25 n=1 measurement: +25% cost, cache_creation_input_tokens doubled). Operators who want stash on a workload should A/B before committing.

Three compression layers, each independently toggleable:

- Shell output filters — RTK-style truncation of large bash / git / go test / docker / kubectl / cargo / pytest outputs inline before they hit the LLM context. Runs on hook / observer run paths; does not require the proxy. - Tool output indexing — every tool call's output indexed into FTS5; large outputs trimmed to a 2KB excerpt cap so the index stays compact and search_past_outputs stays fast. Runs on the watcher path; does not require the proxy. - Conversation compression — proxy rewrites large tool_result blocks before forwarding upstream. Proxy-only — there is no non-proxy path for this layer, and the stash that backs retrieve_stashed is wired here too.

Trade-off if you skip the proxy: you still get full hook + JSONL ingestion, the dashboard, MCP (if registered), and shell+indexing compression. You lose proxy-grade token accuracy, conversation compression, and the stash. For rate-limited plans (Claude Teams 5h/7d windows), conversation compression is usually the difference between "finishes the task" and "hits the limit."

CLI reference

CommandPurpose
observer init [--all]Register hooks + MCP server with every detected AI tool.
observer uninstall [--all] [--purge]Reverse of init. Refuses to touch drifted configs unless --force. --purge also deletes ~/.observer/.
observer scan [--force]One-time backfill — parse all known session files into the DB. --force re-walks from offset 0.
observer watchLive fsnotify-based watcher daemon.
observer startProxy + watcher + dashboard in one foreground process.
observer proxy startRun only the API reverse proxy.
observer dashboard [--port N]Embedded dashboard + /api/* JSON on http://localhost:N (default 8081).
observer cost [--days N] [--group-by …]Token + USD rollup from the CLI.
observer discoverStale re-reads + redundant-commands report.
observer patternsDerive hot files, co-changes, common commands, edit→test pairs.
observer learnDerive correction rules from failure→recovery pairs.
observer suggestCompose patterns + corrections into CLAUDE.md / AGENTS.md / .cursorrules.
observer summarizeGenerate AI session summaries (uses Anthropic Haiku).
observer scoreSession quality scoring (error rate, redundancy, onboarding cost, retry cost).
observer statusRow counts + recent activity.
observer tailLive-stream captured actions.
observer doctorHealth checks: DB integrity, hook checksums, MCP drift, pid bridge.
observer pruneRun retention now.
observer metrics [--port N]Prometheus /metrics endpoint.
observer export {json\|csv\|xlsx}Dump tables for external analysis.
observer backfill --<mode>Re-populate columns added by later migrations. --all runs every mode.
observer run <command>Run a command with its stdout streamed through the shell filter.
observer hook <tool> <event>Hook entrypoint (called by the AI tools after init).
observer serveMCP stdio server (spawned by AI tools).

observer <command> --help for full flag listings.

---

Hot-reload dev loop (Vite serves :5173, proxies /api/* to observer)

./bin/observer dashboard --addr 127.0.0.1:8081 & cd web && npm install && npm run dev

Via VS Code (Marketplace or Open VSX)

code --install-extension superbased.superbased-observer

The VS Code extension bundles the observer binary, lifts the dashboard / sidebar / status bar / file decorations into the editor, and contributes a terminal profile that pre-exports the proxy env vars so AI CLIs launched from it route through observer automatically. Cursor, VSCodium, and Windsurf install the same VSIX via Open VSX.

After install, VS Code's Get Started page surfaces an in-editor walkthrough; the long-form user guide lives at docs/vscode-extension-user-guide.md and the command + settings reference is at docs/vscode-extension.md.

Choosing a compression mode (Anthropic vs Codex)

[compression.conversation].mode behaves differently per provider. Per-type tool_result compression runs in every mode; mode only changes how messages are dropped and whether an Anthropic cache_control marker is injected.

modeWhat it doesClaude Code (Anthropic)Codex / OpenAI
tokenPer-type compress, then drop lowest-scored messages to hit target_ratio.✅ Works.✅ Clearest choice for Codex/OpenAI.
cacheRestrict drops to the tail half + inject a cache_control marker at the prefix boundary.✅ Anthropic-specific.⚠️ No effect beyond token.
cache_aware *(default)*Skip drops, narrow compression to tool_result blocks, no marker injection; keep history byte-stable across turns so Anthropic's prefix cache keeps hitting (cache_creation falls on later turns).✅ **Recommended for Anthropic Pro/Max** — and the shipped default.⚠️ No effect beyond token, so the default is harmless for Codex.

The shipped default is cache_aware (token is just the internal fallback when mode is empty). The cache/cache_aware strategies exist for Anthropic's content-hash prefix cache (cache_control is an Anthropic Messages API concept). OpenAI/Codex prompt caching is automatic and server-side — there is nothing to mark or tune, so the proxy's OpenAI path is mode-agnostic (the default cache_aware simply behaves like token there).

Pick one of three shipped recipes based on which model you're running:

RecipeUse it when your model is…Example model IDs
**claude-code**Anthropic Claude (via Claude Code)claude-sonnet-4-6, claude-opus-4-7, claude-haiku-4-5, any claude-*
**codex-variant**OpenAI's -codex reasoning fork (running under the codex CLI)gpt-5.3-codex, gpt-5.4-codex, gpt-5-codex-agent, anything matching *-codex*
**codex-safe**Plain OpenAI GPT (running under the codex CLI)gpt-5.4, gpt-5.4-mini, gpt-5.5, gpt-4o, any non--codex GPT

"variant" in codex-variant means the -codex model variant, not a variant of the codex CLI — both codex recipes are for the codex CLI; the split is purely about which model family it's pointed at.

```toml

🎯 aiskill88 AI 点评 A 级 2026-06-06

该工具提供了AI编程辅助工具的调用活动监控和分析功能,提高开发效率和代码质量,但需要进一步优化和完善。

📚 实用指南(长尾问题)
适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal
部署方案
  • Docker:superbased-observer 提供官方镜像,docker compose up 一键启动
  • CLI:直接 npm install -g / pip install,命令行调用
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
superbased-observer 中文教程superbased-observer 安装报错怎么办superbased-observer MCP 配置superbased-observer Docker 部署superbased-observer Agent 工作流superbased-observer 与同类工具对比superbased-observer 最佳实践superbased-observer 适合谁用

⚡ 核心功能

👥 适合谁
  • 使用 Cursor 编辑器、希望提升 AI 编程效率的开发者
  • 需要让 Claude / Cursor 操作本地工具的 AI 工程师
  • 构建多智能体协作系统的 Agent 开发者
⭐ 最佳实践
  • 配置 MCP 服务器时建议使用 stdio 传输 + JSON-RPC,避免暴露公网
  • 生产部署优先使用 Docker Compose 隔离依赖,并挂载 volume 持久化数据
  • Agent 任务先做 dry-run 验证工具调用链,再开启自主执行
  • Cursor rules 控制在 80 行内,否则模型上下文成本会显著上升
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • MCP 配置路径拼错或权限不足,重启 Claude Desktop 才生效
  • 容器内无法访问宿主机 localhost — 使用 host.docker.internal

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

该工具使用 NOASSERTION 协议,商用场景请仔细阅读协议条款,必要时咨询法律意见。

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

📄 NOASSERTION — 请查阅原始协议条款了解具体使用限制。

🔗 相关工具推荐

📰 相关 AI 新闻
🍿 AI 圈相关吃瓜
🗺️ 相关解决方案
🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

superbased-observer 是一款Go开发的AI辅助工具。开源AI工具:Capture, normalize, and analyze tool-call activity across AI coding assistants (。⭐6 · Go 主要应用场景包括:用于监控和分析AI编程辅助工具的调用活动,提高开发效率和代码质量。。
💡 AI Skill Hub 点评

AI Skill Hub 点评:AI工具监控助手 的核心功能完整,质量良好。对于AI 技术爱好者来说,这是一个值得纳入个人工具库的选择。建议先在非生产环境试用,再逐步推广。

📚 深入学习 AI工具监控助手
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 superbased-observer
原始描述 开源AI工具:Capture, normalize, and analyze tool-call activity across AI coding assistants (。⭐6 · Go
Topics tag1tag2tag3
GitHub https://github.com/marmutapp/superbased-observer
License NOASSERTION
语言 Go
🔗 原始来源
🐙 GitHub 仓库  https://github.com/marmutapp/superbased-observer

收录时间:2026-06-06 · 更新时间:2026-06-06 · License:NOASSERTION · AI Skill Hub 不对第三方内容的准确性作法律背书。