Skip to content
Agentmart
Submit a tool

AGENTS.md · pocketpaw/pocketpaw

AGENTS.md from pocketpaw/pocketpaw: 107 lines covering Agent Identity, Supported Backends, Capabilities, Forbidden Operations and more.

Template by pocketpaw

IndexedMIT★ 894
Write a review

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/pocketpaw/pocketpaw/main/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that pocketpaw/pocketpaw (894 stars) keeps for coding agents. It has 107 lines in 6 sections: Agent Identity; Supported Backends; Capabilities; Forbidden Operations; Project-Specific Instructions for AI Agents; Tool Policy Groups. Use it as a model for your own project's instructions.

Use cases: code-generation

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
107 lines
File
AGENTS.md

Sections

  1. Agent Identity
  2. Supported Backends
  3. Capabilities
  4. Forbidden Operations
  5. Project-Specific Instructions for AI Agents
  6. Tool Policy Groups

First lines (shown under the repo's MIT license)

# AGENTS.md

> This file declares PocketPaw's capabilities, supported tools, and safety boundaries
> for other AI agents and tools that interact with this repository.
> Format: [AGENTS.md specification](https://github.com/anthropics/agents-md)

## Agent Identity

**Name:** PocketPaw  
**Type:** Self-hosted AI assistant agent  
**Description:** PocketPaw is a locally-run AI agent controlled via Telegram, Discord, Slack,
WhatsApp, or a web dashboard. It operates on the user's machine with configurable tool access
and safety guardrails.

## Supported Backends

PocketPaw can delegate to any of the following AI backends:

- `claude_agent_sdk` — Anthropic Claude via the official Agent SDK (default)
- `openai_agents` — OpenAI GPT models or Ollama (local)
- `google_adk` — Google Gemini via the Agent Development Kit
- `codex_cli` — OpenAI Codex CLI subprocess
- `opencode` — External OpenCode server via REST API
- `copilot_sdk` — GitHub Copilot SDK

## Capabilities

### File System

- ✅ Read files within the configured `file_jail_path` (default: `$HOME`)
- ✅ Write and edit files within `file_jail_path`
- ✅ List directories and traverse directory trees
- ❌ Access files outside `file_jail_path`

### Shell Execution

- ✅ Execute shell commands (trust level: `critical` — requires explicit user permission)
- ❌ Commands matching dangerous patterns in `security/rails.py` are always blocked
  (e.g., `rm -rf /`, fork bombs, privilege escalation)
- ❌ Shell commands require `trust_level = "critical"` policy approval

### Web & Network

- ✅ Web search (via configured search provider)
- ✅ URL content extraction
- ✅ HTTP requests via the browser tool (Playwright-based, accessibility-tree snapshots)
- ❌ No direct socket access or raw network operations

### Memory

- ✅ Session memory (per-conversation history)
- ✅ Long-term memory (`remember`, `recall`, `forget` tools)
- ✅ Memory stored locally at `~/.pocketpaw/memory/`

### Integrations (optional — require explicit configuration)

- Gmail (read, send, label)
- Google Calendar (list, create)
- Google Drive (list, download, upload)
- Google Docs (read, create, search)
- Spotify (search, playback control)
- Discord, Slack, Telegram, WhatsApp channels

### Security & Guardrails

- All shell-executing tools pass through `security/rails.py` before execution.
- A secondary Guardian AI performs safety checks on high-trust and critical operations.
- All `trust_level = "high"` and `trust_level = "critical"` actions are audit-logged
  to `~/.pocketpaw/audit.jsonl`.
- Prompt injection scanning is enabled by default on all inbound messages.
- Channel identifiers are validated against configured allowlists before processing.

## Forbidden Operations

- ❌ Hardcoded credentials or API keys — all secrets use encrypted `CredentialStore`
- ❌ `asyncio.run()` inside library code
- ❌ Module-level `get_settings()` calls
- ❌ Logging API keys, tokens, or user PII
- ❌ Unauthenticated REST endpoints — all routes require existing auth middleware
- ❌ Creating new event types on the message bus without updating `bus/events.py`

## Project-Specific Instructions for AI Agents

When working on this repository:

1. Follow the event-driven bus pattern: adapters publish `InboundMessage`, agents publish
   `OutboundMessage` and `SystemEvent`. Never call agent code directly from an adapter.
2. Use `Protocol` (not `ABC`) for all public interfaces.
3. Lazy-import optional SDK dependencies inside `__init__` or first-use methods.
4. All I/O must be `async def`. Use `asyncio.to_thread()` for unavoidable blocking calls.
5. Run `uv run ruff check .` and `uv run pytest --ignore=tests/e2e` before committing.
6. New secret fields must be added to `SECRET_FIELDS` in `credentials.py`.
7. Every new `AgentBackend` must yield `AgentEvent(type="done", ...)` as its final event.

## Tool Policy Groups

| Group | Tools |
|---|---|
| `group:fs` | read_file, write_file, edit_file, list_dir, directory_tree |
| `group:shell` | shell |
| `group:browser` | browser |
| `group:memory` | remember, recall, forget |
| `group:search` | web_search, url_extract |
| `group:skills` | create_skill, skill |

Default profile: `full` (no restrictions). Configure via `tool_profile` in settings.

Signals

Stars
894
Forks
328
Open issues
88
Last commit (this folder)
Mar 10, 2026 (7 months ago)
Last release
Apr 29, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from pocketpaw

Cite this page

AGENTS.md · pocketpaw/pocketpaw. Agent Mart. https://agentmart.dev/templates/pocketpaw-pocketpaw-agents-md (last updated 2026-10-24)