Skip to main content

Fridica

Fridica answers Slack threads as you and delegates work to Claude Code or Codex on your machines. One daemon represents one Slack account. Its local parent agent decides when to reply and what to delegate. Each thread keeps its own conversation, decisions and workers, so a follow-up can continue a job on the same machine.

Install

On the daemon machine, use macOS or Linux with Python 3.11 or newer. In a Python virtual environment, install Fridica and create its configuration.

python -m pip install fridica
fridica init

For an isolated command-line installation, use pipx install fridica in place of the pip command. The wheel includes the native CLI and its credential helper. To install the version in this checkout, run python -m pip install . from the repository root with Rust 1.88 or newer.

fridica init creates four files under ~/.config/fridica/:

File What to do with it
config.toml Set the Slack identity, channels, backends and workspaces.
manifest.yaml Import it when creating your Slack app.
contract.md Customize how Fridica participates, replies and delegates.
secrets.yml Use this optional mapping if your deployment uses Summon.

For an existing installation with legacy state, stop the daemon, back up its configuration and database, and preview the migration with fridica migrate --dry-run before running fridica migrate.

Prepare the machines

  • Daemon: Install and sign in to the parent backend on this machine. The default is Claude Code. To use Codex, set backend = "codex" under [parent].
  • Workers: Install and sign in to every backend listed for that machine. Fridica's helpers use /usr/bin/python3. On SSH machines, the account must be reachable without a prompt, and the backend commands must be on its noninteractive PATH. Install Fridica there too when using the bundled GitHub or alphaXiv tools.

Backend installation guides: Claude Code and Codex CLI.

Linux worker sandbox

Install bubblewrap on every Linux worker host, including Codex-only hosts. Install socat as well if the host runs Claude. Use sudo apt install bubblewrap socat on Debian or Ubuntu, or sudo dnf install bubblewrap socat on Fedora.

Run Fridica’s sandbox check on the worker host as the worker user. Success produces no output and exits with status 0.

bwrap --unshare-user --unshare-net --ro-bind / / --dev /dev --proc /proc --die-with-parent -- /bin/true
Ubuntu 24.04 and later: AppArmor blocks user namespaces

If the check fails with a UID map or loopback permission error, run these on the affected host:

command -v bwrap
sysctl kernel.apparmor_restrict_unprivileged_userns

If the path is /usr/bin/bwrap and the setting is 1, check the AppArmor profile for that executable. If the profile is missing, create /etc/apparmor.d/bwrap with the following contents. Preserve any existing site-specific rules.

abi <abi/4.0>,
include <tunables/global>

profile bwrap /usr/bin/bwrap flags=(unconfined) {
  userns,
  include if exists <local/bwrap>
}

Run sudo systemctl reload apparmor and repeat the sandbox check as the worker user. AppArmor setup for bubblewrap

Configure Slack

  1. In Slack app management, choose Create New App → From an app manifest, select your workspace and import the generated manifest.yaml. Use one app per owner. The manifest enables Socket Mode and subscribes to messages in public channels.

  2. Under Basic Information → App-Level Tokens, generate an xapp- token with connections:write. For private channels, also add the groups:read and groups:history user token scopes and the message.groups user event before installing the app.

  3. Under OAuth & Permissions, install the app to your workspace as the person Fridica will represent. Copy the xoxp- User OAuth Token. That account must belong to each channel you configure.

  4. As the OS user who will run the daemon, run fridica doctor to see which tokens are available and whether Slack accepts them. You can run it before fridica init. The starter configuration automatically uses existing environment or keyring tokens. Store only missing tokens, then select your channels:

    fridica secret set slack/app-token
    fridica secret set slack/user-token
    fridica configure --detect
    

Detection reads your Slack identity and joined channels. For unattended setup, repeat --channel-name NAME with --detect. By default, any member of a configured channel can request work on your machines. Set [slack].delegate_channels to the channel IDs where you want to allow delegation. Fridica supports public and private channels. Shipped Slack manifest

If your installed CLI lacks the secret command, set SLACK_APP_TOKEN and SLACK_USER_TOKEN in your environment before running fridica configure --detect.

The generated configuration uses macOS Keychain or Linux Secret Service. On Linux, the daemon needs a user D-Bus session with an unlocked keyring. When using environment variables, supply them to the daemon process as well. They take precedence over stored entries. To rotate a stored token, repeat its secret set command and restart the daemon.

fridica secret set slack/app-token stores the token as a generic password in macOS Keychain or as a secret in the default Linux Secret Service collection (such as GNOME Keyring). Both use the current OS username as the account, fridica:fridica/slack/app-token as the service, and the token as the password. The entry has no website. Running secret set on an older Fridica entry moves it to this format.

fridica secret get slack/app-token writes the token to stdout. Both this command and the fridica-secret provider check the corresponding environment variable first (SLACK_APP_TOKEN, SLACK_USER_TOKEN, or FRIDICA_GITHUB_TOKEN for github/read-prs). For a custom token, use fridica secret get example/api-token --env EXAMPLE_API_TOKEN. If the variable is unset, Fridica reads the stored password.

Configure machines

Edit the existing tables in config.toml. Choose only the backends installed on each machine and point each workspace at an existing directory. The starter lists both Claude and Codex and uses ~/project as a placeholder. For example, a local Codex installation with one checkout can use:

[parent]
backend = "codex"

[machines.local]
transport = "local"
backends = ["codex"]

[machines.local.workspaces]
project = { path = "~/repos/my-project", subfolders = false }

To add an SSH machine, give it a host alias and at least one workspace. Tags let the parent place a request such as “run this on a CUDA machine.”

[machines.gpu]
transport = "ssh"
host = "gpu-box"
backends = ["codex"]
tags = ["cuda"]
resources = { gpus = [0] }
max_jobs = 1

[machines.gpu.workspaces]
experiments = "/data/experiments"

The generated template documents machine limits, load-aware placement, GPU confinement and policy overrides. Use local or SSH transport for jobs. Slurm entries can be configured, but job execution is unimplemented. Configuration template

Workspaces and permissions

  • Writable workspaces normally give each slot its own worker1/, worker2/, and so on. Set subfolders = false for a shared checkout. Jobs there can touch the same files. In managed slot directories, Fridica cleans old scratch files before reuse. Place .fridica-keep in a directory to preserve its subtree.
  • Set [policy].mode to read-only, write or full and override it per machine or workspace as needed. For Codex's ordinary sandbox, a nonempty network list enables general network access. GPU confinement uses the host network and bounds filesystem writes. Declared GPUs are assigned by job slot.
  • approvals = "auto" uses the backend reviewer. Choose on-request for owner decisions on escalation, untrusted for more frequent prompts, or never to deny escalation. Pending requests appear in the dashboard and in fridica approvals.
  • For scoped access to a public GitHub ref, configure fetch_repos, network = [] and approvals = "on-request" on a writable workspace without GPU confinement. The worker receives a bare repository and the fetched commit SHA.
  • To use an existing Python virtual environment for worker commands and MCP servers, set python_env = "~/pyenv" in the machine table. Fridica activates it on the execution machine.

Run

fridica doctor
fridica start

doctor checks configuration, credentials, backend sign-in, workspaces and sandbox prerequisites. start runs in the foreground, verifies Slack access and begins answering threads. Use Ctrl-C to stop it.

To do this Run
Check startup prerequisites without connecting to Slack fridica start --check-ready
Record Slack intake without calling models, starting workers or posting replies fridica start --observe-only
Print a Linux systemd user unit for the configured daemon fridica service-print

In Slack

Mention the owner in a configured channel and ask for work in a named workspace. For the example workspace above, ask “Run the tests in the project workspace and summarize the failures.” Reply in the same thread to refine the request. The parent can reuse a worker, delegate to several machines, or ask for clarification. Set [slack].general_messages = false to turn off unsolicited participation in general conversation.

The parent reads thread history, selected text attachments and worker summaries. It can pass Slack files to a worker as read-only inputs. Workers report results, progress and requested artifacts back through the daemon. The Slack app needs files:read to download attachments and files:write to upload reports and figures.

Customize the owner's voice and delegation rules in contract.md beside the configuration. Keep the required ## Participation and ## Replies headings. Use ## Delegation for parent instructions and ## Worker reports for instructions given to workers. Default contract

When a thread links a GitHub issue or pull request, the daemon reads up to three links per call through gh api. The parent receives the title, state and selected status lines. Pull requests also include the head commit, checks and reviews. Replies may repeat private repository information, so give the reader access only to repositories those channels may see.

The daemon can use its existing GitHub CLI credentials. A new configuration automatically selects an existing github/read-prs keyring entry. To add a dedicated read-only credential after initialization, run fridica secret set github/read-prs and enable the token line in the existing table:

[github]
enabled = true
token = "keyring://github/read-prs"
cache_seconds = 60

Fridica supplies the resolved secret to its gh process as GH_TOKEN. No interactive login is required. If present, the legacy FRIDICA_GITHUB_TOKEN variable overrides the keyring entry. Set enabled = false to disable these lookups.

Worker integrations

GitHub. The bundled GitHub MCP server is enabled by default for eligible local and SSH workspaces with GitHub network access. Read-only workspaces expose read tools. Writable workspaces can also publish reviews, comments and task-branch changes. Enabling these tools authorizes their use without a second Fridica approval. GitHub enforces the worker credential's repository permissions and branch protections. Scoped-fetch placements receive no GitHub MCP server.

Authenticate as the worker's execution user with gh auth login --hostname github.com, or provide a worker GH_TOKEN. The daemon's dedicated GitHub reader secret stays with the daemon. Set [github.mcp].enabled = false to disable worker GitHub tools.

alphaXiv. Set [alphaxiv].enabled = true, allow api.alphaxiv.org in the workspace network policy, and provide ALPHAXIV_TOKEN to the daemon. On an authenticated worker, fridica alphaxiv-mcp --probe checks tool discovery without running a search.

Worker credentials. Local workers inherit a filtered daemon environment. SSH workers receive integration credentials over encrypted SSH stdin, including variables such as GH_TOKEN, ALPHAXIV_TOKEN and AWS_SECRET_ACCESS_KEY, plus explicitly named MCP credentials. Forwarded values take precedence over target-local values. Fridica filters configured daemon secrets and Slack credentials before launching agents. Credential forwarding rules

Dashboard and CLI

With the daemon running, open a second terminal and run fridica dashboard. Open the printed loopback URL on the same machine. The dashboard shows thread conversations, worker relationships and job history. You can send instructions, decide approvals and retry failed posts there.

Dashboard showing a parent and three workers on two servers

Task Command
Check current activity fridica status, fridica threads, fridica workers, fridica machines
Follow the event feed fridica events --follow
List outstanding mentions fridica obligations
Send a thread an instruction fridica instruct THREAD_ID "Run the tests again"
Decide a pending approval fridica approvals ID once (also session or deny)
Retry a failed parent decision fridica threads THREAD_ID retry
Inspect failed or ambiguous posts fridica outbox
Search archived threads fridica archive search "test failures"

The CLI and dashboard reach the daemon over its owner-only Unix socket. Use fridica --help for all commands. Local integrations can follow the event feed or drive a thread through the control API. Events · External drivers

State and recovery

Fridica stores messages, thread state, jobs and outgoing posts in SQLite. It records incoming Slack events before acknowledging them and commits each thread turn's effects together. After a restart, catch-up recovers missed messages and interrupted jobs are reported to their threads. Set [limits].auto_resume = true to rerun interrupted jobs once.

If delivery to Slack is uncertain, the post becomes ambiguous. Check the Slack thread before using fridica outbox ID to retry. Finished, quiet threads move to weekly archives beside the database after state.archive_after_days (default 7). A new message in an archived thread restores its history.

Development

The daemon is written in Rust. Its Python distribution packages the executables with Maturin. From a source checkout, run:

cargo test --locked --all-targets
cargo test --locked --doc
python -m pip install -r requirements-dev.txt
python -m pytest -q
node --test tests/dashboard*.cjs

Build a wheel with maturin build --release --locked --out dist. The wheel smoke test exercises the installed command-line tools. Wheel smoke test · CI workflow

License

MIT

Metadata

Release files for fridica 0.10.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fridica 0.10.2
File Size Uploaded Provenance Actions
fridica-0.10.2.tar.gz 3.0 MB Without provenance Details for fridica-0.10.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for fridica 0.10.2
File Actions
fridica-0.10.2-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for fridica-0.10.2-py3-none-manylinux_2_28_x86_64.whl
fridica-0.10.2-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for fridica-0.10.2-py3-none-manylinux_2_28_aarch64.whl
fridica-0.10.2-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for fridica-0.10.2-py3-none-macosx_11_0_arm64.whl
fridica-0.10.2-py3-none-macosx_10_13_x86_64.whl Python 3 none macOS 10.13+ x86-64 Details for fridica-0.10.2-py3-none-macosx_10_13_x86_64.whl

Total release size: 60.9 MB

Release files / fridica-0.10.2.tar.gz

Download URL fridica-0.10.2.tar.gz
Size 3.0 MB
Tags Source
SHA-256 checksum
How to use checksums
99a07339293f878e0f9ab50fb27f2623c328902c9c4a31651aaa76e14f402ec5
BLAKE2b-256 checksum
How to use checksums
ccd8b29f206d89a856190a4d95ec8ceacb97c817a21f07011063dc53eea509bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fridica-0.10.2-py3-none-manylinux_2_28_x86_64.whl

Download URL fridica-0.10.2-py3-none-manylinux_2_28_x86_64.whl
Size 16.6 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
5bf6a7f1b915ffaf626ef5178c5d2f2971b07dedbd2c060eafb6f3761feac668
BLAKE2b-256 checksum
How to use checksums
990e947adfb3d7b0959ee0547611dd77f1baf1b088c82d58bce175dd9172c078
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fridica-0.10.2-py3-none-manylinux_2_28_aarch64.whl

Download URL fridica-0.10.2-py3-none-manylinux_2_28_aarch64.whl
Size 15.0 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
9db14c938a00d724abebf792a2897c6fee9e7a4ea9c40cfcdc178515bc6ff2bf
BLAKE2b-256 checksum
How to use checksums
828b215526d59d6781d9acff14589a210cc40fc1fec297c66172e2ae88b5fc7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fridica-0.10.2-py3-none-macosx_11_0_arm64.whl

Download URL fridica-0.10.2-py3-none-macosx_11_0_arm64.whl
Size 12.9 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9beea42ce2a6e78a96055645b322f8fa7f231f59fee9b56ef42b5716ac293c25
BLAKE2b-256 checksum
How to use checksums
b84ec619ab64f3ac3b2cfa2d6d9181405711d281692c79e01031ccd7a940c79d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / fridica-0.10.2-py3-none-macosx_10_13_x86_64.whl

Download URL fridica-0.10.2-py3-none-macosx_10_13_x86_64.whl
Size 13.5 MB
Tags Python 3 macOS 10.13+ x86-64
SHA-256 checksum
How to use checksums
97775aaf9ccfcf5537569fda7f2c5c3ea83a42a34677843dae2b62ea81e94c19
BLAKE2b-256 checksum
How to use checksums
456cee5e8d727c430252edcb0b44436cb87a740bde3904a4f620d52b5fd2d3f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for fridica 0.10.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.10.2 This release

5 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page