{"id":50953466,"url":"https://github.com/outfox/pocketfox","last_synced_at":"2026-06-18T04:01:31.952Z","repository":{"id":355635096,"uuid":"1153047230","full_name":"outfox/pocketfox","owner":"outfox","description":"pocketfox is a small, clever, autonomous agent with a composable personality","archived":false,"fork":false,"pushed_at":"2026-06-15T14:14:43.000Z","size":33274,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-15T16:15:13.127Z","etag":null,"topics":["agent","ai","ai-agent","docker","docker-compose","fox","pocket"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outfox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-08T20:23:18.000Z","updated_at":"2026-06-15T14:15:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/outfox/pocketfox","commit_stats":null,"previous_names":["outfox/pocketfox"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/outfox/pocketfox","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfox%2Fpocketfox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfox%2Fpocketfox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfox%2Fpocketfox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfox%2Fpocketfox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outfox","download_url":"https://codeload.github.com/outfox/pocketfox/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outfox%2Fpocketfox/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34475375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","ai","ai-agent","docker","docker-compose","fox","pocket"],"created_at":"2026-06-18T04:01:16.034Z","updated_at":"2026-06-18T04:01:31.865Z","avatar_url":"https://github.com/outfox.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003epocketfox\u003c/h1\u003e\n  \u003cimg src=\"pocketfox-logo.svg\" alt=\"pocketfox\" width=\"240\"\u003e\n  \u003cp\u003e\u003cem\u003eAn ultra-lightweight personal AI assistant with composable contexts.\u003c/em\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n**pocketfox** is a small (\u003c10k SLoC) async Python agent framework. It connects an LLM\nto chat platforms (Telegram, Discord, WhatsApp, Signal, Feishu, DingTalk), tools, and\nscheduled tasks — and lets you wire each one into independent **contexts** that decide\n*who* the agent is, *what* it can do, and *which channels* it listens and replies on.\n\n## Why pocketfox\n\n### Composable contexts\nA context is a self-contained agent personality assembled from Markdown files in your\nworkspace. Each context picks its own files, model, prologue, and tool whitelist:\n\n```toml\n[contexts.work]\nmodel        = \"anthropic/claude-sonnet-4-6\"\nprologue     = \"You are a focused work assistant. Be terse.\"\ncontext_files = [\"AGENTS.md\", \"TOOLS.md\", \"WORK.md\", \"MEMORY.md\"]\nallowed_tools = [\"fs_*\", \"web_*\", \"message_*\"]\n\n[contexts.home]\nprologue     = \"You are warm, casual, and remember family stuff.\"\ncontext_files = [\"AGENTS.md\", \"SOUL.md\", \"USER.md\", \"MEMORY.md\"]\n```\n\nFiles like `AGENTS.md`, `SOUL.md`, `USER.md`, `TOOLS.md`, and `MEMORY.md` are loaded\nverbatim into the system prompt via [LOOM](https://github.com/outfox/loom), with cache\nbreakpoints placed for cheap Anthropic prefix caching. Swap files, swap personality.\n\n### Context routing across channels\nA context can be fed from one or many channels at once, and reply to a different set:\n\n```toml\n[contexts.work]\ninputs              = [\"telegram:123\", \"discord:*\", \"signal:+15551234567\"]\noutputs_responsive  = [\"telegram:*\", \"discord:*\"]   # reply where the message came from\noutputs_always      = [\"telegram:999\"]              # also mirror to my phone\ncron                = \"0 9 * * 1-5\"                 # weekday morning standup\ncron_files          = [\"STANDUP.md\"]                # extra files loaded only for cron runs\n```\n\nRouting rules:\n- `inputs` — `channel:chat_id` (exact) or `channel:*` (any chat on that channel)\n- `outputs_responsive` — only fire when triggered by an inbound message\n- `outputs_always` — fire for every turn, including cron and heartbeat\n- One inbound message can match several contexts; each runs independently\n\n### Other things it does\n- **Multi-modal** — images, audio, video, and documents (PDF, docx) attached on chat\n  platforms flow into the LLM as native content blocks\n- **Subagents** — agents can spawn background subagents with restricted toolsets\n- **Skills** — drop a `SKILL.md` into the workspace and it becomes available; built-ins\n  cover GitHub, weather, tmux, cron, and summarization\n- **Cron + heartbeat** — persistent scheduled jobs and a 30-minute proactive checklist\n- **300+ models** via OpenRouter, plus direct providers (Anthropic, OpenAI, DeepSeek,\n  Groq, Gemini, Moonshot, Zhipu, DashScope) and any OpenAI-compatible local server (vLLM)\n\n## Install\n\n```bash\npip install pocketfox-ai\n# or, from source:\ngit clone https://github.com/outfox/pocketfox.git \u0026\u0026 cd pocketfox \u0026\u0026 pip install -e .\n```\n\n## Quick start\n\n```bash\npocketfox onboard                        # initialize ~/.pocketfox/\n$EDITOR ~/.pocketfox/config.toml         # add an API key\npocketfox agent -m \"what's 2 + 2?\"       # one-shot\npocketfox agent                          # REPL\npocketfox gateway                        # run channels + agent loop\n```\n\nMinimal config:\n\n```toml\n[providers.openrouter]\napi_key = \"sk-or-v1-...\"\n\n[agents.defaults]\nmodel = \"anthropic/claude-sonnet-4-6\"\n\n[channels.telegram]\nenabled    = true\ntoken      = \"BOT_TOKEN_FROM_BOTFATHER\"\nallow_from = [\"YOUR_USER_ID\"]\n```\n\nIf no `[contexts.*]` section is defined, pocketfox synthesizes a default context that\nlistens on every enabled channel — so the simple case stays simple.\n\n## CLI\n\n| Command | What it does |\n|---------|--------------|\n| `pocketfox onboard`         | Initialize config and workspace |\n| `pocketfox agent [-m ...]`  | Single message or interactive REPL |\n| `pocketfox gateway`         | Start channels + agent loop |\n| `pocketfox status`          | Show config and provider status |\n| `pocketfox channels login`  | Link WhatsApp (scan QR) |\n| `pocketfox cron add/list/remove` | Manage scheduled tasks |\n\n## Layout\n\n```\npocketfox/\n├── agent/      # loop, context builder (LOOM), router, tools, subagents\n├── channels/   # Telegram, Discord, WhatsApp, Signal, Feishu, DingTalk\n├── providers/  # OpenRouter + direct LLM providers\n├── bus/        # async message bus (decouples channels from the agent)\n├── cron/       # persistent scheduled tasks (croniter)\n├── heartbeat/  # proactive 30-minute checklist runner\n├── skills/     # bundled skills (github, weather, tmux, cron, summarize)\n├── session/    # JSONL conversation persistence\n└── cli/        # commands\n```\n\nWorkspace lives at `~/.pocketfox/`: config, sessions, logs, and the Markdown files\nthat get composed into your contexts.\n\n## Security\n\nFor anything beyond local play, set `tools.restrict_to_workspace = true` to sandbox\nfile/shell tools, and populate `allow_from` on every enabled channel. See `SECURITY.md`.\n\n## License\n\nMIT.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutfox%2Fpocketfox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutfox%2Fpocketfox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutfox%2Fpocketfox/lists"}