clawsome 2026.5.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. clawsome-2026.5.4/LICENSE +21 -0
  2. clawsome-2026.5.4/PKG-INFO +108 -0
  3. clawsome-2026.5.4/README.md +69 -0
  4. clawsome-2026.5.4/claw/__init__.py +1 -0
  5. clawsome-2026.5.4/claw/agent.py +781 -0
  6. clawsome-2026.5.4/claw/channel/__init__.py +3 -0
  7. clawsome-2026.5.4/claw/channel/base.py +38 -0
  8. clawsome-2026.5.4/claw/channel/envelope.py +99 -0
  9. clawsome-2026.5.4/claw/channel/matrix.py +771 -0
  10. clawsome-2026.5.4/claw/channel/matrix_crosssigning.py +246 -0
  11. clawsome-2026.5.4/claw/compaction.py +295 -0
  12. clawsome-2026.5.4/claw/config.py +307 -0
  13. clawsome-2026.5.4/claw/main.py +296 -0
  14. clawsome-2026.5.4/claw/memory.py +348 -0
  15. clawsome-2026.5.4/claw/memory_flush.py +137 -0
  16. clawsome-2026.5.4/claw/ollama.py +382 -0
  17. clawsome-2026.5.4/claw/skills/__init__.py +4 -0
  18. clawsome-2026.5.4/claw/skills/loader.py +154 -0
  19. clawsome-2026.5.4/claw/skills/registry.py +57 -0
  20. clawsome-2026.5.4/claw/tools/__init__.py +20 -0
  21. clawsome-2026.5.4/claw/tools/base.py +28 -0
  22. clawsome-2026.5.4/claw/tools/builtin.py +228 -0
  23. clawsome-2026.5.4/claw/tools/memory_search.py +59 -0
  24. clawsome-2026.5.4/claw/tools/subagent.py +158 -0
  25. clawsome-2026.5.4/claw/tools/web_search.py +67 -0
  26. clawsome-2026.5.4/claw/transcript.py +143 -0
  27. clawsome-2026.5.4/claw/triggers/__init__.py +15 -0
  28. clawsome-2026.5.4/claw/triggers/initial_prompt.py +64 -0
  29. clawsome-2026.5.4/claw/triggers/scheduler.py +448 -0
  30. clawsome-2026.5.4/claw/workspace_inject.py +23 -0
  31. clawsome-2026.5.4/clawsome.egg-info/PKG-INFO +108 -0
  32. clawsome-2026.5.4/clawsome.egg-info/SOURCES.txt +36 -0
  33. clawsome-2026.5.4/clawsome.egg-info/dependency_links.txt +1 -0
  34. clawsome-2026.5.4/clawsome.egg-info/entry_points.txt +2 -0
  35. clawsome-2026.5.4/clawsome.egg-info/requires.txt +11 -0
  36. clawsome-2026.5.4/clawsome.egg-info/top_level.txt +1 -0
  37. clawsome-2026.5.4/pyproject.toml +63 -0
  38. clawsome-2026.5.4/setup.cfg +4 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Jeff Froman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,108 @@
1
+ Metadata-Version: 2.4
2
+ Name: clawsome
3
+ Version: 2026.5.4
4
+ Summary: A lean Python harness for running persistent AI agents
5
+ Author-email: Jeff Froman <79345648+jefffroman@users.noreply.github.com>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/jefffroman/clawsome
8
+ Project-URL: Repository, https://github.com/jefffroman/clawsome
9
+ Project-URL: Issues, https://github.com/jefffroman/clawsome/issues
10
+ Project-URL: Changelog, https://github.com/jefffroman/clawsome/releases
11
+ Project-URL: Documentation, https://github.com/jefffroman/clawsome/blob/main/README.md
12
+ Keywords: ai,agents,claw,matrix,local-inference,persistent-agents,gateway,ollama
13
+ Classifier: Development Status :: 4 - Beta
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Communications :: Chat
23
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Requires-Python: >=3.12
26
+ Description-Content-Type: text/markdown
27
+ License-File: LICENSE
28
+ Requires-Dist: matrix-nio[e2e]<0.27,>=0.25
29
+ Requires-Dist: httpx>=0.27
30
+ Requires-Dist: PyYAML>=6.0
31
+ Requires-Dist: apscheduler>=3.10
32
+ Requires-Dist: chromadb>=0.5
33
+ Requires-Dist: rank-bm25>=0.2.2
34
+ Requires-Dist: networkx>=3.2
35
+ Provides-Extra: dev
36
+ Requires-Dist: pytest>=8; extra == "dev"
37
+ Requires-Dist: pytest-asyncio>=0.23; extra == "dev"
38
+ Dynamic: license-file
39
+
40
+ <img src="clawsome-logo.png" alt="Clawsome" width="80" align="left">
41
+
42
+ # Clawsome
43
+ A lean python harness for running persistent AI agents.
44
+
45
+ > Clawsome is under early, active development. Expect rough edges, breaking changes, and missing features. Feedback and contributions are welcome.
46
+
47
+ <br clear="left">
48
+
49
+
50
+ ## Setup
51
+
52
+ Clawsome talks to a few external services (Ollama, SearXNG, a Matrix
53
+ homeserver) — get those running first, then `pip install -e .` and
54
+ point claw at a populated `claw.yaml`.
55
+
56
+ → See [`docs/setup.md`](docs/setup.md) for prerequisites, install notes
57
+ (including the macOS libolm wrinkle), and a first-boot checklist.
58
+
59
+ ## Architecture
60
+
61
+ A single clawsome process manages **multiple agents**, each with a **workspace** (state on
62
+ disk) and **one or more channels** (inbound surfaces — Matrix is the shipped
63
+ one). Per-turn, the agent loads its transcript, assembles a system prompt
64
+ from injected identity files + retrieved memory, runs an Ollama tool loop,
65
+ and replies. Background tasks (compaction, memory_flush, reindex, cron,
66
+ session rotate) run **off** the user-reply path.
67
+
68
+ → See [`docs/architecture.md`](docs/architecture.md) for the full mental
69
+ model, request lifecycle, and workspace file contract.
70
+
71
+ ## Configuration
72
+
73
+ `claw.yaml` is parsed once at startup; editing requires a restart. The
74
+ shipped `claw.example.yaml` is a runnable template with inline comments.
75
+
76
+ → See [`docs/configuration.md`](docs/configuration.md) for the full key-by-key
77
+ reference.
78
+
79
+ ## Operations
80
+
81
+ Background tuning, daily session rotate, memory retrieval cadence, Matrix
82
+ bot first-deploy (token + cross-signing UIA + ghost-DM avoidance), and
83
+ log-based troubleshooting.
84
+
85
+ → See [`docs/operations.md`](docs/operations.md).
86
+
87
+ ## Extending
88
+
89
+ Three extension points: **skills** (workspace-local; markdown protocol +
90
+ optional `tool.py`), **built-in tools** (in-tree; universal capability),
91
+ **channels** (in-tree; new inbound surface). Skills cover 99% of cases.
92
+
93
+ → See [`docs/extending.md`](docs/extending.md).
94
+
95
+ ## Deployment
96
+
97
+ `pip install` exposes a `claw` console script that takes
98
+ `--config <path/to/claw.yaml>` and runs in the foreground. Wire it into
99
+ launchd / systemd / your process manager of choice as a long-lived service
100
+ running under a dedicated user. This repo intentionally does not ship
101
+ example service files — paths, log destinations, and label/unit names all
102
+ depend on the host layout.
103
+
104
+ ---
105
+
106
+ ## Contributing
107
+
108
+ Issues and pull requests are welcome on [GitHub](https://github.com/jefffroman/clawsome).
@@ -0,0 +1,69 @@
1
+ <img src="clawsome-logo.png" alt="Clawsome" width="80" align="left">
2
+
3
+ # Clawsome
4
+ A lean python harness for running persistent AI agents.
5
+
6
+ > Clawsome is under early, active development. Expect rough edges, breaking changes, and missing features. Feedback and contributions are welcome.
7
+
8
+ <br clear="left">
9
+
10
+
11
+ ## Setup
12
+
13
+ Clawsome talks to a few external services (Ollama, SearXNG, a Matrix
14
+ homeserver) — get those running first, then `pip install -e .` and
15
+ point claw at a populated `claw.yaml`.
16
+
17
+ → See [`docs/setup.md`](docs/setup.md) for prerequisites, install notes
18
+ (including the macOS libolm wrinkle), and a first-boot checklist.
19
+
20
+ ## Architecture
21
+
22
+ A single clawsome process manages **multiple agents**, each with a **workspace** (state on
23
+ disk) and **one or more channels** (inbound surfaces — Matrix is the shipped
24
+ one). Per-turn, the agent loads its transcript, assembles a system prompt
25
+ from injected identity files + retrieved memory, runs an Ollama tool loop,
26
+ and replies. Background tasks (compaction, memory_flush, reindex, cron,
27
+ session rotate) run **off** the user-reply path.
28
+
29
+ → See [`docs/architecture.md`](docs/architecture.md) for the full mental
30
+ model, request lifecycle, and workspace file contract.
31
+
32
+ ## Configuration
33
+
34
+ `claw.yaml` is parsed once at startup; editing requires a restart. The
35
+ shipped `claw.example.yaml` is a runnable template with inline comments.
36
+
37
+ → See [`docs/configuration.md`](docs/configuration.md) for the full key-by-key
38
+ reference.
39
+
40
+ ## Operations
41
+
42
+ Background tuning, daily session rotate, memory retrieval cadence, Matrix
43
+ bot first-deploy (token + cross-signing UIA + ghost-DM avoidance), and
44
+ log-based troubleshooting.
45
+
46
+ → See [`docs/operations.md`](docs/operations.md).
47
+
48
+ ## Extending
49
+
50
+ Three extension points: **skills** (workspace-local; markdown protocol +
51
+ optional `tool.py`), **built-in tools** (in-tree; universal capability),
52
+ **channels** (in-tree; new inbound surface). Skills cover 99% of cases.
53
+
54
+ → See [`docs/extending.md`](docs/extending.md).
55
+
56
+ ## Deployment
57
+
58
+ `pip install` exposes a `claw` console script that takes
59
+ `--config <path/to/claw.yaml>` and runs in the foreground. Wire it into
60
+ launchd / systemd / your process manager of choice as a long-lived service
61
+ running under a dedicated user. This repo intentionally does not ship
62
+ example service files — paths, log destinations, and label/unit names all
63
+ depend on the host layout.
64
+
65
+ ---
66
+
67
+ ## Contributing
68
+
69
+ Issues and pull requests are welcome on [GitHub](https://github.com/jefffroman/clawsome).
@@ -0,0 +1 @@
1
+ __version__ = "2026.5.4"