Skip to content

lazyingart/AgInTiFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lachlan Chen banner

AgInTiFlow banner

AgInTiFlow

AgInTiFlow is AgInTi's website-control agent for browser automation, persistent chat, resumable runs, and guarded local tools.

What it keeps:

  • a small, explicit browser tool surface
  • a planning pass before execution
  • resumable local sessions
  • structured JSONL event logs
  • pre-tool guardrails
  • provider abstraction for OpenAI and DeepSeek
  • optional guarded shell commands for simple terminal inspection
  • optional Docker-backed shell sandboxing
  • lazy browser startup so browser work begins only when the model chooses a browser tool

Install

cd /home/lachlan/ProjectsLFS/Agent/AgInTiFlow
npm install
npx playwright install chromium

Run

CLI, OpenAI:

AGENT_PROVIDER=openai npm start -- "Open Hacker News and tell me the top 3 titles"

CLI, DeepSeek:

AGENT_PROVIDER=deepseek npm start -- "Open GitHub and summarize the landing page"

Web UI:

npm run web

Web UI with Docker-backed shell sandbox enabled:

npm run web

Then enable Use Docker sandbox in the form. This affects run_command only. Browser automation still runs on the host Playwright browser.

Start from a URL:

npm start -- --start-url https://news.ycombinator.com "Summarize this page"

Resume an earlier run:

npm start -- --resume your-session-id

Docker Bootstrap

Ubuntu helper script:

./scripts/install-docker-ubuntu.sh

If you run it as root and want Docker available to a regular user without sudo, set the target user explicitly:

DOCKER_TARGET_USER=lachlan ./scripts/install-docker-ubuntu.sh

The script installs Docker Engine from Docker's official Ubuntu repository, enables the services, and adds the target user to the docker group. After it finishes, open a new login shell or run newgrp docker before testing non-root access.

Useful Environment Variables

AGENT_PROVIDER=openai
LLM_MODEL=gpt-5.4-mini
MAX_STEPS=15
HEADLESS=false
ALLOWED_DOMAINS=news.ycombinator.com,github.com
ALLOW_PASSWORDS=false
ALLOW_DESTRUCTIVE=false
ALLOW_SHELL_TOOL=false
USE_DOCKER_SANDBOX=false
DOCKER_SANDBOX_IMAGE=agintiflow-sandbox:latest
COMMAND_CWD=/home/lachlan/ProjectsLFS/Agent

Defaults:

  • OpenAI: OPENAI_API_KEY, https://api.openai.com/v1, gpt-5.4-mini
  • DeepSeek: DEEPSEEK_API_KEY, https://api.deepseek.com/v1, deepseek-chat

Web UI

The web UI runs at http://127.0.0.1:3210 by default. It gives you:

  • provider dropdown: OpenAI or DeepSeek
  • editable model field
  • goal, start URL, allowed domains, and working directory inputs
  • toggles for shell tool, headless mode, passwords, and destructive actions
  • optional Docker sandbox toggle and image selection for shell commands
  • live run logs via polling

Behavior note:

  • Start URL is a suggestion, not an automatic navigation
  • if the shell tool can satisfy the prompt, the agent can stay browser-free for the whole run
  • when Use Docker sandbox is enabled, run_command executes in a local Docker container with no network and the selected working directory mounted at /workspace
  • headless mode defaults to true in the web UI

Session Artifacts

Each run stores state in .sessions/<session-id>/:

  • state.json for resumable conversation state
  • plan.md for the execution plan
  • events.jsonl for structured logs
  • storage-state.json for browser session persistence
  • artifacts/step-XXX.png screenshots
  • artifacts/step-XXX.snapshot.json DOM snapshots

Safety Model

This agent is intentionally conservative:

  • optional domain allowlist
  • blocks password typing unless explicitly enabled
  • blocks destructive click targets unless explicitly enabled
  • blocks shell commands outside a small read-only allowlist
  • records every tool request and result

That makes it suitable for internal tools, dashboards, research, and browsing workflows before you move to full computer-use agents.

About

AgInTiFlow is AgInTi’s website-control agent for browser automation, persistent chat, resumable runs, and guarded local tools.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors