TL;DR: AI coding sessions are ephemeral, so plans, decisions, and review context often disappear unless teams persist them somewhere durable, according to Fiddler’s GitHub workflow guide. Turning GitHub issues and pull requests into the shared record creates an auditable handoff model for AI agents, but it also raises new governance questions about identity, attribution, and review accountability.
At a glance
What this is: This deep dive argues that GitHub can act as a persistence layer for AI coding agent sessions, preserving plans, decisions, and review context across restarts and handoffs.
Why it matters: It matters because AI agents are increasingly part of software delivery, and IAM and governance teams need durable accountability, traceability, and access boundaries for human and machine collaboration.
👉 Read Fiddler's guide to using GitHub as a persistence layer for AI agent workflows
Context
AI coding agents create a governance problem when the work they do is real but the reasoning behind it disappears at session end. That gap is not just a productivity issue. It affects traceability, reviewability, and the ability to prove why a change was made, which is where identity and access governance starts to overlap with agentic AI workflows.
GitHub is a familiar control surface because it already holds issues, pull requests, and review comments, but it is not automatically a governance layer for AI agents. The article’s central move is to treat the issue as the system of record for agent context, which makes sense for collaborative engineering, yet it also means teams must think carefully about who can write, load, and modify that context as agent use expands.
Key questions
Q: How should security teams govern AI agent context that is stored in GitHub issues?
A: Treat the issue as operational state, not just project tracking. Restrict who can write or edit agent comments, require structured summaries for plans and decisions, and make sure the issue history is reviewable like any other change record. That gives teams durable context while preserving accountability across human and machine contributors.
Q: Why do AI coding assistants need a persistence layer for collaboration?
A: Because the value of the agent is not only the code it suggests, but the reasoning behind those suggestions. Without persistence, every restart forces people to rebuild context, which slows review and obscures decision history. A durable record lets teams hand work across sessions without losing why the work was done.
Q: What breaks when AI agent comments are not attributable to a specific identity?
A: Reviewers lose the ability to separate human judgment from model output, which weakens accountability and makes approvals harder to trust. In shared issue threads, attribution is the only practical way to understand who changed the plan, who approved it, and whether the right actor had permission to do so.
Q: How should teams combine human review with agent-generated planning and comments?
A: Use the agent to draft and organise the work, but keep the human accountable for accepting, revising, or rejecting the output. The safest model is human approval on material decisions, with the agent providing context, summaries, and suggested responses inside the same issue or pull request.
Technical breakdown
Why AI coding sessions lose context
AI coding assistants often operate in short-lived sessions. When a session ends, compacts, or is restarted, the model no longer has access to the prior exchange unless context is explicitly persisted elsewhere. That creates a discontinuity between reasoning and execution: the code remains, but the architectural rationale, trade-offs, and open questions vanish. In collaborative software delivery, that loss matters because review, handoff, and later maintenance all depend on durable context. A persistence layer closes the gap by externalising the reasoning record, rather than assuming the model or user memory will preserve it.
Practical implication: teams need a durable context store for agent work, not just a chat window.
GitHub issues as a shared context record
Using GitHub issues as the persistence layer turns the issue into a structured coordination artifact. Plans, comments, and open questions can be written into a system already tied to branches and pull requests, which reduces copy-paste drift and keeps the discussion near the code. This works because GitHub naturally supports asynchronous collaboration and audit trails. The architectural trade-off is that a developer workflow tool becomes part collaboration surface, part record of decision. Once that happens, the quality of the stored context matters as much as the code diff itself.
Practical implication: define what must be written into the issue before an agent can act on it.
Attribution, review, and multi-agent collaboration
When multiple humans and models comment on the same issue, attribution becomes a governance control, not a formatting detail. The workflow described in the article uses footers to distinguish human input from model-generated comments, which helps preserve accountability in a flat comment model. It also shows a lightweight multi-agent pattern where one model drafts or implements and another reviews, then feedback is reconciled in the same thread. That is useful, but it also means the organisation must know which identities, tools, and permissions each agent is using to interact with GitHub.
Practical implication: establish clear agent identities and comment provenance before scaling this pattern.
NHI Mgmt Group analysis
Persistent context is becoming a governance requirement for AI-assisted software delivery. The article shows why ephemeral agent sessions are inadequate once AI participates in planning, review, and handoff. In practice, the security problem is not only lost productivity, but lost provenance. When the reasoning disappears, teams cannot reliably reconstruct who decided what, which is a control gap that matters to IAM, audit, and change management. The practitioner conclusion is that agent workflows need a durable record, not just a faster prompt loop.
GitHub issue persistence creates a new kind of non-human identity boundary. The issue thread becomes a shared work surface where humans and agents both write state, which means access control around the repository now governs more than code. That is the identity bridge in this topic: AI agents are acting as non-human participants in the delivery process, and their ability to read, write, and reload context must be governed like any other privileged system interaction. The practitioner conclusion is that machine identities tied to developer tooling need lifecycle controls and least-privilege scoping.
Attribution is the named concept teams should pay attention to here: provenance trust gap. The article solves context loss, but the deeper risk is whether teams can trust the provenance of the stored context once humans and models are both contributing. Structured comments and footers improve traceability, yet they do not by themselves guarantee that the right agent, the right person, or the right version of a plan wrote the record. The practitioner conclusion is that provenance controls must accompany persistence, or the audit trail becomes shallow.
AGENTS.md and issue comments should be treated as two different control layers. One captures stable project standards, while the other captures task-level state that changes as work progresses. That split is useful because it separates policy from execution, but it also creates a governance obligation to ensure the static layer does not become a blind spot and the dynamic layer does not become unreviewed drift. The practitioner conclusion is that teams should classify which context belongs in policy files versus live issue state.
Multi-agent review loops will pressure existing approval models. The article’s pattern of one agent drafting work and another model reviewing comments hints at a future where software delivery involves several machine participants, not just one assistant. That complicates access reviews, accountability, and separation of duties if organisations still assume only humans meaningfully affect the workflow. The practitioner conclusion is that review and approval controls must be updated for human-plus-agent operating models.
What this signals
Provenance trust gap: as AI agents become part of delivery workflows, the real control question shifts from whether they can write useful plans to whether those plans can be trusted, traced, and reloaded across sessions. Teams that cannot distinguish model output from human review will struggle to defend approvals, audits, or code ownership when something goes wrong.
Persistent issue-based workflows will increasingly collide with identity governance because the GitHub account used by an agent is effectively a non-human identity with write privileges, comment authority, and delegated context access. Teams should expect pressure to extend least-privilege, lifecycle review, and attribution controls into developer tooling, not just infrastructure and production systems.
For practitioners
- Define a context persistence policy for AI agents Specify which plans, decisions, open questions, and review comments must be written into GitHub issues before an agent can proceed. Treat that record as part of the change-management trail, not optional documentation.
- Scope agent GitHub access like a machine identity Assign least-privilege repository permissions, narrow write access to the smallest necessary issues and pull requests, and review agent accounts on the same cadence as other non-human identities.
- Separate static standards from task state Use AGENTS.md for stable coding standards and issue comments for live task context, so the agent does not mix policy with ephemeral execution details or overwrite project rules.
- Require provenance markers on model-generated comments Make human and model contributions visibly distinguishable in issue threads, and preserve the model attribution in a consistent footer so reviewers can trace how a plan evolved.
- Review handoff readiness before session resets Test whether a new engineer or a restarted agent can reconstruct the current task from the issue alone, including the latest decisions, modified files, and unresolved questions.
Key takeaways
- AI coding agents create value only when their reasoning survives beyond a single session, which makes persistence a governance issue as much as a productivity issue.
- GitHub issues can improve handoffs and reviewability, but they also turn repository access into a control boundary for non-human identities.
- Teams should pair persistence with attribution, least privilege, and clear ownership so that machine-assisted delivery remains auditable and trustworthy.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST AI RMF, NIST CSF 2.0 and NIST SP 800-53 Rev 5 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | Agent context persistence and comment provenance map to agent identity and tool-use risks. | |
| OWASP Non-Human Identity Top 10 | NHI-01 | The workflow uses non-human identities in developer tooling and needs lifecycle governance. |
| NIST AI RMF | GOVERN | Human and agent accountability for shared workflow state is a governance problem. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege is central when agents can write comments and load task context. |
| NIST SP 800-53 Rev 5 | AC-6 | Repository and issue access should be constrained by least privilege and task scope. |
Document agent permissions, context storage, and review paths before allowing production workflow access.
Key terms
- Agent context persistence: The condition where an agent’s instructions, memory, or delegated access remain available beyond the original business task. This creates lifecycle risk because the agent can continue to act on stale intent, so offboarding, retirement, and change control become part of security governance.
- Provenance Trust Gap: A provenance trust gap exists when a system trusts the source of stored data but fails to distinguish whether the content itself is safe to execute. In AI workflows, this gap appears when retrieved records or documents can influence agent actions without validation of origin, intent, or trust level.
- Machine Identity In Developer Tooling: Machine identity in developer tooling is the non-human account, token, or service identity an agent uses to interact with systems such as GitHub. It should be governed like any privileged identity, with scope limits, attribution, lifecycle review, and clear ownership for every action it can take.
What's in the full article
Fiddler's full blog covers the operational detail this post intentionally leaves for the source:
- The exact GitHub issue and branch naming pattern used to keep agent context aligned with the right work item.
- How the gh CLI and agent skill or plugin integration are configured to load comments, save plans, and resume sessions.
- The practical review loop for handling agent-generated comments, including how replies are framed and filtered.
- The lightweight multi-agent pattern for polling automated review comments from other coding models without extra orchestration.
Deepen your knowledge
NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle controls. It helps security and identity practitioners build the controls needed for human and non-human collaboration at scale.
Published by the NHIMG editorial team on August 20, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org