forked from smallcloudai/refact
-
-
Notifications
You must be signed in to change notification settings - Fork 4
Integrations PostgreSQL
refact-planner edited this page Jun 7, 2026
·
1 revision
Run PostgreSQL queries from Refact Agent.
The PostgreSQL integration exposes the postgres tool to the agent. It runs one SQL query per tool call through psql using the connection settings configured in Refact.
Configure:
- Host and port: where PostgreSQL is reachable.
- User, password, and database: connection credentials and target database.
-
psql path: optional path to the
psqlbinary; leave empty to usepsqlfromPATH.
Values can reference variables or secrets so credentials do not need to be written directly into prompts.
- Each tool call runs a single query.
- Queries time out after a short fixed timeout.
- Large result sets and long cells are truncated before being returned to chat.
- Errors from
psqlare shown to the agent for debugging.
Configure confirmation rules for write queries, schema changes, or maintenance commands. The default configuration asks before commands that are not simple SELECT-style reads; adjust it to fit your environment.
Refact on GitHub: https://github.com/JegernOUTT/refact
- Agent Modes
- Agent Tools
- Task Planner & Cards
- Worktrees
- Subagents
- Memory & Knowledge
- Hidden Roles & Plans
- Context Compression
- Scheduler & Cron
- Processes & PTY
- Buddy
- MCP
- Skills, Commands & Hooks
- Marketplace
- Chat System
- Providers
- Caps & Models
- Code Completion (FIM)
- AST
- VecDB
- Exec Runtime
- HTTP API
- Checkpoints & Git
- Voice