oblivion-agent 2.9.0__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 (80) hide show
  1. oblivion_agent-2.9.0/.gitignore +49 -0
  2. oblivion_agent-2.9.0/CHEATSHEET.md +0 -0
  3. oblivion_agent-2.9.0/LICENSE +21 -0
  4. oblivion_agent-2.9.0/MEMORY.md +7 -0
  5. oblivion_agent-2.9.0/PKG-INFO +140 -0
  6. oblivion_agent-2.9.0/README.md +88 -0
  7. oblivion_agent-2.9.0/agent/__init__.py +0 -0
  8. oblivion_agent-2.9.0/agent/brain.py +413 -0
  9. oblivion_agent-2.9.0/agent/code_chunker.py +431 -0
  10. oblivion_agent-2.9.0/agent/core.py +709 -0
  11. oblivion_agent-2.9.0/agent/core.py.backup +243 -0
  12. oblivion_agent-2.9.0/agent/core.py.bak-complex +513 -0
  13. oblivion_agent-2.9.0/agent/core.py.bak-prefix +423 -0
  14. oblivion_agent-2.9.0/agent/core.py.bak-workspace +467 -0
  15. oblivion_agent-2.9.0/agent/core.py.before_knowledge_patch +605 -0
  16. oblivion_agent-2.9.0/agent/friday.py +455 -0
  17. oblivion_agent-2.9.0/agent/llm.py +265 -0
  18. oblivion_agent-2.9.0/agent/models.py +156 -0
  19. oblivion_agent-2.9.0/agent/parser.py +218 -0
  20. oblivion_agent-2.9.0/agent/parser.py.bak-prefix +176 -0
  21. oblivion_agent-2.9.0/agent/paths.py +235 -0
  22. oblivion_agent-2.9.0/agent/rag.py +477 -0
  23. oblivion_agent-2.9.0/agent/runtime.py +467 -0
  24. oblivion_agent-2.9.0/agent/runtime.py.bak-complex +299 -0
  25. oblivion_agent-2.9.0/agent/runtime.py.bak-prefix +280 -0
  26. oblivion_agent-2.9.0/agent/runtime.py.before_knowledge_patch +384 -0
  27. oblivion_agent-2.9.0/agent/setup_wizard.py +234 -0
  28. oblivion_agent-2.9.0/agent/symbol_index.py +314 -0
  29. oblivion_agent-2.9.0/agent/voice.py +343 -0
  30. oblivion_agent-2.9.0/agent/watcher.py +176 -0
  31. oblivion_agent-2.9.0/db/__init__.py +0 -0
  32. oblivion_agent-2.9.0/db/store.py +188 -0
  33. oblivion_agent-2.9.0/knowledge/__init__.py +0 -0
  34. oblivion_agent-2.9.0/knowledge/detector.py +162 -0
  35. oblivion_agent-2.9.0/knowledge/injector.py +175 -0
  36. oblivion_agent-2.9.0/knowledge/packs/database.md +630 -0
  37. oblivion_agent-2.9.0/knowledge/packs/debugging.md +96 -0
  38. oblivion_agent-2.9.0/knowledge/packs/deployment.md +72 -0
  39. oblivion_agent-2.9.0/knowledge/packs/django.md +285 -0
  40. oblivion_agent-2.9.0/knowledge/packs/docker.md +699 -0
  41. oblivion_agent-2.9.0/knowledge/packs/fastapi.md +534 -0
  42. oblivion_agent-2.9.0/knowledge/packs/nextjs.md +129 -0
  43. oblivion_agent-2.9.0/knowledge/packs/react.md +142 -0
  44. oblivion_agent-2.9.0/knowledge/packs/security.md +882 -0
  45. oblivion_agent-2.9.0/knowledge/packs/tailwind.md +107 -0
  46. oblivion_agent-2.9.0/knowledge/packs/testing.md +718 -0
  47. oblivion_agent-2.9.0/knowledge/packs/typescript.md +599 -0
  48. oblivion_agent-2.9.0/knowledge/packs/vue.md +123 -0
  49. oblivion_agent-2.9.0/main.py +60 -0
  50. oblivion_agent-2.9.0/mcp_server/__init__.py +0 -0
  51. oblivion_agent-2.9.0/mcp_server/server.py +160 -0
  52. oblivion_agent-2.9.0/pyproject.toml +64 -0
  53. oblivion_agent-2.9.0/scripts/index.py +43 -0
  54. oblivion_agent-2.9.0/test/test.py +6 -0
  55. oblivion_agent-2.9.0/tools/__init__.py +0 -0
  56. oblivion_agent-2.9.0/tools/auto.py +240 -0
  57. oblivion_agent-2.9.0/tools/bash.py +169 -0
  58. oblivion_agent-2.9.0/tools/bash.py.bak-complex +29 -0
  59. oblivion_agent-2.9.0/tools/diff.py +75 -0
  60. oblivion_agent-2.9.0/tools/edit_file.py +77 -0
  61. oblivion_agent-2.9.0/tools/filesystem.py +270 -0
  62. oblivion_agent-2.9.0/tools/planner.py +53 -0
  63. oblivion_agent-2.9.0/tools/registry.py +291 -0
  64. oblivion_agent-2.9.0/tools/registry.py.bak-complex +250 -0
  65. oblivion_agent-2.9.0/tools/registry.py.bak-workspace +234 -0
  66. oblivion_agent-2.9.0/tools/search_code.py +127 -0
  67. oblivion_agent-2.9.0/tools/symbol_tools.py +212 -0
  68. oblivion_agent-2.9.0/ui/__init__.py +0 -0
  69. oblivion_agent-2.9.0/ui/app.py +2332 -0
  70. oblivion_agent-2.9.0/ui/app.py.backup +1634 -0
  71. oblivion_agent-2.9.0/ui/app.py.backup.20260612_181912 +1886 -0
  72. oblivion_agent-2.9.0/ui/app.py.bak-complex +1981 -0
  73. oblivion_agent-2.9.0/ui/app.py.bak-workspace +1907 -0
  74. oblivion_agent-2.9.0/ui/app.py.before_dedupe.20260612_110555 +1910 -0
  75. oblivion_agent-2.9.0/ui/app.py.before_dedupe.20260612_110629 +1797 -0
  76. oblivion_agent-2.9.0/ui/app.py.before_dockfix.20260612_112427 +1797 -0
  77. oblivion_agent-2.9.0/ui/app.py.before_wavefix.20260612_112136 +1797 -0
  78. oblivion_agent-2.9.0/ui/app.py.cyberpunk_backup +2011 -0
  79. oblivion_agent-2.9.0/ui/app.py.v2_backup +2032 -0
  80. oblivion_agent-2.9.0/uv.lock +3603 -0
@@ -0,0 +1,49 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ .Python
7
+ .venv/
8
+ venv/
9
+ *.egg-info/
10
+
11
+ # Build artifacts
12
+ build/
13
+ dist/
14
+ *.whl
15
+ *.tar.gz
16
+
17
+ # Test files at repo root (user playground)
18
+ hello.py
19
+ broken.py
20
+ brain_test.py
21
+ fact.py
22
+ sample.py
23
+ index.html
24
+ styles.css
25
+ script.js
26
+ package.json
27
+ package-lock.json
28
+ tsconfig.json
29
+ Key.java
30
+ Key.class
31
+ Untitled.java
32
+ LLM2
33
+ q
34
+
35
+ # Config + secrets
36
+ .env
37
+ .env.backup
38
+ .env.bak
39
+ .env.bak-*
40
+
41
+ # Editor
42
+ .DS_Store
43
+ *.swp
44
+ .idea/
45
+ .vscode/
46
+
47
+ # Runtime data
48
+ .chroma/
49
+ .ai-agent/
File without changes
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 R. Rohit
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,7 @@
1
+ # Project Memory
2
+
3
+ _Notes and conventions remembered by Oblivion across sessions._
4
+
5
+ ## Conventions
6
+
7
+ - (2026-06-11) This project uses uv for package management and Textual for the TUI
@@ -0,0 +1,140 @@
1
+ Metadata-Version: 2.4
2
+ Name: oblivion-agent
3
+ Version: 2.9.0
4
+ Summary: OBLIVION - Terminal AI coding agent with voice, RAG, and multi-model support. Powered by Meera.
5
+ Project-URL: Homepage, https://github.com/rohit/oblivion-agent
6
+ Project-URL: Repository, https://github.com/rohit/oblivion-agent
7
+ Project-URL: Issues, https://github.com/rohit/oblivion-agent/issues
8
+ Author: R. Rohit
9
+ License: MIT
10
+ License-File: LICENSE
11
+ Keywords: agent,ai,claude,coding,gemini,groq,llm,ollama,rag,tui,voice,whisper
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Operating System :: MacOS :: MacOS X
17
+ Classifier: Operating System :: POSIX :: Linux
18
+ Classifier: Programming Language :: Python :: 3
19
+ Classifier: Programming Language :: Python :: 3.11
20
+ Classifier: Programming Language :: Python :: 3.12
21
+ Classifier: Programming Language :: Python :: 3.13
22
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
23
+ Classifier: Topic :: Software Development :: Code Generators
24
+ Requires-Python: >=3.11
25
+ Requires-Dist: aiosqlite>=0.20.0
26
+ Requires-Dist: chromadb>=1.5.0
27
+ Requires-Dist: edge-tts>=6.1.0
28
+ Requires-Dist: elevenlabs>=2.52.0
29
+ Requires-Dist: httpx>=0.27.0
30
+ Requires-Dist: litellm>=1.40.0
31
+ Requires-Dist: mcp>=1.0.0
32
+ Requires-Dist: pathspec>=0.12.1
33
+ Requires-Dist: pygments>=2.18.0
34
+ Requires-Dist: python-dotenv>=1.0.0
35
+ Requires-Dist: rich>=13.7.0
36
+ Requires-Dist: textual>=0.60.0
37
+ Requires-Dist: watchdog>=4.0.0
38
+ Provides-Extra: all
39
+ Requires-Dist: elevenlabs>=1.0.0; extra == 'all'
40
+ Requires-Dist: faster-whisper>=1.0.0; extra == 'all'
41
+ Requires-Dist: numpy>=2.0.0; extra == 'all'
42
+ Requires-Dist: scipy>=1.13.0; extra == 'all'
43
+ Requires-Dist: sounddevice>=0.4.0; extra == 'all'
44
+ Provides-Extra: premium-voice
45
+ Requires-Dist: elevenlabs>=1.0.0; extra == 'premium-voice'
46
+ Provides-Extra: voice
47
+ Requires-Dist: faster-whisper>=1.0.0; extra == 'voice'
48
+ Requires-Dist: numpy>=2.0.0; extra == 'voice'
49
+ Requires-Dist: scipy>=1.13.0; extra == 'voice'
50
+ Requires-Dist: sounddevice>=0.4.0; extra == 'voice'
51
+ Description-Content-Type: text/markdown
52
+
53
+ # OBLIVION
54
+
55
+ Terminal AI coding agent with voice, RAG, and multi-model support.
56
+ Powered by Meera.
57
+
58
+ ## Install
59
+
60
+ pip install oblivion-agent
61
+
62
+ With voice:
63
+
64
+ pip install "oblivion-agent[voice]"
65
+
66
+ ## First Run
67
+
68
+ oblivion
69
+
70
+ A setup wizard will ask for your LLM provider (Gemini recommended, free).
71
+
72
+ ## Features
73
+
74
+ - Voice in (Whisper) and out (Edge TTS / ElevenLabs)
75
+ - 9 LLM backends with auto-fallback (Gemini, Groq, Claude, GPT-4o, DeepSeek, Ollama, Cerebras)
76
+ - Hybrid code search: exact symbol + full-text + semantic embeddings
77
+ - 22 tools: filesystem, bash, symbol navigation, code verification, project memory
78
+ - Built-in knowledge packs (React, Django, FastAPI, Docker, security, more)
79
+ - Cyberpunk TUI with slash commands, file watcher, status bar
80
+ - Workspace memory persists across sessions (MEMORY.md per project)
81
+
82
+ ## Slash Commands
83
+
84
+ - /help - all commands
85
+ - /model - switch LLM
86
+ - /voice - voice settings
87
+ - /meera on|off|test - toggle voice replies
88
+ - /index - reindex workspace
89
+ - /openproject <name> - switch project
90
+ - /newproject <name> - create project
91
+ - /memory - view workspace memory
92
+ - /stats - session info
93
+
94
+ ## Config
95
+
96
+ Lives at ~/.oblivion/config.env
97
+
98
+
99
+ ## Claude Desktop Integration (MCP)
100
+
101
+ Oblivion ships an MCP server. Claude Desktop can use Oblivions 10 read-only code tools directly.
102
+
103
+ ### Setup
104
+
105
+ 1. Install Oblivion: pip install oblivion-agent
106
+
107
+ 2. Find your Claude Desktop config file:
108
+ macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
109
+ Linux: ~/.config/Claude/claude_desktop_config.json
110
+ Windows: %APPDATA%/Claude/claude_desktop_config.json
111
+
112
+ 3. Add this JSON to it:
113
+
114
+ {
115
+ "mcpServers": {
116
+ "oblivion": {
117
+ "command": "oblivion",
118
+ "args": ["mcp"],
119
+ "env": { "WORKSPACE_DIR": "/path/to/your/project" }
120
+ }
121
+ }
122
+ }
123
+
124
+ 4. Restart Claude Desktop. Done!
125
+
126
+ ### Exposed tools (read-only)
127
+
128
+ read_file, list_dir, grep_files, file_exists, search_code,
129
+ find_symbol, list_symbols, find_callers, project_map, recall
130
+
131
+ Write tools are NOT exposed for safety. Use the Oblivion TUI for edits.
132
+
133
+ ### Testing
134
+
135
+ npx -y @modelcontextprotocol/inspector oblivion mcp
136
+
137
+
138
+ ## License
139
+
140
+ MIT
@@ -0,0 +1,88 @@
1
+ # OBLIVION
2
+
3
+ Terminal AI coding agent with voice, RAG, and multi-model support.
4
+ Powered by Meera.
5
+
6
+ ## Install
7
+
8
+ pip install oblivion-agent
9
+
10
+ With voice:
11
+
12
+ pip install "oblivion-agent[voice]"
13
+
14
+ ## First Run
15
+
16
+ oblivion
17
+
18
+ A setup wizard will ask for your LLM provider (Gemini recommended, free).
19
+
20
+ ## Features
21
+
22
+ - Voice in (Whisper) and out (Edge TTS / ElevenLabs)
23
+ - 9 LLM backends with auto-fallback (Gemini, Groq, Claude, GPT-4o, DeepSeek, Ollama, Cerebras)
24
+ - Hybrid code search: exact symbol + full-text + semantic embeddings
25
+ - 22 tools: filesystem, bash, symbol navigation, code verification, project memory
26
+ - Built-in knowledge packs (React, Django, FastAPI, Docker, security, more)
27
+ - Cyberpunk TUI with slash commands, file watcher, status bar
28
+ - Workspace memory persists across sessions (MEMORY.md per project)
29
+
30
+ ## Slash Commands
31
+
32
+ - /help - all commands
33
+ - /model - switch LLM
34
+ - /voice - voice settings
35
+ - /meera on|off|test - toggle voice replies
36
+ - /index - reindex workspace
37
+ - /openproject <name> - switch project
38
+ - /newproject <name> - create project
39
+ - /memory - view workspace memory
40
+ - /stats - session info
41
+
42
+ ## Config
43
+
44
+ Lives at ~/.oblivion/config.env
45
+
46
+
47
+ ## Claude Desktop Integration (MCP)
48
+
49
+ Oblivion ships an MCP server. Claude Desktop can use Oblivions 10 read-only code tools directly.
50
+
51
+ ### Setup
52
+
53
+ 1. Install Oblivion: pip install oblivion-agent
54
+
55
+ 2. Find your Claude Desktop config file:
56
+ macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
57
+ Linux: ~/.config/Claude/claude_desktop_config.json
58
+ Windows: %APPDATA%/Claude/claude_desktop_config.json
59
+
60
+ 3. Add this JSON to it:
61
+
62
+ {
63
+ "mcpServers": {
64
+ "oblivion": {
65
+ "command": "oblivion",
66
+ "args": ["mcp"],
67
+ "env": { "WORKSPACE_DIR": "/path/to/your/project" }
68
+ }
69
+ }
70
+ }
71
+
72
+ 4. Restart Claude Desktop. Done!
73
+
74
+ ### Exposed tools (read-only)
75
+
76
+ read_file, list_dir, grep_files, file_exists, search_code,
77
+ find_symbol, list_symbols, find_callers, project_map, recall
78
+
79
+ Write tools are NOT exposed for safety. Use the Oblivion TUI for edits.
80
+
81
+ ### Testing
82
+
83
+ npx -y @modelcontextprotocol/inspector oblivion mcp
84
+
85
+
86
+ ## License
87
+
88
+ MIT
File without changes