pithio 0.1.0__py3-none-win_amd64.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.
Binary file
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: pithio
3
+ Version: 0.1.0
4
+ Classifier: Environment :: Console
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: Operating System :: OS Independent
7
+ Classifier: Programming Language :: Rust
8
+ Classifier: Topic :: Software Development
9
+ License-File: LICENSE.md
10
+ Summary: Shorter tool output for AI coding agents, without losing the answer
11
+ Keywords: ai,agents,llm,tokens,claude-code,mcp
12
+ Requires-Python: >=3.8
13
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
14
+
15
+ # pithio
16
+
17
+ **Local context compression for AI agents. Less to read, details within reach.**
18
+
19
+ pithio shortens the text and data your agents read from terminals, APIs, web pages and connected tools, before the
20
+ model reads it. Every shortened output says what it left out, and the full original stays on your machine: when the
21
+ agent needs a detail, it fetches it or queries it exactly.
22
+
23
+ ## Install and set up (two commands)
24
+
25
+ **1. Install** (one line, no Rust needed):
26
+
27
+ ```sh
28
+ # macOS and Linux
29
+ curl -fsSL https://raw.githubusercontent.com/allenjoseph05/pithio/main/install.sh | sh
30
+ ```
31
+
32
+ ```powershell
33
+ # Windows (PowerShell)
34
+ irm https://raw.githubusercontent.com/allenjoseph05/pithio/main/install.ps1 | iex
35
+ ```
36
+
37
+ Or download the file for your system from [Releases](https://github.com/allenjoseph05/pithio/releases), or build it
38
+ with `cargo install --git https://github.com/allenjoseph05/pithio pithio`.
39
+
40
+ **2. Connect your agent:**
41
+
42
+ ```sh
43
+ pithio init --agent claude-code --write # or: codex, cursor, copilot, gemini
44
+ pithio doctor # checks the setup
45
+ ```
46
+
47
+ That is all: from your agent's next session, its tool outputs are shortened. `pithio dashboard` shows what was saved;
48
+ `pithio uninstall --agent claude-code --write` removes it again.
49
+
50
+ ## Results
51
+
52
+ | on real developer tool output | without pithio | with pithio |
53
+ |---|---|---|
54
+ | correct answers (171 questions, Claude Haiku) | 86.5 % | **91.8 %** |
55
+ | input tokens per tool output | 39,775 | **28,330** (29 % fewer) |
56
+ | correct answers on real system logs (Loghub) | 57.4 % | **74.1 %**, with 60 % fewer tokens |
57
+ | tool-result tokens on GitHub API pages | 100 % | **7.8 %**, every answer still visible |
58
+
59
+ How these were measured: [BENCHMARKS.md](BENCHMARKS.md).
60
+
61
+ ## What it shortens
62
+
63
+ - **Terminals and repositories:** test runs, builds, compiler diagnostics, git log and diff, file lists.
64
+ - **Tables and structured data:** JSON API responses, CSV and delimited tables, YAML and TOML.
65
+ - **Logs and search:** application logs, failed CI jobs, code and text search matches.
66
+ - **Web and MCP results:** fetched web pages, issue lists, search hits, database rows, connector logs.
67
+
68
+ Source files the agent is editing and short outputs are left alone. Output is never larger than the input, and the
69
+ same input always gives the same output, so prompt caches keep working.
70
+
71
+ ## Every output says what it did
72
+
73
+ Each shortened output opens with a note naming its level:
74
+
75
+ 1. **Lossless:** the same data, written more compactly.
76
+ 2. **Repeats only:** every distinct value or kind of line shown, repeats counted.
77
+ 3. **Focused:** some parts left out; the note says what and how to get them.
78
+
79
+ ```text
80
+ test sample::case_001 ... ok
81
+ [... 79 more lines of the kinds shown above (other numbers) ...]
82
+ test sample::reports_expired_session ... FAILED
83
+
84
+ [pithio: level 2, repeats only: every kind of line is shown, repeats folded with exact counts; original 1,204 tokens: kept locally as handle 3f2a9c1e8b7d6a54]
85
+ ```
86
+
87
+ ## Getting a detail back
88
+
89
+ The agent (or you) can recover anything from a shortened output by its handle:
90
+
91
+ ```sh
92
+ pithio more HANDLE # read the original, page by page
93
+ pithio more HANDLE --grep timeout # matching lines
94
+ pithio q HANDLE # the tables in it and their columns
95
+ pithio q HANDLE "count status = 500" # exact counts, sums, filters and lookups (SQL)
96
+ pithio grep HANDLE "worker 7" # lines that contain a text
97
+ ```
98
+
99
+ ## Other ways to use it
100
+
101
+ - **In your own app (Python, Node), coming soon as `pip install pithio` and `npm install pithio`:**
102
+ `client = pithio.wrap(anthropic.Anthropic())` shortens tool results in every request and adds a recovery tool.
103
+ - **MCP gateway:** list your MCP servers in the config, then connect your client to `pithio serve --config PATH`.
104
+ - **Any shell command:** `pithio run -- COMMAND`.
105
+ - **Local proxy:** point an Anthropic client at `http://127.0.0.1:8788` (`pithio proxy`).
106
+
107
+ ## See what it saved
108
+
109
+ ```sh
110
+ pithio gain # tokens saved today, this week, all time
111
+ pithio show # recent shortened outputs, each next to its original
112
+ pithio audit # checks every stored output against what its note promised
113
+ pithio dashboard # the same in a local web page
114
+ ```
115
+
116
+ ## Privacy
117
+
118
+ Everything runs on your machine; pithio sends nothing anywhere. Originals are kept locally for one day
119
+ (`~/.pithio`); `pithio forget` deletes them. Outputs that look like they hold a secret are never stored.
120
+
121
+ ## Building from source
122
+
123
+ ```sh
124
+ cargo build --release -p pithio
125
+ cargo test --release -p pithio-core -p pithio
126
+ ```
127
+
128
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [SECURITY.md](SECURITY.md).
129
+
130
+ ## Licence
131
+
132
+ [FSL-1.1-ALv2](LICENSE.md).
133
+
@@ -0,0 +1,6 @@
1
+ pithio-0.1.0.data/scripts/pithio.exe,sha256=L57eK4ISe-sNmVyFRH_8PuuOOMXsfTLAA7HeIRyicUE,13493760
2
+ pithio-0.1.0.dist-info/METADATA,sha256=q2Rsie9pcp5dRxNYJ3QDjt1Uf-fJmhercmmpOryFcXI,5184
3
+ pithio-0.1.0.dist-info/WHEEL,sha256=Uvw7WSmy7Kj2FBk8Va4L_dq4MDW8X5Ynby-pOX3ZNS0,94
4
+ pithio-0.1.0.dist-info/licenses/LICENSE.md,sha256=4MpEW2vLcoqeIj6XAtPCbZV2_UYKuab1onipiXieOjw,3751
5
+ pithio-0.1.0.dist-info/sboms/pithio.cyclonedx.json,sha256=CeAPGsVc4S0O1nRm58k-HDuhUFxer3fqEeNPD2q_xU8,159351
6
+ pithio-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: maturin (1.16.0)
3
+ Root-Is-Purelib: false
4
+ Tag: py3-none-win_amd64
@@ -0,0 +1,105 @@
1
+ # Functional Source License, Version 1.1, ALv2 Future License
2
+
3
+ ## Abbreviation
4
+
5
+ FSL-1.1-ALv2
6
+
7
+ ## Notice
8
+
9
+ Copyright 2026 Allen Joseph Antony
10
+
11
+ ## Terms and Conditions
12
+
13
+ ### Licensor ("We")
14
+
15
+ The party offering the Software under these Terms and Conditions.
16
+
17
+ ### The Software
18
+
19
+ The "Software" is each version of the software that we make available under
20
+ these Terms and Conditions, as indicated by our inclusion of these Terms and
21
+ Conditions with the Software.
22
+
23
+ ### License Grant
24
+
25
+ Subject to your compliance with this License Grant and the Patents,
26
+ Redistribution and Trademark clauses below, we hereby grant you the right to
27
+ use, copy, modify, create derivative works, publicly perform, publicly display
28
+ and redistribute the Software for any Permitted Purpose identified below.
29
+
30
+ ### Permitted Purpose
31
+
32
+ A Permitted Purpose is any purpose other than a Competing Use. A Competing Use
33
+ means making the Software available to others in a commercial product or
34
+ service that:
35
+
36
+ 1. substitutes for the Software;
37
+
38
+ 2. substitutes for any other product or service we offer using the Software
39
+ that exists as of the date we make the Software available; or
40
+
41
+ 3. offers the same or substantially similar functionality as the Software.
42
+
43
+ Permitted Purposes specifically include using the Software:
44
+
45
+ 1. for your internal use and access;
46
+
47
+ 2. for non-commercial education;
48
+
49
+ 3. for non-commercial research; and
50
+
51
+ 4. in connection with professional services that you provide to a licensee
52
+ using the Software in accordance with these Terms and Conditions.
53
+
54
+ ### Patents
55
+
56
+ To the extent your use for a Permitted Purpose would necessarily infringe our
57
+ patents, the license grant above includes a license under our patents. If you
58
+ make a claim against any party that the Software infringes or contributes to
59
+ the infringement of any patent, then your patent license to the Software ends
60
+ immediately.
61
+
62
+ ### Redistribution
63
+
64
+ The Terms and Conditions apply to all copies, modifications and derivatives of
65
+ the Software.
66
+
67
+ If you redistribute any copies, modifications or derivatives of the Software,
68
+ you must include a copy of or a link to these Terms and Conditions and not
69
+ remove any copyright notices provided in or with the Software.
70
+
71
+ ### Disclaimer
72
+
73
+ THE SOFTWARE IS PROVIDED "AS IS" AND WITHOUT WARRANTIES OF ANY KIND, EXPRESS OR
74
+ IMPLIED, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR
75
+ PURPOSE, MERCHANTABILITY, TITLE OR NON-INFRINGEMENT.
76
+
77
+ IN NO EVENT WILL WE HAVE ANY LIABILITY TO YOU ARISING OUT OF OR RELATED TO THE
78
+ SOFTWARE, INCLUDING INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES,
79
+ EVEN IF WE HAVE BEEN INFORMED OF THEIR POSSIBILITY IN ADVANCE.
80
+
81
+ ### Trademarks
82
+
83
+ Except for displaying the License Details and identifying us as the origin of
84
+ the Software, you have no right under these Terms and Conditions to use our
85
+ trademarks, trade names, service marks or product names.
86
+
87
+ ## Grant of Future License
88
+
89
+ We hereby irrevocably grant you an additional license to use the Software under
90
+ the Apache License, Version 2.0 that is effective on the second anniversary of
91
+ the date we make the Software available. On or after that date, you may use the
92
+ Software under the Apache License, Version 2.0, in which case the following
93
+ will apply:
94
+
95
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
96
+ this file except in compliance with the License.
97
+
98
+ You may obtain a copy of the License at
99
+
100
+ http://www.apache.org/licenses/LICENSE-2.0
101
+
102
+ Unless required by applicable law or agreed to in writing, software distributed
103
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
104
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
105
+ specific language governing permissions and limitations under the License.