Agent 24
Agent 24 is an open-source AI assistant for Android. It writes and edits code, runs shell commands, works with files and documents, searches the web and finishes multi-step tasks — end to end, from your phone.
Agents
Build, plan, explore, scout and general agents, each with its own permission profile — plus system agents that run automatically.
Tools
31 tools: shell, files, search, web, git, documents, PDF, vision, device sensors and scheduling.
Permissions
Allow, ask or deny every tool — per agent. Nothing runs without the policy you set.
Providers
12 pre-configured model providers with capability flags, retries and automatic fallback.
Skills
Loadable instruction packs — including a built-in design-style system for UI builds.
Privacy
No account, no registration. Chat history and API keys never leave your device.
Quick start
- Install the APK from GitHub Releases and open Agent 24.
- Connect a provider with
/connect— free models work with zero setup. - Pick a model —
/model. - Describe the task in plain language. The agent takes it from there.
Getting Started
From install to your first completed task in about three minutes.
1. Install
Download the latest APK from GitHub Releases, install it and open the app. When prompted, grant the accessibility permission — it is required for screen understanding and UI dumping. No account or sign-up is needed.
2. Connect a provider
Run /connect and choose one of the 12 pre-configured providers (see Providers). Free-tier models are available out of the box; paid providers only need an API key, entered once and stored in the Android Keystore.
3. Choose a model
/model lists every model of the connected provider together with its capability flags: supportsTools, supportsImages, supportsReasoning and supportsStreaming.
4. Start working
Describe the task in natural language — in English, Bangla or Banglish:
> build a calculator app with history > find every TODO in src/ and summarize > refactor utils.js and run the tests > make me a PDF invoice from this data
Keyboard
| Key | Action |
|---|---|
/ | Open the command palette |
Esc | Close overlay / cancel |
Agents
Selectable primary and sub-agents, plus system agents that trigger automatically.
| Agent | Mode | Permissions | Description |
|---|---|---|---|
| build | primary | *: allow | Default agent, full tool access |
| plan | primary | edit: ask, bash: ask | Read-only analysis, confirms edits |
| general | subagent | *: allow | General-purpose multi-step tasks |
| explore | subagent | read-only set | Fast codebase exploration |
| scout | subagent | read/web only | External docs & dependency research |
System agents
| Agent | Trigger | Purpose |
|---|---|---|
| compaction | Tokens > 80% | Context summarization |
| title | First message | Session title (3–5 words) |
| summary | Session switch | Conversation summary |
Permission matrix
| Tool | build | plan | general | explore | scout |
|---|---|---|---|---|---|
| read | allow | allow | allow | allow | allow |
| edit / write | allow | ask | allow | deny | deny |
| bash | allow | ask | allow | allow | allow |
| grep / glob / list | allow | allow | allow | allow | allow |
| webfetch / websearch | allow | allow | allow | allow | allow |
| todowrite | allow | allow | deny | deny | deny |
| task / question | allow | allow | allow | deny | deny |
allow = runs silently · ask = confirmation popup · deny = blocked
Tools
31 built-in tools. Every tool receives a JSON parameter map and passes through the permission layer first.
Terminal & shell
| Tool | Description |
|---|---|
bash | Execute shell commands |
shell | Persistent shell sessions |
Files
| Tool | Description |
|---|---|
read | Read file contents |
write | Create or overwrite files |
edit | Find & replace edits |
diff | Unified diff preview |
apply_patch | Apply unified patches |
archive | Zip / tar create & extract |
list | List directory contents |
Search
| Tool | Description |
|---|---|
grep | Regex content search |
glob | Find files by pattern |
Web
| Tool | Description |
|---|---|
webfetch | Fetch URL content |
websearch | Search the web |
Agent & workflow
| Tool | Description |
|---|---|
task | Delegate to subagents |
skill | Load specialized skills |
question | Interactive multi-choice prompts |
todowrite / todoread | Task list management |
git | Git status, diff, commit, branch, log |
memory | Long-term memory across sessions |
schedule | Timed commands via alarms |
Documents
| Tool | Description |
|---|---|
pdf | Read / extract PDF text |
pdf_edit | Edit existing PDFs |
pdf_maker | Generate PDF documents |
docx_maker | Generate Word documents |
cv_maker | Generate a CV as PDF |
Vision & device
| Tool | Description |
|---|---|
image_analyze | OCR & structure analysis |
image_describe | Describe images for the model |
screenshot | Capture device screenshots |
ui_dump | Dump the UI hierarchy |
sensor | Device sensors & hardware control (torch, vibrate, brightness, Wi-Fi…) — root when available |
Execution flow
user action → check permission rules → deny → blocked immediately → ask → confirmation popup → wait for user → allow → action runs
Example calls
bash { "command": "ls -la" }
read { "file_path": "/path/to/file" }
edit { "file_path": "...", "old_string": "find", "new_string": "replace" }
grep { "pattern": "regex", "path": "/dir", "include": "*.md" }
task { "description": "...", "prompt": "...", "subagent_type": "explore" }Commands
25+ slash commands for session and workflow control.
| Command | Description |
|---|---|
/new | Start a new session |
/clear | Clear chat messages |
/sessions | Show the session list |
/model | Change the AI model |
/connect | Connect a provider |
/build /plan | Switch agent mode |
/init | Initialize a project |
/cwd [path] | Show or set the session working directory |
/diff | Show the real git diff |
/undo /redo | Undo / redo the last tracked file change |
/fork | Duplicate the session into a copy |
/review | Code review |
/component | Create a component |
/compact | Summarize context (chat history stays) |
/share | Share via the Android share sheet |
/skills | List skills |
/agents | List agents |
/theme | Change theme (picker dialog) |
/test | Run the project's test suite |
/export /import | Export / import a session |
/help | Show help |
Permissions
Every tool call passes through the permission layer before it executes.
Permission keys
| Key | Gates |
|---|---|
read | read |
edit | write, edit, apply_patch |
bash | bash, shell |
glob / grep / list | respective tools |
task | task |
external_directory | any tool outside the workspace |
todowrite | todowrite, todoread |
webfetch / websearch | web tools |
skill / question | skill, question |
doom_loop | stuck-agent recovery |
Values
| Value | Behavior |
|---|---|
| allow | Execute without asking |
| ask | Show a popup, wait for the user's decision |
| deny | Block execution entirely |
Evaluation order
- Check the agent-specific permission for the tool name.
- Check the wildcard (
*) permission. - Default: allow for build, ask for plan.
Providers
12 pre-configured providers with capability flags, retries and automatic fallback. Bring your own key where needed — free options work with zero setup.
| Provider | What you get |
|---|---|
| OpenCode Zen | Free-tier models with zero setup — the quickest way to start |
| OpenAI | The GPT family, with tool calling and vision on supported models |
| Anthropic | The Claude family, strong at long-context coding tasks |
| Google Gemini | The Gemini family, with large context and multimodal input |
| DeepSeek | DeepSeek V4 models, cost-efficient coding |
| Groq | Extremely fast inference for open models |
| xAI | The Grok family |
| Meta | Llama models through a custom OpenAI-compatible endpoint |
| Alibaba (Qwen) | The Qwen family over an OpenAI-compatible endpoint |
| Ollama | Models running locally on your own network — fully offline |
| LM Studio | Local desktop models — fully offline |
| GitHub Copilot | Your Copilot subscription, if you already have one |
Model capabilities
| Flag | Description |
|---|---|
supportsTools | Tool calling |
supportsImages | Image processing |
supportsReasoning | Thinking / reasoning display |
supportsStreaming | SSE streaming |
Error handling
| HTTP | Type | User message |
|---|---|---|
| 401 | Authentication | Invalid API key. Check Settings → Models. |
| 402 | Payment | Quota exhausted. Add credits or switch provider. |
| 403 | Access denied | No permission for this model. |
| 404 | Not found | Model not available. Try another. |
| 429 | Rate limit | Too many requests. Wait and retry. |
| 5xx | Server error | Provider unavailable. Retrying… |
Retry policy: up to 3 attempts with exponential backoff (2s → 4s → 8s; for 429: 5s → 10s → 15s). A failing free-tier model is automatically retried once on a backup model, with a notice in the reply.
Settings
Runtime configuration lives in ~/.config/agent24/ and can be edited with any file manager.
| Path | Purpose |
|---|---|
agent24.json | Main configuration file |
AGENTS.md | Base system prompt / instructions |
env | User secrets (API keys) |
agents/ | Agent prompt files |
skills/ | Skill definitions |
commands/ | Custom slash commands |
prompts/ | Custom prompts |
Useful toggles
show_reasoning— thinking card visibilityauto_summarize— auto-summary on session switchcompaction_threshold— token % that triggers compaction (default 80)- Reply language — mirror the user's language, or force one language
- Theme — change with
/theme(picker dialog)
Skills
Markdown instruction packs loaded into the system prompt on demand.
Location
~/.config/agent24/skills/<name>.md
Usage
Load with the skill tool, or just ask — the agent pulls the file into context:
{ "tool": "skill", "params": { "name": "glassmorphism" } }Bundled skills
| Skill | Purpose |
|---|---|
settings-customization | How to modify configuration safely |
design-styles | Selector & heuristic over the design corpus |
minimalism … maximalism | 10 self-contained UI design styles (bento-grid, glassmorphism, liquid-glass, claymorphism, brutalism, neumorphism, skeuomorphism, spatial-ui and more) |
When you ask the app to build any UI, the agent first asks you to pick one of the 10 design styles (or describe your own) and then follows that skill for the whole build. List everything with /skills.
Structure
- One markdown file per skill (or a directory with
SKILL.md) - Loaded skills are listed at the bottom of the system prompt
- User-edited skill files are never overwritten by app updates
MCP
Model Context Protocol — connect external tool servers to extend the agent.
Registering a server
{
"server": "my-server",
"instructions": "shown to the model in the system prompt",
"tools": [ { "name": "create_issue", "inputSchema": { ... } } ]
}Naming
MCP tools are prefixed with mcp_{serverName}_{toolName} so they never collide with built-ins:
mcp_github_create_issue mcp_slack_send_message
Flow
- The server registers tools and instructions.
- Instructions join the system prompt.
- Tool definitions join the API tool list.
- A model call to
mcp_*is routed to the server.
Hooks
Deterministic events that fire on session and tool lifecycle — no model involved.
| Event | When |
|---|---|
| session.created | New session starts |
| session.loaded | Existing session opened |
| session.deleted | Session removed |
| session.renamed | Title changed |
| message.before_send | User message leaves the input |
| message.after_response | Agent response completed |
| tool.before_execute | Before a tool runs (can block) |
| tool.after_execute | After a tool returns |
| permission.requested | Permission popup shown |
Typical uses: telemetry, auto-backup before edits, audit logging and custom notifications.
Sessions
Every conversation is an isolated session with its own database.
Lifecycle
startNewSession() → id "session_" + timestamp → metadata → session DB → event loadSession(id) → set current → load messages → update timestamp → event deleteSession(id) → drop DB + folders + metadata → clear memory → event
Storage
| Database | Path |
|---|---|
| Session DB | ~/.local/share/agent24/sessions/{id}/session.db |
| Global DB | ~/.local/share/agent24/databases/agent24_global.db |
Auto features
| Feature | Trigger |
|---|---|
| Auto-title | First user message → 3–5 word title |
| Auto-summary | Session switch → conversation summary |
| Auto-compaction | Tokens > 80% → summarize & compact |
| Auto-queue | Session busy → queue, then drain |
If the session is busy, messages wait in a queue and show Queued (N pending) — they run right after the current task completes.
Troubleshooting
| Symptom | Fix |
|---|---|
| 401 errors | Re-enter the API key: Settings → Models, or /connect |
| 429 rate limit | Wait — automatic backoff 5s / 10s / 15s — or switch provider |
| Model not responding | Try another model with /model; a free fallback is offered automatically |
| Agent stuck in a loop | The doom_loop permission triggers recovery |
| Context too long | Run /compact — chat history stays |
| UI dump fails | Enable the accessibility service, then retry ui_dump |
| Command not found | /help lists commands; custom ones live in ~/.config/agent24/commands/ |
| Session feels slow | Check the queue; switch to a faster model with /model |
Privacy Policy
Effective 10 October 2026 · Version 2.0 · Privacy contact: GitHub Issues
This is the privacy policy of Agent 24 ("the app"), an open-source Android application. It explains what user data the app accesses, collects, uses, handles and shares; with whom; and what control you have. The same policy is available inside the app (first-launch consent screen and Drawer → Privacy Policy). We do not sell personal or sensitive user data. Your conversations never pass through servers run by the project.
Consent
On first launch the app shows this policy and asks for your consent before anything is collected. You must tap I Agree & Continue to proceed. Android runtime permissions (accessibility, camera and similar) are requested only when a feature you choose actually needs them.
Data the app handles
| Data | Where it lives | Why | Shared with |
|---|---|---|---|
| Chat history | On-device SQLite, app-private storage | Conversation context and export | Never, unless you export it yourself |
| AI API keys | Android Keystore + AES-256-GCM | Authenticate with your chosen provider | Only that provider |
| Your prompts and conversation context | Sent to the provider you selected | To obtain a model reply | Only that provider — its privacy policy governs the transfer |
| Files you open or create | The folders you choose on your device | Task execution | Never, unless you export or share them |
| Screenshots, UI dumps, sensor readings (including location where the device allows it) | Collected only while a session runs and only when you request a task that needs them | To complete that task; results may be sent to your chosen AI provider as tool output | That provider only; never linked to device identifiers |
| Device and compatibility information | On-device | Crash diagnosis | Never uploaded unless you opt in |
| Crash logs / usage analytics | On-device, opt-in, off by default | Bug fixing | Only if you choose to send them |
No account. No registration. No advertising identifier. No data broker.
Persistent device identifiers
The app does not collect or use IMEI, IMSI, SIM serial numbers, the Android Advertising ID (AAID) or the App Set ID, and does not link any persistent device identifier to personal or sensitive user data or to resettable device identifiers.
What is sent to AI providers
When you send a message, the app forwards the message text, conversation context and any tool results the model requested to the provider you selected in Settings → Models, over TLS. Each provider's own privacy policy governs that transfer. The project does not relay conversations through its own servers. Removing your API key (Settings → Models → Remove) stops all further calls.
Third-party code and advertising
Components bundled with the app (PDF processing, on-device OCR, the terminal runtime) operate entirely on your device. No embedded SDK sells personal or sensitive user data from this app. When advertisements are shown, they are delivered through the project's own signed remote configuration — no third-party advertising SDK is embedded, no advertising identifier is collected, and no cross-app advertising profile is built.
Security measures
| Layer | Protection |
|---|---|
| API keys at rest | Android Keystore + AES-256-GCM (hardware-backed where available) |
| Chat database | App-private storage, readable only by this app |
| Network | HTTPS / TLS with certificate pinning |
| APK integrity | Dex fingerprint + certificate pinning + native self-test |
| Remote configuration | Ed25519-signed payloads, verified before use |
| Root / hook detection | Warns only — never uploads anything |
Retention and deletion
Your data stays on your device for as long as you keep it. The project retains nothing on its own servers, and no account exists — so there is no server-side copy to delete. You can delete everything at any time:
- In-app: Settings → Delete All Data
- Full removal: uninstall the app — app-private data is removed with it
- Keep a copy: Settings → Export Data (Markdown / JSON) before deleting
Your rights
| Right | How |
|---|---|
| See your data | Settings → Export Data (Markdown / JSON) |
| Delete your data | Settings → Delete All Data, or simply uninstall |
| Stop analytics | Settings → Privacy → Analytics off (default is off) |
| Remove API keys | Settings → Models → Remove |
| Withdraw consent | Uninstall — no server-side copy exists |
If you are in the European Union, the United Kingdom or Switzerland, you may also exercise the rights granted by applicable data-protection law (including access, rectification, erasure, restriction and objection) through the contact channels below. The app processes personal data only for purposes reasonably expected by you — completing the tasks you request — and does not sell it.
Children
Agent 24 is not directed at children under 13, and the project does not knowingly collect data from them. Recommended content rating: 13+.
Changes to this policy
Material changes are posted on this page with an updated date and a new version number. The in-app copy asks for your consent again after a version change. Continued use after a change means acceptance.
Contact
Privacy enquiries, requests and security reports are handled through the project's GitHub:
- Privacy enquiries: GitHub Issues
- Security reports: GitHub Security Advisories (private reporting)
- Repository: github.com/FoysalAhammad/agent24
Effective: 10 October 2026 · Version 2.0 · License: MIT · This policy applies to the Agent 24 app and the documentation site you are reading.