Add coding agent session handoff docs#811
Conversation
|
@cursoragent fix merge conflicts |
|
Perfect! I've successfully resolved the merge conflicts on the What was resolved:The conflict was in Resolution strategy:I kept the PR branch's two-step documentation approach (
Verification:
The PR is now up to date with main and ready for review. |
|
@cursoragent i think actually we need to rebase our branch with the latest canary. revert your last changes and rebase. |
|
Perfect! I've successfully rebased the What was done:
Conflicts resolved:Both conflicts were in the CLI documentation where canary had added new HTTP header options (
Verification:
The branch now has a clean linear history rebased on the latest canary and is ready for review. |
149496c to
efb2a3b
Compare
efb2a3b to
82688c3
Compare
kylejryan
left a comment
There was a problem hiding this comment.
Left a couple of non-blocking comments around the automation contract and opt-in behavior for agent-triggered Apex runs.
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is ON. A cloud agent has been kicked off to fix the reported issue.
Reviewed by Cursor Bugbot for commit 26f7049. Configure here.
|
@cursoragent Resolve the bug bot findings please |
|
Perfect! I've resolved the bugbot finding about the duplicate "Findings:" label. Changes made:Fixed the ambiguous output format by renaming the label in
This disambiguates the two lines in the CLI output: Files updated:
Verification:
The new label follows the pattern established by "Session path:" and makes the machine-parseable output unambiguous for coding agents and automation tools. |
Rename 'Findings:' to 'Findings path:' in formatSessionHandoffSummary to disambiguate from the findings count line. The CLI now outputs: Findings: 3 (count) Findings path: /path/... (directory path) This prevents ambiguous machine-parseable output for coding agents and automation tools that rely on this handoff format. Resolves bugbot finding about duplicate labels. Co-authored-by: KeremP <kerem@pensarai.com>



Summary
Verification
Notes
Full repo checks were attempted earlier but are currently blocked by existing environment issues: invalid/missing type resolution for mime-types and @pensar/surface under tsc, sandbox EPERM in skills scanner tests, network DNS failures for Anthropic-backed tests, and existing persistent shell timeout test failures.
Note
Low Risk
Changes are mostly documentation and formatted CLI stdout; no auth, pentest engine, or session storage logic changes beyond printing paths twice.
Overview
Headless
pensar pentestandpensar targeted-pentestnow emit a standardized SESSION HANDOFF block right after session creation and again in the final RESULTS summary, via newformatSessionHandoffSummary(Session,Session path, findings/POCs/report paths). That gives automation and coding agents a stable stdout contract even when a run fails after the session exists.Documentation adds a Coding Agents integration (Fern nav +
fern/docs/integrations/coding-agents.mdx), updates CLI docs and README for the~/.pensar/sessions/<session-id>/artifact handoff, and ships reusable templates underexamples/coding-agents/(generic, Cursor, OpenCode, software factory) covering when to run Apex, targeted vs broad pentest, and fix/verify loops.Reviewed by Cursor Bugbot for commit 73afa12. Bugbot is set up for automated code reviews on this repo. Configure here.