flyby-modulus 0.1.0__py3-none-any.whl
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.
- flyby_modulus-0.1.0.dist-info/METADATA +406 -0
- flyby_modulus-0.1.0.dist-info/RECORD +134 -0
- flyby_modulus-0.1.0.dist-info/WHEEL +4 -0
- flyby_modulus-0.1.0.dist-info/entry_points.txt +3 -0
- flyby_modulus-0.1.0.dist-info/licenses/LICENSE +373 -0
- modulus/__init__.py +0 -0
- modulus/cli/__init__.py +5 -0
- modulus/cli/commands/__init__.py +16 -0
- modulus/cli/commands/apply.py +109 -0
- modulus/cli/commands/code.py +39 -0
- modulus/cli/commands/config.py +105 -0
- modulus/cli/commands/destroy.py +6 -0
- modulus/cli/commands/eval.py +87 -0
- modulus/cli/commands/init.py +310 -0
- modulus/cli/commands/new.py +29 -0
- modulus/cli/commands/plan.py +105 -0
- modulus/cli/commands/run.py +393 -0
- modulus/cli/commands/runs.py +214 -0
- modulus/cli/commands/show.py +57 -0
- modulus/cli/commands/verify.py +692 -0
- modulus/cli/main.py +181 -0
- modulus/cli/pick.py +78 -0
- modulus/cli/setup.py +333 -0
- modulus/core/__init__.py +0 -0
- modulus/core/build.py +429 -0
- modulus/core/documents.py +100 -0
- modulus/core/evals.py +323 -0
- modulus/core/live.py +289 -0
- modulus/core/models/__init__.py +13 -0
- modulus/core/models/agent.py +17 -0
- modulus/core/models/deployment.py +53 -0
- modulus/core/models/embedding.py +14 -0
- modulus/core/models/flow.py +117 -0
- modulus/core/models/llm.py +15 -0
- modulus/core/models/memory.py +16 -0
- modulus/core/models/provider.py +13 -0
- modulus/core/models/tool.py +13 -0
- modulus/core/models/vars.py +13 -0
- modulus/core/nodes/__init__.py +312 -0
- modulus/core/nodes/builtin/function/node.py +25 -0
- modulus/core/nodes/builtin/function/node.toml +17 -0
- modulus/core/nodes/builtin/http/node.py +45 -0
- modulus/core/nodes/builtin/http/node.toml +55 -0
- modulus/core/nodes/builtin/read_file/node.py +27 -0
- modulus/core/nodes/builtin/read_file/node.toml +24 -0
- modulus/core/nodes/builtin/template/node.py +9 -0
- modulus/core/nodes/builtin/template/node.toml +17 -0
- modulus/core/nodes/builtin/write_file/node.py +13 -0
- modulus/core/nodes/builtin/write_file/node.toml +23 -0
- modulus/core/nodes/text.py +148 -0
- modulus/core/parser.py +433 -0
- modulus/core/pdf.py +879 -0
- modulus/core/project.py +187 -0
- modulus/core/resources/__init__.py +0 -0
- modulus/core/resources/agent.py +857 -0
- modulus/core/resources/deployment.py +318 -0
- modulus/core/resources/embedding/__init__.py +8 -0
- modulus/core/resources/embedding/embedding_model.py +20 -0
- modulus/core/resources/embedding/gemini_embedding.py +25 -0
- modulus/core/resources/embedding/ollama_embedding.py +25 -0
- modulus/core/resources/embedding/openai_embedding.py +29 -0
- modulus/core/resources/flow.py +834 -0
- modulus/core/resources/human.py +82 -0
- modulus/core/resources/llm/__init__.py +10 -0
- modulus/core/resources/llm/anthropic_llm.py +196 -0
- modulus/core/resources/llm/gemini_llm.py +259 -0
- modulus/core/resources/llm/llm.py +46 -0
- modulus/core/resources/llm/messages.py +101 -0
- modulus/core/resources/llm/ollama_llm.py +157 -0
- modulus/core/resources/llm/openai_llm.py +106 -0
- modulus/core/resources/llm/prices.py +62 -0
- modulus/core/resources/mcp.py +320 -0
- modulus/core/resources/memory/__init__.py +7 -0
- modulus/core/resources/memory/conversation.py +184 -0
- modulus/core/resources/memory/local.py +278 -0
- modulus/core/resources/memory/memory.py +107 -0
- modulus/core/resources/memory/tools.py +81 -0
- modulus/core/resources/provider/__init__.py +9 -0
- modulus/core/resources/provider/anthropic_provider.py +31 -0
- modulus/core/resources/provider/gemini_provider.py +57 -0
- modulus/core/resources/provider/ollama_provider.py +61 -0
- modulus/core/resources/provider/openai_provider.py +23 -0
- modulus/core/resources/provider/provider.py +31 -0
- modulus/core/resources/registry.py +44 -0
- modulus/core/resources/runtime/__init__.py +5 -0
- modulus/core/resources/runtime/fastapi_runtime.py +425 -0
- modulus/core/resources/runtime/static/chat.css +514 -0
- modulus/core/resources/runtime/static/chat.html +57 -0
- modulus/core/resources/runtime/static/chat.js +952 -0
- modulus/core/resources/runtime/terminal.py +1333 -0
- modulus/core/resources/runtime/terminal_protocols.py +170 -0
- modulus/core/resources/tool.py +374 -0
- modulus/core/runs.py +181 -0
- modulus/core/skills.py +238 -0
- modulus/core/testing.py +65 -0
- modulus/editor/__init__.py +0 -0
- modulus/editor/document.py +345 -0
- modulus/editor/server.py +592 -0
- modulus/editor/static/app.js +2618 -0
- modulus/editor/static/index.html +138 -0
- modulus/editor/static/kinds.js +296 -0
- modulus/editor/static/library.js +584 -0
- modulus/editor/static/style.css +1053 -0
- modulus/main.py +11 -0
- modulus/templates/home/agents/builder.toml +92 -0
- modulus/templates/home/agents/builder_review.toml +54 -0
- modulus/templates/home/agents/coder.toml +139 -0
- modulus/templates/home/agents/coder_ask.toml +65 -0
- modulus/templates/home/agents/coder_explore.toml +57 -0
- modulus/templates/home/agents/coder_quick.toml +85 -0
- modulus/templates/home/agents/coder_review.toml +65 -0
- modulus/templates/home/agents/coder_triage.toml +30 -0
- modulus/templates/home/agents/coder_worker.toml +75 -0
- modulus/templates/home/deployments/builder.toml +11 -0
- modulus/templates/home/deployments/coder.toml +14 -0
- modulus/templates/home/flows/build.toml +55 -0
- modulus/templates/home/flows/code.toml +118 -0
- modulus/templates/home/functions/builder.py +610 -0
- modulus/templates/home/functions/code.py +1955 -0
- modulus/templates/home/functions/documents.py +47 -0
- modulus/templates/home/functions/eng_calc.py +139 -0
- modulus/templates/home/functions/web.py +32 -0
- modulus/templates/home/modulus.toml +97 -0
- modulus/templates/home/prompts/builder.prompt +189 -0
- modulus/templates/home/prompts/builder_review.prompt +13 -0
- modulus/templates/home/prompts/coder.prompt +41 -0
- modulus/templates/home/prompts/coder_ask.prompt +7 -0
- modulus/templates/home/prompts/coder_explore.prompt +7 -0
- modulus/templates/home/prompts/coder_quick.prompt +10 -0
- modulus/templates/home/prompts/coder_review.prompt +8 -0
- modulus/templates/home/prompts/coder_triage.prompt +17 -0
- modulus/templates/home/prompts/coder_worker.prompt +8 -0
- modulus/templates/home/skills/commit/SKILL.md +59 -0
- modulus/templates/home/skills/new-skill/SKILL.md +31 -0
|
@@ -0,0 +1,406 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: flyby-modulus
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A declarative framework for building applications out of AI agents
|
|
5
|
+
License-Expression: MPL-2.0
|
|
6
|
+
License-File: LICENSE
|
|
7
|
+
Keywords: ai,agents,llm,orchestration,declarative,toml,workflows
|
|
8
|
+
Author: Micky Abir
|
|
9
|
+
Author-email: micky.abir@gmail.com
|
|
10
|
+
Requires-Python: >=3.9,<4.0
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)
|
|
14
|
+
Classifier: Operating System :: OS Independent
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
|
+
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
|
|
22
|
+
Provides-Extra: dev
|
|
23
|
+
Requires-Dist: anthropic (>=0.64.0)
|
|
24
|
+
Requires-Dist: colorama (>=0.4.6)
|
|
25
|
+
Requires-Dist: fastapi (>=0.115.14)
|
|
26
|
+
Requires-Dist: google-genai (>=1.50.0)
|
|
27
|
+
Requires-Dist: httpx (>=0.27) ; extra == "dev"
|
|
28
|
+
Requires-Dist: numpy (>=2.0.2)
|
|
29
|
+
Requires-Dist: ollama (>=0.4.0)
|
|
30
|
+
Requires-Dist: openai (>=1.93.0)
|
|
31
|
+
Requires-Dist: prompt_toolkit (>=3.0)
|
|
32
|
+
Requires-Dist: pypdf (>=4.0)
|
|
33
|
+
Requires-Dist: pytest (>=8) ; extra == "dev"
|
|
34
|
+
Requires-Dist: python-dotenv (>=1.1.1,<2.0.0)
|
|
35
|
+
Requires-Dist: rich (>=13.0)
|
|
36
|
+
Requires-Dist: tomlkit (>=0.13.3,<0.14.0)
|
|
37
|
+
Requires-Dist: typer (>=0.16.0,<0.17.0)
|
|
38
|
+
Requires-Dist: uvicorn (>=0.35.0)
|
|
39
|
+
Project-URL: Homepage, https://github.com/flybydev/modulus
|
|
40
|
+
Project-URL: Issues, https://github.com/flybydev/modulus/issues
|
|
41
|
+
Project-URL: Repository, https://github.com/flybydev/modulus
|
|
42
|
+
Description-Content-Type: text/markdown
|
|
43
|
+
|
|
44
|
+
# Modulus
|
|
45
|
+
|
|
46
|
+
Modulus is a declarative framework for building applications out of AI agents. You describe agents, the flows that connect them, and the deployments that put them in front of people, in plain TOML files, one file per agent, flow and deployment. Modulus runs them, serves them, shows you what they're doing, and keeps what they cost under control.
|
|
47
|
+
|
|
48
|
+
It comes with a serious application built entirely from those files: **`modulus code`**, a coding agent for your repositories in the terminal, in the style of Claude Code. It's the best demonstration of what the framework can do, and a starting point for your own.
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
pip install flyby-modulus
|
|
52
|
+
cd ~/code/my-project
|
|
53
|
+
modulus code # a coding agent for this repository; the first run asks which models to use
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Inspired by infrastructure-as-code tools like Terraform, Modulus brings the same declarative control to systems of language models: everything is a file you can read, review, version and change.
|
|
57
|
+
|
|
58
|
+
**Contents**
|
|
59
|
+
|
|
60
|
+
- [Agent orchestration in Modulus](#agent-orchestration-in-modulus): the idea, and what you can build
|
|
61
|
+
- [Installation](#installation) and [Quickstart](#quickstart)
|
|
62
|
+
- [Modulus code](#modulus-code): the coding agent, feature by feature
|
|
63
|
+
- [The flow builder](#the-flow-builder): an application that builds applications
|
|
64
|
+
- [Documentation](#documentation): the full reference, by topic
|
|
65
|
+
- [Design principles](#design-principles), [Roadmap](#roadmap), [License](#license), [Contributing](#contributing)
|
|
66
|
+
|
|
67
|
+
## Agent orchestration in Modulus
|
|
68
|
+
|
|
69
|
+
One model answering one prompt goes a long way, but real work usually needs more: a cheap model to sort requests and a strong one for the hard ones, a draft and a critic, several searches at once, a test suite that decides whether a change is done, a person who approves the risky step. Orchestration is how you put those pieces together. Modulus gives you three building blocks for it, and keeps each one in its own file.
|
|
70
|
+
|
|
71
|
+
| Building block | What it is | File |
|
|
72
|
+
| --- | --- | --- |
|
|
73
|
+
| **Agent** | A model with a prompt, tools, memory and a budget. Everything it needs is in its file, including its provider and model. | `agents/<name>.toml` |
|
|
74
|
+
| **Flow** | Steps and how work moves between them: agents, nodes that run without a model (HTTP calls, Python functions, templates, files), and other flows. Branches, joins, loops, routes and error handling. | `flows/<name>.toml` |
|
|
75
|
+
| **Deployment** | Flows wired to the outside world: an HTTP API, a chat page, a terminal chat, text and file inputs, console and file outputs. | `deployments/<name>.toml` |
|
|
76
|
+
|
|
77
|
+
A small but complete example: a researcher drafts, an analyst checks the reasoning, and a verifier sends it back until it's right.
|
|
78
|
+
|
|
79
|
+
```toml
|
|
80
|
+
# flows/research.toml
|
|
81
|
+
[flow]
|
|
82
|
+
start = "researcher"
|
|
83
|
+
max_rounds = 3 # the loop runs at most three times
|
|
84
|
+
max_cost = 2.00 # the most one request may spend, across every agent
|
|
85
|
+
|
|
86
|
+
[step.researcher]
|
|
87
|
+
agent = "researcher"
|
|
88
|
+
next = ["analyst"]
|
|
89
|
+
|
|
90
|
+
[step.analyst]
|
|
91
|
+
agent = "analyst"
|
|
92
|
+
next = ["verifier"]
|
|
93
|
+
|
|
94
|
+
[step.verifier]
|
|
95
|
+
agent = "verifier"
|
|
96
|
+
routes = [
|
|
97
|
+
{ label = "approved", to = "@exit", when = "The answer is correct and supported by the evidence" },
|
|
98
|
+
{ label = "revise", to = "researcher", when = "Something is missing, wrong or unsupported" },
|
|
99
|
+
]
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
### What you can build
|
|
103
|
+
|
|
104
|
+
These are the patterns Modulus is built for. Each is a few lines of TOML, and they combine freely; [the orchestration guide](docs/orchestration.md) walks through each with a complete example.
|
|
105
|
+
|
|
106
|
+
- **Pipelines.** Steps in a line, each building on the last: extract, then summarize, then format. Nodes that need no model (a template, an HTTP call, a Python function) sit between agents for free.
|
|
107
|
+
- **Fan-out and join.** One step hands its answer to several, which run at the same time, and a later step waits for all of them and gets every answer. Two agents on API models take the time of one.
|
|
108
|
+
- **Critic loops.** A step's answer goes to a reviewer that either approves it or sends it back with what's wrong, until it passes or `max_rounds` runs out. With `keep_context`, the author carries on its own conversation instead of starting over.
|
|
109
|
+
- **Routers.** A cheap agent reads each request and picks the flow that handles it, so simple questions never reach the expensive model. Routes can also be decided without a model, by text or JSON conditions.
|
|
110
|
+
- **A lead and its helpers.** An agent can hand tasks to other agents as tools: a lead on a strong model passes searches and mechanical work to agents on cheaper ones, and keeps its own context for the decisions. Several read-only helpers run in parallel.
|
|
111
|
+
- **Checks without a model.** Python function steps decide what models shouldn't: whether the tests pass, whether the output parses, whether a number is in range. Their answer routes the flow.
|
|
112
|
+
- **People in the loop.** A tool can stop and ask the person running the request, and wait for the answer: to approve a command, pick an option, or settle something only they know.
|
|
113
|
+
- **Skills.** Instructions an agent loads only when a task needs them, in `SKILL.md` folders: procedures, checklists and scripts that would otherwise bloat every prompt.
|
|
114
|
+
- **Tools from anywhere.** Python functions become tools with a JSON Schema made from their type hints; an MCP server's tools join an agent with one block; HTTP steps call any API.
|
|
115
|
+
- **Memory.** Conversation memory for follow-ups (kept on disk if you like), and vector memory that recalls notes and documents by meaning.
|
|
116
|
+
|
|
117
|
+
### What comes with every application
|
|
118
|
+
|
|
119
|
+
Whatever you build gets the same machinery:
|
|
120
|
+
|
|
121
|
+
- **Cost control.** Every model call is priced and charged to a chain of budgets (the agent, the flow, the request, the chat), and any of them can stop the work under it. Model tiers in `[vars]` (`MODEL_CHEAP`, `MODEL_MID`, `MODEL_STRONG`) let one line move every agent to other models.
|
|
122
|
+
- **Reliability.** Retries with backoff, timeouts, error routes, fallback models when a provider is overloaded, loops capped by `max_rounds`, and warnings when an agent goes round in circles.
|
|
123
|
+
- **Visibility.** The terminal chat and the chat page show each step, model turn, tool call and route as it happens, with time, tokens and cost. Every run is kept with its full trace, and can be replayed after a change.
|
|
124
|
+
- **Pausing and resuming.** Runs are checkpointed after every step, so a stopped, failed or interrupted run carries on from where it was.
|
|
125
|
+
- **Fast iteration.** Edit a file and press Apply (or run `modulus apply`): the running deployment reloads in place. The editor's Test pane tries an agent or flow on a message without even that.
|
|
126
|
+
- **Evals.** A file of requests with checks, run through a deployment (in fresh git clones when they change files), scored and compared with the last run, so a prompt change is judged on evidence.
|
|
127
|
+
- **Concurrency.** Steps that don't wait on each other run in parallel, and requests in different conversations don't wait for each other.
|
|
128
|
+
- **A visual editor.** Every file can be edited as a node graph in the browser, without losing comments or formatting.
|
|
129
|
+
- **Scripting.** Any deployment can take one request from the command line (`modulus run <deployment> -p "..."`), print the answer or JSON, and exit, for scripts and CI.
|
|
130
|
+
|
|
131
|
+
## Installation
|
|
132
|
+
|
|
133
|
+
Modulus is a Python package (Python 3.9 or later):
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
pip install flyby-modulus # or: uv pip install flyby-modulus
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
Or from a clone of the repository:
|
|
140
|
+
|
|
141
|
+
```bash
|
|
142
|
+
git clone https://github.com/flybydev/modulus.git
|
|
143
|
+
cd modulus
|
|
144
|
+
pip install -e . # or: uv pip install -e .
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
Providers: Anthropic (Claude), OpenAI, Google Gemini (with an AI Studio key, or Vertex AI with your Google Cloud sign-in) and Ollama for local models. You only need the ones you use.
|
|
148
|
+
|
|
149
|
+
## Quickstart
|
|
150
|
+
|
|
151
|
+
**Code with it.** From inside a repository, `modulus code` opens the coding agent. The first time, it creates your home project (`~/.modulus`) and asks which providers to use, where each key is, and which model each tier runs. See [Modulus code](#modulus-code).
|
|
152
|
+
|
|
153
|
+
**Build with it.** `modulus run builder` opens a chat with the flow builder. Describe an application ("a science trivia quiz I can chat with") and it writes the agents, flows and deployment into `~/.modulus`, tries them, and fixes what's wrong. Then `modulus run` runs what it made, and `modulus config` opens it as node graphs.
|
|
154
|
+
|
|
155
|
+
**Start from an example.** `modulus init research` creates a project in `research/` with the researcher, analyst and verifier loop above, and a deployment that serves it:
|
|
156
|
+
|
|
157
|
+
```bash
|
|
158
|
+
cd research
|
|
159
|
+
export OPENAI_API_KEY=... # or point the agents at another provider
|
|
160
|
+
modulus run # serves port 8080 and opens the chat page
|
|
161
|
+
curl -X POST http://localhost:8080/research -H "Content-Type: application/json" \
|
|
162
|
+
-d '{"question": "Why is the sky blue?"}'
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
The repository's [`examples/`](examples) folder has a complete project that runs on a local Ollama server: a field assistant with conversation memory, a field guide it searches, and notes it keeps.
|
|
166
|
+
|
|
167
|
+
**Build by hand.** `modulus new <name>` creates an empty deployment, and `modulus config <name>` opens it in the editor. `modulus verify` checks a project without running anything.
|
|
168
|
+
|
|
169
|
+
## Modulus code
|
|
170
|
+
|
|
171
|
+
`modulus code` is a coding agent for the repository you start it in. It reads and searches the code, plans, edits files, runs commands and tests, checks its own work, and reports what it did, in a terminal chat with a live view of every step. It's built to be fast and cheap without cutting corners: several agents share the work, each on the cheapest model that does its part well, and the test suite, not the model's opinion, decides when a change is done.
|
|
172
|
+
|
|
173
|
+
It's also an ordinary Modulus application. `modulus code` is `modulus run coder` in your home project; its agents, flow, prompts and tools are files in `~/.modulus` you can read and change; and a test in this repository checks that nothing outside the home template knows it exists. Everything below is built from the features in the rest of this document, so a coder of your own, or a very different agent, can be built the same way.
|
|
174
|
+
|
|
175
|
+
### Using it
|
|
176
|
+
|
|
177
|
+
```bash
|
|
178
|
+
cd ~/code/my-project
|
|
179
|
+
modulus code # chat with the coder about this repository
|
|
180
|
+
modulus code --continue # carry on the last conversation in this folder (-c)
|
|
181
|
+
modulus code -p "fix the flaky auth test" # one request, then print the answer and exit
|
|
182
|
+
git diff | modulus code -p "review this change" # text piped in is added to the request
|
|
183
|
+
modulus code -p "..." --output-format json --max-cost 1 # the answer with its cost, run id and trace
|
|
184
|
+
modulus code --setup # ask the setup questions again
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
Type a request at the `>` prompt. As it works you see each step, each tool call with the start of what came back, and every edit as a diff with line numbers (added lines on green, removed on red). The status line shows the steps so far (`rules ✓ › triage ✓ › lead ●`), what's happening in words (`coder is running run_tests 42s`, `coder is thinking 12s`) with the latest line of a long command's output, and the time, tokens and cost so far. Ctrl+C stops it at once, including any command it's running and everything that command started.
|
|
188
|
+
|
|
189
|
+
A request can start with a word that decides who handles it:
|
|
190
|
+
|
|
191
|
+
| Prefix | What happens |
|
|
192
|
+
| --- | --- |
|
|
193
|
+
| *(none)* | A cheap triage agent picks the route, and says how sure it is. Anything it's unsure of goes to the lead agent. |
|
|
194
|
+
| `@ask` | A question about the code: answered by an agent that reads but never changes anything. |
|
|
195
|
+
| `@quick` | A small, fully specified change: made by a fast agent, handed to the lead if its change breaks tests or the job turns out not to be small. |
|
|
196
|
+
| `@task` (or `@deep`) | Straight to the lead agent. |
|
|
197
|
+
| `@plan` | The lead explores without changing anything, writes a plan, and asks you to approve it. No file can change until you do. Asked for changes, it revises the plan and asks again. |
|
|
198
|
+
|
|
199
|
+
In the chat:
|
|
200
|
+
|
|
201
|
+
| Command | |
|
|
202
|
+
| --- | --- |
|
|
203
|
+
| `/undo` | Take back the last request: the files it changed are put back as they were before it, files it created are deleted, and the agents forget the exchange. |
|
|
204
|
+
| `/budget 5` | What each reply may cost, in dollars (`/budget session 20` caps the whole chat, `/budget off` removes the cap). |
|
|
205
|
+
| `/cost` | What this chat has cost so far, by agent, with tokens in and out. |
|
|
206
|
+
| `/trace` | Every step of the last reply: inputs, tool calls and results, warnings, routes. |
|
|
207
|
+
| `/runs`, `/resume` | Requests that were stopped or failed part way, and carrying one on from where it stopped. |
|
|
208
|
+
| `/thinking` | Show the models' thinking in full, or only how long they thought. |
|
|
209
|
+
| `/new` | Start a new conversation. |
|
|
210
|
+
|
|
211
|
+
The conversation is kept on disk for a week, so `--continue` picks up where you left off, even after a restart. With `-p`, nobody is there to approve commands, so commands that would ask aren't run, and a `@plan` request answers with its plan.
|
|
212
|
+
|
|
213
|
+
### First run
|
|
214
|
+
|
|
215
|
+
The first time, `modulus code` asks a few questions, and writes the answers to `~/.modulus/modulus.toml`, where you can change them later:
|
|
216
|
+
|
|
217
|
+
- **Providers**: one or several of Anthropic, Gemini on Vertex AI (your Google Cloud sign-in, no key), the Gemini API and OpenAI. Each tier can use a different one: the lead on Claude and the searching on Gemini, say.
|
|
218
|
+
- **Keys**: where each key is, never the key itself. Point it at an environment variable or a file you already have (a key file, or one variable in a `.env` file), or type the key once, hidden, and it's saved to `~/.modulus/.secrets/`, readable only by you. Each key is checked by listing the provider's models, which costs nothing, and is sent only to its provider.
|
|
219
|
+
- **Models**: one for each tier, with a suggestion for each provider.
|
|
220
|
+
- **Speed and care**: how hard each tier thinks before it acts.
|
|
221
|
+
|
|
222
|
+
### How it works
|
|
223
|
+
|
|
224
|
+
Each request goes through the coder's flow (`flows/code.toml` in your home project):
|
|
225
|
+
|
|
226
|
+
```
|
|
227
|
+
request ─▶ rules ─▶ triage ─▶ route ─┬─▶ ask ─────────────────────────────────────▶ answer
|
|
228
|
+
(prefix) (cheap) │
|
|
229
|
+
└─▶ baseline ─┬─▶ quick ─▶ check ─┬─▶ answer
|
|
230
|
+
(snapshot) │ └─▶ lead (tests broke)
|
|
231
|
+
└─▶ lead ◀──────────────┐
|
|
232
|
+
│ │ new test failures,
|
|
233
|
+
▼ │ or the reviewer's
|
|
234
|
+
check ──▶ review ────┘ findings
|
|
235
|
+
│
|
|
236
|
+
▼
|
|
237
|
+
answer
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
1. **Routing.** A prefix settles the route without a model. Otherwise the triage agent, on the cheap tier, answers with a route and a confidence; an unclear or unsure answer goes to the lead. A routing mistake costs a little money rather than a wrong answer.
|
|
241
|
+
2. **Baseline.** Before a change, the state of the files is recorded with a git snapshot, without touching anything. The tests aren't run yet.
|
|
242
|
+
3. **The work.** The lead agent (or the quick agent for small changes) reads before it changes anything, keeps a todo list for longer work, and hands work to helpers:
|
|
243
|
+
- `explore`, on the cheap tier: searches and surveys across many files, reported back with file and line references. Several run at the same time when the lead asks for them in one turn.
|
|
244
|
+
- `delegate`: a well-specified change, made by a cheaper agent that can edit and run commands.
|
|
245
|
+
- `review`: a second opinion on the change so far.
|
|
246
|
+
4. **The check.** After a change, the changed modules' own tests run first (`tests/test_<module>.py`, for pytest), so a change that breaks them goes back in seconds; then the whole suite. Only failures the change caused count: when something fails, the same tests run on the snapshot from before the change, in a temporary git worktree, to tell new failures from old ones. Failures are read from pytest, go test, cargo test, Jest and Vitest output. New failures send the lead back, up to three times. A change to documentation only (Markdown, text, images, LICENSE and the like) skips the tests and the review: nothing there can break them.
|
|
247
|
+
5. **The review.** A change of 60 lines or more, test files and documentation not counted, is read by a reviewer agent on the strong tier, which gets the diff with its task (so it doesn't spend turns finding it) and either approves it or sends it back with what's wrong. That happens once per request; after a revision, the tests decide.
|
|
248
|
+
6. **Sent back, it carries on.** The lead keeps its whole conversation across rounds, with everything it already read, so a fix after a failed check doesn't start from scratch, and the provider's prompt cache still covers what came before.
|
|
249
|
+
|
|
250
|
+
The repository's `AGENTS.md` (or `CLAUDE.md`) is in the lead agent's system prompt; lighter agents (`coder_ask`, `coder_quick`, `coder_explore`, `coder_worker`) get a pointer to it and read it only when needed. The state of the files (branch, uncommitted changes, recent commits, the todo list) comes after each request instead, so the system prompt stays the same from one request to the next and providers that cache prompts can reuse it.
|
|
251
|
+
|
|
252
|
+
### Its tools
|
|
253
|
+
|
|
254
|
+
| Tool | What it does |
|
|
255
|
+
| --- | --- |
|
|
256
|
+
| `read_file` | Reads a file with line numbers, 400 lines at a time unless asked for more. PDFs and Word files are read as text, and images (screenshots, mockups, diagrams) are shown to the model. |
|
|
257
|
+
| `outline` | A file's classes, functions and methods (or headings) with line numbers, without reading it all. |
|
|
258
|
+
| `search` | ripgrep across the workspace: matching lines, or only the files that match, or counts. |
|
|
259
|
+
| `list_files` | Files by glob pattern, skipping what git ignores. |
|
|
260
|
+
| `edit_file`, `multi_edit` | Exact text replacement, one change or several to one file (all or none). A file must be read before it's changed, and read again if something else changed it. |
|
|
261
|
+
| `write_file` | Creates a file, or replaces one it has read. |
|
|
262
|
+
| `run_command` | A shell command in the workspace, stoppable with Ctrl+C. With `background = true`, it starts something that keeps running, like a dev server, and returns at once. |
|
|
263
|
+
| `read_process`, `stop_process` | What a background command printed since the last look; stopping it and everything it started. Anything left running is stopped when Modulus exits. |
|
|
264
|
+
| `run_tests` | The repository's tests, compared with before the change. |
|
|
265
|
+
| `todo_write` | The task's todo list, shown with each request. |
|
|
266
|
+
| `ask_user` | A question for you, with choices when there are clear options. |
|
|
267
|
+
| `web_fetch` | A page on the public web (documentation, a changelog, an issue) as text, under its title. |
|
|
268
|
+
| `load_skill` | A skill's instructions, when a request matches one: see below. |
|
|
269
|
+
|
|
270
|
+
**Skills.** Repeatable procedures (how this repository cuts a release, writes a migration, deploys) can live as skills: a folder with a `SKILL.md` of instructions, in the repository's `.modulus/skills/` (or `.claude/skills/`, so Claude Code skills work as they are) or in `~/.modulus/skills/` for every repository. The coder sees only each skill's name and description, and loads the instructions when a request needs them, so a skill costs nothing on the requests that don't. Ask it to write one ("make a skill for how we release"): the home project comes with a `new-skill` skill that tells it how. See [Agents: skills](docs/agents.md#skills).
|
|
271
|
+
|
|
272
|
+
**Commits.** When you ask it to commit, it loads the home project's `commit` skill: it reads the diff and the repository's recent messages, stages only the files it changed (never your unrelated work), and writes an imperative subject of at most 72 characters with a wrapped body that says why. Modulus adds a `Co-authored-by: Modulus <modulus@flybyrobotics.com>` trailer. You stay the author and the committer, and Modulus shows as a co-author (`COMMIT_COAUTHOR` in `modulus.toml` changes it; `""` turns it off).
|
|
273
|
+
|
|
274
|
+
### Safety and permissions
|
|
275
|
+
|
|
276
|
+
The coder can read anything in the workspace and change files freely when the workspace is a git repository, because git is the undo (outside one, it asks before the first change). Beyond that:
|
|
277
|
+
|
|
278
|
+
- **Secrets stay put.** Files that hold secrets (keys, `.env` files, SSH and cloud credentials) would be sent to the model's provider if read, so reading one asks you first, whether by `read_file` or a command.
|
|
279
|
+
- **Commands ask.** Reading, searching, read-only git, tests, linters and type checkers run straight away. Anything else asks you, and so does anything with redirects, command substitution, or a setting in front of the program that could change what it runs (`GIT_EXTERNAL_DIFF=...`; harmless ones like `PYTHONPATH` are fine). Every part of a chain (`&&`, `||`, `;`, `|`, a line break) is checked, and the question names each part that needs approval. You can stop being asked for those for the session or always in this workspace; that covers the program and its subcommand, so approving `npm install` doesn't approve `npm publish`.
|
|
280
|
+
- **Rules that last.** `permissions.toml` in the home project, or `.modulus/permissions.toml` in a repository for a team to share:
|
|
281
|
+
|
|
282
|
+
```toml
|
|
283
|
+
allow = ["npm install", "make *"] # run without asking
|
|
284
|
+
deny = ["git push --force*", "rm -rf *"] # never run, even when asked
|
|
285
|
+
|
|
286
|
+
[workspace."/Users/me/code/app"] # only in this repository ("always allow" adds rules here)
|
|
287
|
+
allow = ["docker compose up"]
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
A pattern without `*` covers the command and the command with more arguments. A deny rule wins over everything, including the commands that would run without asking.
|
|
291
|
+
- **The web, carefully.** `web_fetch` asks once per site, and never reads addresses on your machine or private network, even through a redirect. `WEB_FETCH = "allow"` stops asking, `"off"` turns it off.
|
|
292
|
+
- **A sandbox, if you want one.** With `SANDBOX = "on"`, commands run inside the operating system's sandbox (`sandbox-exec` on macOS, `bwrap` on Linux), able to write only in the workspace and temporary folders.
|
|
293
|
+
- **Undo.** `/undo` puts back what the last request changed.
|
|
294
|
+
|
|
295
|
+
These are guardrails against mistakes, not a security boundary: tests run whatever code the workspace holds. Work on code you trust, or turn the sandbox on, or run Modulus in a container.
|
|
296
|
+
|
|
297
|
+
### Speed and cost
|
|
298
|
+
|
|
299
|
+
The price of a coding request is mostly its prompt (everything read so far, resent with every model call) times its number of turns. The coder is built around that:
|
|
300
|
+
|
|
301
|
+
- **The right model for each part.** Routing, searching, answers, small changes, commits, and delegated worker edits on the cheap tier; the lead agent on the mid tier; the reviewer on the strong tier, where careful judgment matters most.
|
|
302
|
+
- **Find before reading.** `search` can list only the matching files, `outline` shows a file's structure, and `read_file` reads part of a file; broad surveys go to `explore`, which reports back a summary rather than filling the lead's context.
|
|
303
|
+
- **Fewer turns.** Read-only tool calls asked for in one turn run at the same time, independent edits go in one turn, and the tests run once after a change (and on the old snapshot only when something fails).
|
|
304
|
+
- **Lighter questions.** The agents that answer questions and search get a pointer to the repository's guide rather than the guide itself, and read it only when a question needs it: a simple question costs about a third of what a change does per model call. The chat history each request replays is capped (`max_history_chars`), so a long chat doesn't make every request dearer.
|
|
305
|
+
- **Shorter prompts.** Older tool results are cleared once a request's prompt reaches its limit (`compact_at`), and the work is summarized by the cheap tier if that's not enough.
|
|
306
|
+
- **Budgets.** Each request may spend $5 (`max_cost` in `flows/code.toml`); `/budget` changes it for a chat. A helper agent's spending counts toward the lead's.
|
|
307
|
+
|
|
308
|
+
Measured on this repository in December 2026 (Gemini 4 on Vertex AI, the default tiers), against Claude Code on the same four tasks, each in a fresh clone and graded by hidden checks: a planted bug, a new command-line option with a test, a formatting fix with tests, and a question about the code.
|
|
309
|
+
|
|
310
|
+
| | Passed | Time | Cost |
|
|
311
|
+
| --- | --- | --- | --- |
|
|
312
|
+
| `modulus code` | 4/4 | 3m 27s | $0.19 |
|
|
313
|
+
| Claude Code | 4/4 | 4m 15s | $1.37 |
|
|
314
|
+
|
|
315
|
+
The tasks are in [`evals/coder.toml`](evals/coder.toml), so you can measure it yourself, on your models, after any change: `modulus eval evals/coder.toml`.
|
|
316
|
+
|
|
317
|
+
### Settings
|
|
318
|
+
|
|
319
|
+
All in `~/.modulus/modulus.toml`, under `[vars]`:
|
|
320
|
+
|
|
321
|
+
| Setting | |
|
|
322
|
+
| --- | --- |
|
|
323
|
+
| `PROVIDER_STRONG`, `PROVIDER_MID`, `PROVIDER_CHEAP` | The provider for each tier (`anthropic`, `vertex`, `gemini`, `openai`). `PROVIDER` is the default for all three. |
|
|
324
|
+
| `MODEL_STRONG`, `MODEL_MID`, `MODEL_CHEAP` | The model for each tier. |
|
|
325
|
+
| `EFFORT_STRONG`, `EFFORT_MID`, `EFFORT_CHEAP` | How hard each tier thinks: `low`, `medium` or `high` (empty: the model's default). `EFFORT_MID` is the main speed control, since most of the time goes to the lead. |
|
|
326
|
+
| `ANTHROPIC_API_KEY`, `GEMINI_API_KEY`, `OPENAI_API_KEY` | Where each key is: `@env:NAME`, `@file:path` or `@file:path#NAME`. Empty: the provider's usual environment variable. |
|
|
327
|
+
| `GCP_PROJECT`, `GCP_LOCATION` | For Vertex AI. |
|
|
328
|
+
| `TEST_COMMAND` | How to run the repository's tests (empty: found from its files). |
|
|
329
|
+
| `REVIEW_LINES`, `REVIEW_ROUNDS` | When the reviewer reads a change (60 lines, tests and docs not counted; `0` never), and how many times per request (1). |
|
|
330
|
+
| `WEB_FETCH` | `ask` (once per site), `allow` or `off`. |
|
|
331
|
+
| `SANDBOX` | `on` to run commands in the operating system's sandbox. |
|
|
332
|
+
| `COMMIT_COAUTHOR` | The co-author added to its commits (default `Modulus <modulus@flybyrobotics.com>`; `""` for none). |
|
|
333
|
+
|
|
334
|
+
`CODER_WORKSPACE` in the environment points it at a folder other than the one you're in.
|
|
335
|
+
|
|
336
|
+
### Making it yours
|
|
337
|
+
|
|
338
|
+
The coder is files in `~/.modulus`: `agents/coder*.toml`, `flows/code.toml`, `deployments/coder.toml`, `functions/code.py` (its tools and the flow steps that run without a model) and `prompts/coder*.prompt`. Change a prompt, swap a model, add a tool or an MCP server, add a step to the flow; `modulus config coder` opens it all as node graphs. `modulus init --update` brings the files up to date with a newer Modulus, keeping your `modulus.toml`.
|
|
339
|
+
|
|
340
|
+
To judge a change, run the eval before and after: `modulus eval evals/coder.toml --runs 3` prints pass rate, time and cost per task, compared with the last run.
|
|
341
|
+
|
|
342
|
+
## The flow builder
|
|
343
|
+
|
|
344
|
+
`modulus run builder` chats with an application that builds applications. Describe what you want, and it plans, writes the agents, flows, deployment and any Python tools into your home project, and checks its work:
|
|
345
|
+
|
|
346
|
+
1. It notes the problems the project already has, then writes the application. `create_agent`, `create_flow` and `create_deployment` write whole files from a few arguments, so the model never types boilerplate; agents get a model tier (`cheap`, `mid`, `strong`, or `local` for Ollama), helpers they can hand work to, and a budget.
|
|
347
|
+
2. Each file is checked as it's written. Python tools are loaded the way a running agent would load them, so a missing import is caught at once. `try_tool` runs a tool on example arguments, and `try_flow` runs a flow on an example message with real models (at most $0.50 a run).
|
|
348
|
+
3. The project is checked like `modulus verify`, and every tool must have been tried since its last change.
|
|
349
|
+
4. A reviewer reads the application against your request, tries it, and approves it or sends the builder back, up to three rounds.
|
|
350
|
+
|
|
351
|
+
Follow-ups build on what it made ("now give it a chat page too"), and everything it writes is ordinary files, to edit in `modulus config` like any other. The builder's prompt covers choosing tiers, splitting work between agents, routing reliably and checking work without a model, and it can build a coding agent on the coder's design, beside the coder.
|
|
352
|
+
|
|
353
|
+
## Documentation
|
|
354
|
+
|
|
355
|
+
| Guide | |
|
|
356
|
+
| --- | --- |
|
|
357
|
+
| [Agent orchestration](docs/orchestration.md) | The patterns, each with a complete example: pipelines, fan-out and join, critic loops, routers, leads and helpers, checks without a model, people in the loop, and how to choose. |
|
|
358
|
+
| [Projects](docs/projects.md) | Project layout, the home project, `[vars]` and where values come from, keys and secrets, model tiers, first-run setup questions. |
|
|
359
|
+
| [Agents](docs/agents.md) | Agents, providers, LLMs and fallbacks, costs and budgets, tools (Python functions, MCP servers, other agents), context, compaction. |
|
|
360
|
+
| [Flows](docs/flows.md) | Steps, edges and conditions, routes, loops, parallel steps, failures and retries, flows inside flows, nodes and your own node types. |
|
|
361
|
+
| [Deployments](docs/deployments.md) | Nodes (API, chat page, terminal, text, files), documents, concurrency. |
|
|
362
|
+
| [Running](docs/running.md) | `modulus run`, one-request mode, the terminal chat and the chat page, watching and stopping requests, pausing and resuming, run history and replay, live updates, evals. |
|
|
363
|
+
| [Memory](docs/memory.md) | Conversation memory and vector memory. |
|
|
364
|
+
| [The editor](docs/editor.md) | Editing projects as node graphs, the Test pane, shortcuts. |
|
|
365
|
+
| [Command line](docs/cli.md) | Every command and option. |
|
|
366
|
+
|
|
367
|
+
Working on Modulus itself? [AGENTS.md](AGENTS.md) explains how the code is organized, how to test it and the conventions it follows, for people and coding agents alike. [ROADMAP.md](ROADMAP.md) has the open work, with design sketches.
|
|
368
|
+
|
|
369
|
+
## Design principles
|
|
370
|
+
|
|
371
|
+
- **Declarative.** Describe what the system is: which agents, how work moves between them, where requests come from. Modulus does the running.
|
|
372
|
+
- **Everything is a file.** Agents, flows and deployments are TOML you can read, diff, review and version. The editor writes the same files, keeping your comments.
|
|
373
|
+
- **Composable.** Any agent can be used in any flow, any flow in another flow, and any flow in any deployment.
|
|
374
|
+
- **Transparent.** Every step, model call, tool call, route and dollar is visible as it happens and kept afterwards.
|
|
375
|
+
- **Measured.** Costs are tracked and capped, and evals turn "it seems better" into numbers.
|
|
376
|
+
- **Few dependencies.** Plain Python and plain JavaScript: no build step, no framework for the UI, and protocols like MCP spoken directly.
|
|
377
|
+
|
|
378
|
+
## Roadmap
|
|
379
|
+
|
|
380
|
+
- [x] Agents, flows (branches, joins, loops) and deployments as separate files
|
|
381
|
+
- [x] Providers: Anthropic, OpenAI, Gemini, Vertex AI, Ollama, with fallbacks between them
|
|
382
|
+
- [x] Tools from Python functions, MCP servers and other agents
|
|
383
|
+
- [x] Vector and conversation memory
|
|
384
|
+
- [x] HTTP API, chat page and terminal chat, with streaming and live progress
|
|
385
|
+
- [x] Visual editor, with a Test pane
|
|
386
|
+
- [x] Conditional edges, retries, timeouts and error routes; nodes and your own node types
|
|
387
|
+
- [x] Costs per step and request, and budgets that stop runaway requests
|
|
388
|
+
- [x] Parallel steps and concurrent conversations
|
|
389
|
+
- [x] Pausing and resuming, run history and replay
|
|
390
|
+
- [x] Evals
|
|
391
|
+
- [x] `modulus code` and the flow builder, built from all of the above
|
|
392
|
+
- [ ] A repository of nodes and flows to download
|
|
393
|
+
- [ ] Deployment nodes that pull and push data outside Modulus (schedules, webhooks, MQTT)
|
|
394
|
+
|
|
395
|
+
See [ROADMAP.md](ROADMAP.md) for each open item, with design sketches and where to start in the code.
|
|
396
|
+
|
|
397
|
+
## License
|
|
398
|
+
|
|
399
|
+
Modulus is licensed under the **Mozilla Public License 2.0 (MPL 2.0)**. You're free to use, modify and redistribute it under the terms of the MPL; changes to existing MPL-licensed files must be shared under the same license, and new files you create, kept separate from them, can be licensed as you choose. See [LICENSE](./LICENSE) for the full text.
|
|
400
|
+
|
|
401
|
+
## Contributing
|
|
402
|
+
|
|
403
|
+
Modulus is in active development, and contributions are welcome: fork the repository, make your change on a branch, and open a pull request explaining what it does and why. Documentation, examples and tests are as valuable as code. Start with [AGENTS.md](AGENTS.md).
|
|
404
|
+
|
|
405
|
+
Modulus is inspired by Terraform (declarative infrastructure) and LangChain (tool and agent orchestration). If you're building systems of agents and want more control over how they're defined and run, we'd love to hear how it goes: open an issue with ideas, questions or feature requests.
|
|
406
|
+
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
modulus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
modulus/cli/__init__.py,sha256=7YaGUWLHs9bH6ndX1Kc3f9cE2lEbZUd5Up3LOoVAZU4,222
|
|
3
|
+
modulus/cli/commands/__init__.py,sha256=3TRw1ClzSNKgFWfBiImsFY2Po31j5k7ijyyv8bQcFzY,534
|
|
4
|
+
modulus/cli/commands/apply.py,sha256=QfP1oCVbkMOenif7mvMcIJjjPHyaYKDEe8ORF5i9cbU,4735
|
|
5
|
+
modulus/cli/commands/code.py,sha256=7PfJEHlnw5ckl8wZPzG4Eq6D2rKOASsLelOMyeqdHeU,2048
|
|
6
|
+
modulus/cli/commands/config.py,sha256=X-yJoZUmuu-n8M-SXn9tKsIvT97kQhtHUxm8EgNy6us,4139
|
|
7
|
+
modulus/cli/commands/destroy.py,sha256=8m6w1WnP8uzHCilvTvy-0N8cBdzRHyYVxl65_ApOMk8,225
|
|
8
|
+
modulus/cli/commands/eval.py,sha256=H6d5NfQiPHJwIb7Lle8hYAbH9dhPcSceOCHFGSBl_Ew,4520
|
|
9
|
+
modulus/cli/commands/init.py,sha256=on-kSp4V5ZI-WRSUhY5CbyDdEb_lqpCu1zlQlAEihOk,11748
|
|
10
|
+
modulus/cli/commands/new.py,sha256=d7b0MYFOvWloM8yr4PksppLgC_V9fPHv34KztRQcdiE,1179
|
|
11
|
+
modulus/cli/commands/plan.py,sha256=-dg9HZIgwtwXI-75Oz3a-nm3S4HQcrtH8Xe21Zmkzrw,4120
|
|
12
|
+
modulus/cli/commands/run.py,sha256=6U0Lu-Q3rnhFvv4Km2BrswLo5B16_gWnqhfSzK-TPg0,17805
|
|
13
|
+
modulus/cli/commands/runs.py,sha256=pRgb8FZNZUrC_kwDJoLLQPlGjHCCYHgmf2XH1msne8w,10856
|
|
14
|
+
modulus/cli/commands/show.py,sha256=b--gL5sgaLdBRCpNt2WA915SjsVNnKr5VD3S3SYaZ0o,2141
|
|
15
|
+
modulus/cli/commands/verify.py,sha256=zdY-cRZE4saXKwDWuWZQP61XyaAV6nq1Nl52AQjto3w,36238
|
|
16
|
+
modulus/cli/main.py,sha256=aZBhumkfcGhFIwshY60-O2Ums7cGYWLqlLTFm9rq6s8,10671
|
|
17
|
+
modulus/cli/pick.py,sha256=II53RnhAhXe0Y936LIO1ClKsViQHR-D7ki6b8mjXyCY,3453
|
|
18
|
+
modulus/cli/setup.py,sha256=HjdSWZLHNrfmwJE5eCEqmQpmf-wSkmfJZBwTgsy0Xik,16856
|
|
19
|
+
modulus/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
20
|
+
modulus/core/build.py,sha256=5IShxCL5PPfV7vAO4mq3nhZLTDoOOCFke9KFJnw5cfw,21286
|
|
21
|
+
modulus/core/documents.py,sha256=raYysm6sfYvHkygA9ynCYxEXLhDZfUyz9bW-U5XgU0c,4136
|
|
22
|
+
modulus/core/evals.py,sha256=qPWd2TM_JQoWMY7IHKO84uAVF45cLvfnSm_t_lsG7Nw,15473
|
|
23
|
+
modulus/core/live.py,sha256=ZnQa1PQirq5WVVVi7Lxga_-JAQvUQTBqamWMQujVryQ,13681
|
|
24
|
+
modulus/core/models/__init__.py,sha256=zBJEIZ4KBRE1joKiBtcpjVm0qGsPkKlJS_A7BKfDfEY,562
|
|
25
|
+
modulus/core/models/agent.py,sha256=82fYjbY4I_6VwCIkkj5ENhY5oc2sbXuiKUVx_tPtXzk,543
|
|
26
|
+
modulus/core/models/deployment.py,sha256=uUheuO75NSum-eV-OsE6qYbRwq0fcjK7NL_FG9sGFi8,2248
|
|
27
|
+
modulus/core/models/embedding.py,sha256=HSaLWQm7OoyLGXoQZ__bDz4y_IH-Fv56uOa-IW5HpOk,421
|
|
28
|
+
modulus/core/models/flow.py,sha256=sFvDxv5N0Qzhb78IIVgn_PvjdMHrXM3svKTuH_3WrrM,4659
|
|
29
|
+
modulus/core/models/llm.py,sha256=f92bWK-8-Dk348YvEG-ySVIjXmslQZejzy5uDVA1mYc,491
|
|
30
|
+
modulus/core/models/memory.py,sha256=O5XPZijD-hM2SPgOdnlu8Dt_Kp0O_tPx37sUDx2_IRI,560
|
|
31
|
+
modulus/core/models/provider.py,sha256=v-aX-sj4cBc2DqtrC9Mf03NLb0f7LXvevj9eUR61F4A,434
|
|
32
|
+
modulus/core/models/tool.py,sha256=F6_RDbRaoBkY2hWB7NC8yv9hCi3MrRIZyOKaTy0yjLU,387
|
|
33
|
+
modulus/core/models/vars.py,sha256=2Rfso7zH5LAGbYrIYc6mfgeXU87jEyDpWS7tqp79UAw,532
|
|
34
|
+
modulus/core/nodes/__init__.py,sha256=oI9NcnA9J6SfA4xsfuGh4AEbhV40uTdeiSQqt9wk3kc,13899
|
|
35
|
+
modulus/core/nodes/builtin/function/node.py,sha256=Ca4no5znlvmMnEecd4nId_oYw0WyHjFEGATBcDu7LuY,872
|
|
36
|
+
modulus/core/nodes/builtin/function/node.toml,sha256=UTwd33eHfQf-InXCd-k-XX_QVIBYZRiHbdSET07wqGM,576
|
|
37
|
+
modulus/core/nodes/builtin/http/node.py,sha256=jmD5ol_i29Q1MSAu4BZ_sbzIt2c3OeygxPEYZjEWUyM,2278
|
|
38
|
+
modulus/core/nodes/builtin/http/node.toml,sha256=_7GoNiuwst14JA1KFLlByyjGNFYmEbulaekcZHFvs-8,1338
|
|
39
|
+
modulus/core/nodes/builtin/read_file/node.py,sha256=ubLnKA7P_pk0hw-QtXvGcPX8FFAxNk2JtTHOHAo-xQ4,1107
|
|
40
|
+
modulus/core/nodes/builtin/read_file/node.toml,sha256=TQAm8fK-iqf4i1z_yxPLmm0LbpBfLGyIo8-xfEoMRtA,752
|
|
41
|
+
modulus/core/nodes/builtin/template/node.py,sha256=Y6lGzv1Z5upIlcXD6wCnPgde3hhpOynYx_BM_Ifh7OE,352
|
|
42
|
+
modulus/core/nodes/builtin/template/node.toml,sha256=hWDfTg6qu22qqYo3PFIK11abCtCnOqpNKyYlr7O8NUY,646
|
|
43
|
+
modulus/core/nodes/builtin/write_file/node.py,sha256=FagPV9OXTlMBUg2xneWo5Cdy5mYQrWFAGloIi9hqofU,520
|
|
44
|
+
modulus/core/nodes/builtin/write_file/node.toml,sha256=-Xrp31FUfvU7DUTPduf2G9d4nVIZwuGKv0qhXMI7Fmg,646
|
|
45
|
+
modulus/core/nodes/text.py,sha256=VOz6_Mw2lHIGrDdGyXuKUoCNKQl2tezuOev9e4zY5t4,5568
|
|
46
|
+
modulus/core/parser.py,sha256=rc6SwLBnKkbv-_0NyRCVjLvLuiBVDEWx0JrWr5SeA6M,20326
|
|
47
|
+
modulus/core/pdf.py,sha256=35sSUW7oCxXErEFV9Lal_AOgUpA_hdD3h3m0mQb4p3Y,39604
|
|
48
|
+
modulus/core/project.py,sha256=yL0BRo5VSiclxNw-KreCarHM7Ni1nLCcikpn5VrJPEo,8691
|
|
49
|
+
modulus/core/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
50
|
+
modulus/core/resources/agent.py,sha256=nCxrS6DZGaUHz7XZ6ZVJOgvXLvvMbwgmgvL4V2PD82g,48124
|
|
51
|
+
modulus/core/resources/deployment.py,sha256=l_r4JGf9q-P1yne2CtWfvWAADauri41OYVbrWMgqQss,16328
|
|
52
|
+
modulus/core/resources/embedding/__init__.py,sha256=NoRdtW6GAzLMJC3M-cqL_MMXgxx3VsTG-u75cIBKWz0,398
|
|
53
|
+
modulus/core/resources/embedding/embedding_model.py,sha256=bDPwuSMaynJI0PpPFdFR9as_VU_3h-ruOBskVF5lFlg,598
|
|
54
|
+
modulus/core/resources/embedding/gemini_embedding.py,sha256=BCZ3gKOkdhdnLSe-JHbmarqfmHSnlLRkV9qGquzQJz4,934
|
|
55
|
+
modulus/core/resources/embedding/ollama_embedding.py,sha256=HvFpd4m7iOb2o-tW5FrbWx16UqtfspWlJxKOGgLPMLw,909
|
|
56
|
+
modulus/core/resources/embedding/openai_embedding.py,sha256=rFMwuaFAgbi60XTTTSZs_E_A54QaE3E4KuhNmbSoNSw,1057
|
|
57
|
+
modulus/core/resources/flow.py,sha256=lWSGFdXlULJFbvuCTczDEix55wcreMnB6M1evtO1HJQ,42466
|
|
58
|
+
modulus/core/resources/human.py,sha256=Ukh1-lvogtkSwDlkXAZto9nVX68Xa13bgVfDJ_L-Irw,3185
|
|
59
|
+
modulus/core/resources/llm/__init__.py,sha256=0XEfMInqGqMVAIAGNhkpeUP71DyJAoNRAz_54CB8i_o,429
|
|
60
|
+
modulus/core/resources/llm/anthropic_llm.py,sha256=0GaDC8ZZk2vpPNhNBcl0J2S6oXlwkKVlzCoSSWdRAG0,10485
|
|
61
|
+
modulus/core/resources/llm/gemini_llm.py,sha256=aOMHG0h3_SnoFc3eweZngx_JF2cufYJ9xgXARwk6BKU,13179
|
|
62
|
+
modulus/core/resources/llm/llm.py,sha256=0qWUca6a9D6VzDmxejPSH0eGPW1xVo7tkRx4HL9B21Y,1975
|
|
63
|
+
modulus/core/resources/llm/messages.py,sha256=jtyOTiH1Bw06A3IVhS91O3k-GqYZI0dPrA7qWCYwvlE,4164
|
|
64
|
+
modulus/core/resources/llm/ollama_llm.py,sha256=n3-HPkDxXF5rlZtUSaisJmAk6QTr-t-Dg7MyqHWY6YU,6972
|
|
65
|
+
modulus/core/resources/llm/openai_llm.py,sha256=e-oCBTp3hfLy_lKDM1FeTx_5jDFA3nFdSEcvP8h4ESA,4727
|
|
66
|
+
modulus/core/resources/llm/prices.py,sha256=7R7EfQA2lC1wlqCtonavaYXuzOBAWVvvYXGfR7gIhxc,3264
|
|
67
|
+
modulus/core/resources/mcp.py,sha256=QrUS56EXE4MuII1XYcGWy-jT9E7V4Ql8UPegOK5qYZM,14504
|
|
68
|
+
modulus/core/resources/memory/__init__.py,sha256=AbkmKKGHOxtWIG503-kljqlSh3o-C2sepMR06ChRc0E,361
|
|
69
|
+
modulus/core/resources/memory/conversation.py,sha256=XHXg6dpIRuk6EG4qa3VpJuNTgNaYvrJcPxatwkt9fIk,8596
|
|
70
|
+
modulus/core/resources/memory/local.py,sha256=N0SXJd0pzFwhSnm6hPX208pYsiYtaIi6LW8gl0fbi4U,11915
|
|
71
|
+
modulus/core/resources/memory/memory.py,sha256=G3LSZ7fZkoP9eVCUzjj-AZq7ADXnUlWdel2qCosyHcU,3594
|
|
72
|
+
modulus/core/resources/memory/tools.py,sha256=aSaCmHF648E81d7iewisJkDw9QA5oxbGhVzRU82ufhk,3089
|
|
73
|
+
modulus/core/resources/provider/__init__.py,sha256=qUiogUGPjcZMUlJjr2wfampTWooSw2Ntia9vwcP_lb8,430
|
|
74
|
+
modulus/core/resources/provider/anthropic_provider.py,sha256=R9VXm0Y5H3tIuVU4fqnaJhZzUnFtVTkFV5JMK2NQYFM,1195
|
|
75
|
+
modulus/core/resources/provider/gemini_provider.py,sha256=QWvxt_GExR4wBez1b1mwcrPdECbCfAnkpGWueA5661w,2395
|
|
76
|
+
modulus/core/resources/provider/ollama_provider.py,sha256=dAo19gYadyQE4M2W2S7Y5MYXy2nhGB6fFhlpmX-lKoY,2499
|
|
77
|
+
modulus/core/resources/provider/openai_provider.py,sha256=nhRBWjd4XbFPG2oYHWsOC1FEu2jmpqskm5UvrGyYG7w,691
|
|
78
|
+
modulus/core/resources/provider/provider.py,sha256=4yY-sP_0K0kB8ROruUxJiYk8_eju1ZusbJuGU_tSwH0,1138
|
|
79
|
+
modulus/core/resources/registry.py,sha256=I2WO2wQQp93KTRpYOCB0AV7kbo_2k3khcpaXxARwPP8,2022
|
|
80
|
+
modulus/core/resources/runtime/__init__.py,sha256=dHWcCq1FLK9CCV024Y-94SQncFfrpe3lWELpeIKQkMU,255
|
|
81
|
+
modulus/core/resources/runtime/fastapi_runtime.py,sha256=tgTGhxFWg2rEG3PNxLAZbcAGAFazkH01gdl5jMa3Dxc,20575
|
|
82
|
+
modulus/core/resources/runtime/static/chat.css,sha256=ktUT4diA_FTRVTiJZUeZ-vNydJ4xQux8yvFlBVf_DV4,18722
|
|
83
|
+
modulus/core/resources/runtime/static/chat.html,sha256=HE-88qfeK4x2ZkuIt7PIHP-HwiKbRiMzQjD-HmAJaZU,3051
|
|
84
|
+
modulus/core/resources/runtime/static/chat.js,sha256=OJQSb-Ovy8x24OH8ktlyZdJ_5HuMEVXFzW2wOxiwoc0,44782
|
|
85
|
+
modulus/core/resources/runtime/terminal.py,sha256=8KC47JQtd5EoZkdR1vQv0akQuHbNguGEMJuujPOex8U,64534
|
|
86
|
+
modulus/core/resources/runtime/terminal_protocols.py,sha256=WRxoiIAsHPUDCawKAOWtu4gKHyU17-MaBvRZuXsiKes,7112
|
|
87
|
+
modulus/core/resources/tool.py,sha256=XtCp6F2t9U149ajSd6s8Rpf9crPKnajz4psDDOnweGY,14089
|
|
88
|
+
modulus/core/runs.py,sha256=u9--YQ5SsgWrLViHab_j5YcjgkimmcuhmfzliCCtT8w,7895
|
|
89
|
+
modulus/core/skills.py,sha256=_ulICNUL-LOoojrEeqz_R70hneZ7VD86ZDaHLex609E,10546
|
|
90
|
+
modulus/core/testing.py,sha256=28Qch_slKUudqjGr9OGg1uVDTV3owzL_UqRUQN3G-4M,3152
|
|
91
|
+
modulus/editor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
92
|
+
modulus/editor/document.py,sha256=oO4DNsiXF3aJnuJsvx8jx1rP7S082WZcdHUDZzNOx94,12917
|
|
93
|
+
modulus/editor/server.py,sha256=yokSiEriYk47sOACYMOA94QjtiBhqXAvUqG26Ku0W2g,28251
|
|
94
|
+
modulus/editor/static/app.js,sha256=eJmO7LWiDbVJrSQYVffhkTWc-JjIyY9Vy50LvlCQ7GE,118983
|
|
95
|
+
modulus/editor/static/index.html,sha256=8sj3-Q56Nl4Sm_dVdi6nI7EuJvorfOXZHVW6gEj3Dv8,7052
|
|
96
|
+
modulus/editor/static/kinds.js,sha256=v6WCE_FaTKOAjm6Q0121xadhjW--N21PmxpHs_i2Sns,17466
|
|
97
|
+
modulus/editor/static/library.js,sha256=o9laUXpnQPWf-keuGww-oaZ1YnBtkIfIZuhMDGdCGeg,26158
|
|
98
|
+
modulus/editor/static/style.css,sha256=BvFlsysZIkrbL6skYjT4cZVdD9vP85tSYBWhvQaW_YE,32416
|
|
99
|
+
modulus/main.py,sha256=yZSGj2kl66IbcTMSKvOEtEE-4kIJz_mU01G29gKGozE,289
|
|
100
|
+
modulus/templates/home/agents/builder.toml,sha256=o3fwGTPQrB2WjOC82J99WKcd7B6wW16nR4ns5MMgRC8,2676
|
|
101
|
+
modulus/templates/home/agents/builder_review.toml,sha256=7xW7PvtzGBMrHkUpsowZG6rqsjUsC1nvbfw4w9YjSIk,1453
|
|
102
|
+
modulus/templates/home/agents/coder.toml,sha256=UGV1crL2uk3VWLTuXqcnk-W5RtBaTX5fb3ryjuFBHPI,5254
|
|
103
|
+
modulus/templates/home/agents/coder_ask.toml,sha256=I37LrReRBqMUPNr-DOfNfd3F0mdlNEG3tFLiH85fTRs,2396
|
|
104
|
+
modulus/templates/home/agents/coder_explore.toml,sha256=OKlcKAdY5JY1XOR6M4AKZnW4-kTelXNqYxJPHyx29w8,1917
|
|
105
|
+
modulus/templates/home/agents/coder_quick.toml,sha256=Gg11ySSC7_jXiI_2ECRto1ArQGAi_memr_bihFEPICs,2842
|
|
106
|
+
modulus/templates/home/agents/coder_review.toml,sha256=civFGXPDnAcE9rhI7pKj_h_4z_IjZ1kUjLCyVGu2s1Y,2068
|
|
107
|
+
modulus/templates/home/agents/coder_triage.toml,sha256=LGKdyEE7rH1upbe1HJMW0wl3f-yFx4-EW8f7gJIlW8s,1216
|
|
108
|
+
modulus/templates/home/agents/coder_worker.toml,sha256=9Z9jFL1lYwfD8Fqqq4KEvKeoLGAX7tcLAtwm2rNMvAc,2383
|
|
109
|
+
modulus/templates/home/deployments/builder.toml,sha256=BEOHObnNK1-rLSEHpymCGdXHWwxdV3FH5MDEQE5oBdI,279
|
|
110
|
+
modulus/templates/home/deployments/coder.toml,sha256=cJ97L9BiTwEfGCSEdBSaHRi9Z3vPuBqANRGLduqugGQ,462
|
|
111
|
+
modulus/templates/home/flows/build.toml,sha256=Y2ozmER1371wGFF8zki6lRrvgM2v9CGea-z0282bnvk,1712
|
|
112
|
+
modulus/templates/home/flows/code.toml,sha256=jhVDYA62VgU131mX58O-fu6Pz9Mp7Zo9Xlzs-B9ckQw,3927
|
|
113
|
+
modulus/templates/home/functions/builder.py,sha256=sOBoUes61mRCMcrrCFVUYfOh5TbvQ9SfcpI-LlxMk8c,32719
|
|
114
|
+
modulus/templates/home/functions/code.py,sha256=ixAEv5T3iy_S2_df1lEpl1jyztwmN3Emzl3Ltq1hq8M,94416
|
|
115
|
+
modulus/templates/home/functions/documents.py,sha256=n0kRP64zpo8KNr8RRWaQsNjPnhNeA9Tb6mZzy69Ywog,2438
|
|
116
|
+
modulus/templates/home/functions/eng_calc.py,sha256=jMplg53914b2YbRxaviCsGEVca7i0uLUOxoUiszhpME,8124
|
|
117
|
+
modulus/templates/home/functions/web.py,sha256=0jp7BnZtL1DWIS0Qg3Y3xBgPLBMU5-m1SBLpfpXsA4c,1565
|
|
118
|
+
modulus/templates/home/modulus.toml,sha256=3F5W-uTD2z-gIQdKj5s1Q123H3YtG4s9oSMOtFzUb84,5815
|
|
119
|
+
modulus/templates/home/prompts/builder.prompt,sha256=f1w9lPSeP1W-_J9LkbiCrc9WvwwVPKv3JGiCF3xs-i0,14946
|
|
120
|
+
modulus/templates/home/prompts/builder_review.prompt,sha256=KCnpvaMniApubMycxkBXl-4WSwZ4EzZQ1tXwNukdKL4,1629
|
|
121
|
+
modulus/templates/home/prompts/coder.prompt,sha256=87mmYoT7CF17YM_ECRoa-fn7LEnC4gTfGQDnwdQ8BVY,6070
|
|
122
|
+
modulus/templates/home/prompts/coder_ask.prompt,sha256=Mjr95EH3EUokr4lOmKsMXuQQBMAl8pvlg0Mo5i0J7oI,1088
|
|
123
|
+
modulus/templates/home/prompts/coder_explore.prompt,sha256=CgjWW0qKrmLvbCgDa7mDk9iz0sEoGLajKm1Hk3fGyBA,938
|
|
124
|
+
modulus/templates/home/prompts/coder_quick.prompt,sha256=2WFjhCVCCNF9kbj-cKVhcAkwejoW1T3lO17aHtUkvSY,1193
|
|
125
|
+
modulus/templates/home/prompts/coder_review.prompt,sha256=6cRG90JWhqd1uRP3paBBL40uJt_mXH-U6zVDMGbF9CU,1738
|
|
126
|
+
modulus/templates/home/prompts/coder_triage.prompt,sha256=FM1chnfpCPXAZNnoWovFkD1x9YL6Kc8Abxk4Y1wSLBE,1935
|
|
127
|
+
modulus/templates/home/prompts/coder_worker.prompt,sha256=477y7_tWMkgBGDrF9QwLKcKlItIlaTpV2B8rE_xr2zc,896
|
|
128
|
+
modulus/templates/home/skills/commit/SKILL.md,sha256=LJJFQxa3JNokV12-3oHKf4SN9y4egJBa30Ob3Zawexc,3079
|
|
129
|
+
modulus/templates/home/skills/new-skill/SKILL.md,sha256=khNPrPvrSCBdFYGT-ahb6sr61ekuUSxORr_06nFx-h4,1648
|
|
130
|
+
flyby_modulus-0.1.0.dist-info/METADATA,sha256=WNPbJhszsTM_6-LPSacOFBGBqKb2_XO8qHI1nmDFdfI,34282
|
|
131
|
+
flyby_modulus-0.1.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
132
|
+
flyby_modulus-0.1.0.dist-info/entry_points.txt,sha256=OF4CCZv-uqwiSfnibXaEhwEMlb8OaByhsXCyquPgsFE,45
|
|
133
|
+
flyby_modulus-0.1.0.dist-info/licenses/LICENSE,sha256=S4nUUYvRNatO4VSnvOciJGtXqYw9fvwaCUCYmBYMK9E,16724
|
|
134
|
+
flyby_modulus-0.1.0.dist-info/RECORD,,
|