hackhaton-space-stackHackhaton Space Stack
AcademyBuilder
Get Started
All terms
The Basics
  • Stack
  • Frontend & Backend
  • CLI
  • Monorepo
  • Server
  • Localhost
How AI Works
  • Context Window
  • Hallucination
  • Token
  • Prompt Caching
  • Session
  • Compaction
  • Embedding
  • Vector Database
  • RAG
  • Fine-tuning
  • Temperature
  • Inference
  • Reasoning
  • Multimodal
Building With AI
  • Agent
  • MCP
  • System Prompt
  • Skill
  • CLAUDE.md
  • Slash Command
  • Harness
  • Computer Use
  • Agents SDK
  • Voice Agents
  • OAuth
  • Vibe Coding
  • Permission Scope
  • Tool Calling
  • Prompt Injection
  • Eval
  • Guardrails
  • Sandbox
  • Progressive Disclosure
Code & Collaboration
  • Git
  • Commit
  • Branch
  • GitHub
  • Pull Request
  • Open Source
  • Markdown
  • Dependency
  • Merge
  • Fork
APIs & Connections
  • API
  • Auth
  • Database
  • ORM
  • SDK
  • Webhook
  • Endpoint
  • REST
  • HTTP Methods
  • Env File
  • Schema
  • JSON
  • YAML
  • Secret
  • Rate Limit
  • CORS
  • Cookie
  • Encryption
Shipping & Running
  • Deploy
  • Headless
  • Cron
  • DNS
  • CDN
  • Object Storage
  • Serverless
  • Edge
  • Worker
  • Runtime
  • Process
  • Daemon
  • Queue
  • Job
  • State
  • Cache
  • SSH
  • Build
  • Staging
  • Rollback
  • Docker
  • Feature Flag
  • Test
  • CI/CD
  • The Cloud
Debugging & Errors
  • Trace
  • Type Error
  • Stack Trace
  • Log
  • Bug
  • Patch
  • Latency
How Developers Think
  • DRY
  • YAGNI
  • KISS
  • Refactoring
  • Technical Debt
  • Async
← All terms

Type-safe, modern TypeScript scaffolding for full-stack web development

ThreadsGitHub

Info

  • Academy
  • Docs

Legal

  • Terms of Service
  • Privacy Policy

© 2026 Dzulhelmy Nazri

Building With AI

$definepermission-scope--plain-english

Permission Scope

TLDRExactly which doors a key is allowed to open.

A keycard that only lights Floor 3 is not a cheaper card. That is the idea.

Permission scope is the written list of doors. repo:read is not repo:admin. An agent that can write in /tmp is not an agent with your SSH key. OAuth scopes, sandbox rules, and an MCP tool menu are the same list in different costumes.

A secret is the card. Scope is how many floors it lights. You can lock the card in a safe and still be in trouble, because it opens everything. Scope is what shrinks the blast if it walks out.

Smallest list that finishes the demo

The API window already decides the menu. Scope is a smaller menu for this caller: read orders, never delete customers. This product's tools are scoped on purpose — ds_plan_project, ds_create_project. They can stamp a stack. They cannot empty your GitHub. If "delete the repo" is not on the board, the model cannot order it.

Clicking "allow all" to dismiss a prompt is how Floor 3 becomes the vault. Ask: what is the smallest access that lets this actually work? You can widen later. You cannot un-leak a wide key.

Powerful and unscoped is the combination you never want. A confidently wrong agent with a read-only card can embarrass you. The same agent with delete-everything can ruin the week.

What this unlocks

Once the list is written down, trust moves out of the intern's personality and into the card. The key itself says no.

Don't light the whole building to unlock one floor.

Related

  • OAuth
  • Sandbox
  • Secret
  • Agent
PrevVibe Coding

Building With AI

NextTool Calling