Bug 298004 - misc/prime-agent: Self-improving AI coding assistant with IPython-backed kernel
Summary: misc/prime-agent: Self-improving AI coding assistant with IPython-backed kernel
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on: 298003
Blocks:
  Show dependency treegraph
 
Reported: 2026-08-27 20:32 UTC by Pedro Ramos
Modified: 2026-09-02 22:26 UTC (History)
0 users

See Also:


Attachments
[NEW PORT] misc/prime-agent (gzipped patch) (119.71 KB, patch)
2026-08-27 20:36 UTC, Pedro Ramos
no flags Details | Diff
[NEW PORT] misc/prime-agent with auto pkg-plist (37.23 KB, patch)
2026-09-02 09:22 UTC, Pedro Ramos
no flags Details | Diff
misc/prime-agent: update to v0.9.1 (35.63 KB, patch)
2026-09-02 22:26 UTC, Pedro Ramos
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Ramos 2026-08-27 20:32:30 UTC
New port: misc/prime-agent

Open-source, self-improving AI coding assistant powered by an IPython-backed
execution kernel. Supports multi-turn agentic coding, multi-provider LLMs
(Prime Intellect, Anthropic, OpenAI, etc.), tool calling, conversation
persistence, and a terminal user interface.

Depends on misc/py-prime-agent-runtime (see Bug 298003).

Tested with `make install`, `make deinstall`, `portlint -AC`, and `make check-plist`
on FreeBSD 15.1-STABLE amd64. Not yet tested with poudriere/testport.
Comment 1 Pedro Ramos 2026-08-27 20:36:39 UTC
Created attachment 274193 [details]
[NEW PORT] misc/prime-agent (gzipped patch)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2026-08-28 04:54:36 UTC
^Triage: note that this patch cannot be dealt with by the automation because
it is gzipped because the pkg-plist is 22195 lines.
Comment 3 Pedro Ramos 2026-09-02 09:22:46 UTC
Created attachment 274350 [details]
[NEW PORT] misc/prime-agent with auto pkg-plist

Thanks for flagging this, @linimon — the previous patch was bloated because
it included a static 22,187-line pkg-plist. This has been replaced with
dynamic plist generation via ${TMPPLIST}, which also eliminates stale plist
entries and non-determinism issues from npm builds.

Additional fixes in this version:
- Fixed cmake-ts deprecation warning: nativeonly -> build --configs release
- Added .port_stubs directory cleanup (stubs.cmake leak fix)
- Expanded post-install cleanup:
  - *.map catch-all (fixes 5,369 uncaptured .d.ts.map / .mjs.map files)
  - *.d.mts cleanup (2,867 files)
  - *.orig / *.rej patch backup cleanup
  - non-FreeBSD *.node binary cleanup (16 foreign binaries removed)
- Standardized Python requirement: 3.10+ -> 3.11+ (matches upstream
  pyproject.toml)
Comment 4 Pedro Ramos 2026-09-02 22:26:24 UTC
Created attachment 274368 [details]
misc/prime-agent: update to v0.9.1

Updated to prime-agent v0.9.1.

Changes since the previous patch (274350):

- Bump DISTVERSION: 0.8.1 -> 0.9.1
- Remove the ZeroMQ native addon build and its BUILD_DEPENDS — upstream
  migrated from ZeroMQ to comm-based daemon communication in 0.9.1, so
  this port no longer needs a native compile step for that.
- Replace the R2 URL package.json patch with REINPLACE_CMD pointing at
  the local monorepo component distfiles (more robust than patching a
  remote URL string).
- Regenerate the bundle chunk patches for the new build output
  (bundler-hashed filenames changed, as expected — see chunk-MMG2DX73.js
  replacing OKDNBPEN, and chunk-JZRH5KHN.js replacing ZRIBV47F).
- Correct FreeBSD package name mappings in the lazy-dependency import
  error hints (_FREEBSD_KNOWN_MODULE_PKGS): duckduckgo-search -> ddgs
  (www/py-ddgs), pygithub -> PyGithub (devel/py-PyGithub); added
  python-dotenv, lxml, and pydantic2 mappings.
- Fix pkg-message.in optional-package install commands to match the
  corrected FreeBSD pkg repository names (ddgs, PyGithub).
- Update pkg-descr to better describe the persistent Python REPL kernel.

Depends on misc/py-prime-agent-runtime (Bug 298003), also updated to 0.9.1.

Tested with `make install`, `make deinstall`, `portlint -AC`, and
`make check-plist` on FreeBSD 15.1-STABLE amd64.