Skip to content

Commit b36282f

Browse files
committed
Initial PHANTOM open-source release
0 parents  commit b36282f

46 files changed

Lines changed: 10516 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
python-version: ["3.11", "3.13"]
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Python
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -r requirements.txt
28+
29+
- name: Compile
30+
run: python -m py_compile phantom.py phantom_cli.py core/*.py memory/__init__.py tools/*.py integrations/*.py evals/*.py tests/*.py
31+
32+
- name: Unit tests
33+
run: python -m unittest discover -s tests -v
34+
35+
- name: Offline evals
36+
run: |
37+
export PHANTOM_HOME="$PWD/.phantom-ci"
38+
export PHANTOM_WORKSPACE="$PWD"
39+
python phantom.py --evals

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
.DS_Store
2+
__pycache__/
3+
*.py[cod]
4+
*.so
5+
.pytest_cache/
6+
.mypy_cache/
7+
.ruff_cache/
8+
9+
.venv/
10+
.phantom/
11+
12+
.env
13+
.env.*
14+
15+
*.log
16+
*.sqlite
17+
*.sqlite3
18+
19+
playwright-report/
20+
test-results/
21+
22+
.coverage
23+
htmlcov/

CODE_OF_CONDUCT.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Code Of Conduct
2+
3+
## Our Standard
4+
5+
PHANTOM is built in public, and we want the project to feel welcoming to people who are curious, thoughtful, and serious about building useful systems.
6+
7+
We expect contributors to:
8+
9+
- be respectful and constructive
10+
- disagree with ideas without attacking people
11+
- assume good intent while still being clear and honest
12+
- help make the project understandable for newcomers
13+
- avoid harassment, intimidation, or exclusionary behavior
14+
15+
## Scope
16+
17+
This applies to:
18+
19+
- issues
20+
- pull requests
21+
- discussions
22+
- documentation
23+
- project chat spaces tied to PHANTOM
24+
25+
## Unacceptable Behavior
26+
27+
Examples include:
28+
29+
- personal attacks or insults
30+
- harassment or discrimination
31+
- doxxing or sharing private information without consent
32+
- deliberate disruption, spam, or bad-faith participation
33+
- hostile behavior that makes collaboration unsafe
34+
35+
## Maintainer Responsibility
36+
37+
Project maintainers may edit, remove, or reject content that violates this code of conduct. They may also temporarily or permanently restrict participation when needed to protect the project and its contributors.
38+
39+
## Reporting
40+
41+
If you see a problem, report it privately through the contact path in [`SECURITY.md`](SECURITY.md) or by opening a respectful maintainer contact request.
42+
43+
## Enforcement Philosophy
44+
45+
We want a project that is technically rigorous and welcoming. Enforcement should protect contributors, reduce unnecessary conflict, and keep the work moving.

CONTRIBUTING.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Contributing to PHANTOM
2+
3+
Thanks for contributing.
4+
5+
## Local Setup
6+
7+
```bash
8+
python3 -m venv .venv
9+
. .venv/bin/activate
10+
python3 -m pip install -r requirements.txt
11+
python3 -m playwright install chromium
12+
```
13+
14+
## Run Checks
15+
16+
```bash
17+
python3 -m unittest discover -s tests -v
18+
.venv/bin/python phantom.py --evals
19+
```
20+
21+
## Contribution Guidelines
22+
23+
- keep changes small and reviewable
24+
- preserve local-first and human-control behavior
25+
- add or update tests for behavior changes
26+
- do not weaken safety checks to land a feature quickly
27+
- document new CLI flags and environment variables in `README.md`
28+
29+
## Areas That Need Work
30+
31+
- planner grounding and plan quality
32+
- provider reliability and benchmark harnesses
33+
- stronger generated-skill isolation
34+
- browser workflow robustness
35+
- better product demos and example workflows

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 borhen68
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 commit comments

Comments
 (0)