惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
B
Blog
Y
Y Combinator Blog
WordPress大学
WordPress大学
Microsoft Azure Blog
Microsoft Azure Blog
小众软件
小众软件
G
Google Developers Blog
云风的 BLOG
云风的 BLOG
罗磊的独立博客
博客园 - 三生石上(FineUI控件)
博客园 - 叶小钗
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
量子位
The Cloudflare Blog
T
The Blog of Author Tim Ferriss
博客园_首页
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
IT之家
IT之家
阮一峰的网络日志
阮一峰的网络日志
L
LangChain Blog
宝玉的分享
宝玉的分享

Hacker News - Newest: "AI"

AI can't read an investor deck AI as an attorney? Student uses ChatGPT, Gemini to sue UW over alleged racial discrimination Hacking MCP Servers in AI Systems – The Rug Pull: Tool Changes After Approval GitHub - MeepCastana/KubeezCut: Free Web based video editor Can AI judge journalism? A Thiel-backed startup says yes, even if it risks chilling whistleblowers Coming soon: 10 Things That Matter in AI Right Now DARPA built an AI to fact-check enemy weapons claims What explains heterogeneity in AI adoption? When AI Meets Muscle: Context-Aware Electrical Stimulation Promises a New Way to Guide Human Movements - Department of Computer Science AI Changed How We Build. It Did Not Change What Matters. Linux rules on using AI-generated code - Copilot is OK, but humans must take 'full responsibility for the… Meta spins up AI version of Mark Zuckerberg to engage with employees Code Mode: Let Your AI Write Programs, Not Just Call Tools | TanStack Blog GitHub - Delavalom/graft: Go framework for building AI agents. Type-safe tools, multi-provider (OpenAI, Anthropic, Gemini, Bedrock), zero vendor SDKs. India's TCS tops estimates, says new AI models did not dent services demand Gen Z's fading AI hype Strong feeling: we are in a folded AI reality GitHub - machinarii/total-recall-catalog: A reference catalog of latest knowledge retrieval, memory & RAG systems GitHub - mensfeld/code-on-incus: Give each AI agent its own isolated machine with root, Docker, and systemd. Active defense detects and stops threats automatically.. Quantization, LoRA, and the 8% Problem: Benchmarking Local LLMs for Production AI Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda Powell, Bessent discussed Anthropic's Mythos AI cyber threat with major U.S. banks GitHub - immartian/bellamem: Persistent belief-graph memory for AI agents. Retrieves decisive context by importance — not recency, not RAG, not /compact. recursive-mode: The Repo-Native Operating System for AI Engineering After the attack on Sam Altman's home, will AI CEO's go on the offensive? The biggest advance in AI since the LLM Opus 4.6 vs GPT 5.4 One Prompt Unity World Generation Test “AI polls” are fake polls Client Challenge Can AI be a 'child of God'? Inside Anthropic's meeting with Christian leaders
GitHub - AIObuilt/TaG: Trust and Governance framework for...
Tag_AI · 2026-05-19 · via Hacker News - Newest: "AI"

TaG
Trust and Governance for AI Agents

GitHub Stars License Last Commit Platform Agnostic


Your AI agents have no guardrails. TaG fixes that.

TaG is a local-first trust and governance layer that sits between your AI agents and the damage they can do. It enforces spending limits, blocks credential leaks, gates deployments on actual QA, and routes work across models based on cost — not vendor defaults.

No hosted dependency. No telemetry. No account. Clone it and it works.

If you believe AI agents need a trust layer, star this repo — it's how open-source projects get found.


What happens without TaG

Your agent calls stripe charges create at 3am. Nobody stops it.

Your agent pushes to production without running tests. The deploy hook doesn't exist.

Your agent leaks your .env into a commit. You find out on Twitter.

Your agent burns $400 on GPT-4 when a local model could have handled it.

TaG makes all of these impossible.


30-Second Quick Start

git clone https://github.com/AIObuilt/TaG.git
cd TaG/tag

# See what ships out of the box
ls hooks/         # 21 governance hooks, ready to install
ls config/        # routing baseline, authority matrix, coding protocol
ls routing/       # local-first cost-aware model router

# Run the governed read-only tool loop demo
python3 tools/governed_readonly_tool_loop.py

That's it. No setup wizard. No API key. No Docker. Plain Python, plain JSON configs, plain trust.


What TaG Enforces

21 production-tested governance hooks that run as pre-execution gates:

Hook What It Blocks
spending-guard Payment API calls (Stripe, billing endpoints, purchase URLs)
credential-scope-guard Cross-project credential exposure
env-guard .env and secrets in commits or tool output
webfetch-exfil-guard Data exfiltration via outbound requests
build-gate Completion claims without passing builds
security-gate Deploys without security review
qa-gate Production pushes without QA validation
playwright-qa-gate Live QA validation via browser automation
playwright-security-gate Live security checks via browser automation
verification-gate Completion claims without verification evidence
completion-claim-guard Unsubstantiated "done" claims
fork-scope-guard Cross-project file access
os-acl-enforcer OS-level permission violations
delegate-enforcer Uncontrolled agent delegation
agent-enforcer Unauthorized actor assignment
repo-hygiene-gate Dirty working tree on protected operations
session-autosave Session state loss on crash
crash-checkpoint Execution state loss on failure
compaction-recovery Context window compaction errors
memory-autosave Operational memory loss
skill-autoload Missing capability at execution time

Every hook writes to a local audit log. Every block is traceable.


Architecture

┌─────────────────────────────────────────────┐
│              Your Agent System              │
│         (Claude, GPT, Ollama, etc.)         │
└──────────────────┬──────────────────────────┘
                   │
                   ▼
┌─────────────────────────────────────────────┐
│                 TaG Layer                   │
│                                             │
│  ┌───────────┐ ┌──────────┐ ┌───────────┐  │
│  │  Hooks    │ │  Policy  │ │  Routing  │  │
│  │ (21 gates)│ │  Engine  │ │ (local-1st)│  │
│  └───────────┘ └──────────┘ └───────────┘  │
│                                             │
│  ┌───────────┐ ┌──────────┐ ┌───────────┐  │
│  │  Memory   │ │  Audit   │ │  Config   │  │
│  │(persistent)│ │  (local) │ │  (JSON)   │  │
│  └───────────┘ └──────────┘ └───────────┘  │
└──────────────────┬──────────────────────────┘
                   │
                   ▼
┌─────────────────────────────────────────────┐
│           Execution Targets                 │
│    Local models, cloud APIs, tools, CLI     │
└─────────────────────────────────────────────┘

Platform-agnostic. TaG doesn't care if you run Claude Code, OpenAI Codex, Ollama, or something you built yourself. The governance layer wraps execution — it doesn't replace it.


Cost-Aware Routing

TaG includes a local-first routing engine that picks the cheapest capable model, not the most expensive one:

Local (free) → Gemini → OpenAI → xAI → Anthropic → Codex → Claude
  • Local execution first when the model is healthy and the task class matches
  • Timeout-aware escalation — if local fails, it moves up; it doesn't hang
  • Session-aware routing — multi-turn conversations stick to session-capable backends
  • Vision-aware fallback — image tasks route to capable models automatically

Configuration is one JSON file: config/routing-baseline.json


Policy Engine

TaG enforces workflow gates at the policy level:

  • Pre-commit: build, security, and QA gates must pass
  • Pre-deploy: all pre-commit gates plus commit verification (enforcement: hold)
  • Post-deploy: live QA and live security validation required

The policy engine runs in audit-first mode by default — it logs everything and blocks sensitive actions. You can tighten to hold mode per workflow stage.

Sensitive actions are held. Unknown actions are audited. Nothing runs untracked.


Who This Is For

  • Developers building agent systems who are tired of agents that can't be trusted
  • Teams running multi-model architectures who need cost control and routing
  • Solo builders and small teams who can't afford a $50K/year governance platform
  • Anyone shipping AI to production who needs an audit trail that isn't "we hope it works"

Project Structure

tag/
├── hooks/          # 21 governance hooks (Python, zero external deps)
├── config/         # Routing baseline, authority matrix, coding protocol, framework
├── routing/        # Local-first cost-aware model router
├── policy/         # Policy engine with workflow gate enforcement
├── memory/         # Persistent local memory provider
├── tools/          # Governed tool loop examples
├── shared_brain/   # Agent context templates and handoff continuity
└── forks/          # Multi-project isolation manifests

Background

TaG was built by Jason McCall — two decades in automotive software, now operating AI agents for real business work. When your agents handle billing, deploys, and client communications, "hope it doesn't break" isn't a strategy.

Architecture predates Microsoft's open-source agent tooling release. Filings are timestamped.

For the thinking behind the design decisions, see PHILOSOPHY.md.

Built because it had to exist, not because it was trendy.


Licensing

TaG is source-available under the Business Source License 1.1.

  • Non-production use: allowed under BSL terms
  • Production use: requires a commercial agreement until the Change Date
  • Change License: Apache License 2.0

The open rails are real. The managed layer (tuned routing, learned affinity, hosted monitoring) is separate and commercial.

Open the rails. Sell the train.


Links


If you think AI agents need guardrails before they need more features, star this repo.