Uploaded November 2026 | Updated November 2026, 14 hours ago
In this episode of AI Coding with Dr. Chuck, I begin implementing LTI 1.3 Assignment and Grade Services (AGS) in Tsugi, building on our previous work with Dynamic Registration, Deep Linking, OAuth access tokens, and Names and Role Provisioning Services (NRPS).
AGS is a significantly more complex specification than NRPS. It allows external LTI tools to create and manage gradebook line items, submit scores, and retrieve results from a learning management system.
I start by giving Cursor AI a detailed prompt describing how I want AGS implemented, particularly the relationship between line items and results in Tsugi's data model. I also encourage Cursor to examine the existing Sakai AGS implementation when useful.
Then we wait. And wait.
While Cursor spends nearly 40 minutes investigating the codebase, reading the specification, and writing the implementation, I take the opportunity to give a few impromptu talks about programming, education, AI, and the future of software development.
Some of the topics in this episode include:
**LTI 1.3 and AGS implementation**
- Implementing Assignment and Grade Services (AGS)
- Reusing the existing OAuth access token service
- Working with AGS scopes and bearer token authorization
- Creating and updating gradebook line items
- Submitting scores and retrieving results
- Handling grading progress and activity progress states
- Keeping line items and results tightly connected in the Tsugi data model
- Using the Tsugi LMS interoperability test tool
- Debugging interactions between Tsugi as an LTI platform and as an LTI tool
- Testing AGS through a temporary resource link launch
- Considering how test-created gradebook columns should be managed
**AI programming and education**
- Why I'm recording these AI-assisted development sessions
- Why AI does not eliminate the need to learn programming
- The importance of technical experience when prompting AI
- Using multiple AI agents for implementation and code review
- Why building real software requires continuous human involvement
- How AI is changing the way programming should be taught
- My plans for Python for Everybody with AI
- Building a learning management system focused on instructors and students
One of my main points is that effective AI-assisted software development still depends on understanding software architecture, data models, protocols, and the problem you're trying to solve. Knowing how to program makes it possible to guide AI through difficult implementation decisions and recognize when something needs to change.
Back in the coding session, Cursor eventually produces a substantial AGS implementation. We test it using the Tsugi LMS test tool and successfully exercise line item creation, score submission, metadata updates, and grading status.
An interesting debugging moment occurs when I confuse the database records created by Tsugi acting as an LTI tool with those created by Tsugi acting as an LTI platform. Once I recognize the distinction, the design makes much more sense.
We also discover an important issue for the administrative test harness: when a tool creates a line item during testing, that line item can remain in the course gradebook. This leads to a discussion of adding controls for advertising AGS services during test launches and eventually managing test-created or orphaned line items.
This is the first round of AGS implementation, not the final version. The next steps include reviewing the new code, refining the test harness, and integrating LTI 1.3 resource links and grading into Tsugi Lessons.
The larger project is to build a modern learning management system that puts instructors and students first, using AI as a development partner while maintaining professional software engineering practices.
Tsugi: tsugi.org
Python for Everybody: py4e.com
Online courses: online.dr-chuck.com
I'll be teaching Python for Everybody with AI beginning in January 2027, including an opportunity to participate through the University of Michigan's non-credit offerings. Visit py4e.com for information and announcements.
#Tsugi #LTI13 #AGS #CursorAI #AICoding #SoftwareEngineering
In this episode of AI Coding with Dr. Chuck, I begin implementing LTI 1.3 Assignment and Grade Services (AGS) in Tsugi, building on our previous work with Dynamic Registration, Deep Linking, OAuth access tokens, and Names and Role Provisioning Services (NRPS).
AGS is a significantly more complex specification than NRPS. It allows external LTI tools to create and manage gradebook line items, submit scores, and retrieve results from a learning management system.
I start by giving Cursor AI a detailed prompt describing how I want AGS implemented, particularly the relationship between line items and results in Tsugi's data model. I also encourage Cursor to examine the existing Sakai AGS implementation when useful.
Then we wait. And wait.
While Cursor spends nearly 40 minutes investigating the codebase, reading the specification, and writing the implementation, I take the opportunity to give a few impromptu talks about programming, education, AI, and the future of software development.
Some of the topics in this episode include:
**LTI 1.3 and AGS implementation**
- Implementing Assignment and Grade Services (AGS)
- Reusing the existing OAuth access token service
- Working with AGS scopes and bearer token authorization
- Creating and updating gradebook line items
- Submitting scores and retrieving results
- Handling grading progress and activity progress states
- Keeping line items and results tightly connected in the Tsugi data model
- Using the Tsugi LMS interoperability test tool
- Debugging interactions between Tsugi as an LTI platform and as an LTI tool
- Testing AGS through a temporary resource link launch
- Considering how test-created gradebook columns should be managed
**AI programming and education**
- Why I'm recording these AI-assisted development sessions
- Why AI does not eliminate the need to learn programming
- The importance of technical experience when prompting AI
- Using multiple AI agents for implementation and code review
- Why building real software requires continuous human involvement
- How AI is changing the way programming should be taught
- My plans for Python for Everybody with AI
- Building a learning management system focused on instructors and students
One of my main points is that effective AI-assisted software development still depends on understanding software architecture, data models, protocols, and the problem you're trying to solve. Knowing how to program makes it possible to guide AI through difficult implementation decisions and recognize when something needs to change.
Back in the coding session, Cursor eventually produces a substantial AGS implementation. We test it using the Tsugi LMS test tool and successfully exercise line item creation, score submission, metadata updates, and grading status.
An interesting debugging moment occurs when I confuse the database records created by Tsugi acting as an LTI tool with those created by Tsugi acting as an LTI platform. Once I recognize the distinction, the design makes much more sense.
We also discover an important issue for the administrative test harness: when a tool creates a line item during testing, that line item can remain in the course gradebook. This leads to a discussion of adding controls for advertising AGS services during test launches and eventually managing test-created or orphaned line items.
This is the first round of AGS implementation, not the final version. The next steps include reviewing the new code, refining the test harness, and integrating LTI 1.3 resource links and grading into Tsugi Lessons.
The larger project is to build a modern learning management system that puts instructors and students first, using AI as a development partner while maintaining professional software engineering practices.
Tsugi: tsugi.org
Python for Everybody: py4e.com
Online courses: online.dr-chuck.com
I'll be teaching Python for Everybody with AI beginning in January 2027, including an opportunity to participate through the University of Michigan's non-credit offerings. Visit py4e.com for information and announcements.
#Tsugi #LTI13 #AGS #CursorAI #AICoding #SoftwareEngineering










