Skip to content

Add TokenFence — Runtime Guardrails SDK for AI Agents#107

Open
u4ma-kev wants to merge 2 commits intocorca-ai:mainfrom
u4ma-kev:add-tokenfence
Open

Add TokenFence — Runtime Guardrails SDK for AI Agents#107
u4ma-kev wants to merge 2 commits intocorca-ai:mainfrom
u4ma-kev:add-tokenfence

Conversation

@u4ma-kev
Copy link
Copy Markdown

@u4ma-kev u4ma-kev commented Mar 22, 2026

TokenFence

Runtime guardrails and cost circuit breaker SDK for AI agents.

What it does:

  • Per-workflow budget caps — prevent runaway agent costs
  • Automatic model downgrade — switch to cheaper models at budget thresholds
  • Kill switches — terminate requests that exceed budgets
  • Least-privilege policy engine — allow/deny/require_approval patterns with wildcards, deny-by-default, full audit trail

Fits the Tools section alongside LLM Guard, Rebuff, Garak, etc. as a runtime defense tool for AI agent security.

Details:

Summary by CodeRabbit

  • Documentation
    • Tools 섹션에 TokenFence 항목을 추가했습니다. AI 에이전트용 런타임 가드레일 SDK로, 워크플로우별 예산 상한, 자동 모델 다운그레이드, 킬스위치, 최소 권한 기반 허용/거부/승인 정책, 감사 추적 등을 설명하고 GitHub 저장소 링크와 스타 배지를 포함했습니다.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 30e017eb-2cc9-48f1-b9ed-34f232a6f77e

📥 Commits

Reviewing files that changed from the base of the PR and between bf31a29 and 8907a9b.

📒 Files selected for processing (1)
  • README.md
✅ Files skipped from review due to trivial changes (1)
  • README.md

Walkthrough

README.md의 Tools 섹션에 TokenFence 항목이 추가되었습니다. 항목에는 Python 및 Node.js GitHub 리포지토리 링크, GitHub 스타 배지, 그리고 런타임 가드레일 SDK 기능(예: 워크플로별 예산 제한, 자동 모델 다운그레이드, 킬스위치, 최소 권한 정책 엔진, 감사 로그) 설명이 포함됩니다.

Changes

Cohort / File(s) Summary
문서 업데이트
README.md
Tools 섹션에 TokenFence 항목 추가: Python 및 Node.js GitHub 리포지토리 링크, GitHub 스타 배지, 런타임 가드레일 SDK 기능 설명(예산 캡, 모델 다운그레이드, 킬스위치, 최소권한 정책, 감사 트레일).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding TokenFence to the Tools section as a runtime guardrails SDK for AI agents, which matches the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Tip

CodeRabbit can approve the review once all CodeRabbit's comments are resolved.

Enable the reviews.request_changes_workflow setting to automatically approve the review once all CodeRabbit's comments are resolved.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
README.md (1)

121-121: 링크 대상과 설명 범위를 일치시켜 주세요.

Line 121은 Python 저장소만 링크하면서 “Python + Node.js”를 함께 강조하고 있어, 독자가 Node 패키지 위치를 바로 찾기 어렵습니다. Node npm(또는 Node 저장소) 링크를 같이 추가하거나, 문구를 Python 중심으로 좁히는 쪽이 더 정확합니다.

✏️ 제안 수정안
-- [TokenFence](https://github.com/u4ma-kev/tokenfence-python): Runtime guardrails SDK for AI agents — per-workflow budget caps, automatic model downgrade, kill switches, and a least-privilege policy engine (allow/deny/require_approval) with audit trail. Python + Node.js. ![GitHub Repo stars](https://img.shields.io/github/stars/u4ma-kev/tokenfence-python?style=social)
+- [TokenFence](https://github.com/u4ma-kev/tokenfence-python): Runtime guardrails SDK for AI agents — per-workflow budget caps, automatic model downgrade, kill switches, and a least-privilege policy engine (allow/deny/require_approval) with audit trail. [Python SDK](https://github.com/u4ma-kev/tokenfence-python) + [Node SDK](https://www.npmjs.com/package/tokenfence). ![GitHub Repo stars](https://img.shields.io/github/stars/u4ma-kev/tokenfence-python?style=social)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@README.md` at line 121, 문구와 링크 불일치를 수정하세요: 현재 항목 TokenFence(링크:
u4ma-kev/tokenfence-python)는 Python 저장소만 연결되어 있는데 설명은 "Python + Node.js"로 되어
있으므로 README의 해당 라인(TokenFence)에서 설명을 그대로 유지하려면 Node용 링크(npm 패키지 또는 Node 저장소)를
추가하거나, Node 링크를 추가할 수 없으면 설명을 "Python"으로 축소해야 합니다; 구체적으로 TokenFence 및
tokenfence-python 표기를 찾아(description text "Python + Node.js") 두 링크(현재
tokenfence-python + Node 패키지/레포 링크)로 병기하거나 설명을 "Python"으로 변경해 일관성을 맞추세요.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@README.md`:
- Line 121: 문구와 링크 불일치를 수정하세요: 현재 항목 TokenFence(링크: u4ma-kev/tokenfence-python)는
Python 저장소만 연결되어 있는데 설명은 "Python + Node.js"로 되어 있으므로 README의 해당 라인(TokenFence)에서
설명을 그대로 유지하려면 Node용 링크(npm 패키지 또는 Node 저장소)를 추가하거나, Node 링크를 추가할 수 없으면 설명을
"Python"으로 축소해야 합니다; 구체적으로 TokenFence 및 tokenfence-python 표기를 찾아(description
text "Python + Node.js") 두 링크(현재 tokenfence-python + Node 패키지/레포 링크)로 병기하거나 설명을
"Python"으로 변경해 일관성을 맞추세요.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c503b44a-640d-4baf-aff8-fa941980c0ea

📥 Commits

Reviewing files that changed from the base of the PR and between c8ae124 and bf31a29.

📒 Files selected for processing (1)
  • README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant