<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.25.4</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>975</ContextCount>
  <ElementCount>473</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>162</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>12</UnitCount>
  <MyReports>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>0000001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>0000002 - Document - Audit Information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/AuditInformation</Role>
      <ShortName>Audit Information</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>9952151 - Statement - Consolidated Balance Sheets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedBalanceSheets</Role>
      <ShortName>Consolidated Balance Sheets</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>9952152 - Statement - Consolidated Balance Sheets (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedBalanceSheetsParenthetical</Role>
      <ShortName>Consolidated Balance Sheets (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>9952153 - Statement - Consolidated Statements of Operations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedStatementsofOperations</Role>
      <ShortName>Consolidated Statements of Operations</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>9952154 - Statement - Consolidated Statements of Stockholders??? Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedStatementsofStockholdersEquity</Role>
      <ShortName>Consolidated Statements of Stockholders??? Equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>9952155 - Statement - Consolidated Statements of Stockholders??? Equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedStatementsofStockholdersEquityParenthetical</Role>
      <ShortName>Consolidated Statements of Stockholders??? Equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>9952156 - Statement - Consolidated Statements of Cash Flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedStatementsofCashFlows</Role>
      <ShortName>Consolidated Statements of Cash Flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>9952157 - Statement - Consolidated Statements of Cash Flows (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/ConsolidatedStatementsofCashFlowsParenthetical</Role>
      <ShortName>Consolidated Statements of Cash Flows (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>9952158 - Disclosure - Organization</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Organization</Role>
      <ShortName>Organization</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>9952159 - Disclosure - Summary of significant accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Summaryofsignificantaccountingpolicies</Role>
      <ShortName>Summary of significant accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>9952160 - Disclosure - Loans</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Loans</Role>
      <ShortName>Loans</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>9952161 - Disclosure - Real Estate Securities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RealEstateSecurities</Role>
      <ShortName>Real Estate Securities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>9952162 - Disclosure - Fair value measurements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Fairvaluemeasurements</Role>
      <ShortName>Fair value measurements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>9952163 - Disclosure - Financing</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Financing</Role>
      <ShortName>Financing</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>9952164 - Disclosure - Other assets and liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Otherassetsandliabilities</Role>
      <ShortName>Other assets and liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>9952165 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Earningspershare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>9952166 - Disclosure - Income taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Incometaxes</Role>
      <ShortName>Income taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>9952167 - Disclosure - Related party transactions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Relatedpartytransactions</Role>
      <ShortName>Related party transactions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>9952168 - Disclosure - Equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Equity</Role>
      <ShortName>Equity</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>9952169 - Disclosure - Commitments and Contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/CommitmentsandContingencies</Role>
      <ShortName>Commitments and Contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>9952170 - Disclosure - Segment Reporting</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SegmentReporting</Role>
      <ShortName>Segment Reporting</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>9952171 - Disclosure - Investments in unconsolidated equity method affiliates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/Investmentsinunconsolidatedequitymethodaffiliates</Role>
      <ShortName>Investments in unconsolidated equity method affiliates</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>9952172 - Disclosure - Subsequent Events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent Events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>995445 - Disclosure - Insider Trading Arrangements</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements</Role>
      <ShortName>Insider Trading Arrangements</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>9955511 - Disclosure - Summary of significant accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SummaryofsignificantaccountingpoliciesPolicies</Role>
      <ShortName>Summary of significant accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>9955512 - Disclosure - Organization (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OrganizationTables</Role>
      <ShortName>Organization (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Organization</ParentRole>
      <Position>29</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>9955513 - Disclosure - Loans (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansTables</Role>
      <ShortName>Loans (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Loans</ParentRole>
      <Position>30</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>9955514 - Disclosure - Real Estate Securities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RealEstateSecuritiesTables</Role>
      <ShortName>Real Estate Securities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/RealEstateSecurities</ParentRole>
      <Position>31</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>9955515 - Disclosure - Fair value measurements (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FairvaluemeasurementsTables</Role>
      <ShortName>Fair value measurements (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Fairvaluemeasurements</ParentRole>
      <Position>32</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>9955516 - Disclosure - Financing (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FinancingTables</Role>
      <ShortName>Financing (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Financing</ParentRole>
      <Position>33</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>9955517 - Disclosure - Other assets and liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesTables</Role>
      <ShortName>Other assets and liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Otherassetsandliabilities</ParentRole>
      <Position>34</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>9955518 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EarningspershareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Earningspershare</ParentRole>
      <Position>35</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>9955519 - Disclosure - Income taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncometaxesTables</Role>
      <ShortName>Income taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Incometaxes</ParentRole>
      <Position>36</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>9955520 - Disclosure - Related party transactions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsTables</Role>
      <ShortName>Related party transactions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Relatedpartytransactions</ParentRole>
      <Position>37</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>9955521 - Disclosure - Equity (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EquityTables</Role>
      <ShortName>Equity (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Equity</ParentRole>
      <Position>38</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>9955522 - Disclosure - Commitments and Contingencies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/CommitmentsandContingenciesTables</Role>
      <ShortName>Commitments and Contingencies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/CommitmentsandContingencies</ParentRole>
      <Position>39</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>9955523 - Disclosure - Segment Reporting (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SegmentReportingTables</Role>
      <ShortName>Segment Reporting (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/SegmentReporting</ParentRole>
      <Position>40</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>9955524 - Disclosure - Investments in unconsolidated equity method affiliates (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/InvestmentsinunconsolidatedequitymethodaffiliatesTables</Role>
      <ShortName>Investments in unconsolidated equity method affiliates (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.agmit.com/role/Investmentsinunconsolidatedequitymethodaffiliates</ParentRole>
      <Position>41</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>9955525 - Disclosure - Organization - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OrganizationNarrativeDetails</Role>
      <ShortName>Organization - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>9955526 - Disclosure - Summary of significant accounting policies - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SummaryofsignificantaccountingpoliciesNarrativeDetails</Role>
      <ShortName>Summary of significant accounting policies - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>9955527 - Disclosure - Loans - Schedule of Company's Residential Mortgage Loan Portfolio and Commercial Loan Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofCompanysResidentialMortgageLoanPortfolioandCommercialLoanPortfolioDetails</Role>
      <ShortName>Loans - Schedule of Company's Residential Mortgage Loan Portfolio and Commercial Loan Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>44</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>9955528 - Disclosure - Loans - Schedule of Credit Quality Information on Residential Mortgage Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofCreditQualityInformationonResidentialMortgageLoansDetails</Role>
      <ShortName>Loans - Schedule of Credit Quality Information on Residential Mortgage Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>45</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>9955529 - Disclosure - Loans - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansNarrativeDetails</Role>
      <ShortName>Loans - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>46</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>9955530 - Disclosure - Loans - Schedule of Loans Purchased (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofLoansPurchasedDetails</Role>
      <ShortName>Loans - Schedule of Loans Purchased (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>47</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>9955531 - Disclosure - Loans - Schedule of Sold Residential Mortgage Loans (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofSoldResidentialMortgageLoansDetails</Role>
      <ShortName>Loans - Schedule of Sold Residential Mortgage Loans (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>48</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>9955532 - Disclosure - Loans - Schedule of Concentrations of Credit Risk (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofConcentrationsofCreditRiskDetails</Role>
      <ShortName>Loans - Schedule of Concentrations of Credit Risk (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>49</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>9955533 - Disclosure - Loans - Schedule of Assets and Liabilities Related to VIEs (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofAssetsandLiabilitiesRelatedtoVIEsDetails</Role>
      <ShortName>Loans - Schedule of Assets and Liabilities Related to VIEs (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>50</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>9955534 - Disclosure - Loans - Schedule of Commercial Loans Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/LoansScheduleofCommercialLoansPortfolioDetails</Role>
      <ShortName>Loans - Schedule of Commercial Loans Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>51</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>9955535 - Disclosure - Real Estate Securities - Schedule of Real Estate Securities Portfolio (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RealEstateSecuritiesScheduleofRealEstateSecuritiesPortfolioDetails</Role>
      <ShortName>Real Estate Securities - Schedule of Real Estate Securities Portfolio (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>52</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>9955536 - Disclosure - Real Estate Securities - Schedule of Weighted Average Life of Real Estate Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RealEstateSecuritiesScheduleofWeightedAverageLifeofRealEstateSecuritiesDetails</Role>
      <ShortName>Real Estate Securities - Schedule of Weighted Average Life of Real Estate Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>53</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>9955537 - Disclosure - Real Estate Securities - Sale of Real Estate Securities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RealEstateSecuritiesSaleofRealEstateSecuritiesDetails</Role>
      <ShortName>Real Estate Securities - Sale of Real Estate Securities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>54</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>9955538 - Disclosure - Fair value measurements - Summary of financial instruments measured at fair value (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FairvaluemeasurementsSummaryoffinancialinstrumentsmeasuredatfairvalueDetails</Role>
      <ShortName>Fair value measurements - Summary of financial instruments measured at fair value (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>55</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>9955539 - Disclosure - Fair value measurements - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FairvaluemeasurementsNarrativeDetails</Role>
      <ShortName>Fair value measurements - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>56</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>9955540 - Disclosure - Fair value measurements - Summary of assets measured on a recurring basis (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FairvaluemeasurementsSummaryofassetsmeasuredonarecurringbasisDetails</Role>
      <ShortName>Fair value measurements - Summary of assets measured on a recurring basis (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>57</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>9955541 - Disclosure - Fair value measurements - Summary of valuation techniques (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FairvaluemeasurementsSummaryofvaluationtechniquesDetails</Role>
      <ShortName>Fair value measurements - Summary of valuation techniques (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>58</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>9955542 - Disclosure - Financing - Summary of financing arrangements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FinancingSummaryoffinancingarrangementsDetails</Role>
      <ShortName>Financing - Summary of financing arrangements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>59</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>9955543 - Disclosure - Financing - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FinancingNarrativeDetails</Role>
      <ShortName>Financing - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>60</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>9955544 - Disclosure - Financing - Summary of Senior Unsecured Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.agmit.com/role/FinancingSummaryofSeniorUnsecuredNotesDetails</Role>
      <ShortName>Financing - Summary of Senior Unsecured Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>61</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>9955545 - Disclosure - Financing - Schedule of Interest Expense Incurred Convertible Notes and Senior Unsecured Notes (Details)</LongName>
      <ReportType>Notes</ReportType>
      <Role>http://www.agmit.com/role/FinancingScheduleofInterestExpenseIncurredConvertibleNotesandSeniorUnsecuredNotesDetails</Role>
      <ShortName>Financing - Schedule of Interest Expense Incurred Convertible Notes and Senior Unsecured Notes (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>62</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>9955546 - Disclosure - Financing - Summary of repurchase agreements (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FinancingSummaryofrepurchaseagreementsDetails</Role>
      <ShortName>Financing - Summary of repurchase agreements (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>9955547 - Disclosure - Financing - Summary of repurchase agreement counterparty (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/FinancingSummaryofrepurchaseagreementcounterpartyDetails</Role>
      <ShortName>Financing - Summary of repurchase agreement counterparty (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>64</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>9955548 - Disclosure - Other assets and liabilities - Summary of other assets and liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesSummaryofotherassetsandliabilitiesDetails</Role>
      <ShortName>Other assets and liabilities - Summary of other assets and liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>65</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>9955549 - Disclosure - Other assets and liabilities - Summary of company's derivatives and other instruments and their balance sheet location (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesSummaryofcompanysderivativesandotherinstrumentsandtheirbalancesheetlocationDetails</Role>
      <ShortName>Other assets and liabilities - Summary of company's derivatives and other instruments and their balance sheet location (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>9955550 - Disclosure - Other assets and liabilities - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesNarrativeDetails</Role>
      <ShortName>Other assets and liabilities - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>67</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>9955551 - Disclosure - Other assets and liabilities - Summary of gains/(losses) related to derivatives and other instruments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesSummaryofgainslossesrelatedtoderivativesandotherinstrumentsDetails</Role>
      <ShortName>Other assets and liabilities - Summary of gains/(losses) related to derivatives and other instruments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>68</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>9955552 - Disclosure - Other assets and liabilities - Summary of derivative activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/OtherassetsandliabilitiesSummaryofderivativeactivityDetails</Role>
      <ShortName>Other assets and liabilities - Summary of derivative activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>9955553 - Disclosure - Earnings per share - Summary of earnings per share (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EarningspershareSummaryofearningspershareDetails</Role>
      <ShortName>Earnings per share - Summary of earnings per share (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>70</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>9955554 - Disclosure - Earnings per share - Summary of common stock dividends (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EarningspershareSummaryofcommonstockdividendsDetails</Role>
      <ShortName>Earnings per share - Summary of common stock dividends (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>71</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>9955555 - Disclosure - Earnings per share - Summary of preferred stock dividends (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EarningspershareSummaryofpreferredstockdividendsDetails</Role>
      <ShortName>Earnings per share - Summary of preferred stock dividends (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>72</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>9955556 - Disclosure - Income Taxes - Schedule of Excise tax (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncomeTaxesScheduleofExcisetaxDetails</Role>
      <ShortName>Income Taxes - Schedule of Excise tax (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>73</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>9955557 - Disclosure - Income taxes - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncometaxesNarrativeDetails</Role>
      <ShortName>Income taxes - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>9955558 - Disclosure - Income taxes - Reconciliation of Statutory Tax Rate to Effective Tax Rate (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncometaxesReconciliationofStatutoryTaxRatetoEffectiveTaxRateDetails</Role>
      <ShortName>Income taxes - Reconciliation of Statutory Tax Rate to Effective Tax Rate (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>9955559 - Disclosure - Income taxes - Schedule of components of income tax expense (benefit) (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncometaxesScheduleofcomponentsofincometaxexpensebenefitDetails</Role>
      <ShortName>Income taxes - Schedule of components of income tax expense (benefit) (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>9955560 - Disclosure - Income taxes - Schedule of deferred tax assets and liabilities (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/IncometaxesScheduleofdeferredtaxassetsandliabilitiesDetails</Role>
      <ShortName>Income taxes - Schedule of deferred tax assets and liabilities (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>9955561 - Disclosure - Related party transactions - Manager (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsManagerDetails</Role>
      <ShortName>Related party transactions - Manager (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>9955562 - Disclosure - Related party transactions - Management fee (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsManagementfeeDetails</Role>
      <ShortName>Related party transactions - Management fee (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>9955563 - Disclosure - Related party transactions - Expense reimbursement to manager or its affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsExpensereimbursementtomanageroritsaffiliatesDetails</Role>
      <ShortName>Related party transactions - Expense reimbursement to manager or its affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>9955564 - Disclosure - Related party transactions - Investments in debt and equity affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsInvestmentsindebtandequityaffiliatesDetails</Role>
      <ShortName>Related party transactions - Investments in debt and equity affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>9955565 - Disclosure - Related party transactions - Schedule of investments in debt and equity of affiliates (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsScheduleofinvestmentsindebtandequityofaffiliatesDetails</Role>
      <ShortName>Related party transactions - Schedule of investments in debt and equity of affiliates (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>9955566 - Disclosure - Related party transactions - Transactions with Red Creek Asset Management LLC (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsTransactionswithRedCreekAssetManagementLLCDetails</Role>
      <ShortName>Related party transactions - Transactions with Red Creek Asset Management LLC (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>9955567 - Disclosure - Related party transactions - Transactions with Arc Home (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsTransactionswithArcHomeDetails</Role>
      <ShortName>Related party transactions - Transactions with Arc Home (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>9955568 - Disclosure - Related party transactions - Summary of intra-entity profits eliminated (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsSummaryofintraentityprofitseliminatedDetails</Role>
      <ShortName>Related party transactions - Summary of intra-entity profits eliminated (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>9955569 - Disclosure - Related party transactions - Summary of affiliated transactions (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/RelatedpartytransactionsSummaryofaffiliatedtransactionsDetails</Role>
      <ShortName>Related party transactions - Summary of affiliated transactions (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>9955570 - Disclosure - Equity - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EquityNarrativeDetails</Role>
      <ShortName>Equity - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>9955571 - Disclosure - Equity - Schedule of Restricted Stock Awards and Restricted Stock Units Activity (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EquityScheduleofRestrictedStockAwardsandRestrictedStockUnitsActivityDetails</Role>
      <ShortName>Equity - Schedule of Restricted Stock Awards and Restricted Stock Units Activity (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>9955572 - Disclosure - Equity - Schedule of Preferred Stock (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/EquityScheduleofPreferredStockDetails</Role>
      <ShortName>Equity - Schedule of Preferred Stock (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>9955573 - Disclosure - Commitments and Contingencies - Schedule of outstanding commitments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/CommitmentsandContingenciesScheduleofoutstandingcommitmentsDetails</Role>
      <ShortName>Commitments and Contingencies - Schedule of outstanding commitments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>9955574 - Disclosure - Segment Reporting - Narrative (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SegmentReportingNarrativeDetails</Role>
      <ShortName>Segment Reporting - Narrative (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>9955575 - Disclosure - Segment Reporting - Schedule of Reportable Operating Segments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SegmentReportingScheduleofReportableOperatingSegmentsDetails</Role>
      <ShortName>Segment Reporting - Schedule of Reportable Operating Segments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>9955576 - Disclosure - Segment Reporting - Assets by Reportable Segment (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SegmentReportingAssetsbyReportableSegmentDetails</Role>
      <ShortName>Segment Reporting - Assets by Reportable Segment (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>93</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>9955577 - Disclosure - Investments in unconsolidated equity method affiliates - Schedule of Equity Method Investments (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/InvestmentsinunconsolidatedequitymethodaffiliatesScheduleofEquityMethodInvestmentsDetails</Role>
      <ShortName>Investments in unconsolidated equity method affiliates - Schedule of Equity Method Investments (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>94</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>9955578 - Disclosure - Investments in unconsolidated equity method affiliates - Summarized Statements of Operations (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/InvestmentsinunconsolidatedequitymethodaffiliatesSummarizedStatementsofOperationsDetails</Role>
      <ShortName>Investments in unconsolidated equity method affiliates - Summarized Statements of Operations (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>95</Position>
    </Report>
    <Report instance="mitt-20251231.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>9955579 - Disclosure - Subsequent Events (Details)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.agmit.com/role/SubsequentEventsDetails</Role>
      <ShortName>Subsequent Events (Details)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.agmit.com/role/SubsequentEvents</ParentRole>
      <Position>96</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="10-K" isDefinitelyFs="true" isUsgaap="true" original="mitt-20251231.htm">mitt-20251231.htm</File>
    <File>mitt-20251231.xsd</File>
    <File>mitt-20251231_cal.xml</File>
    <File>mitt-20251231_def.xml</File>
    <File>mitt-20251231_lab.xml</File>
    <File>mitt-20251231_pre.xml</File>
  </InputFiles>
  <SupplementalFiles/>
  <BaseTaxonomies>
    <BaseTaxonomy items="3">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="1634">http://fasb.org/us-gaap/2025</BaseTaxonomy>
    <BaseTaxonomy items="15">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="54">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="5">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>true</HasPresentationLinkbase>
  <HasCalculationLinkbase>true</HasCalculationLinkbase>
</FilingSummary>
