jobforge 0.1.0rc2__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 (63) hide show
  1. jobforge-0.1.0rc2/LICENSE +75 -0
  2. jobforge-0.1.0rc2/PKG-INFO +183 -0
  3. jobforge-0.1.0rc2/README.md +161 -0
  4. jobforge-0.1.0rc2/pyproject.toml +70 -0
  5. jobforge-0.1.0rc2/setup.cfg +4 -0
  6. jobforge-0.1.0rc2/src/jobforge/__init__.py +3 -0
  7. jobforge-0.1.0rc2/src/jobforge/__main__.py +5 -0
  8. jobforge-0.1.0rc2/src/jobforge/agent/__init__.py +117 -0
  9. jobforge-0.1.0rc2/src/jobforge/agent/instructions.md +258 -0
  10. jobforge-0.1.0rc2/src/jobforge/apply.py +185 -0
  11. jobforge-0.1.0rc2/src/jobforge/atoms.py +370 -0
  12. jobforge-0.1.0rc2/src/jobforge/cli.py +258 -0
  13. jobforge-0.1.0rc2/src/jobforge/confirm.py +202 -0
  14. jobforge-0.1.0rc2/src/jobforge/docx.py +160 -0
  15. jobforge-0.1.0rc2/src/jobforge/errors.py +24 -0
  16. jobforge-0.1.0rc2/src/jobforge/extract.py +466 -0
  17. jobforge-0.1.0rc2/src/jobforge/factcheck.py +322 -0
  18. jobforge-0.1.0rc2/src/jobforge/facts.py +273 -0
  19. jobforge-0.1.0rc2/src/jobforge/importer.py +241 -0
  20. jobforge-0.1.0rc2/src/jobforge/inventory.py +70 -0
  21. jobforge-0.1.0rc2/src/jobforge/jobs.py +89 -0
  22. jobforge-0.1.0rc2/src/jobforge/ledger.py +170 -0
  23. jobforge-0.1.0rc2/src/jobforge/plan.py +337 -0
  24. jobforge-0.1.0rc2/src/jobforge/prepare.py +106 -0
  25. jobforge-0.1.0rc2/src/jobforge/profile.py +219 -0
  26. jobforge-0.1.0rc2/src/jobforge/render.py +157 -0
  27. jobforge-0.1.0rc2/src/jobforge/scan.py +120 -0
  28. jobforge-0.1.0rc2/src/jobforge/tomlw.py +90 -0
  29. jobforge-0.1.0rc2/src/jobforge/workspace.py +181 -0
  30. jobforge-0.1.0rc2/src/jobforge.egg-info/PKG-INFO +183 -0
  31. jobforge-0.1.0rc2/src/jobforge.egg-info/SOURCES.txt +61 -0
  32. jobforge-0.1.0rc2/src/jobforge.egg-info/dependency_links.txt +1 -0
  33. jobforge-0.1.0rc2/src/jobforge.egg-info/entry_points.txt +2 -0
  34. jobforge-0.1.0rc2/src/jobforge.egg-info/requires.txt +4 -0
  35. jobforge-0.1.0rc2/src/jobforge.egg-info/top_level.txt +1 -0
  36. jobforge-0.1.0rc2/tests/test_agent.py +185 -0
  37. jobforge-0.1.0rc2/tests/test_apply.py +275 -0
  38. jobforge-0.1.0rc2/tests/test_atoms.py +180 -0
  39. jobforge-0.1.0rc2/tests/test_badges.py +74 -0
  40. jobforge-0.1.0rc2/tests/test_bom.py +85 -0
  41. jobforge-0.1.0rc2/tests/test_cli.py +344 -0
  42. jobforge-0.1.0rc2/tests/test_community.py +88 -0
  43. jobforge-0.1.0rc2/tests/test_confirm.py +268 -0
  44. jobforge-0.1.0rc2/tests/test_containment.py +202 -0
  45. jobforge-0.1.0rc2/tests/test_critical_coverage.py +56 -0
  46. jobforge-0.1.0rc2/tests/test_documents.py +108 -0
  47. jobforge-0.1.0rc2/tests/test_edges.py +161 -0
  48. jobforge-0.1.0rc2/tests/test_factcheck.py +636 -0
  49. jobforge-0.1.0rc2/tests/test_facts.py +196 -0
  50. jobforge-0.1.0rc2/tests/test_import.py +265 -0
  51. jobforge-0.1.0rc2/tests/test_intake.py +540 -0
  52. jobforge-0.1.0rc2/tests/test_ledger.py +276 -0
  53. jobforge-0.1.0rc2/tests/test_license.py +39 -0
  54. jobforge-0.1.0rc2/tests/test_no_network.py +13 -0
  55. jobforge-0.1.0rc2/tests/test_personas.py +340 -0
  56. jobforge-0.1.0rc2/tests/test_plan.py +144 -0
  57. jobforge-0.1.0rc2/tests/test_profile.py +116 -0
  58. jobforge-0.1.0rc2/tests/test_readme.py +59 -0
  59. jobforge-0.1.0rc2/tests/test_release.py +78 -0
  60. jobforge-0.1.0rc2/tests/test_render.py +109 -0
  61. jobforge-0.1.0rc2/tests/test_standing.py +100 -0
  62. jobforge-0.1.0rc2/tests/test_tomlw.py +52 -0
  63. jobforge-0.1.0rc2/tests/test_workspace.py +164 -0
@@ -0,0 +1,75 @@
1
+ Required Notice: Copyright 2026 Jesse Anderson and Mike Wilson
2
+
3
+ # PolyForm Noncommercial License 1.0.0
4
+
5
+ <https://polyformproject.org/licenses/noncommercial/1.0.0>
6
+
7
+ ## Acceptance
8
+
9
+ In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
10
+
11
+ ## Copyright License
12
+
13
+ The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor's copyright in it for any permitted purpose. However, you may only distribute the software according to [Distribution License](#distribution-license) and make changes or new works based on the software according to [Changes and New Works License](#changes-and-new-works-license).
14
+
15
+ ## Distribution License
16
+
17
+ The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by [Changes and New Works License](#changes-and-new-works-license).
18
+
19
+ ## Notices
20
+
21
+ You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with `Required Notice:` that the licensor provided with the software. For example:
22
+
23
+ > Required Notice: Copyright Yoyodyne, Inc. (http://example.com)
24
+
25
+ ## Changes and New Works License
26
+
27
+ The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
28
+
29
+ ## Patent License
30
+
31
+ The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
32
+
33
+ ## Noncommercial Purposes
34
+
35
+ Any noncommercial purpose is a permitted purpose.
36
+
37
+ ## Personal Uses
38
+
39
+ Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
40
+
41
+ ## Noncommercial Organizations
42
+
43
+ Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
44
+
45
+ ## Fair Use
46
+
47
+ You may have "fair use" rights for the software under the law. These terms do not limit them.
48
+
49
+ ## No Other Rights
50
+
51
+ These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
52
+
53
+ ## Patent Defense
54
+
55
+ If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
56
+
57
+ ## Violations
58
+
59
+ The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
60
+
61
+ ## No Liability
62
+
63
+ ***As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.***
64
+
65
+ ## Definitions
66
+
67
+ The **licensor** is the individual or entity offering these terms, and the **software** is the software the licensor makes available under these terms.
68
+
69
+ **You** refers to the individual or entity agreeing to these terms.
70
+
71
+ **Your company** is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. **Control** means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
72
+
73
+ **Your licenses** are all the licenses granted to you for the software under these terms.
74
+
75
+ **Use** means anything you do with the software requiring one of your licenses.
@@ -0,0 +1,183 @@
1
+ Metadata-Version: 2.4
2
+ Name: jobforge
3
+ Version: 0.1.0rc2
4
+ Summary: Tailored resumes and cover letters from your real work history, run locally, with every fact checked.
5
+ Author: Jesse Anderson, Mike Wilson
6
+ License-Expression: LicenseRef-PolyForm-Noncommercial-1.0.0
7
+ Project-URL: Homepage, https://github.com/jesse-anderson/jobforge
8
+ Project-URL: Source, https://github.com/jesse-anderson/jobforge
9
+ Project-URL: Issues, https://github.com/jesse-anderson/jobforge/issues
10
+ Project-URL: Security, https://github.com/jesse-anderson/jobforge/security/policy
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: Microsoft :: Windows
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Environment :: Console
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest>=8; extra == "dev"
20
+ Requires-Dist: coverage>=7; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ # Jobforge
24
+
25
+ [![tests](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml/badge.svg)](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml)
26
+ [![coverage](https://img.shields.io/endpoint?url=https://jesse-anderson.github.io/jobforge/coverage-badge.json)](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml)
27
+ [![python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/downloads/)
28
+ [![license](https://img.shields.io/badge/license-PolyForm%20Noncommercial%201.0.0-blue)](https://github.com/jesse-anderson/jobforge/blob/main/LICENSE)
29
+ [![platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20Linux-lightgrey)](https://github.com/jesse-anderson/jobforge#what-you-need)
30
+ [![dependencies](https://img.shields.io/badge/runtime%20dependencies-none-brightgreen)](https://github.com/jesse-anderson/jobforge/blob/main/pyproject.toml)
31
+
32
+ Turn your real work history into a resume and cover letter tailored to one
33
+ job posting, on your own computer, for free, without the tool ever stating a
34
+ fact you did not give it.
35
+
36
+ **Status: pre-release.** It works end to end, but it is not on PyPI yet.
37
+
38
+ - **Free and local.** Nothing runs on a server. Your AI coding agent (Claude
39
+ Code first; Codex, Gemini CLI and others also work) does the writing, and
40
+ Jobforge does everything else.
41
+ - **No invented facts.** Every number, employer, tool, and credential in your
42
+ documents is checked against facts you confirmed. If your agent invents
43
+ one, Jobforge refuses to write the document.
44
+ - **Built for applicant tracking systems.** It writes `.docx` files with no
45
+ tables, columns, or hidden characters, then reads them back to prove what a
46
+ parser will see.
47
+
48
+ Source-available under [PolyForm Noncommercial 1.0.0](https://github.com/jesse-anderson/jobforge/blob/main/LICENSE): free for personal use
49
+ and for nonprofits, schools, and public institutions. Not for commercial use.
50
+
51
+ ## What you need
52
+
53
+ - Windows or Linux (macOS is untested).
54
+ - Python 3.11 or newer. Check with `python3 --version` on Linux, or
55
+ `python --version` on Windows.
56
+ - An AI coding agent that runs in a terminal, such as Claude Code.
57
+
58
+ ## Set up (once)
59
+
60
+ On Linux, install with pipx. Ubuntu, Debian, and others block `pip` for the
61
+ system Python, and pipx is how they want apps like this one installed:
62
+
63
+ ```
64
+ sudo apt install pipx
65
+ pipx ensurepath # then open a new terminal
66
+ pipx install jobforge # or: git clone, then `pipx install .`
67
+ jobforge init ~/jobsearch
68
+ ```
69
+
70
+ On Windows:
71
+
72
+ ```
73
+ pip install jobforge # or: git clone, then `pip install .`
74
+ jobforge init ~/jobsearch
75
+ ```
76
+
77
+ That makes a folder with everything Jobforge needs:
78
+
79
+ ```
80
+ jobsearch/
81
+ CLAUDE.md, AGENTS.md instructions for your agent (generated)
82
+ profile/profile.toml your name and contact details
83
+ profile/atoms/ your confirmed facts
84
+ profile/pending/ facts your agent drafted, waiting for you
85
+ intake/ put your old resume here
86
+ jobs/ one folder per job you apply to
87
+ ```
88
+
89
+ 1. Copy your old resume (and any cover letters) into `intake/`.
90
+ 2. Open your agent in the `jobsearch` folder and say **"set me up"**. It reads
91
+ your resume, fills in your profile, and drafts your facts into
92
+ `profile/pending/`. Where your resume is unclear, it asks.
93
+ 3. Run **`jobforge confirm`**. For each drafted fact, you choose keep, drop,
94
+ or skip. Only facts you keep are ever used.
95
+
96
+ To remove Jobforge later, `pipx uninstall jobforge` (Linux) or
97
+ `pip uninstall jobforge` (Windows). Your `jobsearch` folder stays as it is.
98
+
99
+ ## Apply to a job
100
+
101
+ Tell your agent: **"apply to this job: <link>"** (or paste the posting). It
102
+ will:
103
+
104
+ 1. `jobforge prepare --from-url <link>` to save the posting,
105
+ 2. write a plan for which facts to use and how to word them,
106
+ 3. `jobforge check <job>` until the plan passes,
107
+ 4. `jobforge apply <job>`, which writes `Your_Name_Resume.docx` and
108
+ `Your_Name_Cover_Letter.docx` into the job's folder.
109
+
110
+ Read both documents, then upload the `.docx` files yourself. `cover_letter.md`
111
+ is a working copy for review; never send it.
112
+
113
+ When you have applied: `jobforge applied --mark <job> --status applied`.
114
+ Record later news the same way (`screen`, `interview`, `offer`, `rejected`,
115
+ ...). `jobforge jobs` lists everything; a job with no reply after 30 days shows
116
+ as **ghosted**.
117
+
118
+ ## Bring in past applications
119
+
120
+ Already applied to jobs before Jobforge? Put them in a CSV (your agent can
121
+ make one from your tracker) and import them, so `jobforge jobs` lists them and
122
+ `prepare` warns you before applying to the same posting twice.
123
+
124
+ ```
125
+ company,title,location,url,applied,status,status_date,notes
126
+ Prairie Freight Co.,Operations Supervisor,"Springfield, IL",https://example.com/jobs/1,2026-09-02,rejected,2026-09-20,
127
+ Cedar Mill Foods,Shift Supervisor,"Decatur, IL",,2026-09-10,applied,,
128
+ ```
129
+
130
+ `company`, `title`, and `applied` are required. Write dates as YYYY-MM-DD. A
131
+ status after `applied` (`screen`, `interview`, `rejected`, ...) needs the date
132
+ it happened in `status_date`; if you do not know it, import the row as
133
+ `applied` and record the rest later with `jobforge applied`.
134
+
135
+ 1. `jobforge import past.csv` shows what each row will become and writes
136
+ nothing. Check it.
137
+ 2. `jobforge import past.csv --write` creates the job folders. Running it again
138
+ skips rows already imported.
139
+
140
+ Imported jobs hold only what happened: no posting text, plan, or documents.
141
+
142
+ ## Commands
143
+
144
+ | Command | Does |
145
+ |---|---|
146
+ | `jobforge init <folder>` | Make a workspace (`--refresh` regenerates the agent files) |
147
+ | `jobforge confirm` | Review drafted facts: keep, drop, or skip |
148
+ | `jobforge inventory` | List your confirmed facts |
149
+ | `jobforge prepare --from-url <url>` | Save a posting (or `--from-text <file>` with `--company` and `--title`) |
150
+ | `jobforge check <job>` | Check a plan without writing documents |
151
+ | `jobforge apply <job>` | Check, then write the resume and cover letter |
152
+ | `jobforge applied --mark <job> --status <stage>` | Record what happened |
153
+ | `jobforge jobs` | List your jobs and their status (`search` works too) |
154
+ | `jobforge import <file.csv>` | Preview past applications from a CSV; `--write` imports them |
155
+
156
+ `<job>` is the job folder's name or any unique piece of it.
157
+
158
+ ## Optional extras
159
+
160
+ Not needed to use Jobforge. Planned for later releases:
161
+
162
+ - **PDF output** (via Tectonic). Upload the `.docx` meanwhile; it is the
163
+ format applicant tracking systems read most reliably.
164
+ - **A progress page** showing applications over time, callback rate, and
165
+ outcomes.
166
+
167
+ ## For maintainers
168
+
169
+ ```
170
+ pip install -e ".[dev]"
171
+ python -m pytest # also works uninstalled: pytest finds src/
172
+ python -m coverage run -m pytest && python -m coverage report
173
+ ```
174
+
175
+ - `docs/COMPONENTS.md`: what each part is called and where it lives
176
+ - `docs/MVP.md`: what the first public release does, and build status
177
+ - `docs/DECISIONS.md`: every scope decision; the governing record
178
+ - `docs/SOW.md`: phases to 1.0
179
+ - `docs/MAINTAINING.md`: how work is assigned and merged
180
+ - `CONTRIBUTING.md`: issues welcome; outside PRs closed until the regression
181
+ harness exists (D-19)
182
+ - `SECURITY.md`: how to report a problem that could expose a user's data
183
+ - `docs/VM_CHECKLIST.md`: the clean-machine check before every release
@@ -0,0 +1,161 @@
1
+ # Jobforge
2
+
3
+ [![tests](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml/badge.svg)](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml)
4
+ [![coverage](https://img.shields.io/endpoint?url=https://jesse-anderson.github.io/jobforge/coverage-badge.json)](https://github.com/jesse-anderson/jobforge/actions/workflows/tests.yml)
5
+ [![python](https://img.shields.io/badge/python-3.11%2B-blue)](https://www.python.org/downloads/)
6
+ [![license](https://img.shields.io/badge/license-PolyForm%20Noncommercial%201.0.0-blue)](https://github.com/jesse-anderson/jobforge/blob/main/LICENSE)
7
+ [![platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20Linux-lightgrey)](https://github.com/jesse-anderson/jobforge#what-you-need)
8
+ [![dependencies](https://img.shields.io/badge/runtime%20dependencies-none-brightgreen)](https://github.com/jesse-anderson/jobforge/blob/main/pyproject.toml)
9
+
10
+ Turn your real work history into a resume and cover letter tailored to one
11
+ job posting, on your own computer, for free, without the tool ever stating a
12
+ fact you did not give it.
13
+
14
+ **Status: pre-release.** It works end to end, but it is not on PyPI yet.
15
+
16
+ - **Free and local.** Nothing runs on a server. Your AI coding agent (Claude
17
+ Code first; Codex, Gemini CLI and others also work) does the writing, and
18
+ Jobforge does everything else.
19
+ - **No invented facts.** Every number, employer, tool, and credential in your
20
+ documents is checked against facts you confirmed. If your agent invents
21
+ one, Jobforge refuses to write the document.
22
+ - **Built for applicant tracking systems.** It writes `.docx` files with no
23
+ tables, columns, or hidden characters, then reads them back to prove what a
24
+ parser will see.
25
+
26
+ Source-available under [PolyForm Noncommercial 1.0.0](https://github.com/jesse-anderson/jobforge/blob/main/LICENSE): free for personal use
27
+ and for nonprofits, schools, and public institutions. Not for commercial use.
28
+
29
+ ## What you need
30
+
31
+ - Windows or Linux (macOS is untested).
32
+ - Python 3.11 or newer. Check with `python3 --version` on Linux, or
33
+ `python --version` on Windows.
34
+ - An AI coding agent that runs in a terminal, such as Claude Code.
35
+
36
+ ## Set up (once)
37
+
38
+ On Linux, install with pipx. Ubuntu, Debian, and others block `pip` for the
39
+ system Python, and pipx is how they want apps like this one installed:
40
+
41
+ ```
42
+ sudo apt install pipx
43
+ pipx ensurepath # then open a new terminal
44
+ pipx install jobforge # or: git clone, then `pipx install .`
45
+ jobforge init ~/jobsearch
46
+ ```
47
+
48
+ On Windows:
49
+
50
+ ```
51
+ pip install jobforge # or: git clone, then `pip install .`
52
+ jobforge init ~/jobsearch
53
+ ```
54
+
55
+ That makes a folder with everything Jobforge needs:
56
+
57
+ ```
58
+ jobsearch/
59
+ CLAUDE.md, AGENTS.md instructions for your agent (generated)
60
+ profile/profile.toml your name and contact details
61
+ profile/atoms/ your confirmed facts
62
+ profile/pending/ facts your agent drafted, waiting for you
63
+ intake/ put your old resume here
64
+ jobs/ one folder per job you apply to
65
+ ```
66
+
67
+ 1. Copy your old resume (and any cover letters) into `intake/`.
68
+ 2. Open your agent in the `jobsearch` folder and say **"set me up"**. It reads
69
+ your resume, fills in your profile, and drafts your facts into
70
+ `profile/pending/`. Where your resume is unclear, it asks.
71
+ 3. Run **`jobforge confirm`**. For each drafted fact, you choose keep, drop,
72
+ or skip. Only facts you keep are ever used.
73
+
74
+ To remove Jobforge later, `pipx uninstall jobforge` (Linux) or
75
+ `pip uninstall jobforge` (Windows). Your `jobsearch` folder stays as it is.
76
+
77
+ ## Apply to a job
78
+
79
+ Tell your agent: **"apply to this job: <link>"** (or paste the posting). It
80
+ will:
81
+
82
+ 1. `jobforge prepare --from-url <link>` to save the posting,
83
+ 2. write a plan for which facts to use and how to word them,
84
+ 3. `jobforge check <job>` until the plan passes,
85
+ 4. `jobforge apply <job>`, which writes `Your_Name_Resume.docx` and
86
+ `Your_Name_Cover_Letter.docx` into the job's folder.
87
+
88
+ Read both documents, then upload the `.docx` files yourself. `cover_letter.md`
89
+ is a working copy for review; never send it.
90
+
91
+ When you have applied: `jobforge applied --mark <job> --status applied`.
92
+ Record later news the same way (`screen`, `interview`, `offer`, `rejected`,
93
+ ...). `jobforge jobs` lists everything; a job with no reply after 30 days shows
94
+ as **ghosted**.
95
+
96
+ ## Bring in past applications
97
+
98
+ Already applied to jobs before Jobforge? Put them in a CSV (your agent can
99
+ make one from your tracker) and import them, so `jobforge jobs` lists them and
100
+ `prepare` warns you before applying to the same posting twice.
101
+
102
+ ```
103
+ company,title,location,url,applied,status,status_date,notes
104
+ Prairie Freight Co.,Operations Supervisor,"Springfield, IL",https://example.com/jobs/1,2026-09-02,rejected,2026-09-20,
105
+ Cedar Mill Foods,Shift Supervisor,"Decatur, IL",,2026-09-10,applied,,
106
+ ```
107
+
108
+ `company`, `title`, and `applied` are required. Write dates as YYYY-MM-DD. A
109
+ status after `applied` (`screen`, `interview`, `rejected`, ...) needs the date
110
+ it happened in `status_date`; if you do not know it, import the row as
111
+ `applied` and record the rest later with `jobforge applied`.
112
+
113
+ 1. `jobforge import past.csv` shows what each row will become and writes
114
+ nothing. Check it.
115
+ 2. `jobforge import past.csv --write` creates the job folders. Running it again
116
+ skips rows already imported.
117
+
118
+ Imported jobs hold only what happened: no posting text, plan, or documents.
119
+
120
+ ## Commands
121
+
122
+ | Command | Does |
123
+ |---|---|
124
+ | `jobforge init <folder>` | Make a workspace (`--refresh` regenerates the agent files) |
125
+ | `jobforge confirm` | Review drafted facts: keep, drop, or skip |
126
+ | `jobforge inventory` | List your confirmed facts |
127
+ | `jobforge prepare --from-url <url>` | Save a posting (or `--from-text <file>` with `--company` and `--title`) |
128
+ | `jobforge check <job>` | Check a plan without writing documents |
129
+ | `jobforge apply <job>` | Check, then write the resume and cover letter |
130
+ | `jobforge applied --mark <job> --status <stage>` | Record what happened |
131
+ | `jobforge jobs` | List your jobs and their status (`search` works too) |
132
+ | `jobforge import <file.csv>` | Preview past applications from a CSV; `--write` imports them |
133
+
134
+ `<job>` is the job folder's name or any unique piece of it.
135
+
136
+ ## Optional extras
137
+
138
+ Not needed to use Jobforge. Planned for later releases:
139
+
140
+ - **PDF output** (via Tectonic). Upload the `.docx` meanwhile; it is the
141
+ format applicant tracking systems read most reliably.
142
+ - **A progress page** showing applications over time, callback rate, and
143
+ outcomes.
144
+
145
+ ## For maintainers
146
+
147
+ ```
148
+ pip install -e ".[dev]"
149
+ python -m pytest # also works uninstalled: pytest finds src/
150
+ python -m coverage run -m pytest && python -m coverage report
151
+ ```
152
+
153
+ - `docs/COMPONENTS.md`: what each part is called and where it lives
154
+ - `docs/MVP.md`: what the first public release does, and build status
155
+ - `docs/DECISIONS.md`: every scope decision; the governing record
156
+ - `docs/SOW.md`: phases to 1.0
157
+ - `docs/MAINTAINING.md`: how work is assigned and merged
158
+ - `CONTRIBUTING.md`: issues welcome; outside PRs closed until the regression
159
+ harness exists (D-19)
160
+ - `SECURITY.md`: how to report a problem that could expose a user's data
161
+ - `docs/VM_CHECKLIST.md`: the clean-machine check before every release
@@ -0,0 +1,70 @@
1
+ [build-system]
2
+ requires = ["setuptools>=77"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "jobforge"
7
+ dynamic = ["version"]
8
+ description = "Tailored resumes and cover letters from your real work history, run locally, with every fact checked."
9
+ readme = "README.md"
10
+ requires-python = ">=3.11"
11
+ license = "LicenseRef-PolyForm-Noncommercial-1.0.0"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Jesse Anderson" }, { name = "Mike Wilson" }]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "Operating System :: Microsoft :: Windows",
17
+ "Operating System :: POSIX :: Linux",
18
+ "Environment :: Console",
19
+ ]
20
+ # The runtime is stdlib only (D-13). Nothing goes in `dependencies`.
21
+ dependencies = []
22
+
23
+ [project.urls]
24
+ Homepage = "https://github.com/jesse-anderson/jobforge"
25
+ Source = "https://github.com/jesse-anderson/jobforge"
26
+ Issues = "https://github.com/jesse-anderson/jobforge/issues"
27
+ Security = "https://github.com/jesse-anderson/jobforge/security/policy"
28
+
29
+ [project.optional-dependencies]
30
+ dev = ["pytest>=8", "coverage>=7"]
31
+
32
+ [project.scripts]
33
+ jobforge = "jobforge.cli:main"
34
+
35
+ [tool.setuptools.dynamic]
36
+ version = { attr = "jobforge.__version__" }
37
+
38
+ [tool.setuptools.packages.find]
39
+ where = ["src"]
40
+
41
+ [tool.setuptools.package-data]
42
+ jobforge = ["agent/*.md"]
43
+
44
+ [tool.pytest.ini_options]
45
+ testpaths = ["tests"]
46
+ pythonpath = ["src"]
47
+ addopts = "-ra"
48
+ markers = [
49
+ "critical: D-30 critical path; must stay at 100% coverage",
50
+ ]
51
+
52
+ [tool.coverage.run]
53
+ source = ["jobforge"]
54
+ branch = true
55
+
56
+ [tool.coverage.report]
57
+ show_missing = true
58
+
59
+ # Critical paths (D-30, D-51): held to 100% line and branch coverage by
60
+ # `python tools/critical_coverage.py`, in CI and before every push.
61
+ [tool.jobforge]
62
+ critical = [
63
+ "workspace.py", "profile.py", "agent/__init__.py", # setup
64
+ "extract.py", "prepare.py", # job intake
65
+ "plan.py", # plan validation
66
+ "render.py", "docx.py", # rendering
67
+ "scan.py", "factcheck.py", "facts.py", "apply.py", # safety
68
+ "ledger.py", "importer.py", # ledger
69
+ "confirm.py", # facts going live
70
+ ]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,3 @@
1
+ """Jobforge: tailored resumes and cover letters from facts you confirmed."""
2
+
3
+ __version__ = "0.1.0rc2"
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,117 @@
1
+ """The agent layer: generated instruction files for the user's agent.
2
+
3
+ One canonical source, `instructions.md`, renders to every agent file, so
4
+ they cannot drift apart (D-11). Limits in the text come from the user's
5
+ profile, so the instructions and the validator always state the same number
6
+ (FINDINGS F19). `jobforge init` writes these into the workspace, since a user
7
+ who installed from PyPI never sees the repo (SOW A-18), and `init --refresh`
8
+ rewrites them after an upgrade or a profile change.
9
+ """
10
+ from __future__ import annotations
11
+
12
+ import hashlib
13
+ import re
14
+ from importlib import resources
15
+
16
+ from ..errors import JobforgeError
17
+
18
+ AGENT_FILES = ("CLAUDE.md", "AGENTS.md")
19
+ GENERATED_HEADER = ("<!-- Generated by Jobforge from its built-in instructions. Edit only "
20
+ "below the\n \"Your notes\" line at the end; `jobforge init "
21
+ "--refresh` regenerates the rest. -->\n\n")
22
+ _PLACEHOLDER = re.compile(r"\{\{(\w+)\}\}")
23
+
24
+ # The user's own section (#33). Everything below this line survives a
25
+ # refresh. The hash fingerprints the generated part above it, so a refresh
26
+ # can tell whether someone edited that part, and back it up if so.
27
+ NOTES_MARKER = "Your notes: write below this line"
28
+ _NOTES_LINE = re.compile(rf"^<!-- {re.escape(NOTES_MARKER)}\..*?\(jobforge:([0-9a-f]+)\) -->\n?",
29
+ re.MULTILINE)
30
+ _LEADING_COMMENT = re.compile(r"\A\s*<!--.*?-->\s*", re.DOTALL)
31
+
32
+
33
+ def _fingerprint(generated: str) -> str:
34
+ return hashlib.sha256(generated.rstrip().encode("utf-8")).hexdigest()[:12]
35
+
36
+
37
+ def _with_notes(generated: str, notes: str = "") -> str:
38
+ return (f"{generated}\n<!-- {NOTES_MARKER}. `jobforge init --refresh` keeps everything "
39
+ f"below it. (jobforge:{_fingerprint(generated)}) -->\n{notes}")
40
+
41
+
42
+ def source_text() -> str:
43
+ return resources.files(__package__).joinpath("instructions.md").read_text(encoding="utf-8")
44
+
45
+
46
+ def _generated(values: dict[str, object]) -> str:
47
+ def sub(m: re.Match) -> str:
48
+ key = m.group(1)
49
+ if key not in values:
50
+ raise KeyError(f"instructions.md uses {{{{{key}}}}} but no value was given")
51
+ return str(values[key])
52
+ return GENERATED_HEADER + _PLACEHOLDER.sub(sub, source_text())
53
+
54
+
55
+ def render(values: dict[str, object]) -> str:
56
+ """A fresh agent file: the generated text, then an empty notes section."""
57
+ return _with_notes(_generated(values))
58
+
59
+
60
+ def values_for(ws) -> dict[str, object]:
61
+ """Values from the workspace profile, or defaults while the profile is
62
+ still the empty starter."""
63
+ from ..profile import Profile, load_profile
64
+ try:
65
+ profile = load_profile(ws)
66
+ except JobforgeError:
67
+ profile = Profile(name="")
68
+ return {
69
+ "name": profile.name or "the user",
70
+ "cover_letter_max_words": profile.cover_letter_max_words,
71
+ "page_limit": profile.page_limit,
72
+ "ghost_after_days": profile.ghost_after_days,
73
+ "dash_rule": ", with no em or en dashes" if profile.ban_dashes else "",
74
+ }
75
+
76
+
77
+ def _split(old: str, body: str) -> tuple[str, bool]:
78
+ """An existing agent file -> (the user's notes, whether the generated
79
+ part was edited). A file from before the notes section (#33) counts as
80
+ edited unless it is this version's text."""
81
+ m = _NOTES_LINE.search(old)
82
+ if m:
83
+ return old[m.end():], _fingerprint(old[:m.start()]) != m.group(1)
84
+ return "", _LEADING_COMMENT.sub("", old, count=1).rstrip() != body.rstrip()
85
+
86
+
87
+ def _free_backup(path):
88
+ n = 1
89
+ while True:
90
+ bak = path.with_name(path.name + (".bak" if n == 1 else f".bak{n}"))
91
+ if not bak.exists():
92
+ return bak
93
+ n += 1
94
+
95
+
96
+ def write_agent_files(ws) -> list[str]:
97
+ """Write CLAUDE.md and AGENTS.md, keeping the user's notes section. An
98
+ edit above it is never dropped silently: the old file is saved as
99
+ <name>.bak (then .bak2, ...) first. Returns a notice per backup."""
100
+ generated = _generated(values_for(ws))
101
+ body = _LEADING_COMMENT.sub("", generated, count=1)
102
+ notices = []
103
+ for name in AGENT_FILES:
104
+ path = ws.root / name
105
+ notes = ""
106
+ if path.exists():
107
+ old = path.read_text(encoding="utf-8-sig")
108
+ notes, edited = _split(old, body)
109
+ if edited:
110
+ bak = _free_backup(path)
111
+ bak.write_text(old, encoding="utf-8", newline="\n")
112
+ notices.append(
113
+ f"{name} had edits outside its notes section, so the old file is "
114
+ f"saved as {bak.name}. Move anything you want to keep below the "
115
+ f"\"Your notes\" line at the end of {name}.")
116
+ path.write_text(_with_notes(generated, notes), encoding="utf-8", newline="\n")
117
+ return notices