@@ -15,24 +15,109 @@ LLM coding agents waste **80-95% of context tokens** on irrelevant tool output.
1515
1616Squeez uses a fine-tuned Qwen 3.5 2B model to read tool output alongside a task description and return only the relevant lines.
1717
18+ ### Example — filtering test output
19+
20+ Task: * "Find the test failure related to authentication"*
21+
22+ <table >
23+ <tr >
24+ <th >Before — 45 lines, ~1,500 tokens</th >
25+ <th >After — 6 lines, ~200 tokens</th >
26+ </tr >
27+ <tr >
28+ <td >
29+
30+ ```
31+ $ python -m pytest tests/ -v
32+ ======================== test session starts ========================
33+ platform linux -- Python 3.12.1, pytest-8.1.1
34+ collected 23 items
35+
36+ tests/test_auth.py::test_login_valid PASSED
37+ tests/test_auth.py::test_login_invalid PASSED
38+ tests/test_auth.py::test_token_refresh FAILED
39+ tests/test_auth.py::test_logout PASSED
40+ tests/test_users.py::test_create_user PASSED
41+ tests/test_users.py::test_delete_user PASSED
42+ tests/test_users.py::test_list_users PASSED
43+ tests/test_middleware.py::test_csrf_check PASSED
44+ tests/test_middleware.py::test_rate_limit PASSED
45+ tests/test_middleware.py::test_cors_headers PASSED
46+
47+ ======================= FAILURES ================================
48+ _____ test_token_refresh ________________________________________
49+
50+ def test_token_refresh(self):
51+ token = self.client.get_token(expired=True)
52+ > refreshed = self.client.refresh(token)
53+ E AuthenticationError: Token refresh window expired
54+ E Expected: new token within 30m window
55+ E Got: rejection after 15m (timeout changed?)
56+
57+ tests/test_auth.py:47: AuthenticationError
58+ ================ short test summary info ========================
59+ FAILED tests/test_auth.py::test_token_refresh
60+ ================== 1 failed, 9 passed ==========================
61+ ```
62+
63+ </td >
64+ <td >
65+
66+ ```
67+ tests/test_auth.py::test_token_refresh FAILED
68+
69+ def test_token_refresh(self):
70+ token = self.client.get_token(expired=True)
71+ > refreshed = self.client.refresh(token)
72+ E AuthenticationError: Token refresh window expired
73+ E Expected: new token within 30m window
74+ E Got: rejection after 15m (timeout changed?)
75+ ```
76+
77+ ** 87% compression** — only the failing test and its traceback survive. Passing tests and pytest boilerplate are dropped.
78+
79+ </td >
80+ </tr >
81+ </table >
82+
83+ ``` bash
84+ $ python -m pytest tests/ -v 2>&1 | squeez " find the test failure related to authentication"
1885```
19- $ git log --oneline -25 | squeez "find the commit that changed the auth timeout"
86+
87+ <details >
88+ <summary ><b >More examples</b ></summary >
89+
90+ ** Filtering git log:**
91+
92+ ```
93+ $ git log --oneline -25 | squeez "find the commit that changed the authentication timeout"
2094
2195u6v7w8x Change auth timeout from 30m to 1h
2296```
2397
98+ ** Filtering build output:**
99+
100+ ```
101+ $ npm run build 2>&1 | squeez "find the TypeScript error"
102+
103+ src/components/Auth.tsx(34,5): error TS2345: Argument of type 'string' is
104+ not assignable to parameter of type 'AuthToken'.
24105```
25- $ cat django/middleware.py | squeez "Find the referer validation block in the CSRF middleware"
26106
27- class CsrfViewMiddleware(MiddlewareMixin):
28- def _check_referer(self, request):
29- referer = request.META.get('HTTP_REFERER')
30- if referer is None:
31- raise RejectRequest('No referer')
32- good_referer = request.get_host()
33- if not same_origin(referer, good_referer):
34- raise RejectRequest('Bad referer')
107+ ** Filtering kubectl output:**
108+
35109```
110+ $ kubectl describe pod api-server-7d4b | squeez "why is the pod failing"
111+
112+ State: Waiting
113+ Reason: CrashLoopBackOff
114+ Last State: Terminated
115+ Reason: Error
116+ Exit Code: 1
117+ Warning BackOff 3m (x5) kubelet Back-off restarting failed container
118+ ```
119+
120+ </details >
36121
37122## Install
38123
0 commit comments