noah-code 0.2.3__tar.gz → 0.2.4__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.
- {noah_code-0.2.3 → noah_code-0.2.4}/.github/workflows/ci.yml +38 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/.github/workflows/release.yml +3 -0
- noah_code-0.2.4/.pre-commit-config.yaml +21 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/PKG-INFO +49 -19
- {noah_code-0.2.3 → noah_code-0.2.4}/README.md +38 -8
- noah_code-0.2.4/docs/assets/noah-logo.svg +15 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/configuration.md +95 -22
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/development.md +13 -8
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/extensions.md +38 -8
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/interactive-reference.md +68 -31
- noah_code-0.2.4/docs/releases/v0.2.4.md +100 -0
- noah_code-0.2.4/docs/reliability.md +148 -0
- noah_code-0.2.4/docs/security.md +67 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/pyproject.toml +19 -21
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/__init__.py +1 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/agent.py +152 -15
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/approvals.py +54 -7
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/budget.py +114 -25
- noah_code-0.2.4/src/noah_code/checkpoints.py +310 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/cli.py +75 -15
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/commands.py +25 -36
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/composer.py +32 -9
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/config.py +114 -17
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/events.py +0 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/github.py +29 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/host.py +469 -78
- noah_code-0.2.4/src/noah_code/llm.py +289 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/macos_sandbox.py +35 -4
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/mcp_setup.py +43 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/nooa_compat.py +6 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/permissions.py +150 -12
- noah_code-0.2.4/src/noah_code/runtime_state.py +832 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/sessions.py +34 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/snapshots.py +0 -3
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/steer.py +42 -8
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tool_output.py +42 -8
- noah_code-0.2.4/src/noah_code/tools/__init__.py +1 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/diff_tools.py +0 -9
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/github_tools.py +51 -7
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/lsp_tools.py +74 -34
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/process_tools.py +218 -10
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/question_tools.py +44 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/task_tools.py +45 -4
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/workspace_tools.py +337 -33
- noah_code-0.2.4/src/noah_code/ui/__init__.py +1 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/ui/textual.css +7 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/ui/textual_app.py +568 -51
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/usage.py +34 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/conftest.py +12 -0
- noah_code-0.2.4/tests/test_agent_security.py +265 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_approvals.py +25 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_budget.py +93 -1
- noah_code-0.2.4/tests/test_checkpoints.py +278 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_cli.py +107 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_composer.py +64 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_config.py +45 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_efficiency.py +11 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_github.py +57 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_host.py +250 -7
- noah_code-0.2.4/tests/test_llm.py +178 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_mcp_setup.py +48 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_permissions.py +170 -9
- noah_code-0.2.4/tests/test_process_tools.py +195 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_run_exit.py +10 -0
- noah_code-0.2.4/tests/test_runtime_state.py +139 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_steer.py +3 -1
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_task_tools.py +36 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_textual_tui.py +604 -11
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_web_tools.py +6 -4
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_workspace_tools.py +340 -11
- {noah_code-0.2.3 → noah_code-0.2.4}/uv.lock +121 -29
- noah_code-0.2.3/.pre-commit-config.yaml +0 -8
- noah_code-0.2.3/docs/security.md +0 -36
- noah_code-0.2.3/src/noah_code/checkpoints.py +0 -186
- noah_code-0.2.3/src/noah_code/llm.py +0 -75
- noah_code-0.2.3/src/noah_code/tools/__init__.py +0 -17
- noah_code-0.2.3/src/noah_code/ui/__init__.py +0 -6
- noah_code-0.2.3/tests/test_agent_security.py +0 -99
- noah_code-0.2.3/tests/test_checkpoints.py +0 -135
- noah_code-0.2.3/tests/test_llm.py +0 -75
- noah_code-0.2.3/tests/test_process_tools.py +0 -98
- {noah_code-0.2.3 → noah_code-0.2.4}/.gitignore +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/assets/noah-in-action.svg +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.1.0.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.1.1.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.2.0.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.2.1.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.2.2.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/docs/releases/v0.2.3.md +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/install.sh +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/__main__.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/agents.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/credentials.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/custom_commands.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/event_bridge.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/hooks.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/llm_replies.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/project_notes.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/providers.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/redaction.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/secure_files.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/skills_setup.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/summarization.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/themes.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/git_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/media_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/memory_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/plan_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/tools/web_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/ui/console.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/ui/protocol.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/updates.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/workspace.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/src/noah_code/worktree.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_agents.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_cache_context.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_compaction_eviction.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_console_ui.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_credentials.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_custom_commands.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_diff_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_event_bridge.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_event_bridge_and_shell.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_git_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_hooks.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_installer.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_llm_replies.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_lsp_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_plan_memory_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_project_notes.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_providers.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_question_tools.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_redaction.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_sessions.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_skills_setup.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_snapshots.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_summarization.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_updates.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_wave1_e2e.py +0 -0
- {noah_code-0.2.3 → noah_code-0.2.4}/tests/test_worktree.py +0 -0
|
@@ -5,6 +5,9 @@ on:
|
|
|
5
5
|
push:
|
|
6
6
|
branches:
|
|
7
7
|
- main
|
|
8
|
+
# Also run on version tags so the exact released ref is checked.
|
|
9
|
+
tags:
|
|
10
|
+
- "v*"
|
|
8
11
|
|
|
9
12
|
permissions:
|
|
10
13
|
contents: read
|
|
@@ -67,6 +70,31 @@ jobs:
|
|
|
67
70
|
- name: Build distributions
|
|
68
71
|
run: uv build --out-dir build-dist
|
|
69
72
|
|
|
73
|
+
integration:
|
|
74
|
+
name: Integration tests (network)
|
|
75
|
+
runs-on: ubuntu-latest
|
|
76
|
+
timeout-minutes: 15
|
|
77
|
+
# Integration-marked tests hit the live network and can flake for reasons
|
|
78
|
+
# unrelated to the code; keep the signal visible without blocking PRs.
|
|
79
|
+
continue-on-error: true
|
|
80
|
+
steps:
|
|
81
|
+
- name: Check out source
|
|
82
|
+
uses: actions/checkout@v7
|
|
83
|
+
with:
|
|
84
|
+
persist-credentials: false
|
|
85
|
+
|
|
86
|
+
- name: Install uv and Python
|
|
87
|
+
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
|
88
|
+
with:
|
|
89
|
+
enable-cache: true
|
|
90
|
+
python-version: "3.12"
|
|
91
|
+
|
|
92
|
+
- name: Install locked dependencies
|
|
93
|
+
run: uv sync --locked --all-extras --dev
|
|
94
|
+
|
|
95
|
+
- name: Run integration tests
|
|
96
|
+
run: uv run pytest -m integration -q
|
|
97
|
+
|
|
70
98
|
platform:
|
|
71
99
|
name: ${{ matrix.name }} smoke test
|
|
72
100
|
runs-on: ${{ matrix.runner }}
|
|
@@ -109,8 +137,18 @@ jobs:
|
|
|
109
137
|
rg --version
|
|
110
138
|
|
|
111
139
|
- name: Run tests
|
|
140
|
+
if: runner.os != 'macOS'
|
|
112
141
|
run: uv run pytest tests -W error::pytest.PytestUnraisableExceptionWarning
|
|
113
142
|
|
|
143
|
+
- name: Run tests with coverage (macOS)
|
|
144
|
+
if: runner.os == 'macOS'
|
|
145
|
+
# Collect coverage on macOS too so mac-only paths are measured, but
|
|
146
|
+
# without a fail-under gate: per-platform coverage totals differ,
|
|
147
|
+
# and the 70% gate stays on the ubuntu quality job.
|
|
148
|
+
run: |
|
|
149
|
+
uv run pytest tests --cov=noah_code --cov-report=term \
|
|
150
|
+
-W error::pytest.PytestUnraisableExceptionWarning
|
|
151
|
+
|
|
114
152
|
- name: Verify command entry point
|
|
115
153
|
run: uv run noah --version
|
|
116
154
|
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
# Pre-commit hooks mirroring the CI lint gate.
|
|
2
|
+
# Install with: uv run pre-commit install (or `pre-commit install` once installed)
|
|
3
|
+
repos:
|
|
4
|
+
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
5
|
+
rev: v0.16.1
|
|
6
|
+
hooks:
|
|
7
|
+
- id: ruff-check
|
|
8
|
+
args: [--fix]
|
|
9
|
+
|
|
10
|
+
- repo: local
|
|
11
|
+
hooks:
|
|
12
|
+
- id: mypy
|
|
13
|
+
name: mypy
|
|
14
|
+
entry: uv run mypy
|
|
15
|
+
language: system
|
|
16
|
+
pass_filenames: false
|
|
17
|
+
- id: uv-lock-check
|
|
18
|
+
name: uv lock --check
|
|
19
|
+
entry: uv lock --check
|
|
20
|
+
language: system
|
|
21
|
+
pass_filenames: false
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: noah-code
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.4
|
|
4
4
|
Summary: Noah Code terminal coding agent, built on NVIDIA OO Agents (NOOA)
|
|
5
5
|
Project-URL: Homepage, https://github.com/skundu42/noah-code
|
|
6
6
|
Project-URL: Documentation, https://github.com/skundu42/noah-code#readme
|
|
@@ -19,34 +19,36 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.13
|
|
20
20
|
Classifier: Topic :: Software Development
|
|
21
21
|
Requires-Python: <3.14,>=3.12
|
|
22
|
-
Requires-Dist: click
|
|
23
|
-
Requires-Dist: litellm<1.
|
|
22
|
+
Requires-Dist: click<9.0.0,>=8.1.0
|
|
23
|
+
Requires-Dist: litellm<1.99.0,>=1.96.0
|
|
24
24
|
Requires-Dist: nooa-cli==0.0.9
|
|
25
25
|
Requires-Dist: nooa==0.0.9
|
|
26
|
-
Requires-Dist: packaging
|
|
27
|
-
Requires-Dist: pydantic
|
|
28
|
-
Requires-Dist: pyyaml
|
|
29
|
-
Requires-Dist: rich
|
|
30
|
-
Requires-Dist: textual
|
|
26
|
+
Requires-Dist: packaging<27.0,>=24.0
|
|
27
|
+
Requires-Dist: pydantic<3.0.0,>=2.5.0
|
|
28
|
+
Requires-Dist: pyyaml<7.0.0,>=6.0.0
|
|
29
|
+
Requires-Dist: rich<16.0.0,>=13.0.0
|
|
30
|
+
Requires-Dist: textual<9.0.0,>=1.0.0
|
|
31
31
|
Provides-Extra: dev
|
|
32
|
-
Requires-Dist: mypy>=
|
|
32
|
+
Requires-Dist: mypy>=2.3.1; extra == 'dev'
|
|
33
33
|
Requires-Dist: pytest-asyncio>=0.24.0; extra == 'dev'
|
|
34
34
|
Requires-Dist: pytest-cov>=5.0.0; extra == 'dev'
|
|
35
|
+
Requires-Dist: pytest-socket>=0.7.0; extra == 'dev'
|
|
35
36
|
Requires-Dist: pytest>=8.0.0; extra == 'dev'
|
|
36
37
|
Requires-Dist: ruff>=0.8.0; extra == 'dev'
|
|
38
|
+
Requires-Dist: types-pyyaml>=6.0.12.20260815; extra == 'dev'
|
|
37
39
|
Provides-Extra: mcp
|
|
38
40
|
Requires-Dist: nooa[mcp]==0.0.9; extra == 'mcp'
|
|
39
41
|
Provides-Extra: tracing
|
|
40
42
|
Requires-Dist: nooa[tracing]==0.0.9; extra == 'tracing'
|
|
41
|
-
Provides-Extra: tui
|
|
42
|
-
Requires-Dist: textual>=1.0.0; extra == 'tui'
|
|
43
43
|
Description-Content-Type: text/markdown
|
|
44
44
|
|
|
45
45
|
<div align="center">
|
|
46
46
|
|
|
47
|
+
<img src="https://raw.githubusercontent.com/skundu42/noah-code/main/docs/assets/noah-logo.svg" alt="Noah Code terminal wordmark" width="760">
|
|
48
|
+
|
|
47
49
|
# Noah Code
|
|
48
50
|
|
|
49
|
-
**A terminal coding agent built on NVIDIA's
|
|
51
|
+
**A durable, repository-aware terminal coding agent built on NVIDIA's NOOA framework**
|
|
50
52
|
|
|
51
53
|
[](https://pypi.org/project/noah-code/)
|
|
52
54
|
[](https://github.com/skundu42/noah-code/actions/workflows/ci.yml)
|
|
@@ -54,7 +56,7 @@ Description-Content-Type: text/markdown
|
|
|
54
56
|
|
|
55
57
|
</div>
|
|
56
58
|
|
|
57
|
-

|
|
59
|
+

|
|
58
60
|
|
|
59
61
|
<p align="center"><sub>The real Textual interface, captured from a deterministic Noah Code session.</sub></p>
|
|
60
62
|
|
|
@@ -93,10 +95,10 @@ configuration or session history.
|
|
|
93
95
|
preimages, concurrent-change detection, immediate diagnostics, and rollback.
|
|
94
96
|
- **Visible execution.** Stream bounded shell output while commands run, keep servers and watchers
|
|
95
97
|
as managed background jobs, and revisit activity details with `F2`.
|
|
96
|
-
- **
|
|
97
|
-
|
|
98
|
-
- **Persistent sessions.** Resume repository-scoped conversations, todos, model choices,
|
|
99
|
-
|
|
98
|
+
- **Crash-safe work.** Durable file intents roll back interrupted workspace-tool writes, Git
|
|
99
|
+
checkpoints protect shell-driven changes, and interrupted model runs resume after restart.
|
|
100
|
+
- **Persistent sessions.** Resume repository-scoped conversations, steering, todos, model choices,
|
|
101
|
+
budgets, background-job logs, and compacted context without losing full tool results.
|
|
100
102
|
- **Token-efficient by construction.** Lean tool-output bounds with disk-backed recall, condensed
|
|
101
103
|
subagent results, cache-stable request prefixes (volatile status arrives as appended events),
|
|
102
104
|
and pointer-eviction compaction — measured live with `/tokens`.
|
|
@@ -104,6 +106,9 @@ configuration or session history.
|
|
|
104
106
|
**plan** mode, with ordered `allow`, `ask`, and `deny` permission rules.
|
|
105
107
|
- **Extensible workflows.** Add slash commands, opt-in skills, MCP servers, or markdown subagents;
|
|
106
108
|
attach `@files` and images when the task needs more context.
|
|
109
|
+
- **Long-running by design.** Provider retries and configurable fallback models handle transient
|
|
110
|
+
failures, while workspace leases, bounded artifacts, durable process ownership, and `/health`
|
|
111
|
+
keep unattended sessions observable.
|
|
107
112
|
|
|
108
113
|
Noah follows repository instructions from `AGENTS.md`, `CLAUDE.md`, and
|
|
109
114
|
`.noah-code/instructions.md`.
|
|
@@ -160,6 +165,10 @@ Type `/` to search the full command and configuration reference. The most common
|
|
|
160
165
|
| --- | --- |
|
|
161
166
|
| `Enter` | Send the current prompt or accept a selected suggestion |
|
|
162
167
|
| `Shift+Enter` | Insert a newline |
|
|
168
|
+
| Drag, then `Cmd+C` / `Ctrl+Shift+C` | Select and copy TUI text |
|
|
169
|
+
| `Ctrl+Shift+C` with no selection | Copy the latest Noah reply |
|
|
170
|
+
| `Ctrl+G` | Open the searchable skills picker |
|
|
171
|
+
| `Ctrl+]` | Return to live transcript output |
|
|
163
172
|
| `Tab` | Switch between build and plan mode |
|
|
164
173
|
| `F2` | Open execution activity |
|
|
165
174
|
| `F3` | Open paginated conversation history |
|
|
@@ -167,13 +176,32 @@ Type `/` to search the full command and configuration reference. The most common
|
|
|
167
176
|
| `/theme` | Choose Atom One Dark, Noah Ocean, Graphite, or High Contrast |
|
|
168
177
|
| `/diff` | Review staged and unstaged changes |
|
|
169
178
|
| `/undo` / `/redo` | Traverse the persistent edit journal |
|
|
179
|
+
| `/checkpoints` | List rolling Git worktree checkpoints |
|
|
180
|
+
| `/health` | Inspect durable run, job, inbox, event, and artifact state |
|
|
170
181
|
| `/tokens` | Inspect tokens, cache usage, prefix stability, model wait, and tool output |
|
|
171
182
|
| `/efficiency` | Switch between `fast`, `balanced`, and `deep` budgets |
|
|
172
183
|
|
|
173
184
|
On wide terminals, the side rail prioritizes the active operation, Git branch and change counts,
|
|
174
185
|
session, model usage, update state, and plan. Git status is refreshed in the background at turn
|
|
175
186
|
boundaries, so the animated working state stays responsive. The main pane remains centered on the
|
|
176
|
-
Noah
|
|
187
|
+
large Noah wordmark until the first prompt, then becomes the conversation and execution timeline.
|
|
188
|
+
|
|
189
|
+
## Sessions and crash recovery
|
|
190
|
+
|
|
191
|
+
Start a new session with `noah .`, resume the latest repository session with
|
|
192
|
+
`noah --continue .`, or reopen an exact session with `noah --session SESSION_ID .`. Inside the TUI,
|
|
193
|
+
use `Ctrl+O`, `/sessions`, or `/continue`.
|
|
194
|
+
|
|
195
|
+
Noah stores conversational history and host runtime state separately. If the process stops during
|
|
196
|
+
an active run, the next launch restores pending steering, usage and budget counters, durable job
|
|
197
|
+
logs, and the original request. Incomplete workspace-tool writes are rolled back, verified orphan
|
|
198
|
+
process groups are cleaned up, and non-interactive runs continue automatically. A request that was
|
|
199
|
+
waiting for user input remains paused for the next user message.
|
|
200
|
+
|
|
201
|
+
By default, only one Noah process may own a checkout at a time. Use `/worktree create` when
|
|
202
|
+
independent agents need to work concurrently. See
|
|
203
|
+
[Reliability and long-running sessions](docs/reliability.md) for the recovery model, provider retry
|
|
204
|
+
controls, quotas, and operational limits.
|
|
177
205
|
|
|
178
206
|
## Models and providers
|
|
179
207
|
|
|
@@ -202,7 +230,8 @@ noah --model openai/MODEL --reasoning-effort high .
|
|
|
202
230
|
```
|
|
203
231
|
|
|
204
232
|
See the [provider configuration guide](docs/configuration.md#bring-your-own-api-provider) for
|
|
205
|
-
gateway-specific setup.
|
|
233
|
+
gateway-specific setup. Provider request deadlines, exponential retry, and ordered fallback models
|
|
234
|
+
are configured under `[reliability.retries]`.
|
|
206
235
|
|
|
207
236
|
## Updates
|
|
208
237
|
|
|
@@ -219,6 +248,7 @@ noah update
|
|
|
219
248
|
|
|
220
249
|
- [Interactive interface and sessions](docs/interactive-reference.md)
|
|
221
250
|
- [Configuration, modes, permissions, and updates](docs/configuration.md)
|
|
251
|
+
- [Reliability and long-running sessions](docs/reliability.md)
|
|
222
252
|
- [Generated-code security](docs/security.md)
|
|
223
253
|
- [Custom commands, skills, MCP, and tracing](docs/extensions.md)
|
|
224
254
|
- [Development, CI, and releases](docs/development.md)
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
|
|
3
|
+
<img src="https://raw.githubusercontent.com/skundu42/noah-code/main/docs/assets/noah-logo.svg" alt="Noah Code terminal wordmark" width="760">
|
|
4
|
+
|
|
3
5
|
# Noah Code
|
|
4
6
|
|
|
5
|
-
**A terminal coding agent built on NVIDIA's
|
|
7
|
+
**A durable, repository-aware terminal coding agent built on NVIDIA's NOOA framework**
|
|
6
8
|
|
|
7
9
|
[](https://pypi.org/project/noah-code/)
|
|
8
10
|
[](https://github.com/skundu42/noah-code/actions/workflows/ci.yml)
|
|
@@ -10,7 +12,7 @@
|
|
|
10
12
|
|
|
11
13
|
</div>
|
|
12
14
|
|
|
13
|
-

|
|
15
|
+

|
|
14
16
|
|
|
15
17
|
<p align="center"><sub>The real Textual interface, captured from a deterministic Noah Code session.</sub></p>
|
|
16
18
|
|
|
@@ -49,10 +51,10 @@ configuration or session history.
|
|
|
49
51
|
preimages, concurrent-change detection, immediate diagnostics, and rollback.
|
|
50
52
|
- **Visible execution.** Stream bounded shell output while commands run, keep servers and watchers
|
|
51
53
|
as managed background jobs, and revisit activity details with `F2`.
|
|
52
|
-
- **
|
|
53
|
-
|
|
54
|
-
- **Persistent sessions.** Resume repository-scoped conversations, todos, model choices,
|
|
55
|
-
|
|
54
|
+
- **Crash-safe work.** Durable file intents roll back interrupted workspace-tool writes, Git
|
|
55
|
+
checkpoints protect shell-driven changes, and interrupted model runs resume after restart.
|
|
56
|
+
- **Persistent sessions.** Resume repository-scoped conversations, steering, todos, model choices,
|
|
57
|
+
budgets, background-job logs, and compacted context without losing full tool results.
|
|
56
58
|
- **Token-efficient by construction.** Lean tool-output bounds with disk-backed recall, condensed
|
|
57
59
|
subagent results, cache-stable request prefixes (volatile status arrives as appended events),
|
|
58
60
|
and pointer-eviction compaction — measured live with `/tokens`.
|
|
@@ -60,6 +62,9 @@ configuration or session history.
|
|
|
60
62
|
**plan** mode, with ordered `allow`, `ask`, and `deny` permission rules.
|
|
61
63
|
- **Extensible workflows.** Add slash commands, opt-in skills, MCP servers, or markdown subagents;
|
|
62
64
|
attach `@files` and images when the task needs more context.
|
|
65
|
+
- **Long-running by design.** Provider retries and configurable fallback models handle transient
|
|
66
|
+
failures, while workspace leases, bounded artifacts, durable process ownership, and `/health`
|
|
67
|
+
keep unattended sessions observable.
|
|
63
68
|
|
|
64
69
|
Noah follows repository instructions from `AGENTS.md`, `CLAUDE.md`, and
|
|
65
70
|
`.noah-code/instructions.md`.
|
|
@@ -116,6 +121,10 @@ Type `/` to search the full command and configuration reference. The most common
|
|
|
116
121
|
| --- | --- |
|
|
117
122
|
| `Enter` | Send the current prompt or accept a selected suggestion |
|
|
118
123
|
| `Shift+Enter` | Insert a newline |
|
|
124
|
+
| Drag, then `Cmd+C` / `Ctrl+Shift+C` | Select and copy TUI text |
|
|
125
|
+
| `Ctrl+Shift+C` with no selection | Copy the latest Noah reply |
|
|
126
|
+
| `Ctrl+G` | Open the searchable skills picker |
|
|
127
|
+
| `Ctrl+]` | Return to live transcript output |
|
|
119
128
|
| `Tab` | Switch between build and plan mode |
|
|
120
129
|
| `F2` | Open execution activity |
|
|
121
130
|
| `F3` | Open paginated conversation history |
|
|
@@ -123,13 +132,32 @@ Type `/` to search the full command and configuration reference. The most common
|
|
|
123
132
|
| `/theme` | Choose Atom One Dark, Noah Ocean, Graphite, or High Contrast |
|
|
124
133
|
| `/diff` | Review staged and unstaged changes |
|
|
125
134
|
| `/undo` / `/redo` | Traverse the persistent edit journal |
|
|
135
|
+
| `/checkpoints` | List rolling Git worktree checkpoints |
|
|
136
|
+
| `/health` | Inspect durable run, job, inbox, event, and artifact state |
|
|
126
137
|
| `/tokens` | Inspect tokens, cache usage, prefix stability, model wait, and tool output |
|
|
127
138
|
| `/efficiency` | Switch between `fast`, `balanced`, and `deep` budgets |
|
|
128
139
|
|
|
129
140
|
On wide terminals, the side rail prioritizes the active operation, Git branch and change counts,
|
|
130
141
|
session, model usage, update state, and plan. Git status is refreshed in the background at turn
|
|
131
142
|
boundaries, so the animated working state stays responsive. The main pane remains centered on the
|
|
132
|
-
Noah
|
|
143
|
+
large Noah wordmark until the first prompt, then becomes the conversation and execution timeline.
|
|
144
|
+
|
|
145
|
+
## Sessions and crash recovery
|
|
146
|
+
|
|
147
|
+
Start a new session with `noah .`, resume the latest repository session with
|
|
148
|
+
`noah --continue .`, or reopen an exact session with `noah --session SESSION_ID .`. Inside the TUI,
|
|
149
|
+
use `Ctrl+O`, `/sessions`, or `/continue`.
|
|
150
|
+
|
|
151
|
+
Noah stores conversational history and host runtime state separately. If the process stops during
|
|
152
|
+
an active run, the next launch restores pending steering, usage and budget counters, durable job
|
|
153
|
+
logs, and the original request. Incomplete workspace-tool writes are rolled back, verified orphan
|
|
154
|
+
process groups are cleaned up, and non-interactive runs continue automatically. A request that was
|
|
155
|
+
waiting for user input remains paused for the next user message.
|
|
156
|
+
|
|
157
|
+
By default, only one Noah process may own a checkout at a time. Use `/worktree create` when
|
|
158
|
+
independent agents need to work concurrently. See
|
|
159
|
+
[Reliability and long-running sessions](docs/reliability.md) for the recovery model, provider retry
|
|
160
|
+
controls, quotas, and operational limits.
|
|
133
161
|
|
|
134
162
|
## Models and providers
|
|
135
163
|
|
|
@@ -158,7 +186,8 @@ noah --model openai/MODEL --reasoning-effort high .
|
|
|
158
186
|
```
|
|
159
187
|
|
|
160
188
|
See the [provider configuration guide](docs/configuration.md#bring-your-own-api-provider) for
|
|
161
|
-
gateway-specific setup.
|
|
189
|
+
gateway-specific setup. Provider request deadlines, exponential retry, and ordered fallback models
|
|
190
|
+
are configured under `[reliability.retries]`.
|
|
162
191
|
|
|
163
192
|
## Updates
|
|
164
193
|
|
|
@@ -175,6 +204,7 @@ noah update
|
|
|
175
204
|
|
|
176
205
|
- [Interactive interface and sessions](docs/interactive-reference.md)
|
|
177
206
|
- [Configuration, modes, permissions, and updates](docs/configuration.md)
|
|
207
|
+
- [Reliability and long-running sessions](docs/reliability.md)
|
|
178
208
|
- [Generated-code security](docs/security.md)
|
|
179
209
|
- [Custom commands, skills, MCP, and tracing](docs/extensions.md)
|
|
180
210
|
- [Development, CI, and releases](docs/development.md)
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 230" role="img" aria-labelledby="title description">
|
|
2
|
+
<title id="title">Noah Code</title>
|
|
3
|
+
<desc id="description">The six-line Noah terminal wordmark used by the Noah Code TUI.</desc>
|
|
4
|
+
<rect width="760" height="230" rx="22" fill="#07151d"/>
|
|
5
|
+
<rect x="1" y="1" width="758" height="228" rx="21" fill="none" stroke="#173746" stroke-width="2"/>
|
|
6
|
+
<g fill="#e6edf3" font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace" font-size="20" font-weight="700" text-anchor="middle">
|
|
7
|
+
<text x="380" y="43">███╗ ██╗ ██████╗ █████╗ ██╗ ██╗</text>
|
|
8
|
+
<text x="380" y="69">████╗ ██║██╔═══██╗██╔══██╗██║ ██║</text>
|
|
9
|
+
<text x="380" y="95">██╔██╗ ██║██║ ██║███████║███████║</text>
|
|
10
|
+
<text x="380" y="121">██║╚██╗██║██║ ██║██╔══██║██╔══██║</text>
|
|
11
|
+
<text x="380" y="147">██║ ╚████║╚██████╔╝██║ ██║██║ ██║</text>
|
|
12
|
+
<text x="380" y="173">╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝</text>
|
|
13
|
+
</g>
|
|
14
|
+
<text x="380" y="207" fill="#5bd1d7" font-family="ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace" font-size="16" font-weight="700" letter-spacing="5" text-anchor="middle">NOAH / C O D E</text>
|
|
15
|
+
</svg>
|
|
@@ -112,6 +112,8 @@ max_output_lines = 250
|
|
|
112
112
|
max_search_results = 100
|
|
113
113
|
max_file_results = 500
|
|
114
114
|
tool_output_retention_hours = 24
|
|
115
|
+
subagent_result_max_chars = 4000
|
|
116
|
+
max_concurrent_subagents = 3
|
|
115
117
|
|
|
116
118
|
[lsp]
|
|
117
119
|
enabled = true
|
|
@@ -122,15 +124,51 @@ max_symbols = 300
|
|
|
122
124
|
|
|
123
125
|
[processes]
|
|
124
126
|
max_jobs = 8
|
|
125
|
-
max_runtime_seconds =
|
|
127
|
+
max_runtime_seconds = 86400 # 24 hours
|
|
126
128
|
max_buffer_chars = 64000
|
|
127
129
|
stop_grace_seconds = 2
|
|
128
130
|
|
|
131
|
+
[sampling]
|
|
132
|
+
# Omit values to use provider defaults.
|
|
133
|
+
# temperature = 0.2
|
|
134
|
+
# top_p = 0.95
|
|
135
|
+
# seed = 42
|
|
136
|
+
|
|
137
|
+
[budget]
|
|
138
|
+
# Persistent session-wide limits; omitted values are unlimited.
|
|
139
|
+
# max_tokens = 500000
|
|
140
|
+
# max_cost_usd = 25
|
|
141
|
+
# max_seconds = 28800
|
|
142
|
+
|
|
143
|
+
[checkpoints]
|
|
144
|
+
enabled = true
|
|
145
|
+
max_per_session = 50
|
|
146
|
+
capture_before_mutation = true
|
|
147
|
+
|
|
148
|
+
[reliability]
|
|
149
|
+
auto_resume_interrupted_runs = true
|
|
150
|
+
interaction_timeout_seconds = 86400
|
|
151
|
+
artifact_max_bytes = 2000000000
|
|
152
|
+
session_max_bytes = 5000000000
|
|
153
|
+
max_runtime_events = 20000
|
|
154
|
+
workspace_lease = true
|
|
155
|
+
|
|
156
|
+
[reliability.retries]
|
|
157
|
+
max_attempts = 5
|
|
158
|
+
base_delay_seconds = 0.5
|
|
159
|
+
max_delay_seconds = 20
|
|
160
|
+
jitter_ratio = 0.2
|
|
161
|
+
request_timeout_seconds = 180
|
|
162
|
+
fallback_models = []
|
|
163
|
+
|
|
164
|
+
[hooks]
|
|
165
|
+
# pre_tool = [{ match = "ws_*", command = "./scripts/pre-tool-check" }]
|
|
166
|
+
# post_tool = [{ match = "*", command = "./scripts/audit-tool" }]
|
|
167
|
+
|
|
129
168
|
[ui]
|
|
130
169
|
theme = "atom-one-dark" # atom-one-dark, noah-ocean, graphite, or high-contrast
|
|
131
170
|
frontend = "tui" # "tui" or "console"
|
|
132
171
|
markdown = true
|
|
133
|
-
stream_shell = true
|
|
134
172
|
show_reasoning = false
|
|
135
173
|
|
|
136
174
|
[summarization]
|
|
@@ -141,7 +179,7 @@ target_chars = 2500
|
|
|
141
179
|
|
|
142
180
|
[tracing]
|
|
143
181
|
enabled = true
|
|
144
|
-
|
|
182
|
+
# By default JSONL traces live inside each session directory.
|
|
145
183
|
# jsonl_dir = "~/.local/share/noah-code/traces"
|
|
146
184
|
|
|
147
185
|
[updates]
|
|
@@ -162,10 +200,12 @@ Supported environment overrides include:
|
|
|
162
200
|
- `NOAH_CODE_AUTO_UPDATE`
|
|
163
201
|
|
|
164
202
|
Repository-controlled configuration cannot weaken the host trust boundary. Project config is
|
|
165
|
-
ignored for `auto_approve`, `efficiency`, `enabled_skills`, `
|
|
166
|
-
`processes`, `session_dir`, `tracing`, `updates`, and
|
|
167
|
-
settings in trusted user config, the environment, or
|
|
168
|
-
overrides are user-only because they launch local
|
|
203
|
+
ignored for `auto_approve`, `budget`, `efficiency`, `enabled_skills`, `hooks`, `lsp`, `mcp`,
|
|
204
|
+
`permission_rules`, `processes`, `reliability`, `session_dir`, `tracing`, `updates`, and
|
|
205
|
+
`unsafe_inprocess_code_execution`. Put those settings in trusted user config, the environment, or
|
|
206
|
+
an explicit CLI flag. Language-server overrides and hooks are user-only because they launch local
|
|
207
|
+
executables; reliability and budget settings are user-only so repository content cannot weaken
|
|
208
|
+
host limits.
|
|
169
209
|
|
|
170
210
|
A user-configured `permission_rules` array replaces the default rule array. Copy forward every
|
|
171
211
|
default you still want before adding overrides. Hard secret, destructive-shell, and plan-mode
|
|
@@ -175,6 +215,10 @@ Inspect the resolved configuration from the CLI or inside an interactive session
|
|
|
175
215
|
lists every nested path, while an optional path scopes the output. Values whose names look like
|
|
176
216
|
credentials are redacted.
|
|
177
217
|
|
|
218
|
+
Configuration is validated strictly: unknown keys (including typos such as `theem` under `[ui]`)
|
|
219
|
+
and invalid values or TOML syntax fail every command with a one-line error naming the file and
|
|
220
|
+
field, never a traceback. Fix the named key or remove it; `noah doctor` reports the same error.
|
|
221
|
+
|
|
178
222
|
```bash
|
|
179
223
|
noah config show .
|
|
180
224
|
```
|
|
@@ -219,40 +263,67 @@ safety rail (default 40), not an efficiency-profile cap. Switch without restarti
|
|
|
219
263
|
/efficiency deep
|
|
220
264
|
```
|
|
221
265
|
|
|
222
|
-
Oversized results are not discarded. Noah writes the exact output to a
|
|
223
|
-
|
|
224
|
-
for focused line-range retrieval.
|
|
225
|
-
|
|
266
|
+
Oversized results are not discarded. During a durable session Noah writes the exact output to a
|
|
267
|
+
private, content-addressed artifact store, returns a bounded head/tail preview, and gives the agent
|
|
268
|
+
an output ID for focused line-range retrieval. Artifacts remain available when the session is
|
|
269
|
+
resumed and count toward `reliability.artifact_max_bytes` and `session_max_bytes`. A truncated file
|
|
270
|
+
preview is never returned as an editable Match anchor. `tool_output_retention_hours` applies to the
|
|
271
|
+
fallback cache used when workspace tools are embedded without a durable session runtime.
|
|
226
272
|
|
|
227
273
|
Set `lightweight_model` to route compaction to a faster or cheaper model. If it is omitted, that
|
|
228
274
|
route follows live `/model` switches. Compaction starts at 35% of the active main model's context
|
|
229
275
|
window by default, preserves the six newest events, and writes a coding checkpoint covering the
|
|
230
276
|
objective, decisions, files, validation, blockers, and next steps.
|
|
231
277
|
|
|
278
|
+
### Budgets, checkpoints, and reliability
|
|
279
|
+
|
|
280
|
+
`[budget]` limits are cumulative across the parent agent, lightweight route, and custom-model
|
|
281
|
+
subagents. Token, cost, and elapsed-time counters survive process restarts. When a configured cap
|
|
282
|
+
is exceeded, the breach is sticky and later model calls fail before contacting the provider.
|
|
283
|
+
|
|
284
|
+
Git checkpoints are enabled by default and use rolling retention: once the configured maximum is
|
|
285
|
+
reached, Noah removes the oldest ref and continues capturing instead of silently stopping.
|
|
286
|
+
`capture_before_mutation` protects shell-driven changes; workspace-tool edits additionally use
|
|
287
|
+
durable pre-images and the persistent `/undo` journal.
|
|
288
|
+
|
|
289
|
+
`[reliability.retries]` controls transient model-call retries and ordered fallback models. Noah does
|
|
290
|
+
not retry authentication, invalid-request, content-policy, or context-window failures through this
|
|
291
|
+
route. `[reliability]` also controls crash-run resumption, interaction timeouts, session and artifact
|
|
292
|
+
quotas, event retention, and the exclusive checkout lease. See
|
|
293
|
+
[Reliability and long-running sessions](reliability.md) for the recovery sequence and operational
|
|
294
|
+
limits.
|
|
295
|
+
|
|
232
296
|
## Modes and permissions
|
|
233
297
|
|
|
234
298
|
| Mode | Behavior |
|
|
235
299
|
|------|----------|
|
|
236
|
-
| `build` |
|
|
300
|
+
| `build` | Routine workspace reads, edits, inspection, web research, skills, and delegation proceed automatically; higher-risk operations ask |
|
|
237
301
|
| `plan` | Reads are allowed; file edits and mutating shell commands are denied. `self.plan.write` may pin `.noah-code/plan.md` |
|
|
238
302
|
|
|
239
303
|
Switch modes with `--mode`, `/mode build`, or `/mode plan`. The agent can propose a switch with
|
|
240
|
-
`self.plan.enter()` / `self.plan.exit_to_build()` after writing a plan
|
|
241
|
-
session
|
|
304
|
+
`self.plan.enter()` / `self.plan.exit_to_build()` after writing a plan; the transition always asks
|
|
305
|
+
for confirmation and is never auto-approved, so in `noah run --auto` it is refused and the session
|
|
306
|
+
stays in plan mode. The active mode is stored with the session.
|
|
242
307
|
|
|
243
308
|
Permission rules are evaluated in order, and the last matching rule wins. The default policy:
|
|
244
309
|
|
|
245
310
|
- Allows ordinary reads.
|
|
246
|
-
- Denies likely secrets, including `.env` variants, private keys, `.git` internals,
|
|
247
|
-
|
|
248
|
-
|
|
311
|
+
- Denies likely secrets, including `.env` variants, private keys, `.git` internals, credential
|
|
312
|
+
stores (`.npmrc`, `.pypirc`, `.netrc`, `.pgpass`, `.kube/config`, `.docker/config.json`,
|
|
313
|
+
`.aws/credentials`), Java/JCEKS key stores, and session databases. `.env.example` remains
|
|
314
|
+
readable. The same denials apply to Git object syntax (`git show HEAD:.env`) and to patch-output
|
|
315
|
+
Git commands with no path scope (`git log -p`, bare `git show`), which ask instead of being
|
|
316
|
+
auto-approved.
|
|
317
|
+
- Allows workspace edits, read-only in-workspace shell inspection, web reads, skills, and
|
|
318
|
+
delegated tasks without interrupting the turn.
|
|
319
|
+
- Asks before arbitrary shell execution, external paths, MCP access, and remote mutations.
|
|
249
320
|
- Allows the question tool so the agent can pause for a structured choice.
|
|
250
321
|
- Denies `git push`, `git clean`, `git reset --hard`, and mutating `gh pr`
|
|
251
322
|
(`create`, `checkout`, `merge`, `close`, `ready`, `review`). Push and PR
|
|
252
323
|
mutations go through `/pr` / `self.github` instead.
|
|
253
324
|
- Allows listing and viewing pull requests; asks before create, push, checkout,
|
|
254
325
|
or comment.
|
|
255
|
-
- Keeps file tools inside the active workspace and asks before
|
|
326
|
+
- Keeps file tools inside the active workspace and asks before MCP access.
|
|
256
327
|
- Denies plan-mode mutations regardless of broader allow rules. Plan mode may still run
|
|
257
328
|
read-only subagents. Its shell allowlist accepts only literal, unqualified read-only programs;
|
|
258
329
|
test collection and interpreter execution are not treated as read-only because they can load
|
|
@@ -260,10 +331,12 @@ Permission rules are evaluated in order, and the last matching rule wins. The de
|
|
|
260
331
|
|
|
261
332
|
`--auto` changes routine ask decisions to allow but never overrides an explicit deny.
|
|
262
333
|
Elevated-risk commands such as file removal, downloads, and package installation still require
|
|
263
|
-
explicit approval
|
|
264
|
-
silently
|
|
265
|
-
|
|
266
|
-
|
|
334
|
+
explicit approval: interactively they ask, and in non-interactive `noah run --auto` they are
|
|
335
|
+
rejected outright instead of being silently approved. Compound shell commands and mutating or
|
|
336
|
+
unrecognized Git commands cannot be silently auto-approved. Interpreters, eval/source commands, and
|
|
337
|
+
indirect execution wrappers, plus arguments hidden behind variable, command, ANSI-C, or brace
|
|
338
|
+
expansion, are denied under `--auto`; run without `--auto` when one of these commands needs
|
|
339
|
+
explicit approval.
|
|
267
340
|
|
|
268
341
|
## Installation and updates
|
|
269
342
|
|
|
@@ -12,7 +12,8 @@ uv run pytest tests
|
|
|
12
12
|
uv build
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
The default test suite is hermetic and does not require network access or provider keys
|
|
15
|
+
The default test suite is hermetic and does not require network access or provider keys; pytest-socket
|
|
16
|
+
blocks network sockets outright (only local AF_UNIX sockets, e.g. asyncio's self-pipe, stay open). A single
|
|
16
17
|
opt-in test performs a live HTTP fetch; run it explicitly on a connected machine:
|
|
17
18
|
|
|
18
19
|
```bash
|
|
@@ -25,7 +26,7 @@ Measure coverage (a 70% total gate runs in CI):
|
|
|
25
26
|
uv run pytest tests --cov=noah_code --cov-report=term-missing
|
|
26
27
|
```
|
|
27
28
|
|
|
28
|
-
Optional git hooks mirror the lint
|
|
29
|
+
Optional git hooks mirror the lint, type-check, and lockfile gates:
|
|
29
30
|
|
|
30
31
|
```bash
|
|
31
32
|
uvx pre-commit install
|
|
@@ -37,16 +38,19 @@ tool output, and estimated cost.
|
|
|
37
38
|
## CI
|
|
38
39
|
|
|
39
40
|
GitHub Actions runs the complete test suite on Python 3.12 and 3.13, plus platform smoke tests on
|
|
40
|
-
Linux and macOS for arm64 and x86_64. Every pull request
|
|
41
|
-
type checking (mypy), tests with a 70% coverage floor
|
|
42
|
-
|
|
41
|
+
Linux and macOS for arm64 and x86_64. Every pull request, push to `main`, and `v*` tag must pass lint,
|
|
42
|
+
static type checking (mypy), tests with a 70% coverage floor (measured on Ubuntu; the macOS smoke jobs
|
|
43
|
+
also collect coverage, without a gate, to include mac-only paths), lockfile validation, and a package
|
|
44
|
+
build. A separate job runs the network-dependent integration tests and is allowed to fail, since live
|
|
45
|
+
network calls can flake for reasons unrelated to the code. Concurrent runs for the same reference are
|
|
46
|
+
cancelled automatically.
|
|
43
47
|
|
|
44
48
|
## Releases
|
|
45
49
|
|
|
46
50
|
A `v*` tag starts the release pipeline, which:
|
|
47
51
|
|
|
48
52
|
1. Verifies that the tag, `pyproject.toml`, and package versions match.
|
|
49
|
-
2. Reruns
|
|
53
|
+
2. Reruns lint, type checks, and tests, then builds the wheel and source distribution.
|
|
50
54
|
3. Validates distribution metadata and generates SHA-256 checksums.
|
|
51
55
|
4. Publishes to PyPI using short-lived OIDC credentials.
|
|
52
56
|
5. Creates provenance attestations and a GitHub release with the artifacts.
|
|
@@ -61,8 +65,9 @@ when it exists and otherwise falls back to generated notes. Commit and push the
|
|
|
61
65
|
a matching annotated tag. For example:
|
|
62
66
|
|
|
63
67
|
```bash
|
|
64
|
-
|
|
65
|
-
git
|
|
68
|
+
VERSION=v0.2.3
|
|
69
|
+
git tag -a "$VERSION" -m "Noah Code $VERSION"
|
|
70
|
+
git push origin "$VERSION"
|
|
66
71
|
```
|
|
67
72
|
|
|
68
73
|
Once PyPI publishes the version, existing uv-tool installations discover it through the built-in
|