Skip to main content

A lightweight local-LLM terminal agent (llama.cpp / ollama).

Project description

falamus

An agent framework for LLMs (llama.cpp / ollama / …) with a set of built-in tools and MCP support.

Install

pip install .            # from source (Python 3.9+)
falamus --set-provider   # choose the model source (see Configuration)
falamus                  # run in a working directory

Built-in tools

  • Filesread_file / write_file / append_file / edit_file / list_dir
  • Shellrun_command (one-off), and an opt-in persistent interactive shell (shell_open / shell_input / shell_close; see Safety)
  • Imagesview_image
  • Coordinationspawn_subagent (delegate a step), deliver (return a result), memo (private notes)

Use external MCP servers (MCP client)

Add any MCP server; its tools appear in the agent's toolbox as <server>__<tool>:

falamus --add-mcp <name> -- <command>    # e.g.  --add-mcp time -- mcp-server-time
falamus --list-mcp
falamus --remove-mcp <name>

Stored in ~/.config/falamus/mcp_servers.json (standard mcpServers shape). An external tool call is confirmed each time.

Configuration

falamus --set-provider   # model source: a LOCAL server (llama.cpp/ollama) or a CLOUD backend
falamus --config         # interactive settings menu

Run as an MCP server

falamus --mcp     # MCP over stdio (the client spawns it — no port, no daemon)
  • One connection = one session. The caller may tune safe params (depth, iteration caps, thinking) but not capability/security ones (shell, allowed paths, working directory, model) — those are fixed by your local config.
  • Dangerous actions are routed to the caller for confirmation (or auto-approved within the fixed config); the destructive blacklist always applies; every tool call is written to an audit log.
  • For a remote caller, wrap it in SSH (stdio carries across machines — still no port).

Safety

falamus is not sandboxed: it runs shell commands and edits files with your own privileges. The destructive-command blacklist, confirmations and path-allowlist are guardrails, not a sandbox — run it in a trusted directory on a trusted task.

  • The persistent interactive shell is off by default (POSIX only). On Windows it is unavailable and stays silently off; enabling it there just prints a warning.
  • Exposing an MCP server lets the caller read any file you can — expose it only to a trusted caller.

License

MIT — see LICENSE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

falamus-1.0.3.tar.gz (120.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

falamus-1.0.3-py3-none-any.whl (139.0 kB view details)

Uploaded Python 3

File details

Details for the file falamus-1.0.3.tar.gz.

File metadata

  • Download URL: falamus-1.0.3.tar.gz
  • Upload date:
  • Size: 120.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for falamus-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f6c54c40c836cea038c4fb208665e640350780e74ac070a24cec5a3a9dc052ad
MD5 235376fac2f70500b85f798d8f06e71e
BLAKE2b-256 4f416eddd6da8c1b130e4c5364937f971d21ba97d9bdedab582e30131e478436

See more details on using hashes here.

File details

Details for the file falamus-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: falamus-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 139.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for falamus-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f37f26ff25399ac3630dfad9e92024ead9fe648bdad6a6fbb09ff708ed19aec3
MD5 309960b05f7b5b17559a062c4e6cd131
BLAKE2b-256 0a4681b84623f0eb1e1d1bfc6183c0333b9d70439b8b5917ee72a25f8408ad4d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page