netra-zen 1.0.9__py3-none-any.whl → 1.0.11__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: netra-zen
3
- Version: 1.0.9
3
+ Version: 1.0.11
4
4
  Summary: Multi-instance Claude orchestrator for parallel task execution
5
5
  Home-page: https://github.com/netra-systems/zen
6
6
  Author: Systems
@@ -60,39 +60,38 @@ It works by analyzing your usage logs for metadata optimizations. It is focused
60
60
 
61
61
  This is a micro startup effort, aiming to provide real value for individual devs in exchange for feedback. Our intent is to charge businesses for larger scale optimizations.
62
62
 
63
- The process is simple. One time install, then one command. It auto grabs the last 3 log files and provides actionable items to update going forward to get the value of the optimizations.
63
+ The process is simple. One time install, then one command. It analyzes your most recent log file and provides actionable items to update going forward to get the value of the optimizations. For best results, analyze one log file at a time with payloads under 1MB for focused, accurate analysis.
64
64
 
65
65
  ## Quick start
66
66
 
67
67
  1. `pip install netra-zen`
68
- 2. `zen --apex --send-logs`
68
+ 2. `zen --apex` # Logs are now sent by default
69
69
  3. Read the results and update claude settings, prompts, commands, etc. as needed to benefit
70
70
 
71
71
  See detailed install below if needed.
72
72
 
73
73
  ### Log Collection Options
74
74
 
75
- The optimizer analyzes your Claude Code usage logs to identify optimization opportunities. You can customize what logs are sent:
75
+ The optimizer automatically analyzes your Claude Code usage logs to identify optimization opportunities. You can customize the behavior:
76
76
 
77
77
  ```bash
78
- # Send logs from the 3 most recent files (default)
79
- zen --apex --send-logs
80
-
81
- # Send logs from more files for deeper analysis
82
- zen --apex --send-logs --logs-count 5
78
+ # Send logs from the most recent file (default behavior)
79
+ zen --apex
83
80
 
84
81
  # Send logs from a specific project
85
- zen --apex --send-logs --logs-project "my-project-name"
82
+ zen --apex --logs-project "my-project-name"
86
83
 
87
84
  # Send logs from a custom location
88
- zen --apex --send-logs --logs-path "/path/to/.claude/Projects"
85
+ zen --apex --logs-path "/path/to/.claude/Projects"
89
86
 
90
- # Combine options for targeted analysis
91
- zen --apex --send-logs --logs-count 3 --logs-project "production-app"
87
+ # Advanced: Send multiple files (use with caution)
88
+ zen --apex --logs-count 2
92
89
  ```
93
90
 
94
91
  **Important:**
95
- - `--logs-count` specifies the number of **files** to read, not entries
92
+ - `--logs-count` default is **1** for current Alpha release limitations.
93
+ - For optimal analysis, use **1 log file at a time** and keep payload under 1MB
94
+ - Multiple log files can dilute the analysis and reduce accuracy
96
95
  - Each file may contain many log entries
97
96
  - The tool will display exactly how many entries from how many files are being sent
98
97
 
@@ -110,7 +109,7 @@ This was just changing a few small lines on a 400 line command.
110
109
 
111
110
  ## Example output from single file
112
111
  ```
113
- zen --apex --send-logs --logs-path /Users/user/.claude/projects/-Users-Desktop-netra-apex/7ac6d7ac-abc3-4903-a482-......-1.jsonl
112
+ zen --apex --logs-path /Users/user/.claude/projects/-Users-Desktop-netra-apex/7ac6d7ac-abc3-4903-a482-......-1.jsonl
114
113
 
115
114
  SUCCESS: WebSocket connected successfully!
116
115
 
@@ -237,6 +236,28 @@ Receiving events...
237
236
  📊 Received 8 events
238
237
  ```
239
238
 
239
+ # Another example
240
+ ```
241
+ "issue": "Confused execution path and backtracking", │
242
+
243
+ "evidence": "The model initially assumes a JavaScript/TypeScript frontend based on the term
244
+ │ \"client side\", leading to incorrect file searches. After realizing it's a Python project, it gets stuck
245
+ │ repeatedly grepping `scripts/agent_cli.py` and requires multiple user interventions to be redirected to
246
+ │ the actual root cause in `zen_orchestrator.py` and `zen/telemetry/apex_telemetry.py`", ... │
247
+ │ "token_waste": "8000-10000", │
248
+ │ "fix": "When an initial search term (e.g., 'ultrathink') fails, the model should prioritize │
249
+ │ understanding the project's overall structure and language (`ls -R` or `find . -type f | head -n 20`) │
250
+ │ before making assumptions. For regressions, `git log` should be used earlier in the process to identify │
251
+ │ recent, relevant changes that could have introduced the bug.",
252
+
253
+ │ "ideal prompt": "There's a regression where events are batched instead of streamed. The user │
254
+ │ mentioned 'client side ultrathink', but that could be a red herring. Start by checking the project │
255
+ │ structure and language, then review the git history for recent changes related to event handling, │
256
+ │ streaming, telemetry, or subprocess execution before deep-diving into code.", │
257
+ │ "priority": "high" │
258
+ │ }
259
+ ```
260
+
240
261
  # Advanced features & detailed install guide
241
262
 
242
263
  In addition to optimizing your costs and latency,
@@ -0,0 +1,30 @@
1
+ zen_orchestrator.py,sha256=hKeP2dW6eJgEhtUHYylnhIgP_HgaxrDAwCnlS7mKkgU,156167
2
+ agent_interface/__init__.py,sha256=OsbOKzElHsxhVgak87oOx_u46QNgKmz-Reis-plAMwk,525
3
+ agent_interface/base_agent.py,sha256=GNskG9VaZgno7X24lQTpFdxUoQE0yJHLh0UPFJvOPn4,11098
4
+ netra_zen-1.0.11.dist-info/licenses/LICENSE.md,sha256=PZrP0UDn58i4LjV4zijIQTnsQPvWm4zq9Fet9i7qgwI,80
5
+ scripts/__init__.py,sha256=r6jX6e9SaisREml6B7uDoV-_rzIW0_yQXMm6OhNgbIw,52
6
+ scripts/__main__.py,sha256=NSqyN47EijNf7m_8QsoxeYevKYgH2sNtNPFZcwKWMs0,160
7
+ scripts/agent_cli.py,sha256=nN_uVvvMvFznEeIo4aHx3hBpXov5BkloQHcC6quAGFE,338473
8
+ scripts/agent_logs.py,sha256=ppseAtUCvS2N-iEDSUQh84I9Ov-gBEw5ElxYajNdpJs,11218
9
+ scripts/bump_version.py,sha256=fjABzzRVXJ00CbYMpUIUMwcOHwafLYtFL6NvUga-i6M,4183
10
+ scripts/demo_log_collection.py,sha256=5XladS8j4lz-jJdVzSeDSxopChqHKX7HLNJUzSWR40c,5623
11
+ scripts/embed_release_credentials.py,sha256=dEw3jP5Hvzbd0YUaXRZtiAZSpj315uVWIIjvwcK4g6Y,2103
12
+ scripts/test_apex_telemetry_debug.py,sha256=UG5pbOmna653S9q83qPjrDAjkLeb6utW8ruXpWYy3aQ,6896
13
+ scripts/verify_log_transmission.py,sha256=IZBeQos1rMHSdCyml_HL2x1XpLcpOuI0EUr0qA7mkE8,4493
14
+ token_budget/__init__.py,sha256=_2tmi72DGNtbYcZ-rGIxVKMytdkHFjzJaWz8bDhYACc,33
15
+ token_budget/budget_manager.py,sha256=VRWxKcGDtgJfIRh-ztYQ4-wuhBvddVJJnyoGfxCBlv0,9567
16
+ token_budget/models.py,sha256=14xFTk2-R1Ql0F9WLDof7vADrKC_5Fj7EE7UmZdoG00,2384
17
+ token_budget/visualization.py,sha256=SaNnZ15edHXtjDCA5Yfu7w3AztCZRYsYCPGBqzapupY,719
18
+ token_transparency/__init__.py,sha256=go86Rg4_VYAPLw3myVpLe1s1PbMu1llDTw1wfomP1lA,453
19
+ token_transparency/claude_pricing_engine.py,sha256=9zWQJS3HJEs_lljil-xT1cUvG-Jf3ykNAninJFyfNSM,12630
20
+ zen/__init__.py,sha256=lVT1vB_ohU1o9-WRPwVsI2jtXB9mb7WaIdfDRfYC1PE,213
21
+ zen/__main__.py,sha256=3Sex-j1o01NGoFnZOO9lPxcNX--M5VdIbjkJ_0z16qU,181
22
+ zen/telemetry/__init__.py,sha256=zyH7YcK_eWxwaQZW0MRefu1bX5hEgfRljr_dsqNU-tw,452
23
+ zen/telemetry/apex_telemetry.py,sha256=FAkiHXOuzZFL-51oYetTC4wbjCL5UH-qOghwcaaOVgE,9685
24
+ zen/telemetry/embedded_credentials.py,sha256=z-j_TfuVIz3nX-Vvh4O6_iDQhtteEyQgfc-xSslVbXU,1716
25
+ zen/telemetry/manager.py,sha256=Rdbpnjbjel9xZEJyvLqy2M-4amvkr80abRiWnqHghIQ,9980
26
+ netra_zen-1.0.11.dist-info/METADATA,sha256=0NbAxCCoF9-SB30FfxA2lU0oo0da1XNtNvSHkrRZX9I,46284
27
+ netra_zen-1.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ netra_zen-1.0.11.dist-info/entry_points.txt,sha256=oDehCnPGZezG0m9ZWspxjHLHyQ3eERX87eojR4ljaRo,45
29
+ netra_zen-1.0.11.dist-info/top_level.txt,sha256=OhiyXmoXftBijCF6ck-RS1dN2NBJv9wdd7kBG1Es7zA,77
30
+ netra_zen-1.0.11.dist-info/RECORD,,
@@ -1 +1 @@
1
- © Netra Inc. All rights reserved. Use is subject to Netra's Terms of Service.
1
+ © Netra Inc. All rights reserved. Use is subject to Netra's Terms of Service.
scripts/__init__.py CHANGED
@@ -1 +1 @@
1
- """Scripts package for Zen orchestration tools."""
1
+ """Scripts package for Zen orchestration tools."""
scripts/__main__.py CHANGED
@@ -1,5 +1,5 @@
1
- """Allow scripts.agent_cli to be run as a module: python -m scripts.agent_cli"""
2
- from scripts.agent_cli import main
3
-
4
- if __name__ == "__main__":
5
- main()
1
+ """Allow scripts.agent_cli to be run as a module: python -m scripts.agent_cli"""
2
+ from scripts.agent_cli import main
3
+
4
+ if __name__ == "__main__":
5
+ main()