camofox-browser / rules
Cursor rule438 starsChanged 8 months agoMITView on GitHub
Common camofox-browser workflows and automation patterns
- Sends data out
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/001-camofox-core.mdcCursor rule
- .cursor/rules/010-cli-commands.mdcCursor rule
- .cursor/rules/020-api-endpoints.mdcCursor rule
- .cursor/rules/040-anti-patterns.mdcCursor rule
- .cursor/rules/050-cli-dev.mdcCursor rule
- .cursor/rules/060-routes-dev.mdcCursor rule
- .cursor/rules/070-search-macros-presets.mdcCursor rule
- camofox-browserSkill
- camofox-cliSkill
- dogfoodSkill
- gemini-imageSkill
- redditSkill
The file
Files
---
description: "Common camofox-browser workflows and automation patterns"
alwaysApply: true
---
# CamoFox Workflow Patterns
## 1) Basic Interaction Loop
```bash
camofox open https://example.com # open tab
camofox snapshot # get refs
camofox click e5 # click
camofox type e7 "hello" # type
camofox snapshot # refresh refs
```
## 2) Search Workflow
```bash
camofox open https://google.com # create tab
camofox search "camofox" --engine google # navigate to search results
camofox snapshot # inspect result refs
```
## 3) Login Workflow (Vault-Safe)
```bash
camofox auth save account --url https://service.com/login # store encrypted credentials
camofox open https://service.com/login # open login page
camofox snapshot # get username/password refs
camofox auth load account --inject --username-ref e5 --password-ref e9 # inject without stdout leaks
```
## 4) Pipeline Workflow
```bash
camofox run login-flow.txt # run file
camofox run login-flow.txt --continue-on-error # keep going after failures
echo "get-url" | camofox run - # stdin pipeline
```
## 5) API + curl Workflow
```bash
curl -X POST http://localhost:9377/tabs \
-H 'Content-Type: application/json' \
-d '{"userId":"agent1","sessionKey":"task1","url":"https://example.com"}'
curl "http://localhost:9377/tabs/<tabId>/snapshot?userId=agent1"
```
## 6) Session Restore Workflow
```bash
camofox session save before-login # save cookies
# ... close/restart ...
camofox session load before-login # restore cookies to tab
```
## 7) CAPTCHA / Visual Intervention Workflow
```bash
curl -X POST http://localhost:9377/sessions/agent1/toggle-display \
-H 'Content-Type: application/json' \
-d '{"headless":"virtual"}' # restart with noVNC
# solve challenge manually via returned vncUrl
curl -X POST http://localhost:9377/sessions/agent1/toggle-display \
-H 'Content-Type: application/json' \
-d '{"headless":true}' # return to headless
```
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

