agentcontract v0.0.1: A Portable JSON Permission Layer for AI Coding Agents

agentcontract v0.0.1 is a tiny, MIT-licensed Python library that defines a portable JSON permission layer for AI coding agents. The core idea is a simple JSON contract that specifies which tools, paths, and network actions an agent is allowed to perform, independent of any specific agent runtime.
Key Features
- Permission Contract: A JSON structure that lists allowed/denied tools, allowed/denied file paths, network access control, and tools requiring human approval.
agc gui: A new local browser UI for interactively writing, validating, and saving a contract, plus dry-running a proposed tool call against it.- Portable: The contract can be committed to a repo, code-reviewed like normal config, and reused across different agents/runtimes.
Example Contract
{
"allow_tools": ["read_file", "write_file"],
"deny_tools": ["shell"],
"allow_paths": ["./src/"],
"deny_paths": ["~/.ssh/", "~/.env"],
"allow_network": false,
"require_approval": ["shell"]
}The contract enforces that an agent can only read/write files under ./src/, cannot execute shell commands (unless approved), and has no network access. Blocks access to sensitive paths like ~/.ssh/ and ~/.env.
Instead of trusting each tool's internal permission model, you define a single portable policy that any runtime can check before an action touches files, runs commands, calls APIs, or burns tokens.
Who It's For
Developers building agent tooling or running coding agents against real repos who want a boring, portable, and auditable permission layer.
📖 Read the full source: r/openclaw
👀 See Also

Audacity MCP Server Gives Claude AI Full Audio Editing Control
A developer built an MCP server that connects Claude AI to Audacity via mod-script-pipe, providing 99 tools for natural language audio editing commands. The open-source tool works with Claude Desktop, Claude Code, or Cursor.

AgentHandover: Mac menu bar app that creates agent skills by watching your screen
AgentHandover is an open-source Mac menu bar app that uses Gemma 4 running locally via Ollama to watch your screen and turn repeated workflows into structured Skill files that any agent can follow. It offers both Focus Record for specific tasks and Passive Discovery that picks up patterns from background observation.

ProofShot CLI Gives AI Coding Agents Browser Verification Capabilities
ProofShot is an open-source CLI tool that lets AI coding agents verify UI features by recording browser sessions, capturing screenshots, and collecting console errors. It works with any agent that can run shell commands and generates self-contained HTML reports for human review.

Lore: A tool that extracts structured context from AI coding conversations
Lore is a browser-based tool built with Claude Code that extracts structured context from AI conversations, capturing decisions, TODOs, blockers, and resume checklists. It's a React + TypeScript PWA with a Chrome extension for direct conversation capture and context injection.