ness-agent 0.1.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 (197) hide show
  1. ness_agent-0.1.0/.env.example +7 -0
  2. ness_agent-0.1.0/.github/workflows/ci.yml +32 -0
  3. ness_agent-0.1.0/.github/workflows/publish.yml +29 -0
  4. ness_agent-0.1.0/.gitignore +23 -0
  5. ness_agent-0.1.0/.ness/NESS.md +4 -0
  6. ness_agent-0.1.0/.ness/agents/explore.md +10 -0
  7. ness_agent-0.1.0/.ness/hooks.json +9 -0
  8. ness_agent-0.1.0/.ness/mcp.json +13 -0
  9. ness_agent-0.1.0/.ness/permissions.json +36 -0
  10. ness_agent-0.1.0/.ness/skills/api_endpoint/SKILL.md +23 -0
  11. ness_agent-0.1.0/.ness/skills/python_module/SKILL.md +20 -0
  12. ness_agent-0.1.0/.ness/skills/react_component/SKILL.md +23 -0
  13. ness_agent-0.1.0/.python-version +1 -0
  14. ness_agent-0.1.0/CHANGELOG.md +19 -0
  15. ness_agent-0.1.0/CONTRIBUTING.md +57 -0
  16. ness_agent-0.1.0/LICENSE +202 -0
  17. ness_agent-0.1.0/PKG-INFO +181 -0
  18. ness_agent-0.1.0/README.md +135 -0
  19. ness_agent-0.1.0/SECURITY.md +42 -0
  20. ness_agent-0.1.0/assets/banner-dark-geo.svg +70 -0
  21. ness_agent-0.1.0/assets/banner-light-blue-geo.svg +70 -0
  22. ness_agent-0.1.0/assets/banner-light-geo-x.svg +71 -0
  23. ness_agent-0.1.0/assets/banner-light-geo.svg +70 -0
  24. ness_agent-0.1.0/docs/README.md +10 -0
  25. ness_agent-0.1.0/docs/architecture.md +89 -0
  26. ness_agent-0.1.0/docs/cli.md +258 -0
  27. ness_agent-0.1.0/docs/configuration.md +98 -0
  28. ness_agent-0.1.0/docs/sdk.md +130 -0
  29. ness_agent-0.1.0/pyproject.toml +76 -0
  30. ness_agent-0.1.0/scripts/fetch_openrouter_models.py +26 -0
  31. ness_agent-0.1.0/src/ness_agent/__init__.py +49 -0
  32. ness_agent-0.1.0/src/ness_agent/agent.py +473 -0
  33. ness_agent-0.1.0/src/ness_agent/compaction.py +562 -0
  34. ness_agent-0.1.0/src/ness_agent/context/__init__.py +0 -0
  35. ness_agent-0.1.0/src/ness_agent/context/coding_overlay.py +153 -0
  36. ness_agent-0.1.0/src/ness_agent/context/layers.py +400 -0
  37. ness_agent-0.1.0/src/ness_agent/context/overlay.py +160 -0
  38. ness_agent-0.1.0/src/ness_agent/defaults/__init__.py +21 -0
  39. ness_agent-0.1.0/src/ness_agent/defaults/agents/explore.md +10 -0
  40. ness_agent-0.1.0/src/ness_agent/graph/__init__.py +0 -0
  41. ness_agent-0.1.0/src/ness_agent/graph/builder.py +47 -0
  42. ness_agent-0.1.0/src/ness_agent/graph/helpers.py +114 -0
  43. ness_agent-0.1.0/src/ness_agent/graph/nodes.py +640 -0
  44. ness_agent-0.1.0/src/ness_agent/graph/state.py +21 -0
  45. ness_agent-0.1.0/src/ness_agent/hooks.py +232 -0
  46. ness_agent-0.1.0/src/ness_agent/instructions/__init__.py +42 -0
  47. ness_agent-0.1.0/src/ness_agent/instructions/act_mode.py +13 -0
  48. ness_agent-0.1.0/src/ness_agent/instructions/compaction.py +14 -0
  49. ness_agent-0.1.0/src/ness_agent/instructions/init_memory.py +9 -0
  50. ness_agent-0.1.0/src/ness_agent/instructions/l0_harness.py +94 -0
  51. ness_agent-0.1.0/src/ness_agent/instructions/l1_profile.py +11 -0
  52. ness_agent-0.1.0/src/ness_agent/instructions/plan_mode.py +30 -0
  53. ness_agent-0.1.0/src/ness_agent/instructions/reflection.py +32 -0
  54. ness_agent-0.1.0/src/ness_agent/instructions/subagent.py +22 -0
  55. ness_agent-0.1.0/src/ness_agent/instructions/thread_summary.py +5 -0
  56. ness_agent-0.1.0/src/ness_agent/mcp.py +385 -0
  57. ness_agent-0.1.0/src/ness_agent/memory.py +305 -0
  58. ness_agent-0.1.0/src/ness_agent/options.py +63 -0
  59. ness_agent-0.1.0/src/ness_agent/permissions.py +340 -0
  60. ness_agent-0.1.0/src/ness_agent/persistence.py +767 -0
  61. ness_agent-0.1.0/src/ness_agent/reflection.py +281 -0
  62. ness_agent-0.1.0/src/ness_agent/session.py +1163 -0
  63. ness_agent-0.1.0/src/ness_agent/session_context.py +50 -0
  64. ness_agent-0.1.0/src/ness_agent/skills.py +81 -0
  65. ness_agent-0.1.0/src/ness_agent/tools/__init__.py +324 -0
  66. ness_agent-0.1.0/src/ness_agent/tools/ask.py +116 -0
  67. ness_agent-0.1.0/src/ness_agent/tools/discover.py +185 -0
  68. ness_agent-0.1.0/src/ness_agent/tools/fs.py +353 -0
  69. ness_agent-0.1.0/src/ness_agent/tools/search.py +102 -0
  70. ness_agent-0.1.0/src/ness_agent/tools/shell.py +663 -0
  71. ness_agent-0.1.0/src/ness_agent/tools/skill.py +43 -0
  72. ness_agent-0.1.0/src/ness_agent/tools/subagents.py +574 -0
  73. ness_agent-0.1.0/src/ness_agent/tools/todo.py +89 -0
  74. ness_agent-0.1.0/src/ness_agent/tools/web.py +750 -0
  75. ness_agent-0.1.0/src/ness_agent/tracing/__init__.py +27 -0
  76. ness_agent-0.1.0/src/ness_agent/tracing/config.py +43 -0
  77. ness_agent-0.1.0/src/ness_agent/tracing/cost.py +275 -0
  78. ness_agent-0.1.0/src/ness_agent/tracing/exporters/__init__.py +6 -0
  79. ness_agent-0.1.0/src/ness_agent/tracing/exporters/console.py +126 -0
  80. ness_agent-0.1.0/src/ness_agent/tracing/exporters/otlp.py +146 -0
  81. ness_agent-0.1.0/src/ness_agent/tracing/messages.py +152 -0
  82. ness_agent-0.1.0/src/ness_agent/tracing/semconv.py +64 -0
  83. ness_agent-0.1.0/src/ness_agent/tracing/tracer.py +245 -0
  84. ness_agent-0.1.0/src/ness_agent/types.py +123 -0
  85. ness_agent-0.1.0/src/ness_agent/utils.py +88 -0
  86. ness_agent-0.1.0/src/ness_agent/workspace/__init__.py +12 -0
  87. ness_agent-0.1.0/src/ness_agent/workspace/bootstrap.py +65 -0
  88. ness_agent-0.1.0/src/ness_agent/workspace/git_context.py +59 -0
  89. ness_agent-0.1.0/src/ness_agent/workspace/project_context.py +152 -0
  90. ness_agent-0.1.0/src/ness_cli/__init__.py +4 -0
  91. ness_agent-0.1.0/src/ness_cli/anthropic_messages.py +491 -0
  92. ness_agent-0.1.0/src/ness_cli/chat_model.py +244 -0
  93. ness_agent-0.1.0/src/ness_cli/coding_session.py +703 -0
  94. ness_agent-0.1.0/src/ness_cli/config.py +370 -0
  95. ness_agent-0.1.0/src/ness_cli/config_store.py +168 -0
  96. ness_agent-0.1.0/src/ness_cli/events.py +198 -0
  97. ness_agent-0.1.0/src/ness_cli/factory.py +173 -0
  98. ness_agent-0.1.0/src/ness_cli/goal.py +341 -0
  99. ness_agent-0.1.0/src/ness_cli/headless.py +181 -0
  100. ness_agent-0.1.0/src/ness_cli/instructions/__init__.py +91 -0
  101. ness_agent-0.1.0/src/ness_cli/instructions/act_mode.md +13 -0
  102. ness_agent-0.1.0/src/ness_cli/instructions/compaction.md +14 -0
  103. ness_agent-0.1.0/src/ness_cli/instructions/goal_generic_repair.md +1 -0
  104. ness_agent-0.1.0/src/ness_cli/instructions/goal_judge.md +15 -0
  105. ness_agent-0.1.0/src/ness_cli/instructions/goal_repair.md +10 -0
  106. ness_agent-0.1.0/src/ness_cli/instructions/init_memory.md +9 -0
  107. ness_agent-0.1.0/src/ness_cli/instructions/l0_harness.md +94 -0
  108. ness_agent-0.1.0/src/ness_cli/instructions/persona.md +1 -0
  109. ness_agent-0.1.0/src/ness_cli/instructions/plan_mode.md +30 -0
  110. ness_agent-0.1.0/src/ness_cli/instructions/reflection.md +32 -0
  111. ness_agent-0.1.0/src/ness_cli/instructions/subagent.md +22 -0
  112. ness_agent-0.1.0/src/ness_cli/instructions/thread_summary.md +5 -0
  113. ness_agent-0.1.0/src/ness_cli/mentions.py +126 -0
  114. ness_agent-0.1.0/src/ness_cli/model_catalog.py +257 -0
  115. ness_agent-0.1.0/src/ness_cli/paths.py +206 -0
  116. ness_agent-0.1.0/src/ness_cli/prompts.py +61 -0
  117. ness_agent-0.1.0/src/ness_cli/rollback.py +187 -0
  118. ness_agent-0.1.0/src/ness_cli/tui/__init__.py +1 -0
  119. ness_agent-0.1.0/src/ness_cli/tui/app.py +776 -0
  120. ness_agent-0.1.0/src/ness_cli/tui/chrome.py +336 -0
  121. ness_agent-0.1.0/src/ness_cli/tui/command_catalog.py +41 -0
  122. ness_agent-0.1.0/src/ness_cli/tui/commands.py +484 -0
  123. ness_agent-0.1.0/src/ness_cli/tui/config_flow.py +358 -0
  124. ness_agent-0.1.0/src/ness_cli/tui/config_registry.py +209 -0
  125. ness_agent-0.1.0/src/ness_cli/tui/constants.py +15 -0
  126. ness_agent-0.1.0/src/ness_cli/tui/formatting.py +92 -0
  127. ness_agent-0.1.0/src/ness_cli/tui/header.py +544 -0
  128. ness_agent-0.1.0/src/ness_cli/tui/images.py +216 -0
  129. ness_agent-0.1.0/src/ness_cli/tui/keys.py +302 -0
  130. ness_agent-0.1.0/src/ness_cli/tui/main.py +334 -0
  131. ness_agent-0.1.0/src/ness_cli/tui/markdown.py +286 -0
  132. ness_agent-0.1.0/src/ness_cli/tui/mentions.py +203 -0
  133. ness_agent-0.1.0/src/ness_cli/tui/models.py +20 -0
  134. ness_agent-0.1.0/src/ness_cli/tui/pickers.py +564 -0
  135. ness_agent-0.1.0/src/ness_cli/tui/prompts.py +235 -0
  136. ness_agent-0.1.0/src/ness_cli/tui/render.py +311 -0
  137. ness_agent-0.1.0/src/ness_cli/tui/stream.py +177 -0
  138. ness_agent-0.1.0/src/ness_cli/tui/theme.py +162 -0
  139. ness_agent-0.1.0/src/ness_cli/tui/tool_display.py +530 -0
  140. ness_agent-0.1.0/src/ness_cli/tui/transcript.py +802 -0
  141. ness_agent-0.1.0/src/ness_cli/tui/turn_renderer.py +227 -0
  142. ness_agent-0.1.0/src/ness_cli/tui/utils.py +71 -0
  143. ness_agent-0.1.0/src/ness_cli/tui/widgets.py +344 -0
  144. ness_agent-0.1.0/src/ness_cli/worktree.py +120 -0
  145. ness_agent-0.1.0/src/sdk_example_usage.md +742 -0
  146. ness_agent-0.1.0/tests/mcp_echo_server.py +15 -0
  147. ness_agent-0.1.0/tests/sdk_fixtures.py +115 -0
  148. ness_agent-0.1.0/tests/test_anthropic_messages.py +143 -0
  149. ness_agent-0.1.0/tests/test_ask.py +42 -0
  150. ness_agent-0.1.0/tests/test_cli/__init__.py +1 -0
  151. ness_agent-0.1.0/tests/test_cli/conftest.py +290 -0
  152. ness_agent-0.1.0/tests/test_cli/test_approval_cancel.py +70 -0
  153. ness_agent-0.1.0/tests/test_cli/test_approval_prompt.py +35 -0
  154. ness_agent-0.1.0/tests/test_cli/test_cancel.py +82 -0
  155. ness_agent-0.1.0/tests/test_cli/test_coding_session.py +499 -0
  156. ness_agent-0.1.0/tests/test_cli/test_commands.py +151 -0
  157. ness_agent-0.1.0/tests/test_cli/test_config_flow.py +217 -0
  158. ness_agent-0.1.0/tests/test_cli/test_config_store.py +147 -0
  159. ness_agent-0.1.0/tests/test_cli/test_header.py +234 -0
  160. ness_agent-0.1.0/tests/test_cli/test_instructions.py +174 -0
  161. ness_agent-0.1.0/tests/test_cli/test_markdown_render.py +43 -0
  162. ness_agent-0.1.0/tests/test_cli/test_print_mode.py +333 -0
  163. ness_agent-0.1.0/tests/test_cli/test_question_cancel.py +137 -0
  164. ness_agent-0.1.0/tests/test_cli/test_queue.py +24 -0
  165. ness_agent-0.1.0/tests/test_cli/test_tool_display.py +66 -0
  166. ness_agent-0.1.0/tests/test_cli/test_tui_subagent_todos.py +141 -0
  167. ness_agent-0.1.0/tests/test_cli/test_tui_wiring.py +186 -0
  168. ness_agent-0.1.0/tests/test_cli/test_turn_renderer.py +88 -0
  169. ness_agent-0.1.0/tests/test_fs.py +336 -0
  170. ness_agent-0.1.0/tests/test_git_context.py +64 -0
  171. ness_agent-0.1.0/tests/test_goal.py +320 -0
  172. ness_agent-0.1.0/tests/test_grep.py +36 -0
  173. ness_agent-0.1.0/tests/test_memory.py +69 -0
  174. ness_agent-0.1.0/tests/test_model.py +114 -0
  175. ness_agent-0.1.0/tests/test_model_catalog.py +83 -0
  176. ness_agent-0.1.0/tests/test_openrouter_live.py +42 -0
  177. ness_agent-0.1.0/tests/test_packaging_smoke.py +118 -0
  178. ness_agent-0.1.0/tests/test_paths.py +107 -0
  179. ness_agent-0.1.0/tests/test_permissions.py +276 -0
  180. ness_agent-0.1.0/tests/test_rollback.py +69 -0
  181. ness_agent-0.1.0/tests/test_sdk_discover.py +175 -0
  182. ness_agent-0.1.0/tests/test_sdk_parity.py +840 -0
  183. ness_agent-0.1.0/tests/test_sdk_regressions.py +369 -0
  184. ness_agent-0.1.0/tests/test_sdk_skill_view.py +180 -0
  185. ness_agent-0.1.0/tests/test_sdk_smoke.py +46 -0
  186. ness_agent-0.1.0/tests/test_session.py +248 -0
  187. ness_agent-0.1.0/tests/test_shell.py +247 -0
  188. ness_agent-0.1.0/tests/test_subagents.py +283 -0
  189. ness_agent-0.1.0/tests/test_support_layer_wiring.py +132 -0
  190. ness_agent-0.1.0/tests/test_thread_fork.py +68 -0
  191. ness_agent-0.1.0/tests/test_todo.py +131 -0
  192. ness_agent-0.1.0/tests/test_web.py +326 -0
  193. ness_agent-0.1.0/tests/tracing/__init__.py +1 -0
  194. ness_agent-0.1.0/tests/tracing/test_cost.py +97 -0
  195. ness_agent-0.1.0/tests/tracing/test_integration.py +285 -0
  196. ness_agent-0.1.0/tests/tracing/test_tracer.py +132 -0
  197. ness_agent-0.1.0/uv.lock +2205 -0
@@ -0,0 +1,7 @@
1
+ # Optional process-env overrides. Prefer /config (writes to global
2
+ # configs.json / secrets.json under NESS_AGENT_CONFIG_DIR).
3
+ OPENAI_API_KEY=your-openai-or-openrouter-api-key
4
+ OPENAI_BASE_URL=https://openrouter.ai/api/v1
5
+ EXA_API_KEY=your-exa-api-key
6
+ MODEL_NAME=deepseek/deepseek-v4-flash
7
+ ENABLE_APPROVAL=true
@@ -0,0 +1,32 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ test:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+
15
+ - name: Install uv and setup Python
16
+ uses: astral-sh/setup-uv@v5
17
+ with:
18
+ python-version: "3.12"
19
+ enable-cache: true
20
+
21
+ - name: Install dependencies
22
+ run: uv sync --all-extras
23
+
24
+ - name: Compile
25
+ run: uv run python -m compileall -q .
26
+ env:
27
+ OPENAI_API_KEY: test
28
+
29
+ - name: Run pytest
30
+ run: uv run pytest -q
31
+ env:
32
+ OPENAI_API_KEY: test
@@ -0,0 +1,29 @@
1
+ name: Publish
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ id-token: write
10
+
11
+ jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+
17
+ - name: Install uv and setup Python
18
+ uses: astral-sh/setup-uv@v5
19
+ with:
20
+ python-version: "3.12"
21
+ enable-cache: true
22
+
23
+ - name: Build package
24
+ run: uv build
25
+
26
+ - name: Publish to PyPI
27
+ uses: pypa/gh-action-pypi-publish@release/v1
28
+ with:
29
+ packages-dir: dist/
@@ -0,0 +1,23 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+ .ruff_cache/
9
+ .pytest_cache/
10
+
11
+ # extra files & folders
12
+
13
+ # Virtual environments
14
+ .venv
15
+ .env
16
+
17
+ # Ness Agent runtime data
18
+ .ness/worktrees/
19
+ .ness/threads/
20
+ .ness/runtime/
21
+
22
+ # SDK Tests
23
+ sdk_perf/
@@ -0,0 +1,4 @@
1
+ # Project Memory
2
+
3
+ Notes the agent should remember across sessions.
4
+ Edit manually or use /init to auto-generate.
@@ -0,0 +1,10 @@
1
+ ---
2
+ tools: [read, grep, glob, web_search, fetch_url]
3
+ ---
4
+ Return a detailed findings report with:
5
+ - File:line citations for every claim
6
+ - Relevant code snippets (5-15 lines) for any logic the parent might need to edit or reference
7
+ - Key variable names, function signatures, and config values verbatim
8
+ - If multiple files are involved, include a brief "relationship map" showing how they connect
9
+
10
+ Do NOT just list files — include enough context that the parent can understand the code without re-reading the file.
@@ -0,0 +1,9 @@
1
+ {
2
+ "postToolUse": [
3
+ {
4
+ "matcher": "write|edit",
5
+ "command": "python -c \"import sys; print('formatted')\"",
6
+ "blocking": false
7
+ }
8
+ ]
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "servers": {
3
+ "echo": {
4
+ "command": "uv",
5
+ "args": [
6
+ "run",
7
+ "python",
8
+ "tests/mcp_echo_server.py"
9
+ ],
10
+ "startup_timeout": 30
11
+ }
12
+ }
13
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "allow": [
3
+ "read:*",
4
+ "grep:*",
5
+ "glob:*",
6
+ "edit:*",
7
+ "write:*",
8
+ "delete:*",
9
+ "web_search:*",
10
+ "skill_view:*",
11
+ "shell:jobs:*",
12
+ "shell:read:*",
13
+ "shell:run:pwd",
14
+ "shell:run:ls*",
15
+ "shell:run:git status*",
16
+ "shell:run:git diff*",
17
+ "shell:run:git log*",
18
+ "shell:run:git show*",
19
+ "shell:run:cd*",
20
+ "shell:run:pwd*",
21
+ "shell:run:nl*"
22
+ ],
23
+ "deny": [
24
+ "shell:run:rm*",
25
+ "shell:run:sudo*",
26
+ "shell:run:curl http*",
27
+ "shell:run:wget *",
28
+ "shell:start:rm*",
29
+ "shell:start:sudo*",
30
+ "shell:start:curl http*",
31
+ "shell:start:wget *"
32
+ ],
33
+ "ask": [
34
+ "*"
35
+ ]
36
+ }
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: api_endpoint
3
+ description: Create REST API endpoints with validation and consistent error handling.
4
+ triggers:
5
+ - api
6
+ - endpoint
7
+ - route
8
+ - handler
9
+ - controller
10
+ - server
11
+ - backend
12
+ ---
13
+ # API Endpoint
14
+
15
+ When implementing an API endpoint:
16
+
17
+ - Inspect adjacent routes before editing.
18
+ - Match the framework's existing routing and response style.
19
+ - Validate input with the project's existing validation library when one exists.
20
+ - Return consistent error shapes and appropriate HTTP status codes.
21
+ - Add or update tests when the project has an API test pattern.
22
+
23
+ For TypeScript projects, define request and response types near the handler unless the project already centralizes API types.
@@ -0,0 +1,20 @@
1
+ ---
2
+ name: python_module
3
+ description: Modify Python modules with small, typed, testable changes.
4
+ triggers:
5
+ - python
6
+ - module
7
+ - pytest
8
+ - cli
9
+ - class
10
+ - function
11
+ ---
12
+ # Python Module
13
+
14
+ When working in Python:
15
+
16
+ - Read the relevant module and its tests before editing.
17
+ - Prefer small functions with explicit inputs and return values.
18
+ - Preserve existing public interfaces unless the user asked for a contract change.
19
+ - Use standard library tools before adding dependencies.
20
+ - Run the narrowest useful test command, then broaden if shared behavior changed.
@@ -0,0 +1,23 @@
1
+ ---
2
+ name: react_component
3
+ description: Create React components with TypeScript while matching project conventions.
4
+ triggers:
5
+ - react
6
+ - component
7
+ - tsx
8
+ - jsx
9
+ - ui
10
+ - page
11
+ - widget
12
+ - frontend
13
+ ---
14
+ # React Component
15
+
16
+ When implementing a React component:
17
+
18
+ - Inspect nearby components before creating new patterns.
19
+ - Use functional components and hooks.
20
+ - Match the project's styling system instead of assuming Tailwind.
21
+ - Add `"use client"` only when the component needs client-side behavior.
22
+ - Keep props typed and exports consistent with nearby files.
23
+ - Verify layout at realistic mobile and desktop widths when the app has a frontend.
@@ -0,0 +1 @@
1
+ 3.12
@@ -0,0 +1,19 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+
10
+ ## [0.1.0] - 2026-07-31
11
+
12
+ ### Added
13
+
14
+ - Initial public release of **Ness Agent** (SDK) and **Ness** (CLI).
15
+ - SDK: LangGraph agent loop, built-in tools, permissions, memory, skills, hooks, MCP, compaction, reflection, and tracing.
16
+ - CLI: interactive TUI (`ness`), headless print mode (`-p`), plan/act modes, git worktrees, global config, and `.ness/` project layout.
17
+
18
+ [Unreleased]: https://github.com/Sagnnik/ness-agent/compare/v0.1.0...HEAD
19
+ [0.1.0]: https://github.com/Sagnnik/ness-agent/releases/tag/v0.1.0
@@ -0,0 +1,57 @@
1
+ # Contributing to Ness Agent
2
+
3
+ Thanks for your interest in Ness Agent. This project is experimental (0.x): public APIs may change until 1.0.
4
+
5
+ ## Development setup
6
+
7
+ Requirements: **Python 3.12+** and [uv](https://docs.astral.sh/uv/) (recommended).
8
+
9
+ ```bash
10
+ git clone https://github.com/Sagnnik/ness-agent.git
11
+ cd ness-agent
12
+ uv sync
13
+ cp .env.example .env # optional; tests use dummy keys by default
14
+ ```
15
+
16
+ Install optional extras when needed:
17
+
18
+ ```bash
19
+ uv sync --extra tracing
20
+ ```
21
+
22
+ ## Project layout
23
+
24
+ - `src/ness_agent/` — SDK (agent loop, tools, permissions, memory, etc.)
25
+ - `src/ness_cli/` — Ness CLI adapter and TUI (`ness` entry point)
26
+ - `tests/` — pytest suite (`test_sdk_*`, `test_cli/`, etc.)
27
+
28
+ ## Running tests
29
+
30
+ ```bash
31
+ OPENAI_API_KEY=test uv run python -m compileall -q .
32
+ OPENAI_API_KEY=test uv run pytest -q
33
+ ```
34
+
35
+ Opt-in suites:
36
+
37
+ ```bash
38
+ # Paid provider smoke tests (needs a real API key)
39
+ OPENROUTER_LIVE_TEST=1 OPENAI_API_KEY=... uv run pytest -q -m live
40
+
41
+ # Wheel build + clean install smoke test
42
+ PACKAGING_SMOKE=1 uv run pytest -q -m packaging
43
+ ```
44
+
45
+ ## Pull requests
46
+
47
+ 1. Please open an issue to propose features or major changes before submitting a PR so we can align on design early.
48
+ 2. Branch from `main` (e.g. `feat/cli-cron`, `fix/session-resume`).
49
+ 3. Keep changes focused; match existing code style in touched files.
50
+ 4. Ensure tests pass before opening a PR.
51
+
52
+ Link issues with `Closes #123` in the PR description when applicable.
53
+
54
+ ## License
55
+
56
+ By contributing, you agree that your contributions are licensed under the
57
+ [Apache License 2.0](LICENSE), the same license as the project.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works, within the Source form or
114
+ documentation, if provided along with the Derivative Works, or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text file from the Work,
121
+ provided that such additional attribution notices cannot be
122
+ construed as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2026 Sagnnik Biswas
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.